Browse Source

添加修改

feature
zhaoqifeng 3 years ago
parent
commit
2bda8b129b
  1. 7
      src/views/modules/sys/icvaccineprarmeter-add-or-update.vue
  2. 1
      src/views/modules/sys/icvaccineprarmeter.vue

7
src/views/modules/sys/icvaccineprarmeter-add-or-update.vue

@ -124,7 +124,6 @@
<el-select class="item_width_2" <el-select class="item_width_2"
v-model.trim="dataForm.isVaccination" v-model.trim="dataForm.isVaccination"
placeholder="请选择" placeholder="请选择"
clearable
@change="isVacChange" @change="isVacChange"
> >
<el-option v-for="item in isVaccinationOption" <el-option v-for="item in isVaccinationOption"
@ -257,6 +256,7 @@
return { return {
formType: "add", formType: "add",
visible: false, visible: false,
btnDisable: false,
gridList: [], gridList: [],
villageList: [], villageList: [],
buildList: [], buildList: [],
@ -310,7 +310,6 @@
note: '', note: '',
checkState: '0', checkState: '0',
checkReason: '', checkReason: '',
btnDisable: false
} }
} }
}, },
@ -427,7 +426,7 @@
this.visible = true; this.visible = true;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['dataForm'].resetFields() this.$refs['dataForm'].resetFields()
if (this.dataForm.id); { if (this.dataForm.id !== '') {
this.getInfo() this.getInfo()
} }
}) })
@ -630,7 +629,7 @@
} }
}, },
resetData () { resetData () {
this.formData = { this.dataForm = {
id: '', id: '',
customerId: '', customerId: '',
gridId: '', gridId: '',

1
src/views/modules/sys/icvaccineprarmeter.vue

@ -436,6 +436,7 @@ export default {
}, },
addDiaClose () { addDiaClose () {
this.checkVisible = false; this.checkVisible = false;
this.$refs.add_parameter.resetData()
}, },
getGridList() { getGridList() {
const { user } = this.$store.state const { user } = this.$store.state

Loading…
Cancel
Save