浏览代码

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

余思翰 4 个月前
父节点
当前提交
bdf36622d4
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5
    1
      oa-ui/src/views/flowable/form/archiveFile.vue

+ 5
- 1
oa-ui/src/views/flowable/form/archiveFile.vue 查看文件

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

正在加载...
取消
保存