|
|
|
@ -42,6 +42,25 @@ |
|
|
|
type: String, |
|
|
|
default: '' |
|
|
|
}, |
|
|
|
lawEDid: { |
|
|
|
type: String, |
|
|
|
default: '' |
|
|
|
}, |
|
|
|
LawEDs: { |
|
|
|
type: Array, |
|
|
|
default: () => [] |
|
|
|
} |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
visible(newVal, oldVal) { |
|
|
|
if (newVal) { |
|
|
|
console.log(`监听的值从 ${oldVal} 变为了 ${newVal}`); |
|
|
|
// 在这里执行你的逻辑 |
|
|
|
this.curPage = 1; |
|
|
|
this.dataList = []; |
|
|
|
this.onRefresh(); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
@ -68,6 +87,16 @@ |
|
|
|
this.$emit('close'); |
|
|
|
}, |
|
|
|
queryList() { |
|
|
|
// 创建一个 Set 来存储唯一的值 |
|
|
|
const uniqueItemsSet = new Set(); |
|
|
|
uniqueItemsSet.add(this.lawEDid); |
|
|
|
this.LawEDs.forEach(item => { |
|
|
|
if (item.id != '') { |
|
|
|
uniqueItemsSet.add(item.id); |
|
|
|
} |
|
|
|
}); |
|
|
|
const setAsString = Array.from(uniqueItemsSet).join(','); |
|
|
|
this.searchParam.notUserId = setAsString; |
|
|
|
this.searchParam.pageNum = (this.curPage-1)*this.searchParam.pageSize; |
|
|
|
queryUsers(this.searchParam, success => { |
|
|
|
this.curPage++; |
|
|
|
|