Ver código fonte

添加2025年立项项目按钮

SanHQin 4 meses atrás
pai
commit
3404b65fad
1 arquivos alterados com 5 adições e 3 exclusões
  1. 5 3
      src/views/projectApply/projectApplication.vue

+ 5 - 3
src/views/projectApply/projectApplication.vue

@@ -141,7 +141,8 @@
     <div>
       <div>
         <el-button style="font-size: 16px;"  v-if="$store.state.userInfo.type == 0 || $store.state.userInfo.type == 3" size="mini" :type="!isPromotion?'primary':''" @click="selectAll">全部</el-button>
-        <el-button style="font-size: 16px;" v-if="$store.state.userInfo.type == 0 || $store.state.userInfo.type == 3" size="mini" :type="isPromotion?'primary':''" @click="selectPromotion">2024年立项项目</el-button>
+        <el-button style="font-size: 16px;" v-if="$store.state.userInfo.type == 0 || $store.state.userInfo.type == 3" size="mini" :type="isPromotion == '2024'?'primary':''" @click="selectPromotion('2024')">2024年立项项目</el-button>
+        <el-button style="font-size: 16px;" v-if="$store.state.userInfo.type == 0 || $store.state.userInfo.type == 3" size="mini" :type="isPromotion == '2025'?'primary':''" @click="selectPromotion('2025')">2025年立项项目</el-button>
         <span style="font-size: 12px; margin-left: 10px"
           >共 {{ table.total }} 条</span
         >
@@ -673,9 +674,10 @@ export default {
       this.isPromotion = '';
       this.getData()
     },
-    selectPromotion() {
+    selectPromotion(newValue) {
       console.log("晋级");
-      this.isPromotion = 1;
+      this.isPromotion = newValue;
+      // this.selectInp.year = newValue;
       this.getData()
     },