|
@@ -3,6 +3,7 @@
|
|
:visible.sync="showDialog"
|
|
:visible.sync="showDialog"
|
|
title="查看设备"
|
|
title="查看设备"
|
|
:modal-append-to-body="false"
|
|
:modal-append-to-body="false"
|
|
|
|
+ append-to-body
|
|
:modal="true"
|
|
:modal="true"
|
|
style="text-align:left;"
|
|
style="text-align:left;"
|
|
@close="closeDialog"
|
|
@close="closeDialog"
|
|
@@ -163,14 +164,13 @@ export default {
|
|
},
|
|
},
|
|
handleBound(record) {
|
|
handleBound(record) {
|
|
var self = this;
|
|
var self = this;
|
|
- // this.$confirm("是否绑定?", "提示", {
|
|
|
|
- // confirmButtonText: "确定",
|
|
|
|
- // cancelButtonText: "取消",
|
|
|
|
- // type: "warning",
|
|
|
|
- // distinguishCancelAndClose: true
|
|
|
|
- // })
|
|
|
|
- // .then(() => {
|
|
|
|
- if (confirm("是否绑定?")) {
|
|
|
|
|
|
+ self.$confirm("是否绑定?", "提示", {
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
+ type: "warning",
|
|
|
|
+ distinguishCancelAndClose: true
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
self.formModel.personId = self.personId;
|
|
self.formModel.personId = self.personId;
|
|
self.formModel.deviceId = record.id;
|
|
self.formModel.deviceId = record.id;
|
|
|
|
|
|
@@ -195,12 +195,11 @@ export default {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- }
|
|
|
|
- // })
|
|
|
|
- // .catch(error => {
|
|
|
|
- // self.loading = false;
|
|
|
|
- // // self.$message.error(error + "");
|
|
|
|
- // });
|
|
|
|
|
|
+ })
|
|
|
|
+ .catch(error => {
|
|
|
|
+ self.loading = false;
|
|
|
|
+ // self.$message.error(error + "");
|
|
|
|
+ });
|
|
},
|
|
},
|
|
handleBatchBound() {
|
|
handleBatchBound() {
|
|
var self = this;
|
|
var self = this;
|
|
@@ -208,14 +207,13 @@ export default {
|
|
return record.id;
|
|
return record.id;
|
|
});
|
|
});
|
|
|
|
|
|
- // this.$confirm("是否绑定选中项?", "提示", {
|
|
|
|
- // confirmButtonText: "确定",
|
|
|
|
- // cancelButtonText: "取消",
|
|
|
|
- // type: "warning",
|
|
|
|
- // distinguishCancelAndClose: true
|
|
|
|
- // })
|
|
|
|
- // .then(() => {
|
|
|
|
- if (confirm("是否绑定?")) {
|
|
|
|
|
|
+ this.$confirm("是否绑定选中项?", "提示", {
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
+ type: "warning",
|
|
|
|
+ distinguishCancelAndClose: true
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
self.loading = true;
|
|
self.loading = true;
|
|
var formData = new FormData();
|
|
var formData = new FormData();
|
|
|
|
|
|
@@ -241,12 +239,11 @@ export default {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- }
|
|
|
|
- // })
|
|
|
|
- // .catch(error => {
|
|
|
|
- // self.loading = false;
|
|
|
|
- // // self.$message.error(error + "");
|
|
|
|
- // });
|
|
|
|
|
|
+ })
|
|
|
|
+ .catch(error => {
|
|
|
|
+ self.loading = false;
|
|
|
|
+ // self.$message.error(error + "");
|
|
|
|
+ });
|
|
},
|
|
},
|
|
onDetailModalClose(refreshed) {
|
|
onDetailModalClose(refreshed) {
|
|
//保存成功后回调
|
|
//保存成功后回调
|