Commit c06b62d1 by 潘建波

【NEW】添加nvs3000拉取功能

1 parent da9fcf8f
......@@ -13,4 +13,7 @@ window.config = {
"isdd":false, //是否开启钉钉登录
"version":"2.1.0",
"encrypt":false,//是否加密true采用sha1加密,false不加密
"nvsUrl":'',
"nvsRegex":'',
"isNvs3000":true,//是否开启nvs3000拉取功能
}
......@@ -88,5 +88,8 @@ export default {
},
postcatadev:(params)=> {
return api.post(`${baseUrl}/api/v1/devconf_fx/device_catalogs`,params)
}
},
getNvs3000:(params)=>{
return api.get(`${baseUrl}/api/v1/devconf_fx/devs/nvs3000`,params)
},
};
......@@ -23,6 +23,11 @@
}}</span>
</span>
<span class="tree-btn" v-if="(data.label || data.label == '') && data.vtype ? false:true" >
<i
class="el-icon-link"
@click.stop="getNvs(node, data)"
v-if="data.org_type == 'address' && isNvs"
></i>
<i class="el-icon-plus" @click.stop="nodeAddClick(node, data)"></i>
<i
class="el-icon-edit"
......@@ -137,6 +142,7 @@ export default {
code: ""
},
addVideoParam: {},
isNvs:window.config.isNvs3000,
treeData: [
{
unid: "0",
......@@ -307,7 +313,23 @@ export default {
delTreenode(data){
this.$refs.catree.remove(data.vchan_refid)
},
getNvs(node, data){
this.$confirm("拉取NVS300到该地点?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
let params = {
"devUnid": this.dev_unid,
"addressUnid": data.event_code,
"nvsUrl": window.config.nvsUrl,
"nvsRegex": window.config.nvsRegex
}
this.$api.device.getNvs3000(params).then(res => {
this.orgServ();
})
})
},
nodeAddClick(node, data) {
if (data.org_type == "address") {
//添加视频
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!