feature(法规意见收集-发起流程): 修改评估人数据来源
This commit is contained in:
+15
-2
@@ -60,17 +60,19 @@
|
||||
<span class="Required">*</span>
|
||||
<span class="title-text-text" :title="$t('Assessor')">{{$t('Assessor')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="evaluatorIdsName">
|
||||
<!-- <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"/>-->
|
||||
<!-- </a-form-model-item>-->
|
||||
<a-form-model-item class="itemModel" prop="evaluatorIds">
|
||||
<a-select
|
||||
mode="multiple"
|
||||
class="box-input"
|
||||
v-model="formInline.evaluatorIdsName"
|
||||
v-model="formInline.evaluatorIds"
|
||||
:placeholder="$t('PleaseSelect')+$t('Assessor')"
|
||||
>
|
||||
<a-select-option v-for="i in evaluatorIdsNameOptions" :key="i.id">
|
||||
@@ -192,6 +194,13 @@
|
||||
trigger: 'change'
|
||||
}
|
||||
],
|
||||
evaluatorIds: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('Assessor') + this.$t('cannotEmpty'),
|
||||
trigger: 'change'
|
||||
}
|
||||
],
|
||||
brands: [
|
||||
{
|
||||
required: true,
|
||||
@@ -275,6 +284,10 @@
|
||||
methods: {
|
||||
...mapGetters(['userInfo']),
|
||||
getEvaluatorList () {
|
||||
this.$set(this.formInline, 'evaluatorIds', [])
|
||||
if (this.selectedRowKeysRecord.length === 0) {
|
||||
return this.evaluatorIdsNameOptions = []
|
||||
}
|
||||
const query = { documentId: this.selectedRowKeysRecord[0].id }
|
||||
getAction(this.url.getEvaluatorList, query).then((res) => {
|
||||
if (res.success) {
|
||||
|
||||
Reference in New Issue
Block a user