From 7574eea59bf15762ef569863ef7ce6540bf8b06a Mon Sep 17 00:00:00 2001 From: qianlishi <1432731663@qq.com> Date: Wed, 9 Mar 2022 10:05:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0anji-crud=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AnjiPlus/anji-crud/anji-crud.vue | 249 ++++++++++++------ report-ui/src/mixins/common.js | 1 + report-ui/src/views/accessAuthority/index.vue | 46 +++- report-ui/src/views/accessRole/index.vue | 62 ++++- report-ui/src/views/accessUser/index.vue | 61 ++++- .../bigscreenDesigner/designer/designer.js | 0 .../designer/widget/widget.vue | 15 +- report-ui/src/views/datasource/index.vue | 66 +++-- report-ui/src/views/dict/dict-item.vue | 44 +++- report-ui/src/views/dict/index.vue | 69 ++++- report-ui/src/views/fileManagement/index.vue | 44 +++- report-ui/src/views/reportManage/index.vue | 82 ++++-- report-ui/src/views/resultset/index.vue | 70 +++-- 13 files changed, 593 insertions(+), 216 deletions(-) create mode 100644 report-ui/src/views/bigscreenDesigner/designer/designer.js diff --git a/report-ui/src/components/AnjiPlus/anji-crud/anji-crud.vue b/report-ui/src/components/AnjiPlus/anji-crud/anji-crud.vue index 74cdc33c..60bfe835 100644 --- a/report-ui/src/components/AnjiPlus/anji-crud/anji-crud.vue +++ b/report-ui/src/components/AnjiPlus/anji-crud/anji-crud.vue @@ -147,38 +147,57 @@ -
- - 新增 - 删除 - -
+ + @@ -282,59 +301,108 @@ align="center" fixed="right" label="操作" - :width=" - option.buttons.customButton && - option.buttons.customButton.operationWidth - ? option.buttons.customButton.operationWidth - : 100 - " + :width="option.buttons.rowButtonsWidth || 100" > + @@ -668,6 +736,21 @@ export default { }; this.$emit("handleCustomValue", obj); }, + handlegetLable(item, label) { + if (typeof label == "function") { + return label(item); + } else { + return label; + } + }, + // 是否disabled + isDisabledButton(item, row) { + if (typeof item.isDisable === "function") { + return item.isDisable(row); + } else { + return !!item.disabled; + } + }, // 弹框被关闭时的回调事件 editDialogClosedEvent(value) { // 把列表页中弹框打开标记改成已关闭 diff --git a/report-ui/src/mixins/common.js b/report-ui/src/mixins/common.js index 8ea3bf87..da60b501 100644 --- a/report-ui/src/mixins/common.js +++ b/report-ui/src/mixins/common.js @@ -272,6 +272,7 @@ export default { return { top: top, left: left } }, objToOne (obj) { + console.log(obj) let tmpData = {} for (let index in obj) { if (typeof obj[index] == 'object' && !this.isArrayFn(obj[index])) { diff --git a/report-ui/src/views/accessAuthority/index.vue b/report-ui/src/views/accessAuthority/index.vue index 153aaa66..09aec50c 100755 --- a/report-ui/src/views/accessAuthority/index.vue +++ b/report-ui/src/views/accessAuthority/index.vue @@ -4,7 +4,7 @@ * @Author: qianlishi * @Date: 2021-12-11 14:48:27 * @LastEditors: qianlishi - * @LastEditTime: 2021-12-13 12:20:56 + * @LastEditTime: 2022-03-09 09:22:40 -->