fix(法规意见收集-发起流程): 修改评估人数据来源

This commit is contained in:
zyn
2024-01-17 17:35:29 +08:00
parent c1835c8a9b
commit 62487cf761
@@ -72,7 +72,8 @@
<a-select
mode="multiple"
class="box-input"
v-model="formInline.evaluatorIds"
:value="evaluatorIds"
@change='evaluatorIdsChange'
:placeholder="$t('PleaseSelect')+$t('Assessor')"
>
<a-select-option v-for="i in evaluatorIdsNameOptions" :key="i.id">
@@ -162,6 +163,17 @@
PersonnelSelection
},
mixins:[ResizeHeader, ResizeColumnProvide],
computed: {
evaluatorIds () {
if (this.formInline.evaluatorIds && this.formInline.evaluatorIds instanceof Array) {
return this.formInline.evaluatorIds
}
if (this.formInline.evaluatorIds && typeof(this.formInline.evaluatorIds)==='string') {
return this.formInline.evaluatorIds.split(',')
}
return []
}
},
data() {
return {
title: this.$t('regulationEngineerInitiateProcess'),
@@ -283,6 +295,9 @@
},
methods: {
...mapGetters(['userInfo']),
evaluatorIdsChange (val) {
this.formInline.evaluatorIds = val
},
getEvaluatorList () {
this.$set(this.formInline, 'evaluatorIds', [])
if (this.selectedRowKeysRecord.length === 0) {