chenminghua 3 vuotta sitten
vanhempi
commit
58d4f23a06

+ 0 - 120
src/views/sampleDatabase/otherComponent.vue

@@ -1,120 +0,0 @@
-<template>
-	<el-row>
-		<el-col :span="3">
-			<el-tree :data="elTreeData.data" :props="elTreeData.defaultProps" @node-click="handleNodeClick" default-expand-all highlight-current :expand-on-click-node="false"></el-tree>
-		</el-col>
-		<el-col :span="21">
-			<Gz v-if="currTab == 'ybk1'" height="92vh" />
-			<Xn v-if="currTab == 'ybk2'" height="92vh" />
-			<Yj v-if="currTab == 'ybk3'" height="92vh" />
-			<Zn v-if="currTab == 'ybk4'" height="92vh" />
-		</el-col>
-	</el-row>
-</template>
-
-<script>
-	import $ from "jquery";
-	import Gz from "./gz.vue";
-	import Xn from "./xn.vue";
-	import Yj from "./yj.vue";
-	import Zn from "./zn.vue";
-	export default {
-		components: {
-			Gz,
-			Xn,
-			Yj,
-			Zn
-		},
-		data() {
-			return {
-				currTab: 'ybk1',
-				elTreeData: {
-					data: [{
-							label: "样本库",
-							children: [{
-								label: "故障样本库",
-								id: 'ybk1'
-							}, {
-								label: "性能下降样本库",
-								id: 'ybk2'
-							}, {
-								label: "预警分析样本库",
-								id: 'ybk3'
-							}, {
-								label: "智能营销样本库",
-								id: 'ybk4'
-							}],
-						},
-						{
-							label: "基础库",
-							children: [{
-								label: "风机",
-								id: 'jck1'
-							}, {
-								label: "升压站",
-								id: 'jck2'
-							}, {
-								label: "场站",
-								id: 'jck3'
-							}, {
-								label: "逆变器",
-								id: 'jck4'
-							}, {
-								label: "测点",
-								id: 'jck5'
-							}, {
-								label: "风机类型",
-								id: 'jck6'
-							}],
-						},
-						{
-							label: "知识库",
-						},
-					],
-					defaultProps: {
-						children: "children",
-						label: "label",
-					},
-				},
-			};
-		},
-		methods: {
-			handleNodeClick(a) {
-				if (a.id) {
-					this.currTab = a.id;
-				}
-			},
-			treeItem(){
-				this.API.requestData({
-					method: "GET",
-					baseURL: "http://192.168.1.18:9002",
-					subUrl: "/basic/station/all",
-					success(res) {
-						console.log(res)
-					}
-				});
-			}
-		},
-		created() {
-			
-		},
-		mounted() {
-			this.treeItem();
-			// jq实现的tree默认第一个节点选中
-			$('.el-tree .el-tree-node__children').eq(0).find('.el-tree-node').eq(0).addClass('is-current');
-			$('.el-tree .el-tree-node__children .el-tree-node').click(function(){
-				$(this).siblings().removeClass('is-current')
-			})
-		},
-	};
-</script>
-
-<style lang="less">
-	.el-tree{
-		.el-tree-node__children {
-			.el-tree-node__content{cursor: pointer;}
-			.el-tree-node.is-current{background-color: #0F3C25;}
-		}
-		.el-tree-node__content{cursor: auto;}
-	}
-</style>

+ 8 - 8
src/views/sampleDatabase/totalCurve/chart.vue

@@ -195,8 +195,8 @@ export default {
       const that = this;
       that.API.requestData({
         method: "POST",
-        baseURL: "http://192.168.1.18:9002/",
-        subUrl: "powercurve/lasso",
+        baseURL: "http://192.168.10.5:9002/",
+        subUrl: "powercurve/warning",
         data: {
           station: that.station,
           wtid: that.wtId,
@@ -213,7 +213,7 @@ export default {
               pEle.label += "(0条)";
             }
             pEle.children.forEach((cEle) => {
-              cEle.label = "---";
+              cEle.label = cEle.warntype;
             });
           });
           lassoTable.sort((a, b) => {
@@ -235,7 +235,7 @@ export default {
       const that = this;
       that.API.requestData({
         method: "GET",
-        baseURL: "http://192.168.1.18:9002/",
+        baseURL: "http://192.168.10.5:9002/",
         subUrl: "powercurve/tree",
         success(res) {
           that.treeData = that.addLabelToTreeData(res.data);
@@ -261,7 +261,7 @@ export default {
       const that = this;
       that.API.requestData({
         method: "GET",
-        baseURL: "http://192.168.1.18:9002/",
+        baseURL: "http://192.168.10.5:9002/",
         subUrl: "know/fault/type/all",
         success(res) {
           res.data.forEach((ele, index) => {
@@ -311,7 +311,7 @@ export default {
       const that = this;
       that.API.requestData({
         method: "POST",
-        baseURL: "http://192.168.1.18:9002/",
+        baseURL: "http://192.168.10.5:9002/",
         subUrl: "scatter/list",
         showLoading: true,
         data: {
@@ -437,7 +437,7 @@ export default {
       this.BASE.showLoading();
       axios({
         method: "post",
-        url: "http://192.168.1.18:9002/case/fault/insert",
+        url: "http://192.168.10.5:9002/case/fault/insert",
         data,
         header: {
           "Content-Type": "application/json",
@@ -454,7 +454,7 @@ export default {
 
           axios({
             method: "post",
-            url: "http://192.168.1.18:9002/case/warning/insert",
+            url: "http://192.168.10.5:9002/case/warning/insert",
             data: lassoData,
             header: {
               "Content-Type": "application/json",

+ 3 - 3
src/views/sampleDatabase/totalCurve/dataDispose.vue

@@ -334,7 +334,7 @@ export default {
       const that = this;
       axios({
         method: "post",
-        url: "http://192.168.1.18:9002/scatter/preprocess",
+        url: "http://192.168.10.5:9002/scatter/preprocess",
         data,
         header: {
           "Content-Type": "application/json",
@@ -354,7 +354,7 @@ export default {
       const that = this;
       that.API.requestData({
         method: "GET",
-        baseURL: "http://192.168.1.18:9002/",
+        baseURL: "http://192.168.10.5:9002/",
         subUrl: "powercurve/tree",
         success(res) {
           that.treeData = that.addLabelToTreeData(res.data);
@@ -434,7 +434,7 @@ export default {
       const that = this;
       that.API.requestData({
         method: "GET",
-        baseURL: "http://192.168.1.18:9002/",
+        baseURL: "http://192.168.10.5:9002/",
         subUrl: "powercurve/list",
         showLoading: true,
         data: {