|
|
@@ -122,10 +122,11 @@ export default {
|
|
|
if (val) this.getSelectUserListByCustomerType();
|
|
|
},
|
|
|
},
|
|
|
- assignUserPostValue: {
|
|
|
+ 'assignUserPostItem.postName': {
|
|
|
handler(val) {
|
|
|
if (val) this.getSelectUserListByPostName();
|
|
|
},
|
|
|
+ deep: true,
|
|
|
},
|
|
|
},
|
|
|
activated() {
|
|
|
@@ -165,6 +166,10 @@ export default {
|
|
|
if (this.assignUserData.length) {
|
|
|
this.assignUserItem = this.assignUserData[0];
|
|
|
this.assignUserValue = this.assignUserItem.nickName;
|
|
|
+ } else {
|
|
|
+ this.assignUserData = [];
|
|
|
+ this.assignUserItem = null;
|
|
|
+ this.assignUserValue = '';
|
|
|
}
|
|
|
} else {
|
|
|
this.assignUserData = [];
|
|
|
@@ -209,6 +214,10 @@ export default {
|
|
|
if (this.assignUserData.length) {
|
|
|
this.assignUserItem = this.assignUserData[0];
|
|
|
this.assignUserValue = this.assignUserItem.nickName;
|
|
|
+ } else {
|
|
|
+ this.assignUserData = [];
|
|
|
+ this.assignUserItem = null;
|
|
|
+ this.assignUserValue = '';
|
|
|
}
|
|
|
} else {
|
|
|
this.assignUserData = [];
|