Jelajahi Sumber

debug分配用户特殊查询报错、修复pagination默认参数错误、清理控制台

Joe 3 tahun lalu
induk
melakukan
380907ef7c

+ 1 - 1
src/components/Pagination/index.vue

@@ -57,7 +57,7 @@ export default {
     },
     pagerCount:{
       type: Number,
-      default: 10
+      default: 7
     },
   },
   computed: {

+ 0 - 1
src/components/SelectDept/index.vue

@@ -50,7 +50,6 @@ export default {
           this.value = response.data[0].id;
           this.$store.selectDeptName = response.data[0].label;
           this.$store.selectDeptId = response.data[0].id;
-          console.log("this.$store",this.$store)
         }
       });
     },

+ 25 - 35
src/views/label/Label_AddUser.vue

@@ -52,7 +52,7 @@
                   size="mini"
                   icon="el-icon-delete"
                   style="margin-left: 6px"
-                  @click="clearLeftQuery"
+                  @click="clearLeftQuery()"
                   >清空</el-button
                 >
               </div>
@@ -139,7 +139,7 @@
                   size="mini"
                   icon="el-icon-delete"
                   style="margin-left: 6px"
-                  @click="clearRightQuery"
+                  @click="clearRightQuery()"
                   >清空</el-button
                 >
               </div>
@@ -151,8 +151,6 @@
                 :resizable="false"
                 height="500"
                 @selection-change="handleSelectionChange"
-                disabled
-                
                 :loading="true"
               >
                 <el-table-column label="已选" :resizable="false">
@@ -311,7 +309,7 @@ export default {
       });
 
     },
-    clearLeftQuery(labelId = null){
+    clearLeftQuery(labelId = this.leftQuery.labelId){
       this.leftQuery =  {
         pageNum: 1,
         pageSize: 10,
@@ -320,7 +318,8 @@ export default {
         phone:null
       }
     },
-    clearRightQuery(labelId = null){
+    clearRightQuery(labelId = this.rightQuery.labelId){
+      console.log(this.rightQuery);
       this.rightQuery =  {
         pageNum: 1,
         pageSize: 10,
@@ -350,36 +349,29 @@ export default {
       this.getLeftData();
       this.getRightData();
     },
-    getLabelUser(id) {
-      this.loading = true;
-
-      selectCustomerLabelInfo({
-        labelId: id,
-      })
-        .then((res) => {
-          if (res.code == 200) {
-            this.notCustomerLabelList = res.data.notCustomerLabelList;
-            this.customerLabelList = res.data.phoneList;
-          } else {
-            throw new Error("");
-          }
-        })
-        .catch(() => {
-          this.loading = false;
-          this.error = true;
-          this.msgError("拉取标签下用户信息失败");
-        });
-    },
-    getLeftUser(id) {
-
-    },
+    // getLabelUser(id) {
+    //   this.loading = true;
+    //   selectCustomerLabelInfo({
+    //     labelId: id,
+    //   })
+    //     .then((res) => {
+    //       if (res.code == 200) {
+    //         this.notCustomerLabelList = res.data.notCustomerLabelList;
+    //         this.customerLabelList = res.data.phoneList;
+    //       } else {
+    //         throw new Error("");
+    //       }
+    //     })
+    //     .catch(() => {
+    //       this.loading = false;
+    //       this.error = true;
+    //       this.msgError("拉取标签下用户信息失败");
+    //     });
+    // },
     toggleLabel(){
       console.log('hahaha');
     },
-    getRightUser() {
-      this.loading = true;
 
-    },
     getLabelList() {
       return sysDeptDemoList().then((res) => {
         if (res.code == 200) {
@@ -389,9 +381,7 @@ export default {
         }
       });
     },
-    handleRight(row) {
-      console.log(row)
-    },
+
     // transfer(originlArr, direction, changeArr) {
       
     //   const query = {