+
+ 公司:
+
+
+
+
+
+
+
- {{ node.label }}
+
+ 捕鱼达人
@@ -61,6 +80,14 @@ import { getdyTreeListJoggle } from "@/utils/api/index";
export default {
data() {
return {
+ treeLoading: false,
+ companyVal: "", //公司,
+ companyOptions: [
+ {
+ value: "bydr",
+ label: "捕鱼达人",
+ },
+ ],
filterText: "", //查询字段过滤
lineTreeData: [],
defaultExpandedKeys: [], //默认展开
@@ -75,19 +102,18 @@ export default {
};
},
watch: {
- // filterText(val) {
- // console.log(val);
- // this.$refs.tree.filter(val);
- // console.log(this.$refs.tree);
- // },
filterText(newVal) {
this.handleFilter(); // 当 filterText 发生变化时执行过滤操作
},
},
created() {
this.getLineTreeList(); //获取树状图
+ this.companyVal = this.companyOptions[0].value;
},
methods: {
+ handleClick(val) {
+ console.log(val);
+ },
handleFilter() {
// 在输入框输入完成后的500毫秒执行过滤节点方法
setTimeout(() => {
@@ -107,51 +133,11 @@ export default {
},
//获取树状图列表
getLineTreeList() {
- getdyTreeListJoggle({ type: 1 })
+ this.treeLoading = true;
+ getdyTreeListJoggle({ type: -1 })
.then((res) => {
- //this.lineTreeData = res.data.list;
- this.lineTreeData = [
- {
- id: 4,
- name: "公司名称",
- dyValue: 220,
- list: [
- {
- id: 209,
- name: "线路",
- bsManufacturer: "电力公司2",
- list: [
- {
- id: 10323,
- towerid: 295,
- cmdid: "装置1",
- equipname: "XYIGQ10D221000100",
- name: "装置1",
- address: "上海",
- protocol: 65283,
- displayname: "XYIGQ10D221000100",
- model: null,
- onlinestatus: 1,
- hasPan: null,
- },
- {
- id: 10556,
- towerid: 532,
- cmdid: "装置2",
- equipname: "",
- name: "装置2",
- address: null,
- protocol: 65283,
- displayname: "XYIGQ10C230100005",
- model: "",
- onlinestatus: 1,
- hasPan: 0,
- },
- ],
- },
- ],
- },
- ];
+ this.lineTreeData = res.data.list;
+ this.treeLoading = false;
this.currentData = JSON.parse(localStorage.getItem("currentData"));
this.lineTreeData.forEach((node) => {
if (node.list) {
@@ -189,7 +175,6 @@ export default {
console.log(err); //代码错误、请求失败捕获
});
},
-
//点击当前选中的treenode
handleNodeClick(data) {
this.currentData = data;
@@ -204,6 +189,20 @@ export default {
display: flex;
flex-direction: column;
padding: 16px 0;
+ .companyBox {
+ display: flex;
+ width: 94%;
+ margin: 0 auto;
+ margin-bottom: 8px;
+ align-items: center;
+ .spanLabel {
+ font-size: 14px;
+ width: 96px;
+ }
+ }
+ .el-divider--horizontal {
+ margin: 0px 0px 8px 0px;
+ }
.searchBar {
width: 94%;
margin: 0 auto;
@@ -230,6 +229,9 @@ export default {
}
}
}
+ .disconnect {
+ color: #d3d3d3;
+ }
.el-tree--highlight-current
.el-tree-node.is-current
@@ -254,9 +256,14 @@ export default {
}
}
}
-
- .disconnect {
- color: #d3d3d3;
+}
+.el-table thead {
+ color: #333;
+ th {
+ font-weight: 400;
}
}
+.el-table {
+ color: #666;
+}
diff --git a/src/main.js b/src/main.js
index 673cba7..8e1a394 100644
--- a/src/main.js
+++ b/src/main.js
@@ -16,6 +16,7 @@ import "./assets/fonts/iconfont.css"; //按钮
//引入Echarts;
import * as echarts from "echarts";
Vue.prototype.$echarts = echarts;
+
//引入日期// 注册全局 moment
import moment from "moment";
Vue.prototype.$moment = moment;
diff --git a/src/utils/api/index.js b/src/utils/api/index.js
index baf56ea..ad22529 100644
--- a/src/utils/api/index.js
+++ b/src/utils/api/index.js
@@ -19,13 +19,15 @@ export function getdyTreeListJoggle(data) {
});
}
//导出数据
-export function getOnlineTerminalListExcel() {
+export function ExportExcel() {
return request({
- url: "/api/getOnlineTerminalListExcel",
- method: "post",
+ url: "/xapi/query.php",
+ method: "get",
+ params: data,
responseType: "blob",
});
}
+
//修改用户
export function updateUserApi(data) {
return request({
@@ -43,7 +45,28 @@ export function updateUserApi(data) {
// params: data,
// });
// }
-
+//获取数据接口
+export function getDataListJoggle(data) {
+ return request({
+ url: "/xapi/query.php",
+ method: "get",
+ params: data,
+ headers: {
+ "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
+ },
+ });
+}
+//获取相位码
+export function funccodeJoggle(data) {
+ return request({
+ url: "/xapi/funccode.php",
+ method: "get",
+ params: data,
+ headers: {
+ "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
+ },
+ });
+}
//线路
//1.线路列表信息
export function getLineListJoggle(data) {
@@ -173,3 +196,11 @@ export function getProtocolList(data) {
params: data,
});
}
+//获取电压-线路-杆塔等信息
+export function getSearchInfo(data) {
+ return request({
+ url: "/api/getLineAndGt",
+ method: "post",
+ data,
+ });
+}
diff --git a/src/utils/request.js b/src/utils/request.js
index 74bdf0f..2638861 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -32,34 +32,35 @@ service.interceptors.response.use(
(response) => {
const res = response.data;
- if (res.code !== 200) {
- // Message({
- // showClose: true,
- // message: res.msg || "Error",
- // type: "error",
- // duration: 5 * 1000,
- // });
- if (res.code === 401) {
- Message({ message: res.msg, type: "error", duration: 1500 });
- router.push("/login");
- }
+ // if (res.code !== 200) {
+ // // Message({
+ // // showClose: true,
+ // // message: res.msg || "Error",
+ // // type: "error",
+ // // duration: 5 * 1000,
+ // // });
+ // if (res.code === 401) {
+ // Message({ message: res.msg, type: "error", duration: 1500 });
+ // router.push("/login");
+ // }
- if (res.code === 400) {
- Message({ message: res.msg, type: "error", duration: 1500 });
- }
+ // if (res.code === 400) {
+ // Message({ message: res.msg, type: "error", duration: 1500 });
+ // }
- if (res.code === 500) {
- Message({
- showClose: true,
- message: 服务器错误(500),
- type: "error",
- duration: 1500,
- });
- }
- return Promise.reject(new Error(res.msg || "Error"));
- } else {
- return res;
- }
+ // if (res.code === 500) {
+ // Message({
+ // showClose: true,
+ // message: 服务器错误(500),
+ // type: "error",
+ // duration: 1500,
+ // });
+ // }
+ // return Promise.reject(new Error(res.msg || "Error"));
+ // } else {
+ // return res;
+ // }
+ return res;
},
(error) => {
Message({
diff --git a/src/views/equipmentStatus/index.vue b/src/views/equipmentStatus/index.vue
index 12a39cb..5504acf 100644
--- a/src/views/equipmentStatus/index.vue
+++ b/src/views/equipmentStatus/index.vue
@@ -8,6 +8,7 @@
@@ -149,7 +150,7 @@ export default {
},
data() {
return {
- msg: "",
+ loading: false,
childFlag: false,
tableData: [],
childTableDate: [],
diff --git a/src/views/icing/index.vue b/src/views/icing/index.vue
index 63c8605..53dbd7f 100644
--- a/src/views/icing/index.vue
+++ b/src/views/icing/index.vue
@@ -21,6 +21,7 @@
查询
- 导出数据
+
+ 曲线图
+ 列表数据
+
-
+
-
+ prop="updateTime"
+ label="时间"
+ min-width="120px"
+ >
+
+
+ {{
+ $moment(scope.row.updateTime * 1000).format(
+ "YYYY-MM-DD HH:mm:ss"
+ )
+ }}
+ -
+
+
+
+
+
+ {{ scope.row.funcCodeName }}({{
+ scope.row.funcCodeHex
+ }})({{ scope.row.funcCodeHex }})
+ -
+
+
-
+
+
+
+
相位(标识): ({{ item }})
+
+
+
+

+
暂无图表
+
+
@@ -122,6 +175,7 @@