|
|
|
@ -22,7 +22,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flexno bt30">
|
|
|
|
|
<div class="w8">时间表:</div>
|
|
|
|
|
<div class="w80 flexonly">
|
|
|
|
|
<div class="w80 flexonly" v-if="this.shedulenr.length !== 0">
|
|
|
|
|
<el-tag
|
|
|
|
|
class="mr10 mt10"
|
|
|
|
|
size="mini"
|
|
|
|
@ -31,6 +31,7 @@
|
|
|
|
|
>{{ val }}</el-tag
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="w80 flexonly" v-else>暂无设置时间表</div>
|
|
|
|
|
</div>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
<el-tab-pane label="设置时间表" name="2">
|
|
|
|
@ -65,24 +66,7 @@
|
|
|
|
|
</ul>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<!-- <el-table-column label="时间表类型" show-overflow-tooltip>
|
|
|
|
|
<template>时间表类型</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="startTime"
|
|
|
|
|
label="开始时间"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="endTime"
|
|
|
|
|
label="结束时间"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="span"
|
|
|
|
|
label="间隔(分)"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
></el-table-column> -->
|
|
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="remark"
|
|
|
|
|
label="备注"
|
|
|
|
@ -116,37 +100,20 @@
|
|
|
|
|
width="680px"
|
|
|
|
|
append-to-body
|
|
|
|
|
>
|
|
|
|
|
<!-- <el-form
|
|
|
|
|
label-position="left"
|
|
|
|
|
ref="formInfo"
|
|
|
|
|
label-width="100px"
|
|
|
|
|
v-loading="loading"
|
|
|
|
|
>
|
|
|
|
|
<el-form-item label="通道:">
|
|
|
|
|
<el-tree
|
|
|
|
|
:data="listnr"
|
|
|
|
|
show-checkbox
|
|
|
|
|
:props="defaultProps"
|
|
|
|
|
ref="tree"
|
|
|
|
|
node-key="id"
|
|
|
|
|
:default-expand-all="true"
|
|
|
|
|
></el-tree>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form> -->
|
|
|
|
|
<div class="setTimeTd">
|
|
|
|
|
<div class="tdSetBox">
|
|
|
|
|
<!--<h3>装置信息</h3>
|
|
|
|
|
<h3>装置信息</h3>
|
|
|
|
|
<el-descriptions title="" :column="3" border>
|
|
|
|
|
<el-descriptions-item label="电压等级"
|
|
|
|
|
>220kV</el-descriptions-item
|
|
|
|
|
>
|
|
|
|
|
<el-descriptions-item label="电压等级">{{
|
|
|
|
|
deviceListData.dyname
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="线路名称">
|
|
|
|
|
线路</el-descriptions-item
|
|
|
|
|
{{ deviceListData.xlname }}</el-descriptions-item
|
|
|
|
|
>
|
|
|
|
|
<el-descriptions-item label="装置名称">
|
|
|
|
|
XYIGQ10C230300104</el-descriptions-item
|
|
|
|
|
>
|
|
|
|
|
</el-descriptions> -->
|
|
|
|
|
{{ deviceListData.zzname }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
<h3>时间表规则</h3>
|
|
|
|
|
<p class="timename">时间表名称:{{ timeName }}</p>
|
|
|
|
|
<el-descriptions
|
|
|
|
@ -169,42 +136,21 @@
|
|
|
|
|
|
|
|
|
|
<h3>选择通道</h3>
|
|
|
|
|
<div class="checkBox">
|
|
|
|
|
<!-- <el-checkbox-group v-model="checkList">
|
|
|
|
|
<el-checkbox label="通道1" border></el-checkbox>
|
|
|
|
|
<el-checkbox label="通道2" border></el-checkbox>
|
|
|
|
|
</el-checkbox-group> -->
|
|
|
|
|
<!-- <el-checkbox-group v-model="checkList" @change="handleChange">
|
|
|
|
|
<el-checkbox-group v-model="checkList" @change="handleChange">
|
|
|
|
|
<el-checkbox
|
|
|
|
|
:label="val.channelid"
|
|
|
|
|
:label="val.id"
|
|
|
|
|
border
|
|
|
|
|
v-for="val in accesslist"
|
|
|
|
|
:key="val.channelid"
|
|
|
|
|
>{{ val.channelname }}</el-checkbox
|
|
|
|
|
v-for="val in zzchannel"
|
|
|
|
|
:key="val.id"
|
|
|
|
|
>{{ val.name }}</el-checkbox
|
|
|
|
|
>
|
|
|
|
|
</el-checkbox-group> -->
|
|
|
|
|
<el-form
|
|
|
|
|
label-position="left"
|
|
|
|
|
ref="formInfo"
|
|
|
|
|
label-width="100px"
|
|
|
|
|
v-loading="loading"
|
|
|
|
|
>
|
|
|
|
|
<el-form-item label="通道:">
|
|
|
|
|
<el-tree
|
|
|
|
|
:data="listnr"
|
|
|
|
|
show-checkbox
|
|
|
|
|
:props="defaultProps"
|
|
|
|
|
ref="tree"
|
|
|
|
|
node-key="id"
|
|
|
|
|
:default-expand-all="true"
|
|
|
|
|
></el-tree>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
</el-checkbox-group>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click="isShowset = false">取 消</el-button>
|
|
|
|
|
<el-button type="primary" @click="submitForm()">确 定</el-button>
|
|
|
|
|
<el-button type="primary" v-debounce="submitForm">确 定</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
@ -245,11 +191,14 @@ export default {
|
|
|
|
|
ruleid: "", //线路id
|
|
|
|
|
parmsList: [], //所选装置下通道参数
|
|
|
|
|
scheduleid: 0, //所选时间表id
|
|
|
|
|
checkList: [],
|
|
|
|
|
|
|
|
|
|
//设置-获取所有通道
|
|
|
|
|
timeName: "",
|
|
|
|
|
scheduleInfo: [],
|
|
|
|
|
//获取当前装置内容
|
|
|
|
|
deviceListData: {}, //当前装置信息
|
|
|
|
|
zzchannel: [], //当前装置通道
|
|
|
|
|
checkList: [], //选中的通道
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
mounted() {},
|
|
|
|
@ -265,6 +214,7 @@ export default {
|
|
|
|
|
this.accesslist = res.data.list;
|
|
|
|
|
console.log(this.accesslist);
|
|
|
|
|
this.selaccess = res.data.list[0].channelid;
|
|
|
|
|
this.inquirebtn();
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
},
|
|
|
|
@ -311,13 +261,24 @@ export default {
|
|
|
|
|
console.log(val);
|
|
|
|
|
this.scheduleInfo = val.list;
|
|
|
|
|
this.timeName = val.name;
|
|
|
|
|
|
|
|
|
|
getScheduleRulelAccessList({ termid: this.selfacilityId })
|
|
|
|
|
.then((res) => {
|
|
|
|
|
this.listnr = res.data.list;
|
|
|
|
|
console.log("1111111111111111111");
|
|
|
|
|
console.log(this.listnr);
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.deviceListData = {
|
|
|
|
|
dyname: this.listnr[0].name,
|
|
|
|
|
dyid: this.listnr[0].id,
|
|
|
|
|
xlname: this.listnr[0].list[0].name,
|
|
|
|
|
xlid: this.listnr[0].list[0].id,
|
|
|
|
|
zzname: this.listnr[0].list[0].list[0].name,
|
|
|
|
|
zzcmid: this.listnr[0].list[0].list[0].cmdid,
|
|
|
|
|
zzid: this.listnr[0].list[0].list[0].id,
|
|
|
|
|
};
|
|
|
|
|
this.zzchannel = this.listnr[0].list[0].list[0].list;
|
|
|
|
|
console.log(this.deviceListData);
|
|
|
|
|
console.log(this.zzchannel);
|
|
|
|
|
this.this.loading = false;
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
},
|
|
|
|
@ -370,18 +331,45 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 保存确定操作
|
|
|
|
|
submitForm() {
|
|
|
|
|
this.getCheckedNodes();
|
|
|
|
|
if (this.parmsList.length == 0)
|
|
|
|
|
return this.$message.error("通道不能为空");
|
|
|
|
|
setScheduleRulel({ ruleid: this.scheduleid, list: this.parmsList })
|
|
|
|
|
.then((res) => {
|
|
|
|
|
this.isShowset = false;
|
|
|
|
|
this.$message.success("添加成功");
|
|
|
|
|
this.deviceList();
|
|
|
|
|
//this.getCheckedNodes();
|
|
|
|
|
console.log("111111111111111111111");
|
|
|
|
|
console.log(this.deviceListData);
|
|
|
|
|
console.log(this.checkList);
|
|
|
|
|
console.log(this.scheduleid);
|
|
|
|
|
console.log("22222222222222222");
|
|
|
|
|
if (this.checkList.length == 0) {
|
|
|
|
|
this.$message.error("请选择通道");
|
|
|
|
|
} else {
|
|
|
|
|
setScheduleRulel({
|
|
|
|
|
scheduleid: this.scheduleid,
|
|
|
|
|
list: [
|
|
|
|
|
{
|
|
|
|
|
termid: this.deviceListData.zzid,
|
|
|
|
|
channelidlist: this.checkList,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
this.$message.error("添加失败");
|
|
|
|
|
});
|
|
|
|
|
.then((res) => {
|
|
|
|
|
this.isShowset = false;
|
|
|
|
|
this.$message.success("添加成功");
|
|
|
|
|
this.deviceList();
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
this.$message.error("添加失败");
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// if (this.parmsList.length == 0)
|
|
|
|
|
// return this.$message.error("通道不能为空");
|
|
|
|
|
// setScheduleRulel({ ruleid: this.scheduleid, list: this.parmsList })
|
|
|
|
|
// .then((res) => {
|
|
|
|
|
// this.isShowset = false;
|
|
|
|
|
// this.$message.success("添加成功");
|
|
|
|
|
// this.deviceList();
|
|
|
|
|
// })
|
|
|
|
|
// .catch((err) => {
|
|
|
|
|
// this.$message.error("添加失败");
|
|
|
|
|
// });
|
|
|
|
|
},
|
|
|
|
|
display() {
|
|
|
|
|
this.isShow = true;
|
|
|
|
@ -404,6 +392,7 @@ export default {
|
|
|
|
|
.flexonly {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
align-content: flex-start;
|
|
|
|
|
}
|
|
|
|
|
.flexno {
|
|
|
|
|
display: flex;
|
|
|
|
|