فهرست منبع

修改分配组织的分页bug

“yueshang” 1 سال پیش
والد
کامیت
85ff5ae3a3
1فایلهای تغییر یافته به همراه14 افزوده شده و 6 حذف شده
  1. 14 6
      src/views/backend/remindInfo/index.vue

+ 14 - 6
src/views/backend/remindInfo/index.vue

@@ -560,6 +560,7 @@ export default {
         donetext: null,
         fileUrls: [],
       },
+
       // 表单校验
       rules: {
         remindTitle: [
@@ -580,6 +581,8 @@ export default {
       openSeedialog2: false, //已接受和信息反馈
       openSeeComplete: false, //完成的弹窗
       clickComplete: {}, //完成自动显示的数据
+      isFenPeiOrg:false,//是否是分配组织进入的
+      seeId:null
     };
   },
   created() {
@@ -612,7 +615,7 @@ export default {
       });
     },
     /** 查询列表 */
-    getList(seeId) {
+    getList(val) {
       this.list = [];
       this.loading = true;
       this.queryParams.userId = this.$store.state.user.id;
@@ -637,13 +640,13 @@ export default {
           this.queryParams.reciver =
             this.userType > 10000 ? this.streetId : this.userType;
           this.queryParams.sender = null;
-        } else if (this.taskStatus != 1 && !seeId) {
+        } else if (this.taskStatus != 1 && !this.isFenPeiOrg) {
           this.queryParams.sender = this.userType;
           this.queryParams.reciver = null;
-        } else if (seeId) {
+        } else if (this.isFenPeiOrg) {
           this.queryParams.sender = null;
           this.queryParams.reciver = null;
-          this.queryParams.remindInfoId = seeId;
+          this.queryParams.remindInfoId = this.seeId;
         }
         getRemindBroadPage(this.queryParams).then((response) => {
           this.loading = false;
@@ -764,8 +767,11 @@ export default {
     handleSeeOrg(row) {
       //查看分配组织
       this.selectedTab = "type2";
-      this.taskStatus = "2";
-      this.getList(row.id);
+      this.taskStatus = "2"
+      console.log('row.id', row.id);
+      this.isFenPeiOrg = true;
+      this.seeId  = row.id
+      this.getList();
     },
     /** 取消按钮 */
     cancelComplete() {
@@ -852,6 +858,8 @@ export default {
     clickTab(e) {
       const name = e._props.name;
       this.queryParams.pageNo = 1;
+      this.isFenPeiOrg = false;
+      this.seeId = null;
       this.list = [];
       switch (name) {
         case "type0":