瀏覽代碼

添加2025年立项项目按钮

SanHQin 4 月之前
父節點
當前提交
3404b65fad
共有 1 個文件被更改,包括 5 次插入3 次删除
  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()
     },