|
|
@ -11,14 +11,17 @@ |
|
|
|
|
|
|
|
|
|
|
|
<a-table |
|
|
|
<a-table |
|
|
|
ref="table" |
|
|
|
ref="table" |
|
|
|
bordered |
|
|
|
|
|
|
|
size="middle" |
|
|
|
size="middle" |
|
|
|
|
|
|
|
bordered |
|
|
|
rowKey="id" |
|
|
|
rowKey="id" |
|
|
|
|
|
|
|
class="j-table-force-nowrap" |
|
|
|
|
|
|
|
:scroll="{x:true}" |
|
|
|
:columns="columns" |
|
|
|
:columns="columns" |
|
|
|
:dataSource="dataSource" |
|
|
|
:dataSource="dataSource" |
|
|
|
:pagination="ipagination" |
|
|
|
:pagination="ipagination" |
|
|
|
:loading="loading" |
|
|
|
:loading="loading" |
|
|
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" |
|
|
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" |
|
|
|
|
|
|
|
:customRow="clickThenSelect" |
|
|
|
@change="handleTableChange"> |
|
|
|
@change="handleTableChange"> |
|
|
|
|
|
|
|
|
|
|
|
</a-table> |
|
|
|
</a-table> |
|
|
@ -40,10 +43,12 @@ import JSuperQuery from '@/components/jeecg/JSuperQuery' |
|
|
|
import JThirdAppButton from '@/components/jeecgbiz/thirdApp/JThirdAppButton' |
|
|
|
import JThirdAppButton from '@/components/jeecgbiz/thirdApp/JThirdAppButton' |
|
|
|
import UserModalDetail from './modules/UserModalDetail' |
|
|
|
import UserModalDetail from './modules/UserModalDetail' |
|
|
|
import {filterObj} from "@/utils/util"; |
|
|
|
import {filterObj} from "@/utils/util"; |
|
|
|
|
|
|
|
import {mixinDevice} from '@/utils/mixin' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: "User2ListRef", |
|
|
|
name: "User2ListRef", |
|
|
|
mixins: [JeecgListMixin], |
|
|
|
mixins: [JeecgListMixin, mixinDevice], |
|
|
|
components: { |
|
|
|
components: { |
|
|
|
JThirdAppButton, |
|
|
|
JThirdAppButton, |
|
|
|
SysUserAgentModal, |
|
|
|
SysUserAgentModal, |
|
|
@ -58,7 +63,7 @@ export default { |
|
|
|
return { |
|
|
|
return { |
|
|
|
description: '这是用户管理页面', |
|
|
|
description: '这是用户管理页面', |
|
|
|
queryParam: {}, |
|
|
|
queryParam: {}, |
|
|
|
groupxId:'', |
|
|
|
groupId:'', |
|
|
|
recycleBinVisible: false, |
|
|
|
recycleBinVisible: false, |
|
|
|
columns: [ |
|
|
|
columns: [ |
|
|
|
/*{ |
|
|
|
/*{ |
|
|
@ -138,19 +143,27 @@ export default { |
|
|
|
// } |
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
], |
|
|
|
], |
|
|
|
// superQueryFieldList: [ |
|
|
|
|
|
|
|
// {type: 'input', value: 'username', text: '用户账号',}, |
|
|
|
|
|
|
|
// {type: 'input', value: 'realname', text: '用户姓名',}, |
|
|
|
|
|
|
|
// {type: 'select', value: 'sex', text: '性别', dictCode: 'sex'}, |
|
|
|
|
|
|
|
// ], |
|
|
|
|
|
|
|
url: { |
|
|
|
url: { |
|
|
|
syncUser: "/act/process/extActProcess/doSyncUser", |
|
|
|
list: "/sys/user/listByDepartId", |
|
|
|
listByDepartId: "/sys/user/listByDepartId", |
|
|
|
}, |
|
|
|
delete: "/sys/user/delete", |
|
|
|
loadRouteType: false, |
|
|
|
deleteBatch: "/sys/user/deleteBatch", |
|
|
|
dictOptions:{ |
|
|
|
exportXlsUrl: "/sys/user/exportXls", |
|
|
|
|
|
|
|
importExcelUrl: "sys/user/importExcel", |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
/* 分页参数 */ |
|
|
|
|
|
|
|
ipagination:{ |
|
|
|
|
|
|
|
current: 1, |
|
|
|
|
|
|
|
pageSize: 5, |
|
|
|
|
|
|
|
pageSizeOptions: ['5', '10', '50'], |
|
|
|
|
|
|
|
showTotal: (total, range) => { |
|
|
|
|
|
|
|
return range[0] + "-" + range[1] + " 共" + total + "条" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
showQuickJumper: true, |
|
|
|
|
|
|
|
showSizeChanger: true, |
|
|
|
|
|
|
|
total: 0 |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
selectedMainId:'', |
|
|
|
|
|
|
|
superFieldList:[], |
|
|
|
|
|
|
|
selectedRowKeys: [], |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
@ -158,23 +171,24 @@ export default { |
|
|
|
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
|
|
|
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() { |
|
|
|
// created() { |
|
|
|
this.loadData(); |
|
|
|
// this.loadData(); |
|
|
|
}, |
|
|
|
// }, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
// valueChange(value) { |
|
|
|
// valueChange(value) { |
|
|
|
// if (value) this.loadData() |
|
|
|
// if (value) this.loadData() |
|
|
|
// }, |
|
|
|
// }, |
|
|
|
|
|
|
|
|
|
|
|
//加载传递参数 |
|
|
|
//加载传递参数 |
|
|
|
loadParameter() { |
|
|
|
loadParameter() { |
|
|
|
if (this.loadRouteType === false) { |
|
|
|
if (this.loadRouteType === false) { |
|
|
|
this.groupxId = this.$router. |
|
|
|
this.groupId = this.$route.query.groupxId; |
|
|
|
this.loadRouteType = true; |
|
|
|
this.loadRouteType = true; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
loadData2(groupxId) { |
|
|
|
loadData(arq) { |
|
|
|
alert("loadData groupxId:"+groupxId) |
|
|
|
// alert("loadData groupId:"+arq) |
|
|
|
if (!this.url.listByDepartId) { |
|
|
|
if (!this.url.list) { |
|
|
|
this.$message.error("请设置url.list属性!") |
|
|
|
this.$message.error("请设置url.list属性!") |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
@ -182,11 +196,12 @@ export default { |
|
|
|
// if (arg === 1) { |
|
|
|
// if (arg === 1) { |
|
|
|
// this.ipagination.current = 1; |
|
|
|
// this.ipagination.current = 1; |
|
|
|
// } |
|
|
|
// } |
|
|
|
|
|
|
|
this.onClearSelected(); |
|
|
|
this.loadParameter(); |
|
|
|
this.loadParameter(); |
|
|
|
var params = this.getQueryParams();//查询条件 |
|
|
|
var params = this.getQueryParams();//查询条件 |
|
|
|
this.loading = true; |
|
|
|
this.loading = true; |
|
|
|
console.log("----------------the params:", params); |
|
|
|
console.log("----------------loadData()-the params:", params); |
|
|
|
getAction(this.url.listByDepartId, params).then((res) => { |
|
|
|
getAction(this.url.list, params).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
if (res.success) { |
|
|
|
this.dataSource = res.result.records || res.result; |
|
|
|
this.dataSource = res.result.records || res.result; |
|
|
|
if (res.result.total) { |
|
|
|
if (res.result.total) { |
|
|
@ -198,10 +213,10 @@ export default { |
|
|
|
this.$message.warning(res.message) |
|
|
|
this.$message.warning(res.message) |
|
|
|
} |
|
|
|
} |
|
|
|
}).finally(() => { |
|
|
|
}).finally(() => { |
|
|
|
this.dataSource.forEach(item => { |
|
|
|
// this.dataSource.forEach(item => { |
|
|
|
item['stationName'] = this.stationName; |
|
|
|
// item['stationName'] = this.stationName; |
|
|
|
item['stationNum'] = this.stationNum; |
|
|
|
// item['stationNum'] = this.stationNum; |
|
|
|
}) |
|
|
|
// }) |
|
|
|
this.loading = false |
|
|
|
this.loading = false |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
@ -216,7 +231,7 @@ export default { |
|
|
|
param.field = this.getQueryField(); |
|
|
|
param.field = this.getQueryField(); |
|
|
|
param.pageNo = this.ipagination.current; |
|
|
|
param.pageNo = this.ipagination.current; |
|
|
|
param.pageSize = this.ipagination.pageSize; |
|
|
|
param.pageSize = this.ipagination.pageSize; |
|
|
|
param.groupxId = this.groupxId; |
|
|
|
param.groupId = this.groupId; |
|
|
|
return filterObj(param); |
|
|
|
return filterObj(param); |
|
|
|
}, |
|
|
|
}, |
|
|
|
onClearSelected() { |
|
|
|
onClearSelected() { |
|
|
@ -228,6 +243,15 @@ export default { |
|
|
|
console.log('selectedRowKeys changed: ', selectedRowKeys); |
|
|
|
console.log('selectedRowKeys changed: ', selectedRowKeys); |
|
|
|
this.selectedRowKeys = selectedRowKeys; |
|
|
|
this.selectedRowKeys = selectedRowKeys; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
clickThenSelect(record) { |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
on: { |
|
|
|
|
|
|
|
click: () => { |
|
|
|
|
|
|
|
this.onSelectChange(record.id.split(","), [record]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|