修改参数清单带入接口人问题

This commit is contained in:
gaosong
2024-01-18 18:06:48 +08:00
parent 496750e875
commit 0dc0289450
4 changed files with 30 additions and 14 deletions
@@ -72,6 +72,8 @@
<a-select
mode="multiple"
class="box-input"
optionFilterProp="children"
:filter-option="filterOption"
:value="evaluatorIds"
@change='evaluatorIdsChange'
:placeholder="$t('PleaseSelect')+$t('Assessor')"
@@ -137,6 +139,7 @@
</div>
</div>
<JLoading :loading="JLoading">{{this.$t('pleaseWaitWhileRunning')}}</JLoading>
<JLoading :loading="searchJLoading">{{this.$t('loading')}}</JLoading>
<uploadFile ref="uploadFile" @uploadSuccess="uploadSuccess"/>
</div>
</template>
@@ -277,6 +280,7 @@
}
],
evaluatorIdsNameOptions: [],
searchJLoading:false,
}
},
mounted() {
@@ -304,12 +308,19 @@
return this.evaluatorIdsNameOptions = []
}
const query = { documentId: this.selectedRowKeysRecord[0].id }
this.searchJLoading = true
getAction(this.url.getEvaluatorList, query).then((res) => {
if (res.success) {
this.evaluatorIdsNameOptions = res.result
}
this.searchJLoading = false
})
},
filterOption(input, option) {
return (
option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
);
},
disabledDate(current) {
return current && current < moment().subtract(1, 'day')
},
@@ -175,7 +175,7 @@
version:this.dataQuery.version,
}
this.confirmLoading = true
postAction('/params/manifest/updateModel', query).then((res) => {
getAction('/params/manifest/updateModel', query).then((res) => {
if (res.success) {
this.$message.success(res.message)
this.visible = false