修改收集清单的责任领域

This commit is contained in:
qq787203167
2022-07-15 17:57:13 +08:00
parent 04af7768ea
commit 54e23f4bc4
@@ -117,7 +117,7 @@
@cancel="cancel"> @cancel="cancel">
<a-form-model <a-form-model
class='tag-module' class='tag-module'
ref='ruleForm' ref='ruleFormOne'
:model='Dateline' :model='Dateline'
:rules='rules' :rules='rules'
:label-col='labelCol' :label-col='labelCol'
@@ -136,6 +136,7 @@
<!-- </a-select-option>--> <!-- </a-select-option>-->
<!-- </a-select>--> <!-- </a-select>-->
<j-dict-select-tag class="box-input" v-model="Dateline.queryzr" <j-dict-select-tag class="box-input" v-model="Dateline.queryzr"
@input="handleInput('queryzr')"
:placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')" :placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"
:type="'select'" :type="'select'"
:triggerChange="false" :dictCode="'duty_territory'"/> :triggerChange="false" :dictCode="'duty_territory'"/>
@@ -146,7 +147,7 @@
<div class="imports-footer"> <div class="imports-footer">
<div class="imports-footer-wrap"> <div class="imports-footer-wrap">
<a-button class="imports-btn imports-sub" type="primary" @click="handleSubmitzr">{{$t('preservation')}} <a-button class="imports-btn imports-sub" :loading="confirmLoading" type="primary" @click="handleSubmitzr">{{$t('preservation')}}
</a-button> </a-button>
<a-button class="imports-btn" type="primary" @click="cancel">{{$t('cancel')}}</a-button> <a-button class="imports-btn" type="primary" @click="cancel">{{$t('cancel')}}</a-button>
</div> </div>
@@ -278,6 +279,7 @@
indeterminate: false, indeterminate: false,
columns: [], columns: [],
content: [], content: [],
confirmLoading:false,
selectedRowKeys: [], selectedRowKeys: [],
selectedRowrowValue: [], selectedRowrowValue: [],
dataSource: [], dataSource: [],
@@ -348,6 +350,12 @@
return 'rowClassRed' return 'rowClassRed'
} }
}, },
handleInput(value) {
this.$nextTick(() => {
this.Dateline = { ...this.Dateline }
this.$refs.ruleFormOne.validateField([value])
})
},
pageOnChange(page, pageSize) { pageOnChange(page, pageSize) {
this.pageNo = page this.pageNo = page
this.$emit('handlePreservation') this.$emit('handlePreservation')
@@ -415,8 +423,9 @@
handleSubmitzr(record) { handleSubmitzr(record) {
let _this = this let _this = this
let param = { dutyTerritory: this.Dateline.queryzr, ids: this.getquerySdtId,paramsManifestId: this.$route.query.id, } let param = { dutyTerritory: this.Dateline.queryzr, ids: this.getquerySdtId,paramsManifestId: this.$route.query.id, }
this.$refs.ruleForm.validate(valid => { this.$refs.ruleFormOne.validate(valid => {
if (valid) { if (valid) {
this.confirmLoading = true
axios({ axios({
url: '/jero-boot/params/collectManifest/updateDutyTerritory', url: '/jero-boot/params/collectManifest/updateDutyTerritory',
method: 'post', method: 'post',
@@ -442,8 +451,10 @@
} else { } else {
_this.$message.warning(_this.$t('operationFailed')) _this.$message.warning(_this.$t('operationFailed'))
} }
this.confirmLoading = false
}) })
.catch((error) => { .catch((error) => {
this.confirmLoading = false
console.log(error) console.log(error)
}) })
} }
@@ -494,7 +505,7 @@
}, },
cancel(){ cancel(){
this.areaVisiblezr = false this.areaVisiblezr = false
this.$refs['ruleForm'].resetFields() this.$refs['ruleFormOne'].resetFields()
}, },
// 点击工程接口人的详情人员 有权限 // 点击工程接口人的详情人员 有权限
areaOfResponsibility(record) { areaOfResponsibility(record) {
@@ -513,7 +524,7 @@
this.$nextTick(() => { this.$nextTick(() => {
this.Dateline = { ...this.Dateline } this.Dateline = { ...this.Dateline }
this.getquerySdtId = record.id this.getquerySdtId = record.id
this.$refs.ruleForm.clearValidate() this.$refs.ruleFormOne.clearValidate()
}) })
}, },
dataValueTobeinitiated() { dataValueTobeinitiated() {