Browse Source

数字映射页面修改

duy 1 year ago
parent
commit
0832f63fe1
2 changed files with 26 additions and 13 deletions
  1. 9 0
      src/router/views/index.js
  2. 17 13
      src/views/tentative/components/dataMap.vue

+ 9 - 0
src/router/views/index.js

@@ -338,6 +338,15 @@ export default [{
         },
         component: () =>
           import ( /* webpackChunkName: "views" */ '@/views/tentative/testclassifyset')
+    },
+    {
+        path: '/tentative/dataMap',
+        name: '数据映射配置',
+        meta: {
+          i18n: 'dataMap'
+        },
+        component: () =>
+          import ( /* webpackChunkName: "views" */ '@/views/tentative/components/dataMap')
       },
     {
         path: '/tentative/parameter',

+ 17 - 13
src/views/tentative/components/dataMap.vue

@@ -1,5 +1,6 @@
 <!--  -->
 <template>
+
   <basic-container>
     <el-row
         :gutter="20"
@@ -10,23 +11,20 @@
             class='parent hc-excel-table-form'
             id='parent'
             @click="parentClick($event)"
+           
           >
           </div>
 
         </el-col>
         <el-col
-          :span="7"
-          style="position: fixed;right: 13px;"
+        style="position: fixed;right: 13px;"
+        :span="7"
+       
         >
         <div style="margin-bottom: 20px;text-align: right;">
-          <el-button>返回上一级</el-button>
+          <el-button @click="goBack">返回上一级</el-button>
           <el-button type="primary" >保存</el-button>
-          <el-button
-                v-show="AddNewElementField == '替换元素'"
-                type="primary"
-                :disabled="tag"
-              
-          >保存</el-button>
+   
         </div>
         <div class="right_box">
           <div>
@@ -69,6 +67,8 @@
       </el-row>
   </basic-container>
 
+
+
 </template>
 
 <script >
@@ -97,6 +97,7 @@ export default{
           value: '选项5',
           label: '北京烤鸭'
         }],
+          heights: '',
         formVal:'',
     }
   },
@@ -210,12 +211,15 @@ export default{
       }
       return targetParent;
     },
+    goBack(){
+      this.$router.go(-1)
+    }
   },
   created(){
-    this.getExcelHtmlCol('1719887474777899009'); //获取excel模板
+    this.getExcelHtmlCol('1595726141791379457'); //获取excel模板
   },
   mounted(){
- 
+    this.heights = this.$refs.heights.clientHeight
   }
 }
 </script>
@@ -235,9 +239,9 @@ export default{
 }
 
 .right_box{
-  width: 95%;
+
   height: calc(100vh - 235px);
-  border: 1px solid gray;
+
   padding-left: 20px;
   padding-top: 20px;
   text-align: left;