zishan-an 1 ano atrás
pai
commit
f83e4c31fc

+ 21 - 35
src/views/system/fieldAdd.vue

@@ -1,32 +1,23 @@
 <template>
   <div class="container" style="min-height: 100%; padding-bottom: 100px;">
+    <el-container>
+      <el-aside width="250px">
+        <el-menu
+            default-active="1"
+            class="el-menu-vertical-demo"
+        >
+          <el-menu-item  @click="gotolink2" class="vertical-center" index="1">
+            <i class="el-icon-location"></i>
+            <span slot="title">字段总表</span>
+          </el-menu-item>
+          <el-menu-item @click="gotolink3" class="vertical-center" index="2">
+            <i class="el-icon-menu"></i>
+            <span slot="title">字段表模板</span>
+          </el-menu-item>
+        </el-menu>
+
+      </el-aside>
 
-    <el-tabs v-model="activeName" @tab-click="handleClick"  stretch>
-      <el-tab-pane label="首页" name="first"  >首页</el-tab-pane>
-      <el-tab-pane label="业务" name="second">
-        业务
-      </el-tab-pane>
-      <el-tab-pane label="合作方" name="third">
-        合作方
-
-      </el-tab-pane>
-
-      <el-tab-pane label="字段列表" name="fourth">
-
-        <van-sidebar v-model="activeKey">
-          <van-sidebar-item title="标签名称"></van-sidebar-item>
-          <van-sidebar-item title="标签名称"></van-sidebar-item>
-          <van-sidebar-item title="标签名称"></van-sidebar-item>
-
-        </van-sidebar>
-
-        <el-container>
-          <el-aside width="250px">
-
-            <button @click="gotolink2" v-bind:class="{ button: selected3, buttonselected: selected4 }">字段总表</button>
-            <button @click="gotolink3" v-bind:class="{ button: selected5, buttonselected: selected6 }">字段表模板</button>
-
-          </el-aside>
 <!--          <div class="line" />-->
 
           <el-main>
@@ -62,15 +53,8 @@
 
             </div>
           </el-main>
-        </el-container>
-      </el-tab-pane>
-      <el-tab-pane label="模型列表" name="fifth">模型列表</el-tab-pane>
-      <el-tab-pane label="管理" name="sixth">管理</el-tab-pane>
-
-    </el-tabs>
-    <div class="yema">
+    </el-container>
 
-    </div>
   </div>
 </template>
 
@@ -300,6 +284,8 @@ export default {
   font-weight: 900
 }
 
-
+.el-menu-vertical-demo{
+  font-weight: bold;
+}
 .container {  }
 </style>

+ 0 - 2
src/views/system/fieldDerive.vue

@@ -107,10 +107,8 @@
         </el-tabs>
       </el-main>
     </el-container>
-    <div class="yema">
 
     </div>
-    </div>
 </template>
 
 <script>

+ 40 - 51
src/views/system/fieldEdit.vue

@@ -1,72 +1,59 @@
 <template>
   <div class="container" style="min-height: 100%; padding-bottom: 100px;">
+    <el-container>
+      <el-aside width="250px">
+        <el-menu
+            default-active="1"
+            class="el-menu-vertical-demo"
+        >
+          <el-menu-item  @click="gotolink2" class="vertical-center" index="1">
+            <i class="el-icon-location"></i>
+            <span slot="title">字段总表</span>
+          </el-menu-item>
+          <el-menu-item @click="gotolink3" class="vertical-center" index="2">
+            <i class="el-icon-menu"></i>
+            <span slot="title">字段表模板</span>
+          </el-menu-item>
+        </el-menu>
+
+      </el-aside>
 
-    <el-tabs v-model="activeName" @tab-click="handleClick"  stretch>
-      <el-tab-pane label="首页" name="first"  >首页</el-tab-pane>
-      <el-tab-pane label="业务" name="second">
-        业务
-      </el-tab-pane>
-      <el-tab-pane label="合作方" name="third">
-        合作方
 
-      </el-tab-pane>
-
-      <el-tab-pane label="字段列表" name="fourth">
-
-        <van-sidebar v-model="activeKey">
-          <van-sidebar-item title="标签名称"></van-sidebar-item>
-          <van-sidebar-item title="标签名称"></van-sidebar-item>
-          <van-sidebar-item title="标签名称"></van-sidebar-item>
-
-        </van-sidebar>
-
-        <el-container>
-          <el-aside width="250px">
-
-            <button @click="gotolink2" v-bind:class="{ button: selected3, buttonselected: selected4 }">字段总表</button>
-            <button @click="gotolink3" v-bind:class="{ button: selected5, buttonselected: selected6 }">字段表模板</button>
-
-          </el-aside>
 <!--          <div class="line" />-->
 
-          <el-main>
-            <div class="submit_view">
-              <span>编辑字段</span>
-              <el-form  class="model_add_button" ref="form"  label-width="120px">
+      <el-main>
+        <div class="submit_view">
+          <span>编辑字段</span>
+          <el-form  class="model_add_button" ref="form"  label-width="120px">
 <!--                <el-form-item label="字段编号" width="100px">-->
 <!--                  <el-input v-model="fieldNo" style="width:200px"></el-input>-->
 <!--                </el-form-item>-->
-                <el-form-item label="字段名称" width="100px">
-                  <el-input v-model="nameZh" style="width:400px"></el-input>
-                </el-form-item>
-                <el-form-item label="字段类型" width="100px">
-                  <el-input v-model="type" style="width:400px"></el-input>
-                </el-form-item>
-                <el-form-item label="字段逻辑" width="100px">
-                  <el-input v-model="fetchLogic" style="width:400px"></el-input>
-                </el-form-item>
+            <el-form-item label="字段名称" width="100px">
+              <el-input v-model="nameZh" style="width:400px"></el-input>
+            </el-form-item>
+            <el-form-item label="字段类型" width="100px">
+              <el-input v-model="type" style="width:400px"></el-input>
+            </el-form-item>
+            <el-form-item label="字段逻辑" width="100px">
+              <el-input v-model="fetchLogic" style="width:400px"></el-input>
+            </el-form-item>
 <!--                <el-form-item label="创建者 " width="100px">-->
 <!--                  <el-input v-model="createBy" style="width:400px"></el-input>-->
 <!--                </el-form-item>-->
 <!--                <el-form-item label="创建时间" width="100px">-->
 <!--                  <el-input v-model="createTime" style="width:400px"></el-input>-->
 <!--                </el-form-item>-->
-              </el-form>
+          </el-form>
+
+          <el-button class="model_add_button " size="small" round type="primary" @click="submit()">完成</el-button>
+          <el-button class="model_add_button " size="small" round type="primary" @click="return_page()">返回</el-button>
 
-              <el-button class="model_add_button " size="small" round type="primary" @click="submit()">完成</el-button>
-              <el-button class="model_add_button " size="small" round type="primary" @click="return_page()">返回</el-button>
+        </div>
+      </el-main>
 
-            </div>
-          </el-main>
-        </el-container>
-      </el-tab-pane>
-      <el-tab-pane label="模型列表" name="fifth">模型列表</el-tab-pane>
-      <el-tab-pane label="管理" name="sixth">管理</el-tab-pane>
 
-    </el-tabs>
-    <div class="yema">
+    </el-container>
 
-    </div>
   </div>
 </template>
 
@@ -280,6 +267,8 @@ export default {
   font-weight: 900
 }
 
-
+.el-menu-vertical-demo{
+  font-weight: bold;
+}
 .container {  }
 </style>