Browse Source

fix: Invalid check

master
wangxiang 2 years ago
parent
commit
625c17924e
No known key found for this signature in database
GPG Key ID: 1BA7946AB6B232E4
  1. 2
      src/components/Panel/Auditor/index.vue
  2. 12
      src/components/Panel/Auth/index.vue
  3. 2
      src/components/Panel/Popups/StaffAssignmentsTemplate/index.vue

2
src/components/Panel/Auditor/index.vue

@ -140,7 +140,7 @@ export default {
item.assignIds && axiosList.push(getUserByIds(item.assignIds.split(',')) item.assignIds && axiosList.push(getUserByIds(item.assignIds.split(','))
.then(response => { .then(response => {
item.assign = lodash.get(response, 'data', []) item.assign = lodash.get(response, 'data', [])
this.$set(item, 'assignNames', item.assign.map(item => item.userName).join(',')) this.$set(item, 'assignNames', item.assign.map(item => item.username).join(','))
})) }))
break break
case 'company': case 'company':

12
src/components/Panel/Auth/index.vue

@ -10,7 +10,7 @@
<el-form-item v-show="form.starterType===2" label="添加用户:"> <el-form-item v-show="form.starterType===2" label="添加用户:">
<el-input :readonly="true" <el-input :readonly="true"
placeholder="请选择" placeholder="请选择"
:value="form.userNames" :value="form.usernames"
class="input-with-select" class="input-with-select"
> >
<el-button slot="append" <el-button slot="append"
@ -79,7 +79,7 @@ export default {
roleNames: '', roleNames: '',
// //
userIds: undefined, userIds: undefined,
userNames: '' usernames: ''
}, },
userTemplateStore: [], userTemplateStore: [],
roleTemplateStore: [], roleTemplateStore: [],
@ -115,11 +115,11 @@ export default {
roleIds: candidateStarterGroups, roleIds: candidateStarterGroups,
roleNames: '', roleNames: '',
userIds: candidateStarterUsers, userIds: candidateStarterUsers,
userNames: '' usernames: ''
}) })
// names // names
this.getList().then(() => { this.getList().then(() => {
this.$set(this.form, 'userNames', this.userTemplateStore.map(item => item.userName).join(',')) this.$set(this.form, 'usernames', this.userTemplateStore.map(item => item.username).join(','))
this.$set(this.form, 'roleNames', this.roleTemplateStore.map(item => item.name).join(',')) this.$set(this.form, 'roleNames', this.roleTemplateStore.map(item => item.name).join(','))
}) })
} }
@ -137,7 +137,7 @@ export default {
this.userTemplateStore = lodash.cloneDeep(uniqueTags) this.userTemplateStore = lodash.cloneDeep(uniqueTags)
// nameid // nameid
this.$set(this.form, 'userIds', this.userTemplateStore.map(item => item.id).join(',')) this.$set(this.form, 'userIds', this.userTemplateStore.map(item => item.id).join(','))
this.$set(this.form, 'userNames', this.userTemplateStore.map(item => item.userName).join(',')) this.$set(this.form, 'usernames', this.userTemplateStore.map(item => item.username).join(','))
this.handleMakeXml() this.handleMakeXml()
}, },
/** 处理更新xml */ /** 处理更新xml */
@ -171,7 +171,7 @@ export default {
roleNames: '', roleNames: '',
// //
userIds: undefined, userIds: undefined,
userNames: '' usernames: ''
} }
}, },
/** 处理用户选择模板搜索 */ /** 处理用户选择模板搜索 */

2
src/components/Panel/Popups/StaffAssignmentsTemplate/index.vue

@ -226,7 +226,7 @@ export default {
handleUserSelectTemplateSave (uniqueTags) { handleUserSelectTemplateSave (uniqueTags) {
const assign = lodash.cloneDeep(uniqueTags) const assign = lodash.cloneDeep(uniqueTags)
this.$set(this.currentRow, 'assignIds', assign.map(item => item.id).join(',')) this.$set(this.currentRow, 'assignIds', assign.map(item => item.id).join(','))
this.$set(this.currentRow, 'assignNames', assign.map(item => item.userName).join(',')) this.$set(this.currentRow, 'assignNames', assign.map(item => item.username).join(','))
this.$set(this.currentRow, 'assign', assign) this.$set(this.currentRow, 'assign', assign)
}, },
/** 处理角色选择模板保存 */ /** 处理角色选择模板保存 */

Loading…
Cancel
Save