fix(法规意见收集-发起流程): 修改评估人数据来源
This commit is contained in:
+16
-1
@@ -72,7 +72,8 @@
|
|||||||
<a-select
|
<a-select
|
||||||
mode="multiple"
|
mode="multiple"
|
||||||
class="box-input"
|
class="box-input"
|
||||||
v-model="formInline.evaluatorIds"
|
:value="evaluatorIds"
|
||||||
|
@change='evaluatorIdsChange'
|
||||||
:placeholder="$t('PleaseSelect')+$t('Assessor')"
|
:placeholder="$t('PleaseSelect')+$t('Assessor')"
|
||||||
>
|
>
|
||||||
<a-select-option v-for="i in evaluatorIdsNameOptions" :key="i.id">
|
<a-select-option v-for="i in evaluatorIdsNameOptions" :key="i.id">
|
||||||
@@ -162,6 +163,17 @@
|
|||||||
PersonnelSelection
|
PersonnelSelection
|
||||||
},
|
},
|
||||||
mixins:[ResizeHeader, ResizeColumnProvide],
|
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() {
|
data() {
|
||||||
return {
|
return {
|
||||||
title: this.$t('regulationEngineerInitiateProcess'),
|
title: this.$t('regulationEngineerInitiateProcess'),
|
||||||
@@ -283,6 +295,9 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapGetters(['userInfo']),
|
...mapGetters(['userInfo']),
|
||||||
|
evaluatorIdsChange (val) {
|
||||||
|
this.formInline.evaluatorIds = val
|
||||||
|
},
|
||||||
getEvaluatorList () {
|
getEvaluatorList () {
|
||||||
this.$set(this.formInline, 'evaluatorIds', [])
|
this.$set(this.formInline, 'evaluatorIds', [])
|
||||||
if (this.selectedRowKeysRecord.length === 0) {
|
if (this.selectedRowKeysRecord.length === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user