饮用水县级字典修复

This commit is contained in:
710356044
2022-01-21 13:35:40 +08:00
parent 25ae4df57b
commit c4c750ceb7
2 changed files with 4 additions and 2 deletions

View File

@@ -253,7 +253,7 @@ export default {
// 是否显示编辑弹窗 // 是否显示编辑弹窗
showEdit: false, showEdit: false,
// 表单数据 // 表单数据
form: {}, form: {waterSourceType:''},
loading: false, loading: false,
rules: { rules: {
// year: [{required: true, message: '请输入年份'}], // year: [{required: true, message: '请输入年份'}],
@@ -296,6 +296,7 @@ export default {
await this.$refs.form.validate(); await this.$refs.form.validate();
const hide = this.$message.loading('请求中..', 0); const hide = this.$message.loading('请求中..', 0);
const form = this.form; const form = this.form;
form.waterSourceType='2';
console.log(form); console.log(form);
if (form.drinkingWaterDictId) { if (form.drinkingWaterDictId) {
updateDrinkingWaterCountyBottomDict(form) updateDrinkingWaterCountyBottomDict(form)

View File

@@ -248,7 +248,7 @@ export default {
// 是否显示编辑弹窗 // 是否显示编辑弹窗
showEdit: false, showEdit: false,
// 表单数据 // 表单数据
form: {}, form: {waterSourceType:''},
loading: false, loading: false,
rules: { rules: {
// year: [{required: true, message: '请输入年份'}], // year: [{required: true, message: '请输入年份'}],
@@ -291,6 +291,7 @@ export default {
await this.$refs.form.validate(); await this.$refs.form.validate();
const hide = this.$message.loading('请求中..', 0); const hide = this.$message.loading('请求中..', 0);
const form = this.form; const form = this.form;
form.waterSourceType='1';
console.log(form); console.log(form);
if (form.drinkingWaterDictId) { if (form.drinkingWaterDictId) {
updateDrinkingWaterCountyDict(form) updateDrinkingWaterCountyDict(form)