wenbobowen 4 lat temu
rodzic
commit
ddb0886f6a
1 zmienionych plików z 10 dodań i 8 usunięć
  1. 10 8
      src/views/ToConfigure/components/noticeConfig.vue

+ 10 - 8
src/views/ToConfigure/components/noticeConfig.vue

@@ -7,19 +7,19 @@
           <el-button size="medium" :class="{'is-active':activeTab===0}" @click="activeTab=0">未启用</el-button>
           <el-button size="medium" :class="{'is-active':activeTab===-1}" @click="activeTab=-1">全部</el-button>
         </el-button-group>
-        <!-- <div class="quickScreen">
+        <div class="quickScreen">
           <span>快速筛选:</span>
           <span
             class="item"
-            :class="quickScreenType == 'all' && 'active'"
-            @click="quickScreenHandle('all')"
+            :class="quickScreenType == 'ALL' && 'active'"
+            @click="quickScreenHandle('ALL')"
           >全部</span>
           <span
             class="item"
-            :class="quickScreenType == 'owner' && 'active'"
-            @click="quickScreenHandle('owner')"
+            :class="quickScreenType == 'MINE' && 'active'"
+            @click="quickScreenHandle('MINE')"
           >我创建的</span>
-        </div> -->
+        </div>
       </div>
       <el-popover
         placement="bottom"
@@ -169,7 +169,7 @@ export default {
       bugImg: bugImg,
       disabled: false,
       copy: false,
-      quickScreenType: 'all',
+      quickScreenType: 'ALL',
       visibleModify: false, // 添加修改弹框
       modifyType: 'require', // 弹框类型
       modifyData: null, // 当前修改的通知
@@ -207,12 +207,14 @@ export default {
   methods: {
     quickScreenHandle(key) {
       this.quickScreenType = key
+      this.getBizNoticeSettingList()
     },
     async getBizNoticeSettingList() { // 获取列表
       const params = {
         bizId: this.bizId,
         pageIndex: this.pages.pageIndex,
-        pageSize: this.pages.pageSize
+        pageSize: this.pages.pageSize,
+        filterType: this.quickScreenType
       }
       if (this.activeTab !== -1) {
         params.isEnable = this.activeTab