Jelajahi Sumber

修改bug

修改bug
Sean 3 bulan lalu
induk
melakukan
ef0d36686b

+ 8 - 2
src/views/template/page/pageIndex.vue

@@ -6,7 +6,7 @@
     <div class="FixedModuleBox">
       <menuSector />
     </div>
-    <div class="FixedModuleBox">
+    <div class="FixedMainModuleBox" v-if="this.$store.state.template.pageData.index.length == 0">
       <img src="@/assets/template/creat.png">
       <div>您选择的板块将展示到此区域</div>
     </div>
@@ -179,12 +179,18 @@ export default {
   .FixedModuleBox {
     width: 100%;
     border: 2px dashed #19499F;
+  }
+  .FixedMainModuleBox {
+    width: 100%;
+    border: 2px dashed #19499F;
     font-size: 18px;
     color: #999;
     text-align: center;
     img {
-      margin: 30px 0 20px 0;
+      margin-bottom: 20px;
     }
+    padding: 100px;
+    background: #F5F7FB;
   }
   //模块 end------------------------------------------------------------> 
   //栅格布局 start------------------------------------------------------------> 

+ 2 - 0
src/views/website/WebsiteList.vue

@@ -545,6 +545,8 @@ export default {
       this.getwebsiteColumn()
       //显示网系到弹出窗口
       this.openWindow()
+      //修改添加和编辑窗口的文字提示
+      this.editId = 0;
       //显示提交按钮
       this.editBtn = false;
       //清除错误状态

+ 7 - 1
src/views/website/categoryList.vue

@@ -25,7 +25,7 @@
     </div>
     <div class="layerBoxNoBg">
       <div>
-        <el-button type="primary" @click="openWindow">添加导航池</el-button>
+        <el-button type="primary" @click="addCategoryList">添加导航池</el-button>
       </div>
       <div>
         <el-button @click="clearSearchList">重置</el-button>
@@ -492,6 +492,12 @@ export default {
       //this.clearToServe();
       this.windowStatus = true;
     },
+    //2.1.1 添加导航池
+    addCategoryList(){
+      this.editId = 0;
+      this.editBtn = false;
+      this.openWindow();
+    },
     //2.2 关闭弹出框
     closeWindow(){
       this.windowStatus = false;