icd配置优化

master
fanluyan 1 year ago
parent 754020a90f
commit 8735d7f7d1

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

@ -127,9 +127,12 @@ export default {
}, },
// //
handlecolSaveClick({ row }) { handlecolSaveClick({ row }) {
const idlistArr = [];
idlistArr.push(row.id);
console.log(idlistArr);
icdupdateAttApi({ icdupdateAttApi({
colName: this.colName, colName: this.colName,
id: row.id, idList: idlistArr,
}) })
.then((res) => { .then((res) => {
if (res.success) { if (res.success) {

Loading…
Cancel
Save