|
@@ -16,7 +16,7 @@
|
|
|
<el-table-column prop="communicationId" label="通讯ID"></el-table-column>
|
|
|
<el-table-column prop="deviceNo" label="MAC/SN"></el-table-column>
|
|
|
<el-table-column prop="channelNo" label="通道"></el-table-column>
|
|
|
- <el-table-column label="是否可用(0-不可用 1-可用)">
|
|
|
+ <el-table-column label="是否可用">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.enable==1?"可用":scope.row.enable==0?"不可用":scope.row.enable }}</span>
|
|
|
</template>
|
|
@@ -79,11 +79,8 @@ export default {
|
|
|
editParmas: {} // 保存编辑的 请求参数
|
|
|
};
|
|
|
},
|
|
|
- created() {
|
|
|
+ created() {
|
|
|
this.mainDeviceInfo = this.$route.query;
|
|
|
- console.log(this.$route.query);
|
|
|
- },
|
|
|
- mounted() {
|
|
|
// 获取子设备信息列表
|
|
|
this.doSubDeviceList();
|
|
|
},
|
|
@@ -192,7 +189,11 @@ export default {
|
|
|
channelNo: "",
|
|
|
enable: 1
|
|
|
};
|
|
|
- this.$message.success(this.isAdd?"添加子设备信息成功!":"编辑子设备信息成功!");
|
|
|
+ this.$message.success(
|
|
|
+ this.isAdd
|
|
|
+ ? "添加子设备信息成功!"
|
|
|
+ : "编辑子设备信息成功!"
|
|
|
+ );
|
|
|
},
|
|
|
fail: err => {
|
|
|
console.log(err);
|
|
@@ -213,5 +214,4 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-
|
|
|
</style>
|