装置添加通道

master
fanluyan 2 years ago
parent f0e8a40779
commit e966e04c9c

@ -41,7 +41,7 @@
</el-select>
</el-form-item>
<el-form-item label="装置ID" prop="cmdid">
<el-input v-model="formInfo.cmdid" auto-complete="on"></el-input>
<el-input v-model="formInfo.cmdid" autocomplete="on"></el-input>
</el-form-item>
<el-form-item label="装置名称:" prop="equipName">
<el-input v-model="formInfo.equipName" auto-complete="on"></el-input>
@ -196,7 +196,7 @@ export default {
nickname: "",
});
console.log(this.formInfo.list);
console.log(this.channelOptions);
this.$nextTick(() => {
console.log(this.$refs.channelBoxref);
if (this.$refs.channelBoxref) {
@ -320,6 +320,9 @@ export default {
getAllChannelListJoggle()
.then((res) => {
this.channelOptions = res.data.list;
console.log(this.channelOptions[0].id);
console.log(this.formInfo.list.channelVal);
this.formInfo.list[0].channelVal = this.channelOptions[0].id;
})
.catch((err) => {});
},

@ -576,6 +576,10 @@ export default {
span {
margin: 0px 8px;
}
b {
font-weight: normal;
color: @color-primary;
}
}
.pageNation {
@ -609,6 +613,10 @@ export default {
span {
margin: 0px 8px;
}
b {
font-weight: normal;
color: @color-primary;
}
}
}
}

@ -678,6 +678,10 @@ export default {
span {
margin: 0px 8px;
}
b {
font-weight: normal;
color: @color-primary;
}
}
.pageNation {
@ -711,6 +715,10 @@ export default {
span {
margin: 0px 8px;
}
b {
font-weight: normal;
color: @color-primary;
}
}
}
}

@ -245,6 +245,8 @@ export default {
showBigPic: true,
defaultKey: "",
lineTreeData: [],
treeStatus: [],
statusTimer: null,
defaultProps: {
//
children: "list",
@ -298,6 +300,7 @@ export default {
// }, 3000);
this.getDateTime();
console.log(this.dateValue);
this.getLineTreeStatus();
},
methods: {
//
@ -314,6 +317,21 @@ export default {
this.channelList[0].termId
);
},
//
// getLineTreeStatus() {
// this.statusTimer = window.setInterval(() => {
// getdyTreeListJoggle()
// .then((res) => {
// console.log(res);
// this.treeStatus = res.data.list;
// this.lineTreeData = this.treeStatus;
// console.log(this.treeStatus);
// })
// .catch((err) => {
// console.log(err); //
// });
// }, 300000);
// },
//
getLineTreeList() {
this.loadingBg = true;
@ -347,11 +365,11 @@ export default {
if (data.list) {
this.$refs.tree.setCurrentKey(data.list[0].id);
}
this.channelId = data.id; //id
this.cmdid = data.cmdid;
this.newTermId = data.id; //id
console.log(data);
this.channelValue = [];
this.channelOption = [];
this.channelListOption = [];

Loading…
Cancel
Save