江河水模块代码提交
This commit is contained in:
@@ -255,14 +255,13 @@ export default {
|
||||
},
|
||||
|
||||
save() {
|
||||
console.log("save开始"+this.form)
|
||||
const hide = this.$message.loading("请求中..", 0);
|
||||
const form = _.cloneDeep(this.form);
|
||||
const date = new Date();
|
||||
date.setFullYear(form.monitorDate.year());
|
||||
date.setMonth(form.monitorDate.month());
|
||||
date.setDate(form.monitorDate.date());
|
||||
date.setHours(form.monitorTime.hour());
|
||||
date.setMinutes(form.monitorTime.minutes());
|
||||
form.samplingTime = date.getTime();
|
||||
// form.monitorYear = date.getFullYear();
|
||||
// form.monitorMonth = date.getMonth() + 1;
|
||||
@@ -272,6 +271,7 @@ export default {
|
||||
delete form["monitorDate"];
|
||||
delete form["monitorTime"];
|
||||
if (form.nationalLevelWaterFunctionAreaId) {
|
||||
console.log("编辑开始"+form)
|
||||
updateWaterFunctionArea(form)
|
||||
.then((res) => {
|
||||
if (res.data.code == 0) {
|
||||
@@ -290,7 +290,9 @@ export default {
|
||||
hide();
|
||||
});
|
||||
} else {
|
||||
console.log("保存开始"+form);
|
||||
form.nationalLevelWaterFunctionAreaBillId = this.nationalLevelWaterFunctionAreaBillId;
|
||||
form.userId = this.$store.state.user.user.userId
|
||||
saveWaterFunctionArea(form)
|
||||
.then((res) => {
|
||||
if (res.data.code == 0) {
|
||||
|
||||
Reference in New Issue
Block a user