diff --git a/backend/src/main/resources/db/migration/V38__1.13.sql b/backend/src/main/resources/db/migration/V38__1.13.sql index 6161690bbf..0817d25c1d 100644 --- a/backend/src/main/resources/db/migration/V38__1.13.sql +++ b/backend/src/main/resources/db/migration/V38__1.13.sql @@ -75,3 +75,6 @@ INSERT INTO `system_parameter` (`param_key`, `param_value`, `type`, `sort`) VALU ALTER TABLE `panel_group` ADD COLUMN `update_by` varchar(255) NULL COMMENT '更新人' AFTER `status`, ADD COLUMN `update_time` bigint(13) NULL COMMENT '更新时间' AFTER `update_by`; + +ALTER TABLE `sys_task_email` +ADD COLUMN `view_ids` varchar(255) NULL COMMENT '视图ID结婚' AFTER `task_id`; diff --git a/frontend/src/components/canvas/components/Editor/ContextMenu.vue b/frontend/src/components/canvas/components/Editor/ContextMenu.vue index 04baa0f20d..79496f3a34 100644 --- a/frontend/src/components/canvas/components/Editor/ContextMenu.vue +++ b/frontend/src/components/canvas/components/Editor/ContextMenu.vue @@ -30,7 +30,8 @@ export default { copyData: null, editFilter: [ 'view', - 'custom' + 'custom', + 'custom-button' ] } }, @@ -56,6 +57,10 @@ export default { bus.$emit('component-dialog-edit') } + if (this.curComponent.type === 'custom-button') { + bus.$emit('button-dialog-edit') + } + // 编辑样式组件 if (this.curComponent.type === 'v-text' || this.curComponent.type === 'de-rich-text' || this.curComponent.type === 'rect-shape') { diff --git a/frontend/src/components/canvas/components/Editor/EditBar.vue b/frontend/src/components/canvas/components/Editor/EditBar.vue index 83ce3b216c..2ac224e3e1 100644 --- a/frontend/src/components/canvas/components/Editor/EditBar.vue +++ b/frontend/src/components/canvas/components/Editor/EditBar.vue @@ -82,7 +82,8 @@ export default { linkageActiveStatus: false, editFilter: [ 'view', - 'custom' + 'custom', + 'custom-button' ], timer: null } @@ -216,6 +217,9 @@ export default { edit() { if (this.curComponent.type === 'custom') { bus.$emit('component-dialog-edit', 'update') + } + else if (this.curComponent.type === 'custom-button') { + bus.$emit('button-dialog-edit') } else if (this.curComponent.type === 'v-text' || this.curComponent.type === 'de-rich-text' || this.curComponent.type === 'rect-shape') { bus.$emit('component-dialog-style') } else { bus.$emit('change_panel_right_draw', true) } diff --git a/frontend/src/components/canvas/components/Editor/SettingMenu.vue b/frontend/src/components/canvas/components/Editor/SettingMenu.vue index 2fb4132f52..bb1dfb377c 100644 --- a/frontend/src/components/canvas/components/Editor/SettingMenu.vue +++ b/frontend/src/components/canvas/components/Editor/SettingMenu.vue @@ -60,7 +60,8 @@ export default { hyperlinksSetVisible: false, editFilter: [ 'view', - 'custom' + 'custom', + 'custom-button' ] } }, @@ -72,6 +73,8 @@ export default { edit() { if (this.curComponent.type === 'custom') { bus.$emit('component-dialog-edit', 'update') + }else if (this.curComponent.type === 'custom-button') { + bus.$emit('button-dialog-edit') } else if (this.curComponent.type === 'v-text' || this.curComponent.type === 'de-rich-text' || this.curComponent.type === 'rect-shape') { bus.$emit('component-dialog-style') } else { bus.$emit('change_panel_right_draw', true) } diff --git a/frontend/src/components/widget/DeWidget/DeButton.vue b/frontend/src/components/widget/DeWidget/DeButton.vue index 0ff872c515..e9a309cae9 100644 --- a/frontend/src/components/widget/DeWidget/DeButton.vue +++ b/frontend/src/components/widget/DeWidget/DeButton.vue @@ -4,6 +4,7 @@ v-if="options!== null && options.attrs!==null" :type="options.attrs.type" :round="options.attrs.round" + :plain="options.attrs.plain" :size="size" > {{ options.value }} diff --git a/frontend/src/components/widget/DeWidget/SearchButton.vue b/frontend/src/components/widget/DeWidget/SearchButton.vue new file mode 100644 index 0000000000..f003d7d679 --- /dev/null +++ b/frontend/src/components/widget/DeWidget/SearchButton.vue @@ -0,0 +1,29 @@ + + + + + \ No newline at end of file diff --git a/frontend/src/components/widget/serviceImpl/ButtonSureServiceImpl.js b/frontend/src/components/widget/serviceImpl/ButtonSureServiceImpl.js index 5b0f627444..e107121d86 100644 --- a/frontend/src/components/widget/serviceImpl/ButtonSureServiceImpl.js +++ b/frontend/src/components/widget/serviceImpl/ButtonSureServiceImpl.js @@ -2,15 +2,15 @@ import { WidgetService } from '../service/WidgetService' const leftPanel = { icon: 'iconfont icon-chaxunsousuo', - label: '确定', + label: '查询按钮', defaultClass: 'time-filter' } const drawPanel = { - type: 'custom', + type: 'custom-button', style: { - width: 300, - height: 47, + width: 150, + height: 60, fontSize: 14, fontWeight: 500, lineHeight: '', @@ -21,9 +21,12 @@ const drawPanel = { options: { attrs: { type: 'primary', - round: true + round: false, + plain: true, + customRange: false, + filterIds: [] }, - value: '测试按钮' + value: '查询' }, component: 'de-button', miniSizex: 1, @@ -35,6 +38,7 @@ class ButtonSureServiceImpl extends WidgetService { Object.assign(options, { name: 'buttonSureWidget' }) super(options) this.filterDialog = false + this.buttonDialog = true this.showSwitch = false } diff --git a/frontend/src/styles/index.scss b/frontend/src/styles/index.scss index 45f0623dee..a75619b95b 100644 --- a/frontend/src/styles/index.scss +++ b/frontend/src/styles/index.scss @@ -110,6 +110,23 @@ div:focus { } } +.de-button-dialog { + min-width: 250px !important; + width: 30% !important; + + .el-dialog__header { + padding: 10px 20px !important; + + .el-dialog__headerbtn { + top: 15px !important; + } + } + + .el-dialog__body { + padding: 1px 15px !important; + } +} + .de-style-dialog { width: 600px !important; diff --git a/frontend/src/views/panel/edit/index.vue b/frontend/src/views/panel/edit/index.vue index 8d7b66e6d9..9ac46d8471 100644 --- a/frontend/src/views/panel/edit/index.vue +++ b/frontend/src/views/panel/edit/index.vue @@ -238,6 +238,25 @@ + + + + + + +
+ + + + + + + + + 默认关联全部过滤组件 + + + + + + + + + + + 确定 + 取消 + + +
+ + + \ No newline at end of file diff --git a/frontend/src/views/panel/filter/index.vue b/frontend/src/views/panel/filter/index.vue index 54cc505566..c10dbf2962 100644 --- a/frontend/src/views/panel/filter/index.vue +++ b/frontend/src/views/panel/filter/index.vue @@ -59,10 +59,10 @@ export default { 'numberSelectWidget', 'numberSelectGridWidget', 'numberRangeWidget' + ], + '按钮': [ + 'buttonSureWidget' ] - // '按钮': [ - // 'buttonSureWidget' - // ] } } },