Explorar o código

Merge branch 'master' of https://gitee.com/qinnamin/large_screen

namin %!s(int64=3) %!d(string=hai) anos
pai
achega
b81c8a3ded

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 646 - 653
src/router/index.js


+ 157 - 188
src/views/Home.vue

@@ -1,189 +1,156 @@
 <template>
   <div>
-    <el-row class="tac">
-      <el-col
-        :span="2"
-        style="margin-top: -30px;"
-      >
-        <!-- style="width: 110px;height: 800px;background-color: #409eff;" -->
-        <div style="width: 110px; height: 800px;">
-          <div style="
-              margin-left: 20px;
-              background-color: grey;
-              width: 120px;
-              height: 30px;
-              position: relative;
-              border-radius: 5px;
-              border: 2px solid #fff;
-            ">
-            <span
-              slot="title"
-              style="
-                color: #00ffff;
-                font-size: 15px;
-                position: absolute;
-                left: 25%;
-                text-align: center;
-              "
-            >系统列表</span>
-          </div>
-          <el-menu
-            class="el-menu-vertical-demo"
-            default-active="1-4-1"
-            @open="handleOpen"
-            @close="handleClose"
-            router
+    <el-row>
+      <el-col :span="2">
+        <div
+          style="
+            margin-left: 20px;
+            background-color: grey;
+            width: 120px;
+            height: 30px;
+            position: relative;
+            border-radius: 5px;
+            border: 2px solid #fff;
+          "
+        >
+          <span
+            slot="title"
+            style="
+              color: #00ffff;
+              font-size: 15px;
+              position: absolute;
+              left: 25%;
+              text-align: center;
+            "
+            >系统列表</span
           >
-            <template
-              v-for="item in $router.options.routes[0].children"
-              v-if="!item.hidden"
-            >
-              <el-menu-item :index="item.path">
-                <div style="
-                    background-color: #C0C0C0;
-                    width: 120px;
-                    height: 53px;
-                    position: relative;
-                    border-radius: 10px;
-                    border: 1px solid grey;
-                  ">
-                  <img
-                    style="
-                      width: 30px;
-                      height: 30px;
-                      text-align: center;
-                      position: relative;
-                      left: 5%;
-                      top: -5%;
-                    "
-                    :src="imgSys[item.id]"
-                    alt="图片"
-                  />
-                  <span
-                    slot="title"
-                    style="
-                      color: black;
-                      font-size: 12px;
-                      position: relative;
-                      left: 5px;
-                      text-align: center;
-                    "
-                  >{{ item.name }}</span>
-                </div>
-              </el-menu-item>
-            </template>
-          </el-menu>
         </div>
+        <el-menu
+          class="el-menu-vertical-demo"
+          :default-active="$route.path"
+          @select="handleSelect"
+        >
+          <template v-for="item in menu_left">
+            <el-menu-item :index="item.path" :key="item.id">
+              <div
+                style="
+                  background-color: #c0c0c0;
+                  width: 120px;
+                  height: 53px;
+                  position: relative;
+                  border-radius: 10px;
+                  border: 1px solid grey;
+                "
+              >
+                <img
+                  style="
+                    width: 30px;
+                    height: 30px;
+                    text-align: center;
+                    position: relative;
+                    left: 5%;
+                    top: -5%;
+                  "
+                  :src="imgSys[item.id]"
+                  alt="图片"
+                />
+                <span
+                  slot="title"
+                  style="
+                    color: black;
+                    font-size: 12px;
+                    position: relative;
+                    left: 5px;
+                    text-align: center;
+                  "
+                  >{{ item.name }}</span
+                >
+              </div>
+            </el-menu-item>
+          </template>
+        </el-menu>
       </el-col>
-      <el-col
-        :span="20"
-        style="margin-top: -30px"
-      >
+      <el-col :span="20">
         <!-- 展示   -->
-        <iframe
-          width="1626px"
-          height="900px"
-          :src="url"
-          frameborder="0"
-          scrolling="yes"
-          v-if="getDashBoardId && this.$route.path == '/' "
-        ></iframe>
         <router-view></router-view>
       </el-col>
       <!-- 右侧边栏 -->
-      <el-col
-        :span="2"
-        style="margin-top: -30px;"
-      >
-        <div style="width: 110px; height: 800px;">
-          <div style="
-              margin-left: 20px;
-              background-color: grey;
-              width: 120px;
-              height: 30px;
-              position: relative;
-              border-radius: 5px;
-              border: 2px solid #fff;
-            ">
-            <span
-              slot="title"
-              style="
-                color: #00ffff;
-                font-size: 15px;
-                position: absolute;
-                left: 25%;
-                text-align: center;
-              "
-            >应用列表</span>
-          </div>
-          <el-menu
-            default-active="1-4-1"
-            class="el-menu-vertical-demo"
-            @open="handleOpen"
-            @close="handleClose"
-            router
+      <el-col :span="2">
+        <div
+          style="
+            margin-left: 20px;
+            background-color: grey;
+            width: 120px;
+            height: 30px;
+            position: relative;
+            border-radius: 5px;
+            border: 2px solid #fff;
+          "
+        >
+          <span
+            slot="title"
+            style="
+              color: #00ffff;
+              font-size: 15px;
+              position: absolute;
+              left: 25%;
+              text-align: center;
+            "
+            >应用列表</span
           >
-            <template
-              v-for="(item, index) in $router.options.routes[1].children"
-              v-if="!item.hidden"
-            >
-              <el-menu-item :index="item.path">
-                <div style="
-                    background-color: #C0C0C0;
-                    width: 120px;
-                    height: 53px;
-                    position: relative;
-                    border-radius: 10px;
-                    border: 1px solid grey;
-                  ">
-                  <img
-                    style="
-                      width: 40px;
-                      height: 40px;
-                      text-align: center;
-                      position: relative;
-                      left: 1%;
-                      top: -5%;
-                    "
-                    :src="imgApp[item.id]"
-                    alt="图片"
-                  />
-                  <span
-                    slot="title"
-                    style="
-                      color: black;
-                      font-size: 12px;
-                      position: relative;
-                      left: 2px;
-                      text-align: center;
-                    "
-                  >{{ item.name }}</span>
-                </div>
-              </el-menu-item>
-            </template>
-          </el-menu>
-          <div
-            class="logout"
-            @click="loginOut"
-          >退出</div>
         </div>
+        <el-menu class="el-menu-vertical-demo" @select="handleSelect">
+          <template v-for="item in menu_right">
+            <el-menu-item :index="item.path" :key="item.id">
+              <div
+                style="
+                  background-color: #c0c0c0;
+                  width: 120px;
+                  height: 53px;
+                  position: relative;
+                  border-radius: 10px;
+                  border: 1px solid grey;
+                "
+              >
+                <img
+                  style="
+                    width: 40px;
+                    height: 40px;
+                    text-align: center;
+                    position: relative;
+                    left: 1%;
+                    top: -5%;
+                  "
+                  :src="imgApp[item.id]"
+                  alt="图片"
+                />
+                <span
+                  slot="title"
+                  style="
+                    color: black;
+                    font-size: 12px;
+                    position: relative;
+                    left: 2px;
+                    text-align: center;
+                  "
+                  >{{ item.name }}</span
+                >
+              </div>
+            </el-menu-item>
+          </template>
+        </el-menu>
+        <div class="logout" @click="loginOut">退出</div>
       </el-col>
     </el-row>
   </div>
 </template>
 
 <script>
-import { log } from "util";
 export default {
   name: "Home",
   data() {
     return {
-      // loginForm: {
-      // 	username: "admin",
-      // 	password: "123",
-      // },
-      getDashBoardId: false,
-      url: "http://112.126.68.148:50401/analysis/dashboard/show/",
+      activeIndex: "/coal_mining",
       imgSys: {
         100: require("@/assets/img/100.png"),
         101: require("@/assets/img/101.png"),
@@ -199,6 +166,11 @@ export default {
         111: require("@/assets/img/111.png"),
       },
       imgApp: {
+        200: require("@/assets/img/200.png"),
+        201: require("@/assets/img/201.png"),
+        202: require("@/assets/img/202.png"),
+        203: require("@/assets/img/203.png"),
+        204: require("@/assets/img/204.png"),
         205: require("@/assets/img/205.png"),
         206: require("@/assets/img/206.png"),
         207: require("@/assets/img/207.png"),
@@ -207,36 +179,33 @@ export default {
       },
     };
   },
-  created() {
-
-    this.getRequest("/dashBoard/getDashBoard").then((resp) => {
-      if (resp) {
-        if (resp.data !== null) {
-          this.url = this.url + resp.data.dashBoardId + "/";
-          console.log(this.url);
-          this.getDashBoardId = true;
-        } else {
-          this.$message.error("看板未发布");
-        }
-      }
+  mounted() {
+    this.$router.push({
+      path: "/main",
     });
-
   },
   methods: {
-    handleOpen(key, keyPath) {
-      console.log(key, keyPath);
-    },
-    handleClose(key, keyPath) {
-      console.log(key, keyPath);
-    },
-
-    toggleCollapser() {
-      this.isCollapseright = !this.isCollapseright;
+    handleSelect(key, keyPath) {
+      this.$router.push({
+        path: key,
+      });
     },
     loginOut() {
       window.location.href = "http://112.126.68.148/#/";
     },
   },
+  computed: {
+    menu_left() {
+      return this.$router.options.routes[0].children.filter(
+        (item) => !item.hidden
+      );
+    },
+    menu_right() {
+      return this.$router.options.routes[1].children.filter(
+        (item) => !item.hidden
+      );
+    },
+  },
 };
 </script>
 
@@ -248,7 +217,7 @@ export default {
   width: 1px;
 }
 .logout {
-  background-color: #C0C0C0;
+  background-color: #c0c0c0;
   width: 120px;
   height: 33px;
   border-radius: 10px;

+ 35 - 0
src/views/main.vue

@@ -0,0 +1,35 @@
+<template>
+  <iframe
+    width="1626px"
+    height="900px"
+    :src="url"
+    frameborder="0"
+    scrolling="yes"
+  ></iframe>
+</template>
+
+<script>
+export default {
+  data() {
+    return {
+      getDashBoardId: false,
+      url: "http://112.126.68.148:50401/analysis/dashboard/show/",
+    };
+  },
+  created() {
+    this.getRequest("/dashBoard/getDashBoard").then((resp) => {
+      if (resp) {
+        if (resp.data !== null) {
+          this.url = this.url + resp.data.dashBoardId + "/";
+          console.log(this.url);
+          this.getDashBoardId = true;
+        } else {
+          this.$message.error("看板未发布");
+        }
+      }
+    });
+  },
+};
+</script>
+
+<style scoped></style>

+ 2 - 0
src/views/mining/envTest/waterStorage.vue

@@ -65,6 +65,8 @@ export default {
         },
         yAxis: [
           {
+            max:1,
+            min:0,
             boundaryGap: [0, "100%"],
             name: this.unit,
             splitLine: {

+ 3 - 3
src/views/mining/mining.vue

@@ -1,7 +1,7 @@
 <template>
   <div>
-    <!--标签-->
-    <el-tabs
+    123
+    <!-- <el-tabs
       v-model="activeName"
       type="card"
       @tab-click="handleClick"
@@ -25,7 +25,7 @@
       <el-tab-pane label="数据标准" name="second">
         <dataStandard v-if="activeName == 'second'" :dataQualitySystemId=16></dataStandard>
       </el-tab-pane>
-    </el-tabs>
+    </el-tabs> -->
   </div>
 </template>
 

+ 0 - 163
src/views/personnel_location/dataStandard/dataQualityDevice.vue

@@ -1,163 +0,0 @@
-<template>
-    <div>
-            <!-- 面包屑导航 -->
-            <el-breadcrumb separator-class="el-icon-arrow-right" v-if="this.$router.currentRoute.path!='/home'">
-                <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
-                <el-breadcrumb-item>数据质量</el-breadcrumb-item>
-                <el-breadcrumb-item>煤矿</el-breadcrumb-item>
-                <el-breadcrumb-item :to="{ path: '/dataQualitySystem'}">系统</el-breadcrumb-item>
-                <el-breadcrumb-item :to="{ path: '/dataQualitySubsystem'}">子系统</el-breadcrumb-item>
-                <el-breadcrumb-item>设备</el-breadcrumb-item>
-            </el-breadcrumb>
-        <!-- 页面主体区域 -->
-        <el-main>
-
-            <el-card>
-                <el-table :data="tableData" style="width: 100%" border stripe>
-
-                    <el-table-column prop="device" label="设备" header-align="center" align="center" width="180">
-                    </el-table-column>
-                    <el-table-column prop="subdeviceNum" label="子设备个数" header-align="center" align="center" width="180">
-                    </el-table-column>
-                    <el-table-column prop="measurePointNum" label="测点个数" header-align="center" align="center" width="180">
-                    </el-table-column>
-                    <el-table-column label="操作" header-align="center" align="center" width="180">
-                        <template slot-scope="scope">
-                            <el-button type="text" size="small" @click="devicewatch(scope.row)" :disabled="scope.row.measurePointNum == 0?true:false">查看</el-button>  <!-- 这里要改,当子系统个数为0时,查看按钮不可用 -->
-                        </template>
-                    </el-table-column>
-                    <el-table-column prop="remark" label="备注" header-align="center" align="center" width="600">
-                    </el-table-column>
-                </el-table>
-
-                <div style="display: flex;justify-content: center">
-                    <el-pagination
-                            background
-                            @current-change="currentChange"
-                            @size-change="sizeChange"
-                            :current-page="page"
-                            :page-size="size"
-                            layout="sizes, prev, pager, next, jumper, ->, total, slot"
-                            :total="total">
-                    </el-pagination>
-                </div>
-            </el-card>
-
-        </el-main>
-    </div>
-
-</template>
-
-<script>
-    export default {
-        name: "dataQualityDevice",
-        data() {
-            return {
-                value: [],
-                options: [{
-                    value: '1',
-                    label: '王家岭煤矿',
-                    children: [{
-                        value: '1',
-                        label: '煤流运输系统',
-                        children: [{
-                            value: '1',
-                            label: '2煤中央皮带子系统',
-                        }, {
-                            value: '5',
-                            label: '主平硐皮带子系统'
-                        }, {
-                            value: '6',
-                            label: '上仓皮带子系统'
-                        }]
-                    }, {
-                        value: '2',
-                        label: '安全监控系统',
-                    }]
-                }, {
-                    value: '2',
-                    label: '张家岭煤矿',
-                }, {
-                    value: '3',
-                    label: '巴拉素煤矿',
-                }, {
-                    value: '4',
-                    label: 'xxx煤矿'
-                }],
-
-                tableData:[],
-                // tableData: [{
-                //     // system: '主运输系统',
-                //     device: '皮带本体',
-                //     subdeviceNum:1,
-                //     remark: '无'
-                // }, {
-                //     // system: '通风系统',
-                //     device: '驱动电机',
-                //     subdeviceNum:6,
-                //     remark: '无'
-                // }, {
-                //     // system: '主排水系统',
-                //     device: '皮带控制及保护',
-                //     subdeviceNum:1,
-                //     remark: '无'
-                // }, {
-                //     device: '滚筒',
-                //     subdeviceNum:8,
-                //     remark: '无'
-                // }, {
-                //     device: '破碎机',
-                //     subdeviceNum: 1,
-                //     remark: '无'
-                // }],
-                page:1,  //当前第几页
-                size:10, //当前每页个数
-                total:100, //全部数据行数
-                checkVisible: false,
-
-                currentSubSystemId:1,
-            }
-        },
-        mounted(){
-            this.currentSubSystemId = window.sessionStorage.getItem("dataQualitySubsystemId");
-            console.log(this.currentSubSystemId);
-            this.initData();
-        },
-        methods: {
-            handleChange(value) {
-                this.currentSubSystemId = value[2];
-                this.initData();
-            },
-            // 监听 pagesize 改变的事件
-            currentChange(currentPage){
-                this.page=currentPage;
-                this.initData();
-            },
-            sizeChange(currentSize) {
-                this.size = currentSize;
-                this.initData();
-            },
-            devicewatch(device) {
-                window.sessionStorage.setItem("dataQualitydeviceId",device.id); //存到sessionStorage中,下一个页面获取
-                this.$router.push({
-                    path: '/persondataQualitySubdevice',
-                });
-                console.log(device.id);
-            },
-            initData(){
-                this.currentSubSystemId = parseInt(this.currentSubSystemId);
-                this.getRequest('/dataQualityDevice/getDeviceBySubsystemId/?subsystemId=' + this.currentSubSystemId + '&page=' + this.page + '&size='+this.size).then( resp =>{
-                    if (resp){
-                        console.log(resp);
-                        this.tableData= resp.data;
-                        this.total = resp.data.size;
-                    }
-                })
-            }
-        }
-    }
-</script>
-
-<style scoped>
-
-</style>

+ 0 - 540
src/views/personnel_location/dataStandard/dataQualityMeasurePoint.vue

@@ -1,540 +0,0 @@
-<template>
-    <div>
-        <!-- 面包屑导航 -->
-        <el-breadcrumb separator-class="el-icon-arrow-right" v-if="this.$router.currentRoute.path!='/home'">
-            <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
-            <el-breadcrumb-item>数据质量</el-breadcrumb-item>
-            <el-breadcrumb-item>煤矿</el-breadcrumb-item>
-            <el-breadcrumb-item :to="{ path: '/dataQualitySystem'}">系统</el-breadcrumb-item>
-            <el-breadcrumb-item :to="{ path: '/dataQualitySubsystem'}">子系统</el-breadcrumb-item>
-            <el-breadcrumb-item :to="{ path: '/dataQualityDevice'}">设备</el-breadcrumb-item>
-            <el-breadcrumb-item :to="{ path: '/dataQualitySubdevice'}">子设备</el-breadcrumb-item>
-            <el-breadcrumb-item>测点</el-breadcrumb-item>
-        </el-breadcrumb>
-
-        <!-- 页面主体区域 -->
-        <el-main>
-            <div class="block">
-                <span class="demonstration" style="font-size: 10px;">搜索:</span>
-                <el-cascader
-                        v-model="value"
-                        :options="measurepointoptions"
-                        :props="{ expandTrigger: 'hover'}"
-                        separator=" | "
-                        style="width: 50%;"
-                        placeholder="王家岭煤矿 | 煤流运输系统 | 2煤中央皮带子系统 | 头部1#驱动电机 | 电机本体"
-                >
-                    <template slot-scope="{ node, data }">
-                        <span>{{ data.label }}</span>
-                        <span v-if="!node.isLeaf">({{ data.children.length }})</span>
-                    </template>
-                </el-cascader>
-
-                <!--搜索框后面的取消选择和修改按钮-->
-                <el-button @click="toggleSelection()" style="margin: 20px 10px"  type="primary" size="medium">取消选择</el-button>
-                <el-button @click="updateMany()" :disabled="multipleSelection.length==0" style="margin: 20px 10px " type="primary" icon="el-icon-edit" size="medium">批量修改</el-button>
-                <!--测试-新增测点的Test-->
-                <!--<el-button @click="addMeasurePoint()" style="margin: 20px 10px " type="primary" icon="el-icon-edit" size="medium">新增测点的Test</el-button>-->
-            </div>
-            <br>
-
-            <!--页面内容-->
-            <el-card>
-                <el-table
-                        ref="multipleTable"
-                        :data="tableData"
-                        tooltip-effect="dark"
-                        style="width: 100%"
-                        @selection-change="handleSelectionChange"
-                        border stripe>
-                    <el-table-column type="selection" width="40"></el-table-column>
-                        <el-table-column prop="name" label="测点" header-align="center" align="center" width="150">
-                        </el-table-column>
-                    <el-table-column label="完整性" header-align="center" align="center">
-                        <el-table-column prop="isExisted" label="数据是否存在" header-align="center" align="center" width="130">
-                        </el-table-column>
-                    </el-table-column>
-                    <el-table-column label="准确性" header-align="center" align="center" width="150">
-                        <el-table-column prop="type" label="数据类型" header-align="center" align="center" width="120">
-                        </el-table-column>
-                        <el-table-column label="阈值范围" header-align="center" align="center">
-                            <el-table-column prop="uprange" label="上阈值" header-align="center" align="center" width="120">
-                            </el-table-column>
-                            <el-table-column prop="lowrange" label="下阈值" header-align="center" align="center" width="120">
-                            </el-table-column>
-                        </el-table-column>
-                        <el-table-column prop="rationality" label="数据合理范围" header-align="center" align="center" >
-                            <el-table-column prop="rationalityuprange" label="上阈值" header-align="center" align="center" width="120">
-                            </el-table-column>
-                            <el-table-column prop="rationalitylowrange" label="下阈值" header-align="center" align="center" width="120">
-                            </el-table-column>
-                        </el-table-column>
-                        <el-table-column prop="storage_len" label="数据存储长度" header-align="center" align="center" width="130">
-                        </el-table-column>
-                    </el-table-column>
-                    <el-table-column label="时效性" header-align="center" align="center" width="150">
-                        <el-table-column prop="timedelay" label="时延要求" header-align="center" align="center" width="140">
-                        </el-table-column>
-                        <el-table-column prop="timesequence" label="时序性要求" header-align="center" align="center" width="140">
-                        </el-table-column>
-                    </el-table-column>
-                
-                </el-table>
-
-      
-              
-                <!--批量修改对话框里面的内容-->
-                <el-dialog title="批量修改测点数据质量" :visible.sync="ManyMPdialogVisible" width="100%" top="5vh" :before-close="cancel" >
-                    <span slot="footer" class="dialog-footer">
-                        <!--这里应该还有一个保存的方法没写-->
-                        <el-button @click="cancel()">取 消</el-button>
-                        <el-button type="primary" @click="saveMany()">确 定</el-button>
-                    </span>
-                    <el-table :data="ManyMPtable" >
-                            <el-table-column prop="name" label="测点" header-align="center" align="center" width="150">
-                            </el-table-column>
-                        <el-table-column label="完整性" header-align="center" align="center">
-                            <el-table-column prop="isExisted" label="数据是否存在" header-align="center" align="center" width="230" >
-                                <template slot-scope="scope">
-                                    <el-select v-model="scope.row.isExisted" slot="prepend" size="small" style="width:35%;margin-top:10px">
-                                        <el-option
-                                                v-for="item in isExistedoptions"
-                                                :key="item.value"
-                                                :label="item.label"
-                                                :value="item.value">
-                                        </el-option>
-                                    </el-select>
-                                    <el-select v-model="scope.row.isExistedmethod" placeholder="请选择治理函数" slot="append" size="small" style="width:65%;margin-top:10px">
-                                        <el-option
-                                                v-for="item in Methodoptions"
-                                                :key="item.id"
-                                                :label="item.name"
-                                                :value="item.id">
-                                        </el-option>
-                                    </el-select>
-                                </template>
-                            </el-table-column>
-                        </el-table-column>
-                        <el-table-column label="准确性" header-align="center" align="center">
-                            <el-table-column prop="type" label="数据类型" header-align="center" align="center" width="230">
-                                <template slot-scope="scope">
-                                    <span style="width: 100%" @dblclick="dblcmodify()" ></span>
-                                    <el-input v-model="scope.row.type" style="width:35%" ></el-input>
-                                    <el-select v-model="scope.row.typemethod" placeholder="请选择治理函数" slot="append" size="small" style="width:65%;margin-top:10px">
-                                        <el-option
-                                                v-for="item in Methodoptions"
-                                                :key="item.id"
-                                                :label="item.name"
-                                                :value="item.id">
-                                        </el-option>
-                                    </el-select>
-                                </template>
-                            </el-table-column>
-                            <el-table-column label="阈值范围" header-align="center" align="center" width="350">
-                                <el-table-column prop="uprange" label="上阈值" header-align="center" align="center" width="100">
-                                    <template slot-scope="scope">
-                                        <span style="width: 100%" @dblclick="dblcmodify()"></span>
-                                        <el-input v-model="scope.row.uprange" ></el-input>
-                                    </template>
-                                </el-table-column>
-                                <el-table-column prop="lowrange" label="下阈值" header-align="center" align="center" width="100" >
-                                <template slot-scope="scope">
-                                    <span style="width: 100%" @dblclick="dblcmodify()"></span>
-                                    <el-input v-model="scope.row.lowrange" ></el-input>
-                                </template>
-                                </el-table-column>
-                            </el-table-column>
-                            <el-table-column prop="rationality" label="数据合理范围" header-align="center" align="center" width="220">
-                                <el-table-column prop="rationalityuprange" label="上阈值" header-align="center" align="center" width="100">
-                                <template slot-scope="scope">
-                                    <span style="width: 100%" @dblclick="dblcmodify()"></span>
-                                    <el-input v-model="scope.row.rationalityuprange" ></el-input>
-                                </template>
-                                </el-table-column>
-                                <el-table-column prop="rationalitylowrange" label="下阈值" header-align="center" align="center" width="100">
-                                <template slot-scope="scope">
-                                    <span style="width: 100%" @dblclick="dblcmodify()"></span>
-                                    <el-input v-model="scope.row.rationalitylowrange" ></el-input>
-                                </template>
-                                </el-table-column>
-                            </el-table-column>
-                                    <el-table-column prop="method" label="数据合理范围治理函数" header-align="center" align="center" width="150">
-                                        <template slot-scope="scope">
-                                            <el-select v-model="scope.row.rationalitymethod" placeholder="请选择治理函数" slot="append" size="small" style="width:100%;margin-top:10px">
-                                                <el-option
-                                                        v-for="item in Methodoptions"
-                                                        :key="item.id"
-                                                        :label="item.name"
-                                                        :value="item.id">
-                                                </el-option>
-                                            </el-select>
-                                        </template>
-                                    </el-table-column>
-                            <el-table-column prop="storage_len" label="数据存储长度" header-align="center" align="center" width="205">
-                                <template slot-scope="scope">
-                                    <span style="width: 100%" @dblclick="dblcmodify()"></span>
-                                    <el-input v-model="scope.row.storage_len" style="width:30%"></el-input>
-                                    <el-select v-model="scope.row.storage_lenmethod" placeholder="请选择治理函数" slot="append" size="small" style="width:70%;margin-top:10px">
-                                        <el-option
-                                                v-for="item in Methodoptions"
-                                                :key="item.id"
-                                                :label="item.name"
-                                                :value="item.id">
-                                        </el-option>
-                                    </el-select>
-                                </template>
-                            </el-table-column>
-                        </el-table-column>
-                        <el-table-column label="时效性" header-align="center" align="center">
-                            <el-table-column prop="timedelay" label="时延要求" header-align="center" align="center" width="220">
-                                <template slot-scope="scope">
-                                    <span style="width: 100%" @dblclick="dblcmodify()"></span>
-                                    <el-input v-model="scope.row.timedelay" style="width:30%"></el-input>
-                                    <el-select v-model="scope.row.timedelaymethod" placeholder="请选择治理函数" slot="append" size="small" style="width:70%;margin-top:10px">
-                                        <el-option
-                                                v-for="item in Methodoptions"
-                                                :key="item.id"
-                                                :label="item.name"
-                                                :value="item.id">
-                                        </el-option>
-                                    </el-select>
-                                </template>
-                            </el-table-column>
-                            <el-table-column prop="timesequence" label="时序性要求" header-align="center" align="center" width="220">
-                                <template slot-scope="scope">
-                                    <span style="width: 100%" @dblclick="dblcmodify()"></span>
-                                    <el-input v-model="scope.row.timesequence" style="width:30%"></el-input>
-                                    <el-select v-model="scope.row.timesequencemethod" placeholder="请选择治理函数" slot="append" size="small" style="width:70%;margin-top:10px">
-                                        <el-option
-                                                v-for="item in Methodoptions"
-                                                :key="item.id"
-                                                :label="item.name"
-                                                :value="item.id">
-                                        </el-option>
-                                    </el-select>
-                                </template>
-                            </el-table-column>
-                        </el-table-column>
-                        <el-table-column label="版本" header-align="center" align="center" width="100">
-                            <template slot-scope="scope">
-                                <el-input type="textarea" v-model="scope.row.version"></el-input>
-                            </template>
-                        </el-table-column>
-                        <el-table-column label="修改记录" header-align="center" align="center" width="220">
-                            <template slot-scope="scope">
-                            <el-input type="textarea" v-model="scope.row.modifyrecord"></el-input>
-                            </template>
-                        </el-table-column>
-                        <el-table-column label="修改原因" header-align="center" align="center" width="220">
-                            <template slot-scope="scope">
-                                <el-input type="textarea" v-model="scope.row.modifyreason"></el-input>
-                            </template>
-                        </el-table-column>
-                    </el-table>
-                </el-dialog>
-
-                <!-- 分页区域 -->
-                <div style="display: flex;justify-content: center">
-                    <el-pagination
-                            background
-                            @current-change="currentChange"
-                            @size-change="sizeChange"
-                            :current-page="page"
-                            :page-size="size"
-                            layout="sizes, prev, pager, next, jumper, ->, total, slot"
-                            :total="total">
-                    </el-pagination>
-                </div>
-
-            </el-card>
-        </el-main>
-    </div>
-</template>
-
-<script>
-    
-    export default {
-        name: "dataQualityMeasurePoint",
-        data() {
-            return {
-                multipleSelection: [],
-                modifyMPdialogVisible: false,
-                checkMPdialogVisible: false,
-                ManyMPdialogVisible: false,
-                inputisExistedMethod: '',
-                versionsShow: true,
-
-                value:[],
-                isExistedoptions: [{
-                    value: '1',
-                    label: '是',
-                }, {
-                    value: '0',
-                    label: '否',
-                }],
-
-                Methodoptions: [],
-
-                // value: [],
-                // versionoptions: [{
-                //     value: 'v1.0',
-                //     label: 'v1.0',
-                // }, {
-                //     value: 'v2.0',
-                //     label: 'v2.0',
-                // }, {
-                //     value: 'v3.0',
-                //     label: 'v3.0',
-                // }],
-                // versionoptions: [],
-
-                value: [],
-                measurepointoptions: [{
-                    value: 'WJL',
-                    label: '王家岭煤矿',
-                    children: [{
-                        value: 'MLYS',
-                        label: '煤流运输系统',
-                        children: [{
-                            value: '2MZYPDSS',
-                            label: '2煤中央皮带子系统',
-                            children: [{
-                                value: 'PDBT',
-                                label: '皮带本体',
-                                children: [{
-                                    value: 'PDBT',
-                                    label: '皮带本体',
-                                }]
-                            }, {
-                                value: '',
-                                label: '头部1#驱动电机',
-                                children: [{
-                                    value: 'DJBT',
-                                    label: '电机本体',
-
-                                }, {
-                                    value: 'JSJ',
-                                    label: '减速机',
-                                }, {
-                                    value: 'BPQ',
-                                    label: '变频器',
-                                }, {
-                                    value: 'GYKGG',
-                                    label: '高压开关柜',
-                                }]
-                            }]
-                        }, {
-                            value: 'ZPDPDSS',
-                            label: '主平硐皮带子系统'
-                        }, {
-                            value: 'SCPDSS',
-                            label: '上仓皮带子系统'
-                        }]
-                    }, {
-                        value: 'AQJC',
-                        label: '安全监控系统',
-                    }]
-                }, {
-                    value: 'ZJL',
-                    label: '张家岭煤矿',
-                }, {
-                    value: 'BALS',
-                    label: '巴拉素煤矿',
-                }, {
-                    value: 'XXX',
-                    label: 'xxx煤矿'
-                }],
-
-                visible: false,
-                // tableData: [{
-                //     id:'',
-                //     name: '电机绕组A相温度',
-                //     isExisted: '是',
-                //     type: 'float',
-                //     uprange: '120.0',
-                //     rationalityuprange: '125.0',
-                //     unit: '℃',
-                //     storage_len: '50',
-                //     timedelay: '5s',
-                //     timesequence: '10s',
-                //     version: [],
-                // }, {
-                //     id:'',
-                //     name: '电机绕组B相温度',
-                //     isExisted: '是',
-                //     type: 'float',
-                //     uprange: '120.0',
-                //     rationalityuprange: '125.0',
-                //     unit: '℃',
-                //     storage_len: '50',
-                //     timedelay: '5s',
-                //     timesequence: '10s',
-                //     version: [],
-                // }],
-
-                tableData: [{
-                    id:'',
-                    name: '',
-                    isExisted: '',
-                    type: '',
-                    uprange: '',
-                    rationalityuprange: '',
-                    unit: '',
-                    storage_len: '',
-                    timedelay: '',
-                    timesequence: '',
-                    version: '',
-                    versionoptions: [],
-                }],
-
-                ManyMPtable: [{
-                    id:'',
-                    name: '',
-                    isExisted: '',
-                    isExistedmethod: '',
-                    type: '',
-                    typemethod: '',
-                    uprange: '',
-                    lowrange: '',
-                    rationalityuprange: '',
-                    rationalitylowrange: '',
-                    rationalitymethod: '',
-                    storage_len: '',
-                    storage_lenmethod: '',
-                    timedelay: '',
-                    timedelaymethod: '',
-                    timesequence: '',
-                    timesequencemethod: '',
-                    modifyrecord: '',
-                    modifyreason: '',
-                }],
-                currentSubEquipmentId: 1,
-                page:1,  //当前第几页
-                size:10, //当前每页个数
-                total:100, //全部数据行数
-            }
-        },
-        mounted(){
-            this.currentSubEquipmentId = window.sessionStorage.getItem("dataQualitysubdeviceId");
-            if(this.currentSubEquipmentId == null) this.currentSubEquipmentId=1; //如果从菜单栏直接进入就没有上一级传过来的id
-            this.initData();
-            this.updateMeasurePoint();
-            this.checkMeasurePoint();
-            this.getMethodOptions();
-        },
-        methods: {
-            // 监听 pagesize 改变的事件
-            currentChange(currentPage){
-                this.page=currentPage;
-                this.initData();
-            },
-            sizeChange(currentSize) {
-                this.size = currentSize;
-                this.initData();
-            },
-            toggleSelection(rows) {
-                if (rows) {
-                    rows.forEach(row => {
-                        this.$refs.multipleTable.toggleRowSelection(row);
-                    });
-                } else {
-                    this.$refs.multipleTable.clearSelection();
-                }
-            },
-            handleSelectionChange(val) {
-                this.multipleSelection = val;
-            },
-            //批量处理
-            updateMany() { //批量修改
-                this.ManyMPdialogVisible = true;
-                this.ManyMPtable = this.$refs.multipleTable.selection;
-                //让modifyreason和modifyrecord变成空
-                localStorage.setItem('obj', JSON.stringify(this.tableData)); //暂存原始数据
-            },
-
-            cancel() {  //批量修改弹窗的“取消按钮”和“关闭按钮(二者效果同理)”,如果取消则恢复原来的数据
-                let Item = JSON.parse(localStorage.getItem('obj'));
-                this.tableData = Item;
-                this.ManyMPdialogVisible = false;
-            },
-
-            saveMany() { //批量修改弹窗的保存按钮
-                this.ManyMPtable.forEach(item=>{ //映射一下isExistedd
-                    if(item.isExisted=="是") this.$set(item, "isExisted",1);
-                    else if(item.isExisted=="否") this.$set(item, "isExisted", 0);
-                    });
-                this.postRequest('/dataQualityMeasurePoint/insertManyDataQuality', this.ManyMPtable).then(resp => {
-                    if (resp) {
-                        this.ManyMPdialogVisible = false;
-                        this.$refs.multipleTable.clearSelection(); //取消显示选中
-                        // 映射一下isExisted的显示问题
-                        this.ManyMPtable.forEach(item=>{
-                            if(item.isExisted==1) this.$set(item,"isExisted","是");
-                            else if(item.isExisted==0) this.$set(item,"isExisted","否");
-                        });
-                    }
-                });
-            },
-
-            // 单个修改-展示修改对话框
-            updateMeasurePoint(data,row) {  // 弹框修改测点,data是那一行的数据,row是行号,从0开始
-                this.$nextTick(() => {
-                    this.modifyMPdialogVisible = true;
-                    this.$refs.modifyMeasurePoint.init(this.tableData[row],row);
-                });
-            },
-
-            getChildData(arg){ //数据从子组件传到父组件,通过是否点击了取消按钮判断是否需要恢复数据
-                let isCancel = arg[0];
-                let row = arg[1];
-                let Item = JSON.parse(localStorage.getItem('obj'));
-                if(isCancel) this.$set(this.tableData,row,Item);
-            },
-
-        
-
-            checkMeasurePoint(row) { //查看测点更多治理函数
-                this.$nextTick( () => {
-                    this.checkMPdialogVisible=true;
-                   
-                })
-            },
-
-      
-
-            getMethodOptions() {  //拿到全部的治理函数
-                this.getRequest('/dataQualityMeasurePoint/getAllMethod').then( resp => {
-                    if(resp) {
-                        this.Methodoptions = resp.data;
-                    }
-                })
-            },
-            initData(){
-                this.currentSubEquipmentId = parseInt(this.currentSubEquipmentId);
-                this.getRequest('/dataQualityMeasurePoint/getMeasurePointbySubEquipmentId/?SubEquipmentId=' + this.currentSubEquipmentId +
-                    '&page='+ this.page + '&size='+this.size).then( resp =>{   //通过子设备id拿到所有的测点数据质量要求,并且显示最新版本
-                    if (resp){
-                        this.tableData = resp.data;
-                        // this.ManyMPtable = resp.data;
-                        this.total = resp.data.size;
-                        this.tableData.forEach(item=>{ //拿到各个测点的versionoptions
-                            this.getRequest('/dataQualityMeasurePoint/getVersionOptionsbyMeasurePointId/?MeasurePointId=' + item.mpId).then( resp=> {
-                                if(resp) {
-                                    this.$set(item, "versionoptions", resp.data)
-                                }
-                            });
-                        })
-                    }
-                    // console.log(this.tableData);
-                })
-
-
-            }
-        },
-    }
-</script>
-
-
-<style scoped>
-
-</style>

+ 0 - 196
src/views/personnel_location/dataStandard/dataQualitySubdevice.vue

@@ -1,196 +0,0 @@
-<template>
-    <div>
-        <!-- 面包屑导航 -->
-        <el-breadcrumb separator-class="el-icon-arrow-right" v-if="this.$router.currentRoute.path!='/home'">
-            <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
-            <el-breadcrumb-item>数据质量</el-breadcrumb-item>
-            <el-breadcrumb-item>煤矿</el-breadcrumb-item>
-            <el-breadcrumb-item :to="{ path: '/dataQualitySystem'}">系统</el-breadcrumb-item>
-            <el-breadcrumb-item :to="{ path: '/dataQualitySubsystem'}">子系统</el-breadcrumb-item>
-            <el-breadcrumb-item :to="{ path: '/dataQualityDevice'}">设备</el-breadcrumb-item>
-            <el-breadcrumb-item>子设备</el-breadcrumb-item>
-        </el-breadcrumb>
-        <!-- 页面主体区域 -->
-        <el-main>
-            <!--<el-select v-model="value" placeholder="请选择煤矿">-->
-                <!--<el-option v-for="item in coaloptions" :key="item.value" :label="item.label" :value="item.value">-->
-                <!--</el-option>-->
-            <!--</el-select>-->
-            <!--<el-select v-model="value" placeholder="请选择系统">-->
-                <!--<el-option v-for="item in systemoptions" :key="item.value" :label="item.label" :value="item.value">-->
-                <!--</el-option>-->
-            <!--</el-select>-->
-            <!--<el-select v-model="value" placeholder="请选择子系统">-->
-                <!--<el-option v-for="item in subsystemoptions" :key="item.value" :label="item.label" :value="item.value">-->
-                <!--</el-option>-->
-            <!--</el-select>-->
-            <!--<el-select v-model="value" placeholder="请选择设备">-->
-                <!--<el-option v-for="item in deviceoptions" :key="item.value" :label="item.label" :value="item.value">-->
-                <!--</el-option>-->
-            <!--</el-select>-->
-            <!-- <div class="block">
-                <span class="demonstration" style="font-size: 10px;">搜索:</span>
-                <el-cascader
-                        v-model="value"
-                        :options="options"
-                        :props="{ expandTrigger: 'hover'}"
-                        style="width: 40%;"
-                        separator=" | "
-                        placeholder="王家岭煤矿 | 煤流运输系统 | 2煤中央皮带子系统 | 头部1#驱动电机"
-                        @change="handleChange">
-                    <template slot-scope="{ node, data }">
-                        <span>{{ data.label }}</span>
-                        <span v-if="!node.isLeaf">({{ data.children.length }})</span>
-                    </template>
-                </el-cascader>
-            </div> -->
-
-            <br/>
-
-            <el-card>
-
-                <el-table :data="tableData" style="width: 100%" border stripe>
-
-                    <!--<el-table-column prop="system" label="系统" header-align="center" align="center" width="180" >-->
-                    <!--</el-table-column>-->
-                    <!--<el-table-column prop="subSystem" label="子系统" header-align="center" align="center" width="180">-->
-                    <!--</el-table-column>-->
-                    <el-table-column prop="subdevice" label="子设备" header-align="center" align="center" width="180">
-                    </el-table-column>
-                    <el-table-column prop="measurePointNum" label="测点个数" header-align="center" align="center" width="180">
-                    </el-table-column>
-                    <el-table-column prop="createDate" label="创建时间" header-align="center" align="center" width="180">
-                    </el-table-column>
-                    <el-table-column label="操作" header-align="center" align="center" width="180">
-                        <template slot-scope="scope">
-                            <el-button type="text" size="small" @click="subdevicewatch(scope.row)" :disabled="scope.row.measurePointNum == 0?true:false">查看</el-button>  <!-- 这里要改,当子系统个数为0时,查看按钮不可用 -->
-                        </template>
-                    </el-table-column>
-                    <el-table-column prop="remark" label="备注" header-align="center" align="center" width="180">
-                    </el-table-column>
-                </el-table>
-
-            <div style="display: flex;justify-content: center">
-                <el-pagination
-                        background
-                        @current-change="currentChange"
-                        @size-change="sizeChange"
-                        :current-page="page"
-                        :page-size="size"
-                        layout="sizes, prev, pager, next, jumper, ->, total, slot"
-                        :total="total">
-                </el-pagination>
-            </div>
-
-
-            </el-card>
-
-        </el-main>
-    </div>
-
-</template>
-<script>
-    export default {
-        name: "dataQualitySubdevice",
-        data() {
-            return {
-                value: [],
-                options: [{
-                    value: '1',
-                    label: '王家岭煤矿',
-                    children: [{
-                        value: '1',
-                        label: '煤流运输系统',
-                        children: [{
-                            value: '1',
-                            label: '2煤中央皮带子系统',
-                            children: [{
-                                value: '1',
-                                label: '皮带本体',
-                            }, {
-                                value: '2',
-                                label: '头部1#驱动电机',
-                            }]
-                        }, {
-                            value: '2',
-                            label: '主平硐皮带子系统'
-                        }, {
-                            value: '3',
-                            label: '上仓皮带子系统'
-                        }]
-                    }, {
-                        value: '2',
-                        label: '安全监控系统',
-                    }]
-                }, {
-                    value: '2',
-                    label: '张家岭煤矿',
-                }, {
-                    value: '3',
-                    label: '巴拉素煤矿',
-                }, {
-                    value: '4',
-                    label: 'xxx煤矿'
-                }],
-
-                tableData:[],
-                // tableData: [{
-                //     subdevice: '电机本体',
-                //     createDate: '12h',
-                //     measurePointNum:7,
-                //     remark: '无'
-                // }],
-                page:1,  //当前第几页
-                size:10, //当前每页个数
-                total:100, //全部数据行数
-                checkVisible: false,
-                currentdeviceId: 1,
-
-            }
-        },
-        mounted(){
-            this.currentdeviceId = window.sessionStorage.getItem("dataQualitydeviceId");
-            console.log(this.currentdeviceId);
-            this.initData();
-        },
-        methods: {
-            // 级联表的方法
-            handleChange(value) {
-                this.currentdeviceId = value[3];
-                console.log(this.currentdeviceId);
-            },
-            // 监听 pagesize 改变的事件
-            currentChange(currentPage){
-                this.page=currentPage;
-                this.initData();
-            },
-            sizeChange(currentSize) {
-                this.size = currentSize;
-                this.initData();
-            },
-            subdevicewatch(subdevice) {
-                window.sessionStorage.setItem("dataQualitysubdeviceId",subdevice.id); //存到sessionStorage中,下一个页面获取
-                this.$router.push({
-                    path: '/persondataQualityMeasurePoint',
-                });
-            },
-            initData(){
-                this.currentdeviceId = parseInt(this.currentdeviceId);
-                console.log(this.currentdeviceId);
-                this.getRequest('/dataQualitySubdevice/getsubEquipmentbyEquipmentId/?EquipmentId=' + this.currentdeviceId +
-                    '&page=' + this.page + '&size='+this.size).then( resp =>{
-                    if (resp){
-                        this.tableData= resp.data;
-                        this.total = resp.data.size;
-                    }
-                })
-            }
-        }
-    }
-</script>
-
-<style>
-.el-pagination{
-    text-align: center;
-}
-</style>

+ 0 - 183
src/views/personnel_location/dataStandard/dataStandard.vue

@@ -1,183 +0,0 @@
-<template>
-<div>
-    <!-- 数据标准页面 -->
-				<el-breadcrumb separator-class="el-icon-arrow-right">
-					<el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
-					<el-breadcrumb-item>{{systemName}}</el-breadcrumb-item>
-					<el-breadcrumb-item>数据标准</el-breadcrumb-item>
-				</el-breadcrumb>
-                 <el-card>
-                 <el-table :data="tableData" style="width: 100%" border stripe>
-
-                     <el-table-column prop="subSystem" label="子系统" header-align="center" align="center" width="180">
-                     </el-table-column>
-                     <el-table-column prop="deviceNum" label="设备个数" header-align="center" align="center" width="180">
-                     </el-table-column>
-                     <el-table-column prop="measurePointNum" label="测点个数" header-align="center" align="center" width="180">
-                     </el-table-column>
-                     <el-table-column prop="createDate" label="创建时间" header-align="center" align="center" width="180">
-                     </el-table-column>
-                     <el-table-column label="操作" header-align="center" align="center" width="180">
-                         <template slot-scope="scope">
-                             <el-button type="text" size="small" @click="subsystemwatch(scope.row)" :disabled="scope.row.measurePointNum == 0?true:false">查看</el-button>  <!-- 这里要改,当子系统个数为0时,查看按钮不可用 -->
-                         </template>
-                     </el-table-column>
-                     <el-table-column prop="remark" label="备注" header-align="center" align="center" width="180">
-                     </el-table-column>
-
-                 </el-table>
-
-                 <!-- 分页区域
-                 <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage4" :page-sizes="[1, 2, 5, 10]" :page-size="1" layout="total, sizes, prev, pager, next, jumper" :total="4">
-                 </el-pagination>  -->
-
-                 <div style="display: flex;justify-content: center">
-                     <el-pagination
-                             background
-                             @current-change="currentChange"
-                             @size-change="sizeChange"
-                             :current-page="page"
-                             :page-size="size"
-                             layout="sizes, prev, pager, next, jumper, ->, total, slot"
-                             :total="total">
-                     </el-pagination>
-                 </div>
-             </el-card>
-
-</div>
-  
-</template>
-
-
-<script>
-    export default {
-        subSystem: "dataQualitySubsystem",
-        data() {
-            return {
-                value: [],
-                systemoptions: [{
-                    value: '1',
-                    label: '王家岭煤矿',
-                    children: [{
-                        value: '1',
-                        label: '煤流运输系统',
-                    }, {
-                        value: '2',
-                        label: '通风系统',
-                    }]
-                }, {
-                    value: '2',
-                    label: '张家岭煤矿',
-                }, {
-                    value: '3',
-                    label: '巴拉素煤矿',
-                }, {
-                    value: '4',
-                    label: 'xxx煤矿'
-                }],
-
-                tableData:[],
-                // tableData: [{
-                //     // system: '主运输系统',
-                //     subSystem: '2煤中央皮带子系统',
-                //     createDate: '12h',
-                //     deviceNum: 3,
-                //     measurePointNum:3,
-                //     remark: '无'
-                // }, {
-                //     // system: '通风系统',
-                //     subSystem: '主平硐皮带子系统',
-                //     createDate: '12h',
-                //     deviceNum: 4,
-                //     measurePointNum:3,
-                //     remark: '无'
-                // }, {
-                //     // system: '主排水系统',
-                //     subSystem: '上仓皮带子系统',
-                //     createDate: '12h',
-                //     deviceNum: 8,
-                //     measurePointNum:3,
-                //     remark: '无'
-                // // }, {
-                //     // system: '安全检测',
-                //     // subSystem: 6,
-                //     // createDate: '12h',
-                //     // deviceNum: 9,
-                //     // remark: '无'
-                // }],
-                page:1,  //当前第几页
-                size:10, //当前每页个数
-                total:100, //全部数据行数
-                checkVisible: false,
-
-                currentSystemId:1,
-                currentSystem:"",
-                currentCoal:"",
-                systemName:'人员定位'
-
-            }
-        },
-        mounted(){
-            this.currentSystemId = window.sessionStorage.getItem("dataQualitySystemId");
-            // this.currentCoalId = this.$refs['systemref'].value[0]; //将当前煤矿与id设置为下拉框第一个
-            // this.currentSystemId = this.$refs['systemref'].value[1];  //这样子拿不到
-            this.initData();
-        },
-        methods: {
-            // handleChange(value) {
-            //     this.currentSystemId = value[1];
-            //     console.log(this.currentSystemId);
-            //     // console.log(value);
-            //     // let currentSystemId = value[1];
-            //     // console.log(currentSystemId);
-
-            //     let currentCoal = this.$refs['systemref'].getCheckedNodes()[0].pathLabels[0];
-            //     console.log(currentCoal); //打印出所选级联label
-            //     let currentSystem = this.$refs['systemref'].getCheckedNodes()[0].pathLabels[1];
-            //     console.log(currentSystem); //打印出所选级联label
-            //     // console.log(this.tableData);
-            //     // console.log(this.currentSystemId);
-            //     this.initData();
-            // },
-            getCoalOption(){
-                this.getRequest('/dataQualitySubsystem/getAllCoal/').then(resp=>{
-                    if (resp){
-                        this.coaloptions = resp.data;
-                    }
-                });
-            },
-            // 监听 pagesize 改变的事件
-            currentChange(currentPage){
-                this.page=currentPage;
-                this.initData();
-            },
-            sizeChange(currentSize) {
-                this.size = currentSize;
-                this.initData();
-            },
-            subsystemwatch(subsystem) {
-                console.log(subsystem.id);
-                window.sessionStorage.setItem("dataQualitySubsystemId",subsystem.id); //存到sessionStorage中,下一个页面获取
-                this.$router.push({
-                    path: '/persondataQualityDevice',
-                });
-            },
-
-            initData(){
-                this.currentSystemId = parseInt(this.currentSystemId);
-                this.currentCoalId = parseInt(this.currentCoalId);
-                this.getRequest('/dataQualitySubsystem/getSubsystemBySystemName/?systemName=' + this.systemName +
-                    '&page='+ this.page + '&size='+this.size).then( resp =>{
-                    if (resp){
-                        this.tableData= resp.data;
-                        this.total = resp.data.size;
-                    }
-                })
-            }
-        },
-    }
-</script>
-
-<style scoped>
-
-</style>

+ 0 - 49
src/views/personnel_location/location.vue

@@ -1,49 +0,0 @@
-<template>
-  <el-tabs
-    v-model="activeName"
-    type="card"
-    @tab-click="handleClick"
-  >
-    <el-tab-pane
-      label="系统数据"
-      name="first"
-    >
-      <el-breadcrumb separator-class="el-icon-arrow-right">
-        <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
-        <el-breadcrumb-item>主排水系统</el-breadcrumb-item>
-        <el-breadcrumb-item>系统数据</el-breadcrumb-item>
-      </el-breadcrumb>
-    </el-tab-pane>
-    <el-tab-pane
-      label="数据标准"
-      name="second"
-    >
-      <dataStandard></dataStandard>
-    </el-tab-pane>
-  </el-tabs>
-</template>
-
-
-<script>
-import dataStandard from "./dataStandard/dataStandard";
-export default {
-  name: "location",
-  data() {
-    return {
-      activeName: "first",
-    };
-  },
-  methods: {
-    handleClick(tab, event) {
-      console.log(tab, event);
-    },
-  },
-  components: {
-    dataStandard,
-  },
-};
-</script>
-
-
-<style scoped>
-</style>

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio