|
|
|
@ -95,7 +95,7 @@ export default {
|
|
|
|
|
if (valid) {
|
|
|
|
|
if (this.title == "添加监测设备") {
|
|
|
|
|
console.log(this.formInfo);
|
|
|
|
|
this.$set(this.formInfo, "zsbId", this.formInfo.zsbId);
|
|
|
|
|
this.$set(this.formInfo, "zsbId", this.zsbInfo.id);
|
|
|
|
|
modevAddApi(this.formInfo)
|
|
|
|
|
.then((res) => {
|
|
|
|
|
if (res.success) {
|
|
|
|
@ -111,7 +111,7 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
} else {
|
|
|
|
|
this.$set(this.formInfo, "zsbId", this.formInfo.zsbId);
|
|
|
|
|
this.$set(this.formInfo, "zsbId", this.zsbInfo.id);
|
|
|
|
|
console.log(this.formInfo);
|
|
|
|
|
modevUpdateApi(this.formInfo)
|
|
|
|
|
.then((res) => {
|
|
|
|
|