对接标准/译文获取申请

This commit is contained in:
范强强
2024-03-28 11:21:59 +08:00
parent 3d261fe269
commit 508e38976e
2 changed files with 113 additions and 25 deletions
@@ -42,15 +42,15 @@
<el-col :span="12">
<el-form-item label="标准类型" prop="standType" label-width="100px" class="add-form-item">
<el-select
v-model="StandardApplyForEO.standType"
:placeholder="'请选择标准类型'"
clearable
v-model="StandardApplyForEO.standType"
:placeholder="'请选择标准类型'"
clearable
>
<el-option
v-for="opt in standTypeList"
:key="opt.value"
:value="opt.value === undefined ? '' :opt.value"
:label="opt.label"
v-for="opt in standTypeList"
:key="opt.value"
:value="opt.value === undefined ? '' :opt.value"
:label="opt.label"
>
{{ opt.label }}
</el-option>
@@ -61,15 +61,15 @@
<el-col :span="12">
<el-form-item label="标准类别" prop="standLb" label-width="100px" class="add-form-item">
<el-select
v-model="StandardApplyForEO.standLb"
:placeholder="'请选择标准类别'"
clearable
v-model="StandardApplyForEO.standLb"
:placeholder="'请选择标准类别'"
clearable
>
<el-option
v-for="opt in standLbList"
:key="opt.value"
:value="opt.value === undefined ? '' :opt.value"
:label="opt.label"
v-for="opt in standLbList"
:key="opt.value"
:value="opt.value === undefined ? '' :opt.value"
:label="opt.label"
>
{{ opt.label }}
</el-option>
@@ -203,15 +203,18 @@ export default {
submit () {
this.$refs.addFormRef.validate((valid) => {
if (valid) {
this.isSubmit = true
const url = this.id ? this.url.editUrl : this.url.addUrl
this.$http.postData(url, this.StandardApplyForEO, { _this: this },
res => {
if (res.ok) {
this.$emit('updateList')
this.$message.success(res.message)
this.visible = false
}else{
this.$message.warning(res.message)
}
this.isSubmit = false
})
}
})