Browse Source

提交代码

zhangli 1 year ago
parent
commit
a3e1fb8a0e

+ 2 - 1
src/views/modules/knowledge/aMixin/mixin.js

@@ -58,6 +58,7 @@ export default (deleteTitle) => {
       },
       // 重置
       handleResetClick(isNeedReload = '') {
+        let that=this
         this.queryParam = Object.assign({},this.$options.data().queryParam)
         this.createTime = []
         this.operatorTime = []
@@ -66,7 +67,7 @@ export default (deleteTitle) => {
           this.queryParam.categoryId = ''
         }
         if(isNeedReload == true) {
-          setTimeout(() => (this.reloadTable(),this.isShowButton = true), 500)
+          setTimeout(() => (that.reloadTable(),that.isShowButton = true), 500)
         }
       },
       // 删除

+ 17 - 0
src/views/modules/knowledge/config/bannerAddEdit.vue

@@ -33,6 +33,10 @@
                     <div>*分类</div>
                     <a-form-model-item prop="classify">
                       <a-cascader :options="classifyList" 
+                      :popupStyle="{
+                        maxWidth: widthVar + 'px',
+                        'overflow-x': 'auto'
+                      }"
                                   v-model="bannerForm.classify"
                                   :fieldNames="{ label: 'name', value: 'pkId', children: 'children' }"
                                   placeholder="请选择"
@@ -168,6 +172,19 @@ export default {
       this.headers['Authorization'] = 'Bearer ' + token
     }
   },
+  mounted(){
+    // 计算
+    let innerWidth = window.innerWidth
+    let that=this
+    setTimeout(() => {
+      that.widthVar = innerWidth*0.6
+    }, 1000);
+    document.onclick=function(element){
+      if(element.target.className.indexOf('ant-cascader-menu-item')>-1){
+        document.querySelector('.ant-cascader-menus').scrollLeft = 20480
+      }
+    }
+  },
   deactivated() {
     this.$refs.bannerRef.clearValidate()
   },

+ 1 - 1
src/views/modules/knowledge/config/bannerList.vue

@@ -54,7 +54,7 @@
                     </a-range-picker>
                   </a-form-item>
                   <div style="display:flex;justify-content:center;margin-top: 8px;">
-                    <a-button @click="handleResetClick">重置</a-button>
+                    <a-button @click="handleResetClick(true)">重置</a-button>
                     <a-button type="primary" @click="handleSearchClick">查询</a-button>
                   </div>
                   <!-- <div style="width:80%;display:flex;flex-wrap:wrap;">

+ 1 - 1
src/views/modules/knowledge/news/newsList.vue

@@ -43,7 +43,7 @@
                     </a-range-picker>
                   </a-form-item>
                   <div style="display:flex;justify-content:center;margin-top: 8px;">
-                    <a-button @click="handleResetClick">重置</a-button>
+                    <a-button @click="handleResetClick(true)">重置</a-button>
                     <a-button type="primary" @click="handleSearchClick">查询</a-button>
                   </div>
                   <!-- <div style="width:80%;display:flex;flex-wrap:wrap;">

+ 1 - 1
src/views/modules/knowledge/warehouse/auditManageList.vue

@@ -70,7 +70,7 @@
                     <a-input class="set-input" v-model="queryParam.author" placeholder="请输入" />
                   </a-form-item>
                   <div style="display:flex;justify-content:center;margin-top: 8px;">
-                    <a-button @click="handleResetClick">重置</a-button>
+                    <a-button @click="handleResetClick(true)">重置</a-button>
                     <a-button type="primary" @click="handleSearchClick">查询</a-button>
                   </div>
                   <!-- <div style="width:80%;;display:flex;flex-wrap:wrap;">

+ 1 - 1
src/views/modules/knowledge/warehouse/knowledgeLabelList.vue

@@ -47,7 +47,7 @@
                     </a-range-picker>
                   </a-form-item>
                   <div style="display:flex;justify-content:flex-end;margin-top: 8px;">
-                    <a-button @click="handleResetClick">重置</a-button>
+                    <a-button @click="handleResetClick(true)">重置</a-button>
                     <a-button type="primary" @click="handleSearchClick">查询</a-button>
                   </div>
                 </a-form>

+ 1 - 1
src/views/modules/knowledge/warehouse/knowledgeManageList.vue

@@ -60,7 +60,7 @@
                     </a-range-picker>
                   </a-form-item>
                   <div style="display:flex;justify-content:center;margin-top: 8px;">
-                    <a-button @click="handleResetClick">重置</a-button>
+                    <a-button @click="handleResetClick(true)">重置</a-button>
                     <a-button type="primary" @click="handleSearchClick">查询</a-button>
                   </div>
                   <!-- <div style="width:80%;;display:flex;flex-wrap:wrap;">