Selaa lähdekoodia

修改成果归档表单,未选项目时,出现所有成果列表的问题

余思翰 4 kuukautta sitten
vanhempi
commit
bdf36622d4
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5
    1
      oa-ui/src/views/flowable/form/archiveFile.vue

+ 5
- 1
oa-ui/src/views/flowable/form/archiveFile.vue Näytä tiedosto

@@ -2,7 +2,7 @@
2 2
  * @Author: ysh
3 3
  * @Date: 2025-01-09 15:51:01
4 4
  * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2025-01-10 16:36:01
5
+ * @LastEditTime: 2025-01-21 16:45:13
6 6
 -->
7 7
 <template>
8 8
   <div>
@@ -240,6 +240,10 @@ export default {
240 240
       if (this.$store.getters.roles.includes('projectLeader') && !this.$store.getters.roles.includes('leader')) {
241 241
         this.queryParams.projectLeader = this.$store.getters.userId
242 242
       }
243
+      if(!this.queryParams.projectId){
244
+        this.loading = false;
245
+        return
246
+      }
243 247
       listAchievement(this.queryParams).then(res => {
244 248
         this.achiTableData = res.rows;
245 249
         this.total = res.total;

Loading…
Peruuta
Tallenna