feature(法规意见收集-发起流程): 修改评估人数据来源
This commit is contained in:
+29
-8
@@ -61,12 +61,22 @@
|
||||
<span class="title-text-text" :title="$t('Assessor')">{{$t('Assessor')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="evaluatorIdsName">
|
||||
<PersonnelSelection class="box-input"
|
||||
:personneQuery="formInline"
|
||||
:query="{db_field_name:'evaluatorIds',db_field_txt:$t('Assessor')}"
|
||||
:isInput="true"
|
||||
@change="PersonnelSelectionChange"
|
||||
v-model="formInline.evaluatorIdsName"/>
|
||||
<!-- <PersonnelSelection class="box-input"-->
|
||||
<!-- :personneQuery="formInline"-->
|
||||
<!-- :query="{db_field_name:'evaluatorIds',db_field_txt:$t('Assessor')}"-->
|
||||
<!-- :isInput="true"-->
|
||||
<!-- @change="PersonnelSelectionChange"-->
|
||||
<!-- v-model="formInline.evaluatorIdsName"/>-->
|
||||
<a-select
|
||||
mode="multiple"
|
||||
class="box-input"
|
||||
v-model="formInline.evaluatorIdsName"
|
||||
:placeholder="$t('PleaseSelect')+$t('Assessor')"
|
||||
>
|
||||
<a-select-option v-for="i in evaluatorIdsNameOptions" :key="i.id">
|
||||
{{ i.username }}
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
@@ -156,7 +166,8 @@
|
||||
//url传参严格按照当前命名
|
||||
url: {
|
||||
seachList: 'document/bussDocumentLibraryEO/queryCondition', //搜索字段
|
||||
addModelList: '/dummy/dummyInventoryInfoEO/queryPageDummy'
|
||||
addModelList: '/dummy/dummyInventoryInfoEO/queryPageDummy',
|
||||
getEvaluatorList: '/project/projectLawsInventoryEO/getEvaluatorList',
|
||||
},
|
||||
loading: false,
|
||||
JLoading: false,
|
||||
@@ -243,7 +254,8 @@
|
||||
width: 150,
|
||||
dataIndex: 'corresponding_standard'
|
||||
}
|
||||
]
|
||||
],
|
||||
evaluatorIdsNameOptions: [],
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -262,6 +274,14 @@
|
||||
},
|
||||
methods: {
|
||||
...mapGetters(['userInfo']),
|
||||
getEvaluatorList () {
|
||||
const query = { documentId: this.selectedRowKeysRecord[0].id }
|
||||
getAction(this.url.getEvaluatorList, query).then((res) => {
|
||||
if (res.success) {
|
||||
this.evaluatorIdsNameOptions = res.result
|
||||
}
|
||||
})
|
||||
},
|
||||
disabledDate(current) {
|
||||
return current && current < moment().subtract(1, 'day')
|
||||
},
|
||||
@@ -302,6 +322,7 @@
|
||||
return res.id == this.selectedRowKeys[0]
|
||||
})
|
||||
this.selectedRowKeysRecord = [...this.selectedRowKeysRecord]
|
||||
this.getEvaluatorList()
|
||||
},
|
||||
clickButtonToUpload(item) {
|
||||
this.$refs.uploadFile.perentHandleFunc()
|
||||
|
||||
Reference in New Issue
Block a user