From 9b51b2a07769ee049937e16dd45d8c36c87dcc3c Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期五, 08 十二月 2023 17:13:01 +0800 Subject: [PATCH] 主数据 枚举配置模板配置 参照配置表格显示问题处理 --- Source/UBCS-WEB/src/views/monitor/log/operateLog.vue | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Source/UBCS-WEB/src/views/monitor/log/operateLog.vue b/Source/UBCS-WEB/src/views/monitor/log/operateLog.vue index b797733..f8aee43 100644 --- a/Source/UBCS-WEB/src/views/monitor/log/operateLog.vue +++ b/Source/UBCS-WEB/src/views/monitor/log/operateLog.vue @@ -14,6 +14,11 @@ @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"> + <template slot="description" slot-scope="scope"> + <avue-text-ellipsis :text="scope.row.description" :height="50"> + <small slot="more">...</small> + </avue-text-ellipsis> + </template> </avue-crud> </basic-container> </template> @@ -58,18 +63,18 @@ label: "鐢ㄦ埛鍚�", prop: "userName", search: true, - width:'100' + width:'120' }, { label: "濮撳悕", prop: "realName", search: true, - width:'100' + width:'120' }, { label: "鐢ㄦ埛ip", prop: "ip", - width:'100' + width:'130' }, { label: "妯″潡", @@ -84,12 +89,15 @@ { label: "鎿嶄綔缁撴灉", prop: "operateResult", - width:'100' + width:'110' }, { label: "鎻忚堪", prop: "description", - width:'300' + span: 24, + minRows: 20, + type: "textarea", + slot: true, }, ] }, @@ -130,14 +138,6 @@ }, underscoreName(key) { return key.replace(/([A-Z])/g, "_$1").toLowerCase(); - }, - beforeOpen(done, type) { - if (["edit", "view"].includes(type)) { - getUsualLogs(this.form.id).then(res => { - this.form = res.data.data; - }); - } - done(); }, currentChange(currentPage){ this.page.currentPage = currentPage; -- Gitblit v1.9.3