饮用水县级字典修复
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user