|
|
|
@ -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 = [];
|
|
|
|
|