agilebuilder-ui 1.1.37 → 1.1.38-sit2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{401-9314ce87.js → 401-42cb079f.js} +1 -1
- package/lib/{404-572d631d.js → 404-e5796cd8.js} +1 -1
- package/lib/{iframe-page-87c9c0d0.js → iframe-page-5b503e34.js} +1 -1
- package/lib/{index-79b98485.js → index-f5b5c746.js} +14758 -14629
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +76 -73
- package/lib/{tab-content-iframe-index-070ce653.js → tab-content-iframe-index-9bf6e5fc.js} +1 -1
- package/lib/{tab-content-index-3b98efb4.js → tab-content-index-28133c86.js} +22 -22
- package/lib/{tache-subprocess-history-46442012.js → tache-subprocess-history-7a5bfc89.js} +1 -1
- package/package.json +1 -1
- package/packages/fs-preview/src/fs-preview.vue +8 -3
- package/packages/fs-upload-list/src/fs-upload-list.vue +8 -1
- package/packages/fs-upload-new/src/fs-button-upload.vue +12 -0
- package/packages/fs-upload-new/src/fs-drag-upload.vue +12 -0
- package/packages/fs-upload-new/src/fs-preview-new.vue +25 -5
- package/packages/fs-upload-new/src/fs-upload-new.vue +20 -0
- package/packages/super-grid/src/apis.js +4 -0
- package/packages/super-grid/src/components/grid-radio-input.vue +104 -0
- package/packages/super-grid/src/dynamic-input.vue +48 -25
- package/packages/super-grid/src/formValidatorUtil.js +7 -2
- package/packages/super-grid/src/normal-column-content.vue +9 -1
- package/packages/super-grid/src/row-operation.vue +13 -9
- package/packages/super-grid/src/search-form-item.vue +461 -461
- package/packages/super-grid/src/super-grid.vue +22 -3
- package/packages/super-grid/src/utils.js +16 -2
- package/packages/utils/value-set.js +25 -33
- package/src/api/sso-service.js +2 -1
- package/src/permission.js +2 -1
- package/src/store/modules/user.js +4 -1
- package/src/utils/common-util.js +1 -0
- package/src/utils/permissionAuth.js +7 -5
- package/src/utils/util.js +16 -0
- package/src/views/dsc-component/Sidebar/Item.vue +15 -4
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +10 -2
- package/src/views/layout/components/Menubar/Item.vue +14 -3
- package/src/views/layout/components/Menubar/SidebarItem.vue +9 -1
- package/vite.config.js +1 -2
|
@@ -96,6 +96,7 @@
|
|
|
96
96
|
:grid-data="gridData"
|
|
97
97
|
:page-grid-data="pageGridData"
|
|
98
98
|
:current-page="currentPage"
|
|
99
|
+
:custom-params="controlConfig ? controlConfig.customParams : null"
|
|
99
100
|
@refresh-list="refreshList"
|
|
100
101
|
/>
|
|
101
102
|
<row-operation
|
|
@@ -106,6 +107,7 @@
|
|
|
106
107
|
:is-show="operation.isShow"
|
|
107
108
|
:label="operation.props.label ? operation.props.label : row[column.prop]"
|
|
108
109
|
:on-click="operation.onClick"
|
|
110
|
+
:operation="operation"
|
|
109
111
|
:operation-index="operationIndex"
|
|
110
112
|
:operation-setting="operation.props"
|
|
111
113
|
:event-name="operation.eventName"
|
|
@@ -133,6 +135,7 @@
|
|
|
133
135
|
:additional-param-map="additionalParamMap"
|
|
134
136
|
:additional-settings="additionalSettings"
|
|
135
137
|
:page-context="options?.pageContext"
|
|
138
|
+
:custom-params="controlConfig ? controlConfig.customParams : null"
|
|
136
139
|
/>
|
|
137
140
|
</span>
|
|
138
141
|
<!-- 自定义格式的时候 -->
|
|
@@ -170,6 +173,7 @@
|
|
|
170
173
|
:component-id="componentId"
|
|
171
174
|
:additional-settings="additionalSettings"
|
|
172
175
|
:page-context="options?.pageContext"
|
|
176
|
+
:custom-params="controlConfig ? controlConfig.customParams : null"
|
|
173
177
|
@prohibitToEdit="prohibitToEdit"
|
|
174
178
|
@refresh-list="refreshList"
|
|
175
179
|
/></span>
|
|
@@ -387,7 +391,7 @@ import customFormatter from './custom-formatter'
|
|
|
387
391
|
import RowOperation from './row-operation.vue'
|
|
388
392
|
import apis from './apis'
|
|
389
393
|
import { mapGetters } from 'vuex'
|
|
390
|
-
import { getEntityFieldValue, getParentObjectUtil } from '../../../src/utils/util'
|
|
394
|
+
import { getEntityFieldValue, getParentObjectUtil, formatCustomParams } from '../../../src/utils/util'
|
|
391
395
|
import ViewImageDialog from './view-image-dialog.vue'
|
|
392
396
|
import eventBus from './eventBus'
|
|
393
397
|
import FsPreview from '../../fs-preview'
|
|
@@ -700,6 +704,10 @@ export default {
|
|
|
700
704
|
this.requiredClass = this.isRequired(this.row.$editing) ? 'm-requried' : ''
|
|
701
705
|
},
|
|
702
706
|
mounted() {
|
|
707
|
+
if (this.controlConfig) {
|
|
708
|
+
const gridParams = store.get(this.listCode)
|
|
709
|
+
formatCustomParams(this.controlConfig.customParams, gridParams.pageContext, this.row)
|
|
710
|
+
}
|
|
703
711
|
// 监听取消自定义编辑事件
|
|
704
712
|
eventBus.$on('clearTableAllStartEditing', () => {
|
|
705
713
|
this.clearAllEditing()
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<!--将@click改为@mousedown.native是因为操作列保存按钮时事件和input等组件的@blur冲突,导致保存需要保存两次,因为
|
|
3
3
|
@blur先于@click执行的,所以只会执行@blur,@click就失效了,@mousedown是先于@blur执行的-->
|
|
4
|
-
<span :style="myStyle">
|
|
4
|
+
<span class="table-operation-row-btn" :style="myStyle">
|
|
5
5
|
<template v-if="isShowButton()">
|
|
6
6
|
<el-tooltip :disabled="tooltipDisabled" :content="label" placement="top">
|
|
7
|
-
<template v-if="operationSettingData
|
|
7
|
+
<template v-if="operationSettingData?.permission">
|
|
8
8
|
<component
|
|
9
9
|
v-bind="operationSettingData"
|
|
10
10
|
:is="isElementType"
|
|
@@ -77,9 +77,13 @@ export default {
|
|
|
77
77
|
type: String,
|
|
78
78
|
default: null,
|
|
79
79
|
},
|
|
80
|
+
operation: {
|
|
81
|
+
type: Object,
|
|
82
|
+
default: () => ({}),
|
|
83
|
+
},
|
|
80
84
|
operationSetting: {
|
|
81
85
|
type: Object,
|
|
82
|
-
default:
|
|
86
|
+
default: () => ({}),
|
|
83
87
|
},
|
|
84
88
|
operationIndex: {
|
|
85
89
|
type: Number,
|
|
@@ -148,16 +152,16 @@ export default {
|
|
|
148
152
|
},
|
|
149
153
|
// 后置图标
|
|
150
154
|
suffixIcon() {
|
|
151
|
-
if(['right'].includes(this.
|
|
155
|
+
if(['right'].includes(this.operationSetting.iconPosition)) return this.operationSetting.iconValue
|
|
152
156
|
return undefined
|
|
153
157
|
},
|
|
154
158
|
// 是否显示文字按钮 > 图标模式
|
|
155
159
|
isTextIcon() {
|
|
156
160
|
if (this.isTableBtnLinkShow) {
|
|
157
|
-
if (this.
|
|
161
|
+
if (this.operationSetting.isTextIcon === undefined) {
|
|
158
162
|
return this.isSaveRow || this.isDeleteRow || this.isEditRow || this.isRestoreRow
|
|
159
163
|
}
|
|
160
|
-
return this.
|
|
164
|
+
return this.operationSetting.isTextIcon
|
|
161
165
|
} else {
|
|
162
166
|
return false
|
|
163
167
|
}
|
|
@@ -172,14 +176,14 @@ export default {
|
|
|
172
176
|
},
|
|
173
177
|
// 是否自动开启表格 按钮 转 文字按钮
|
|
174
178
|
isTableBtnLinkShow() {
|
|
175
|
-
if (this.operationSetting
|
|
179
|
+
if (this.operationSetting?.text) return true
|
|
176
180
|
if (this.isTableBtnLink && this.elementType === 'el-button') {
|
|
177
|
-
return [this.operationSetting
|
|
181
|
+
return [this.operationSetting?.text, this.operationSetting?.plain, this.operationSetting?.round].every(v => v === undefined)
|
|
178
182
|
}
|
|
179
183
|
return false
|
|
180
184
|
},
|
|
181
185
|
operationSettingData() {
|
|
182
|
-
const dataList = { ...this.operationSetting }
|
|
186
|
+
const dataList = { ...(this.operationSetting ?? {}) }
|
|
183
187
|
if (this.isTableBtnLinkShow) {
|
|
184
188
|
dataList.underline = false
|
|
185
189
|
delete dataList.text
|