Selaa lähdekoodia

feat(certManage): 添加证书管理全部类型筛选功能

- 在证书管理页面添加了"全部"按钮,用于显示所有类型的证书
- 修改了type变量的初始值为4,以表示"全部"筛选状态
wzg 11 kuukautta sitten
vanhempi
commit
bafc0bb689
1 muutettua tiedostoa jossa 7 lisäystä ja 1 poistoa
  1. 7 1
      src/views/workStation/certsManage.vue

+ 7 - 1
src/views/workStation/certsManage.vue

@@ -2,6 +2,12 @@
   <div class="full-container-p24">
     <div class="mb20" style="margin-left: 200px">
       <el-button-group class="mr30">
+        <el-button
+          :type="type == 4 ? 'primary' : ''"
+          @click="(currentPage = 1), (type = 4), getCertList()"
+        >
+          全部
+        </el-button>
         <el-button
           :type="type == 0 ? 'primary' : ''"
           @click="(currentPage = 1), (type = 0), getCertList()"
@@ -167,7 +173,7 @@ import _ from "lodash";
 import { subTimeStr } from "../../utils/utils";
 
 const route = useRoute();
-let type = ref(0);
+let type = ref(4);
 let certType = ref(1);
 let tableData = ref([]);
 let total = ref(0);