From 8388f0199ff66eb6d6d3718de0f1b645abe1bd53 Mon Sep 17 00:00:00 2001 From: zhc077 <565291854> Date: Tue, 3 Jan 2023 18:06:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8F=AD=E7=BB=84=E7=AE=A1=E7=90=86=20?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9=2012.230?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/system/User2ListRef.vue | 80 ++++++++++++------- .../src/views/team/GroupxMemberList.vue | 65 ++------------- .../views/team/modules/GroupxMemberModal.vue | 62 ++------------ .../src/views/team/modules/GroupxModal.vue | 2 +- .../system/controller/SysUserController.java | 28 +++---- .../controller/GroupxMemberController.java | 16 ++++ .../modules/team/entity/GroupxMember.java | 3 +- 7 files changed, 96 insertions(+), 160 deletions(-) diff --git a/ant-design-vue-jeecg/src/views/system/User2ListRef.vue b/ant-design-vue-jeecg/src/views/system/User2ListRef.vue index 2462d157..3258a38d 100644 --- a/ant-design-vue-jeecg/src/views/system/User2ListRef.vue +++ b/ant-design-vue-jeecg/src/views/system/User2ListRef.vue @@ -11,14 +11,17 @@ @@ -40,10 +43,12 @@ import JSuperQuery from '@/components/jeecg/JSuperQuery' import JThirdAppButton from '@/components/jeecgbiz/thirdApp/JThirdAppButton' import UserModalDetail from './modules/UserModalDetail' import {filterObj} from "@/utils/util"; +import {mixinDevice} from '@/utils/mixin' + export default { name: "User2ListRef", - mixins: [JeecgListMixin], + mixins: [JeecgListMixin, mixinDevice], components: { JThirdAppButton, SysUserAgentModal, @@ -58,7 +63,7 @@ export default { return { description: '这是用户管理页面', queryParam: {}, - groupxId:'', + groupId:'', recycleBinVisible: false, 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: { - syncUser: "/act/process/extActProcess/doSyncUser", - listByDepartId: "/sys/user/listByDepartId", - delete: "/sys/user/delete", - deleteBatch: "/sys/user/deleteBatch", - exportXlsUrl: "/sys/user/exportXls", - importExcelUrl: "sys/user/importExcel", + list: "/sys/user/listByDepartId", + }, + loadRouteType: false, + dictOptions:{ + }, + /* 分页参数 */ + 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: { @@ -158,23 +171,24 @@ export default { return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; } }, - created() { - this.loadData(); - }, + // created() { + // this.loadData(); + // }, methods: { // valueChange(value) { // if (value) this.loadData() // }, + //加载传递参数 loadParameter() { if (this.loadRouteType === false) { - this.groupxId = this.$router. + this.groupId = this.$route.query.groupxId; this.loadRouteType = true; } }, - loadData2(groupxId) { - alert("loadData groupxId:"+groupxId) - if (!this.url.listByDepartId) { + loadData(arq) { + // alert("loadData groupId:"+arq) + if (!this.url.list) { this.$message.error("请设置url.list属性!") return } @@ -182,11 +196,12 @@ export default { // if (arg === 1) { // this.ipagination.current = 1; // } + this.onClearSelected(); this.loadParameter(); var params = this.getQueryParams();//查询条件 this.loading = true; - console.log("----------------the params:", params); - getAction(this.url.listByDepartId, params).then((res) => { + console.log("----------------loadData()-the params:", params); + getAction(this.url.list, params).then((res) => { if (res.success) { this.dataSource = res.result.records || res.result; if (res.result.total) { @@ -198,10 +213,10 @@ export default { this.$message.warning(res.message) } }).finally(() => { - this.dataSource.forEach(item => { - item['stationName'] = this.stationName; - item['stationNum'] = this.stationNum; - }) + // this.dataSource.forEach(item => { + // item['stationName'] = this.stationName; + // item['stationNum'] = this.stationNum; + // }) this.loading = false }) }, @@ -216,7 +231,7 @@ export default { param.field = this.getQueryField(); param.pageNo = this.ipagination.current; param.pageSize = this.ipagination.pageSize; - param.groupxId = this.groupxId; + param.groupId = this.groupId; return filterObj(param); }, onClearSelected() { @@ -228,6 +243,15 @@ export default { console.log('selectedRowKeys changed: ', selectedRowKeys); this.selectedRowKeys = selectedRowKeys; }, + clickThenSelect(record) { + return { + on: { + click: () => { + this.onSelectChange(record.id.split(","), [record]); + } + } + } + }, } } diff --git a/ant-design-vue-jeecg/src/views/team/GroupxMemberList.vue b/ant-design-vue-jeecg/src/views/team/GroupxMemberList.vue index 6a04cc9f..2ce52a4b 100644 --- a/ant-design-vue-jeecg/src/views/team/GroupxMemberList.vue +++ b/ant-design-vue-jeecg/src/views/team/GroupxMemberList.vue @@ -1,65 +1,10 @@