|
@@ -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 = {
|