Selaa lähdekoodia

加侧边菜单

mw_666 3 vuotta sitten
vanhempi
commit
4e4e4f2124

+ 1 - 1
public/static/config/modeConfig.js

@@ -11,7 +11,7 @@ let websocketUrl = null;
 if (localTest) {
   // baseURL = "http://192.168.10.23:8082/" // 联机调试 - 石林
   // baseURL = "http://192.168.10.18:8082/" // 联机调试 - 石林
-  baseURL = "http://10.155.32.33:9001/" // 联机调试 - 谢生杰
+  baseURL = "http://10.155.32.4:9001/" // 联机调试 - 谢生杰
   websocketUrl = (baseURL.replace(/http:\/\//g, "")) + "gyee-websocket";
 } else {
   baseURL = "http://10.155.32.4:8082/" // 正式环境

+ 10 - 1
src/components/coms/table/table.vue

@@ -104,11 +104,20 @@ export default {
   },
   // 函数
   methods: {
+    clearCheckBox(time){
+      this.$nextTick(()=>{
+        setTimeout(()=>{
+          const domArray = document.querySelectorAll(".curCheckBox");
+          for(let i=0;i<domArray.length;i++){
+            domArray[i].checked=false;
+          }
+        },(time || 300));
+      });
+    },
     onClick(col, data) {
       if (col.click) col.click(event, data);
     },
     onSort(col) {
-		console.log(col)
       if (col.sortable == true) {
         this.sortCol = col.field;
         switch (this.sortType) {

+ 13 - 1
src/views/Decision/Decision2Xldb.vue

@@ -5,7 +5,7 @@
 				<div class="query-item">
 					<div class="lable">场站:</div>
 					<div class="search-input">
-						<el-select v-model="value1" @change="ChangZhanChange(value1)" clearable placeholder="请选择"
+						<el-select v-model="value1" @change="ChangZhanChange(value1)" multiple placeholder="请选择"
 							popper-class="select">
 							<el-option v-for="item in ChangZhan" :key="item.id" :value="item.id" :label="item.name">
 							</el-option>
@@ -120,6 +120,7 @@
 		data() {
 			let that = this;
 			return {
+				oneData:[],
 				tableIdArr: [], //放checkbox的id数组
 				tableId: [],
 				checkLength: 0, //对标分析只能选择2个
@@ -587,9 +588,17 @@
 			};
 		},
 		created() {
+			var that = this;
 			this.ChangZhanVal();
 			this.value4 = this.getTime(1);
 			this.value5 = this.getTime(2);
+			that.API.requestData({
+				method: "GET",
+				subUrl: "benchmarking/wplist",
+				success(res) {
+					that.value1.push(res.data[0].id)
+				}
+			});
 			this.AjaxCommon();
 		},
 		methods: {
@@ -599,11 +608,13 @@
 					method: "GET",
 					subUrl: "benchmarking/wplist",
 					success(res) {
+						that.oneData = res.data[0].id
 						that.ChangZhan = res.data;
 					}
 				});
 			},
 			ChangZhanChange(val) {
+				console.log(val)
 				this.value1 = val;
 				this.value2 = [];
 				this.value3 = [];
@@ -676,6 +687,7 @@
 			},
 			AjaxCommon() {
 				var that = this;
+				console.log(that.value1)
 				that.API.requestData({ //五项损失率
 					method: "GET",
 					subUrl: "benchmarking/xldb",

+ 33 - 13
src/views/layout/Menu.vue

@@ -148,25 +148,45 @@ export default {
           text: "决策支持",
           data: [
             {
-              text: "决策支持1",
+              text: "风机绩效榜",
               icon: "svg-matrix",
               path: "/decision/decision1",
             },
+			{
+			  text: "五项损失率",
+			  icon: "svg-matrix",
+			  path: "/decision/decision2",
+			},
+			{
+			  text: "场内对标",
+			  icon: "svg-matrix",
+			  path: "/decision/decision2Cndb",
+			},
+			{
+			  text: "场际对标",
+			  icon: "svg-matrix",
+			  path: "/decision/decision2Cjdb",
+			},
             {
-              text: "决策支持2",
+              text: "项目对标",
               icon: "svg-matrix",
-              path: "/decision/decision2",
-            },
-            {
-              text: "决策支持3",
-              icon: "svg-matrix",
-              path: "/decision/decision3",
-            },
-            {
-              text: "决策支持4",
-              icon: "svg-matrix",
-              path: "/decision/decision4",
+              path: "/decision/decision2Xmdb",
             },
+			{
+			  text: "线路对标",
+			  icon: "svg-matrix",
+			  path: "/decision/decision2Xldb",
+			},
+            // {
+            //   text: "决策支持3",
+            //   icon: "svg-matrix",
+            //   path: "/decision/decision3",
+            // },
+            // {
+            //   text: "决策支持4",
+            //   icon: "svg-matrix",
+            //   path: "/decision/decision4",
+            // },
           ],
         },
         {