From fad1fb16f112388bebe33aff4cb05d0cf00cf8ae Mon Sep 17 00:00:00 2001 From: "382696293@qq.com" <382696293@qq.com> Date: Thu, 25 Jan 2024 14:01:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E5=91=98=E5=88=97=E8=A1=A8=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=9F=A5=E7=9C=8B=E7=BB=91=E5=AE=9A=E7=9A=84=E4=BB=AA?= =?UTF-8?q?=E5=99=A8=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flossom-ui/src/views/system/member/index.vue | 71 +++++++++++++++++++- 1 file changed, 69 insertions(+), 2 deletions(-) diff --git a/flossom-ui/src/views/system/member/index.vue b/flossom-ui/src/views/system/member/index.vue index 9b32f2d..a66b42c 100644 --- a/flossom-ui/src/views/system/member/index.vue +++ b/flossom-ui/src/views/system/member/index.vue @@ -228,7 +228,13 @@ - + + + @@ -755,7 +786,7 @@ import { uObtainUserScriptLog, delUserScriptLog, obtainUserIntegralLog, - getAllInstrument, + getAllInstrument, listUserInstrument, } from "@/api/system/member"; import Treeselect from "@riophae/vue-treeselect"; import {tagTreeSelect} from "@/api/system/wechatTab"; @@ -885,6 +916,17 @@ export default { orderByColumn: "createTime", isAsc: "desc" }, + // 用户仪器列表 + userInstrumentVisible: false, + userInstrumentQuery: { + total: 0, + pageNum: 1, + pageSize: 10, + userId: null, + userInstrumentList: null, + orderByColumn: "createTime", + isAsc: "desc" + }, // 导出数据选择字段 exportFieldsVisible: false, exportFieldsForm: { @@ -1262,6 +1304,18 @@ export default { this.batchScriptVisible = false; } }, + cancelUserInstrumentDialog() { + this.userInstrumentVisible = false; + this.userInstrumentQuery = { + total: 0, + pageNum: 1, + pageSize: 10, + userId: null, + userInstrumentList: null, + orderByColumn: "createTime", + isAsc: "desc" + } + }, /** 查询部门下拉树结构 */ getDeptTree() { tagTreeSelect({type: 1}).then(response => { @@ -1842,6 +1896,19 @@ export default { this.userScriptLogQuery.total = response.total; }); }, + // 打开用户仪器列表窗口 + viewUserInstrumentDetail(row) { + this.userInstrumentQuery.userId = row.id; + this.getUserInstrumentList(); + this.userInstrumentVisible = true; + }, + // 分页获取 用户消息列表 + getUserInstrumentList() { + listUserInstrument(this.userInstrumentQuery).then(response => { + this.userInstrumentQuery.userInstrumentList = response.rows; + this.userInstrumentQuery.total = response.total; + }); + }, // 删除用户消息 delUserScriptLog(row) { let wxUserScriptLog = {