|
@@ -61,7 +61,7 @@
|
|
|
data: [],
|
|
data: [],
|
|
|
show: false,
|
|
show: false,
|
|
|
organizationId: '',
|
|
organizationId: '',
|
|
|
- isHasAccount: false,
|
|
|
|
|
|
|
+ isHasAccount: '',
|
|
|
// 表格列配置
|
|
// 表格列配置
|
|
|
columns: [
|
|
columns: [
|
|
|
{
|
|
{
|
|
@@ -132,24 +132,20 @@
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
async open(isHasAccount) {
|
|
async open(isHasAccount) {
|
|
|
- if (isHasAccount) {
|
|
|
|
|
- this.isHasAccount = isHasAccount;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ this.isHasAccount = isHasAccount;
|
|
|
this.query();
|
|
this.query();
|
|
|
this.show = true;
|
|
this.show = true;
|
|
|
},
|
|
},
|
|
|
/* 表格数据源 */
|
|
/* 表格数据源 */
|
|
|
async datasource({ page, limit, where, order }) {
|
|
async datasource({ page, limit, where, order }) {
|
|
|
- console.log(this.isHasAccount);
|
|
|
|
|
- // if (!this.isHasAccount) {
|
|
|
|
|
- // where['hasAccount'] = 0;
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+
|
|
|
let data = await getUserPage({
|
|
let data = await getUserPage({
|
|
|
...where,
|
|
...where,
|
|
|
...order,
|
|
...order,
|
|
|
pageNum: page,
|
|
pageNum: page,
|
|
|
size: limit,
|
|
size: limit,
|
|
|
- groupId: this.organizationId
|
|
|
|
|
|
|
+ groupId: this.organizationId,
|
|
|
|
|
+ hasAccount:this.isHasAccount||''
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
return data;
|
|
return data;
|