Skip to content

Commit 0dcec5c

Browse files
authored
Revert "feature: 审计日志中新增人员全名列&导出列表优化&通过excel导入用户组织支持全量更新 (#836)" (#853)
This reverts commit a380f25.
1 parent a380f25 commit 0dcec5c

6 files changed

Lines changed: 5 additions & 34 deletions

File tree

src/pages/src/components/catalog/home/ImportUser.vue

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,6 @@
4848
<span class="text">{{$t('仅支持xls、xlsx格式文件')}}</span>
4949
<span class="template" @click="downloadTemplate"><i class="icon-user-download"></i>{{$t('下载模板')}}</span>
5050
</p>
51-
<p class="tip-wrapper">
52-
<bk-checkbox
53-
v-model="uploadInfo.isOverwrite">
54-
允许对同名用户覆盖更新
55-
</bk-checkbox>
56-
<i class="tip-icon icon-user--l" v-bk-tooltips="{ width: 310, content: $t('导入覆盖提升') }"></i>
57-
</p>
5851
</div>
5952
</template>
6053

@@ -76,7 +69,6 @@ export default {
7669
name: '',
7770
size: '',
7871
type: false,
79-
isOverwrite: false,
8072
},
8173
};
8274
},
@@ -124,7 +116,6 @@ export default {
124116
name: '',
125117
size: '',
126118
type: false,
127-
isOverwrite: false,
128119
};
129120
},
130121
// 上传
@@ -316,12 +307,4 @@ export default {
316307
cursor: pointer;
317308
}
318309
}
319-
320-
.tip-wrapper {
321-
margin-top: 10px;
322-
.tip-icon {
323-
display: inline-block;
324-
transform: translateY(4px);
325-
}
326-
}
327310
</style>

src/pages/src/language/lang/en.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,6 @@ export default {
260260
最近三个月: 'Last 3 months',
261261
时间: 'Time',
262262
操作人员: 'The operator',
263-
操作用户: 'The operator',
264-
用户全名: 'Full name',
265263
操作对象: 'Action object',
266264
操作类型: 'Operation type',
267265
用户目录管理无权限访问: '【Categories Management】No access authority',
@@ -448,5 +446,4 @@ export default {
448446
退出登录: 'Log out',
449447
确认退出登录_: '确认退出登录?',
450448
_需要设置新密码: ', You need to set a new password',
451-
导入覆盖提升: 'After checking, it is allowed to edit the personal information of existing users, and the existing user information will face the risk of being modified, so be cautious.',
452449
};

src/pages/src/language/lang/zh.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,6 @@ export default {
260260
最近三个月: '最近三个月',
261261
时间: '时间',
262262
操作人员: '操作人员',
263-
操作用户: '操作用户',
264-
用户全名: '用户全名',
265263
操作对象: '操作对象',
266264
操作类型: '操作类型',
267265
用户目录管理无权限访问: '【用户目录管理】无权限访问',
@@ -447,5 +445,4 @@ export default {
447445
退出登录: '退出登录',
448446
确认退出登录_: '确认退出登录?',
449447
_需要设置新密码: ',需要设置新密码',
450-
导入覆盖提升: '勾选后,将允许对已经存在用户的个人信息进行编辑操作,现存用户信息将面临被修改风险,谨慎操作。',
451448
};

src/pages/src/store/modules/catalog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default {
7878
},
7979
// eslint-disable-next-line no-unused-vars
8080
ajaxImportUser(_context, params, _config = {}) {
81-
return http.post(`api/v1/web/categories/${params.id}/operations/sync_or_import/?is_overwrite=${params.isOverwrite}`, params.data);
81+
return http.post(`api/v1/web/categories/${params.id}/operations/sync_or_import/`, params.data);
8282
// const mockUrl = `?mock-file=catalog`
8383
// return http.get(mockUrl, config)
8484
},

src/pages/src/views/audit/index.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
v-if="panelActive === 'operate'"
4040
class="king-input-search"
4141
style="width: 400px;"
42-
:placeholder="$t('搜索操作用户、操作对象、操作类型')"
42+
:placeholder="$t('搜索操作人员、操作对象、操作类型')"
4343
:clearable="true"
4444
:left-icon="'bk-icon icon-search'"
4545
@clear="handleClear"
@@ -71,7 +71,6 @@
7171
<tr v-for="(item, index) in auditList" :key="index">
7272
<template v-if="isOperate">
7373
<td><div class="text-overflow-hidden" v-bk-overflow-tips>{{item.operator}}</div></td>
74-
<td><div class="text-overflow-hidden" v-bk-overflow-tips>{{item.display_name || '--'}}</div></td>
7574
<td><div class="text-overflow-hidden">{{item.datetime | convertIsoTime}}</div></td>
7675
<td><div class="text-overflow-hidden" v-bk-overflow-tips>{{item.client_ip}}</div></td>
7776
<td><div class="text-overflow-hidden">{{item.operation}}</div></td>
@@ -80,7 +79,6 @@
8079
</template>
8180
<template v-else>
8281
<td><div class="text-overflow-hidden">{{item.username}}</div></td>
83-
<td><div class="text-overflow-hidden">{{item.display_name || '--'}}</div></td>
8482
<td><div class="text-overflow-hidden">{{item.datetime | convertIsoTime}}</div></td>
8583
<td><div class="text-overflow-hidden">{{item.client_ip}}</div></td>
8684
<td><div class="text-overflow-hidden" v-bk-tooltips="errorTips(item)">
@@ -193,8 +191,7 @@ export default {
193191
],
194192
panelActive: 'operate',
195193
auditHead: [
196-
{ key: 'operater', name: this.$t('操作用户') },
197-
{ key: 'operater', name: this.$t('用户全名') },
194+
{ key: 'operater', name: this.$t('操作人员') },
198195
{ key: 'time', name: this.$t('时间') },
199196
{ key: 'IP', name: this.$t('来源 IP') },
200197
{ key: 'type', name: this.$t('操作类型') },
@@ -204,7 +201,6 @@ export default {
204201
/** 登录审计表头 */
205202
loginHead: [
206203
{ key: 'user', name: this.$t('登录用户') },
207-
{ key: 'user', name: this.$t('用户全名') },
208204
{ key: 'time', name: this.$t('登录时间') },
209205
{ key: 'IP', name: this.$t('登录来源IP') },
210206
{ key: 'status', name: this.$t('登录状态') },

src/pages/src/views/catalog/PageHome.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,8 @@ export default {
368368
return;
369369
}
370370
const formData = new FormData();
371-
const uploadInfo = this.$refs.importUserRef.uploadInfo;
372-
formData.append('file', uploadInfo.fileInfo);
373-
formData.append('file_name', uploadInfo.name);
371+
formData.append('file', this.$refs.importUserRef.uploadInfo.fileInfo);
372+
formData.append('file_name', this.$refs.importUserRef.uploadInfo.name);
374373
formData.append('department_id', this.$refs.importUserRef.id);
375374
376375
// 如果同时有两个目录正在导入,this.importId 会变化,影响 splice loading,所以必须加个变量
@@ -381,7 +380,6 @@ export default {
381380
try {
382381
await this.$store.dispatch('catalog/ajaxImportUser', {
383382
id: this.importId,
384-
isOverwrite: uploadInfo.isOverwrite,
385383
data: formData,
386384
});
387385
await this.getDepartments();

0 commit comments

Comments
 (0)