装置添加通道

master
fanluyan 2 years ago
parent f0e8a40779
commit e966e04c9c

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

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

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

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

Loading…
Cancel
Save