120 lines
9.2 KiB
JavaScript
120 lines
9.2 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-688f1350"], { "0748": function(t, e, a) {
|
|
"use strict";
|
|
a.d(e, "e", (function() {
|
|
return i;
|
|
})), a.d(e, "b", (function() {
|
|
return r;
|
|
})), a.d(e, "d", (function() {
|
|
return n;
|
|
})), a.d(e, "j", (function() {
|
|
return o;
|
|
})), a.d(e, "h", (function() {
|
|
return d;
|
|
})), a.d(e, "a", (function() {
|
|
return c;
|
|
})), a.d(e, "i", (function() {
|
|
return l;
|
|
})), a.d(e, "c", (function() {
|
|
return u;
|
|
})), a.d(e, "f", (function() {
|
|
return p;
|
|
})), a.d(e, "g", (function() {
|
|
return v;
|
|
}));
|
|
var s = a("b775");
|
|
function i(t2) {
|
|
return Object(s["a"])({ url: "/appproject/MetersNode/findMetersNodetree", method: "post", data: t2 });
|
|
}
|
|
function r(t2) {
|
|
return Object(s["a"])({ url: "/appproject/MetersNode/create", method: "post", data: t2 });
|
|
}
|
|
function n(t2) {
|
|
return Object(s["a"])({ url: "/appproject/MetersNode/delete", method: "post", data: t2 });
|
|
}
|
|
function o(t2) {
|
|
return Object(s["a"])({ url: "/appproject/MetersNode/update", method: "post", data: t2 });
|
|
}
|
|
function d(t2) {
|
|
return Object(s["a"])({ url: "/appproject/MetersDevice/pageList", method: "post", data: t2 });
|
|
}
|
|
function c(t2) {
|
|
return Object(s["a"])({ url: "/appproject/MetersDevice/createBatch", method: "post", data: t2 });
|
|
}
|
|
function l(t2) {
|
|
return Object(s["a"])({ url: "/appproject/MetersDevice/update", method: "post", data: t2 });
|
|
}
|
|
function u(t2) {
|
|
return Object(s["a"])({ url: "/appproject/MetersDevice/delete", method: "post", data: t2 });
|
|
}
|
|
function p(t2) {
|
|
return Object(s["a"])({ url: "/appproject/meters/metersDataCount", method: "post", data: t2 });
|
|
}
|
|
function v(t2) {
|
|
return Object(s["a"])({ url: "/appproject/MetersNode/metersNodeDataList", method: "post", data: t2 });
|
|
}
|
|
}, "3a56": function(t, e, a) {
|
|
}, 5495: function(t, e, a) {
|
|
"use strict";
|
|
a.r(e);
|
|
var s = function() {
|
|
var t2 = this, e2 = t2.$createElement, s2 = t2._self._c || e2;
|
|
return s2("div", { staticClass: "manageNetwork" }, [s2("div", { staticClass: "elcard" }, [s2("el-row", { attrs: { gutter: 12 } }, [s2("el-col", { attrs: { span: 6 } }, [s2("el-card", { staticClass: "box-card", attrs: { shadow: "hover" } }, [s2("div", { staticClass: "planLst", attrs: { slot: "header" }, slot: "header" }, [s2("span", { staticClass: "planTitle" }, [t2._v("计量网络列表")]), t2._v(" "), s2("span", { on: { click: function(e3) {
|
|
t2.isShow = !t2.isShow;
|
|
} } }, [s2("i", { class: { icons: true, "el-icon-arrow-down": !t2.isShow, "el-icon-arrow-up": t2.isShow } })])]), t2._v(" "), s2("div", { directives: [{ name: "show", rawName: "v-show", value: t2.isShow, expression: "isShow" }] }, [s2("el-input", { attrs: { clearable: "", placeholder: "输入关键字进行过滤" }, model: { value: t2.filterText, callback: function(e3) {
|
|
t2.filterText = e3;
|
|
}, expression: "filterText" } }), t2._v(" "), s2("el-tree", { directives: [{ name: "loading", rawName: "v-loading", value: t2.treeLoading, expression: "treeLoading" }], ref: "tree", staticClass: "filter-tree", staticStyle: { padding: "15px 0px" }, attrs: { data: t2.tableTree, "default-expand-all": "", "node-key": "id", "current-node-key": t2.currentNodekey, "highlight-current": "", "filter-node-method": t2.filterNode, props: t2.defaultProps }, on: { "node-click": t2.checkInfo } })], 1)])], 1), t2._v(" "), t2._l(t2.titleArr, (function(e3) {
|
|
return s2("el-col", { key: e3.id, attrs: { span: 6 } }, [s2("el-card", { directives: [{ name: "loading", rawName: "v-loading", value: t2.titleLoading, expression: "titleLoading" }], attrs: { shadow: "hover" } }, [s2("div", { staticClass: "planLst", attrs: { slot: "header" }, slot: "header" }, [s2("span", { staticClass: "planTitle" }, [t2._v(t2._s(e3.deviceName))]), t2._v(" "), s2("span", { on: { click: function(a2) {
|
|
return t2.handleSlow(e3);
|
|
} } }, [s2("img", { staticClass: "imgStys", attrs: { src: a("dae04"), alt: "" } }), t2._v(" "), s2("i", { class: { icon: true, "el-icon-arrow-down": !e3.iFshow, "el-icon-arrow-up": e3.iFshow } })])]), t2._v(" "), s2("div", { directives: [{ name: "show", rawName: "v-show", value: e3.iFshow, expression: "it.iFshow" }] }, [s2("div", [e3.deviceNo ? s2("span", { staticClass: "textNet" }, [t2._v("仪表编码")]) : t2._e(), t2._v(" "), e3.deviceNo ? s2("span", { staticClass: "textCode" }, [t2._v(t2._s(e3.deviceNo))]) : t2._e()]), t2._v(" "), e3.metersDataList.length > 0 ? s2("div", [s2("div", [e3.metersDataList[0].state ? s2("span", { staticClass: "textNet" }, [t2._v("通信状态")]) : t2._e(), t2._v(" "), e3.metersDataList[0].metersCode ? s2("span", { class: { normal: 1 === e3.metersDataList[0].state, error: 0 === e3.metersDataList[0].state } }, [t2._v(t2._s(1 == e3.metersDataList[0].state ? "正常" : "异常"))]) : t2._e()]), t2._v(" "), s2("div", [e3.metersDataList[0].metersCode ? s2("span", { staticClass: "textNet" }, [t2._v("仪表型号")]) : t2._e(), t2._v(" "), e3.metersDataList[0].metersCode ? s2("span", { staticClass: "textCode" }, [t2._v(t2._s(e3.metersDataList[0].model))]) : t2._e()]), t2._v(" "), s2("div", [e3.metersDataList[0].metersCode ? s2("span", { staticClass: "textNet" }, [t2._v("通信协议")]) : t2._e(), t2._v(" "), e3.metersDataList[0].metersCode ? s2("span", { staticClass: "textCode" }, [t2._v(t2._s(e3.metersDataList[0].protocol))]) : t2._e()]), t2._v(" "), s2("div", [e3.metersDataList[0].metersCode ? s2("span", { staticClass: "textNet" }, [t2._v("地址号")]) : t2._e(), t2._v(" "), e3.metersDataList[0].metersCode ? s2("span", { staticClass: "textCode" }, [t2._v(t2._s(e3.metersDataList[0].metersAddr))]) : t2._e()]), t2._v(" "), t2._l(e3.metersDataList, (function(e4) {
|
|
return s2("div", { key: e4.id }, [s2("span", { staticClass: "textNet" }, [t2._v(t2._s(e4.dataName))]), t2._v(" "), s2("span", { staticClass: "textCode" }, [t2._v(t2._s(Number(e4.value).toFixed(3)) + t2._s(e4.unit))])]);
|
|
}))], 2) : t2._e()]), t2._v(" "), s2("div", { directives: [{ name: "show", rawName: "v-show", value: !e3.iFshow, expression: "!it.iFshow" }] }, [e3.metersDataList.length > 0 ? s2("div", t2._l(e3.metersDataList, (function(e4) {
|
|
return s2("div", { key: e4.id }, ["有功电能" === e4.dataName ? s2("span", { staticClass: "textNet" }, [t2._v(t2._s(e4.dataName))]) : t2._e(), t2._v(" "), "有功电能" === e4.dataName ? s2("span", { staticClass: "textCode" }, [t2._v(t2._s(Number(e4.value).toFixed(3)) + t2._s(e4.unit))]) : t2._e()]);
|
|
})), 0) : t2._e()])])], 1);
|
|
}))], 2)], 1)]);
|
|
}, i = [], r = a("0748"), n = { components: {}, data: function() {
|
|
return { currentNodekey: "", filterText: "", activeName: "1", isShow: true, titleLoading: false, iFshow: false, treeLoading: false, tableTree: [], titleArr: [], linInf: [], defaultProps: { children: "childrenList", label: "name" } };
|
|
}, watch: { filterText: function(t2) {
|
|
this.$refs.tree.filter(t2);
|
|
} }, mounted: function() {
|
|
this.getTableTree();
|
|
}, methods: { getInfoList: function(t2) {
|
|
this.linInf = [];
|
|
var e2 = t2.pop();
|
|
"有功电能" === e2.dataName && this.linInf.push(e2);
|
|
}, getTableTree: function() {
|
|
var t2 = this;
|
|
this.treeLoading = true, Object(r["e"])({ projectCode: this.$store.state.community_uuid }).then((function(e2) {
|
|
if (0 === e2.code) {
|
|
if (t2.tableTree = e2.data, e2.data && e2.data.length > 0) {
|
|
var a2 = e2.data[0].id;
|
|
t2.currentNodekey = e2.data[0].id, t2.$nextTick((function() {
|
|
t2.$refs.tree.setCurrentKey(t2.currentNodekey);
|
|
})), t2.metersNodeData(a2);
|
|
}
|
|
t2.treeLoading = false;
|
|
}
|
|
}));
|
|
}, metersNodeData: function(t2) {
|
|
var e2 = this;
|
|
this.titleLoading = true, Object(r["g"])({ id: t2 }).then((function(t3) {
|
|
0 === t3.code && (t3.data && t3.data.length > 0 && t3.data.forEach((function(t4) {
|
|
t4.iFshow = false;
|
|
})), e2.titleArr = t3.data, e2.titleLoading = false);
|
|
})).catch((function() {
|
|
e2.titleLoading = false;
|
|
}));
|
|
}, checkInfo: function(t2, e2) {
|
|
this.metersNodeData(t2.id);
|
|
}, filterNode: function(t2, e2) {
|
|
return !t2 || -1 !== e2.name.indexOf(t2);
|
|
}, handleSlow: function(t2) {
|
|
t2.iFshow = !t2.iFshow;
|
|
} } }, o = n, d = (a("a025"), a("829d")), c = Object(d["a"])(o, s, i, false, null, "622ca748", null);
|
|
e["default"] = c.exports;
|
|
}, a025: function(t, e, a) {
|
|
"use strict";
|
|
a("3a56");
|
|
}, dae04: function(t, e) {
|
|
t.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAjCAYAAAAaLGNkAAACV0lEQVRYhdWYMYjaYBSAf71QaLEEulgC1r0HEnAQupihuHRxskvt0Cmg0MUOBcEEocg5iB2CmMHh6HBZHEREwSYOYgbp6CQ4NfRw6NihNH95Hjliarzk1+buHjz88/z/97689/L7mxDGGIFomvZ8MplUUECSTqdFjuMWm2gAwXHcHxgGrRB3kwRFUV7dBoClED+8WCzeWgXAGIc4jjNhDJ9wfSx1+rViQvxwUD2wTygvk0RRvLDGlUrl9U12e5NvNaCLeIIAEQQh5wzmxa6qqniT7ztRjvvTE1DXXWl1s6OrMpweFcKtsfzaiSDs3f8/xRVC07Swpmm5ICDuZmOqqnoSNMT9eUR3yXq9piRJ+uL8iuf5N9Fo9HcgEMVi8VJRlCd223A4TPoFQKTlaLVaH5wA9Xr9cyaT+UbizzfEcrl8XCgUzuy2fD7/vVQqvScBIILgef6naZrX14lEAkrzghTAN0StVmuPx+OtR5iiKCTL8ldJkj7quh4nohAEAbZmfHW6w8hN5/M54+fsWK1Wz/f5s+ZBfM+ZSCaTBtypIAhKKpXaO7fZbH4ql8v5o2dil+q6/sy+HrTT6bzzstaeCeJ9AiQWi/1ot9vXP3LdbvdlNpsd+/VzEIQsy+eGYaBIJIJ6vd6p33PEwRCGYTyALDAMg/r9/lOWZS9JfRFDQBZomkaDweBRPB7/ReqHGAKyMBqNcrPZ7ISmadPDkuNDQBam02nIw1RP4nvbhiw4/+gcKluZCOpg+4+sVquHDMPcymsBiAvxN7tXo9E4Y1k2UACIB3ExxugvN6QmmRaIKQwAAAAASUVORK5CYII=";
|
|
} }]);
|