agilebuilder-ui 1.1.3 → 1.1.4-temp2
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/super-ui.css +1 -1
- package/lib/super-ui.js +23173 -23950
- package/lib/super-ui.umd.cjs +71 -70
- package/package.json +1 -1
- package/packages/fs-preview/src/fs-preview.vue +20 -12
- package/packages/fs-upload-list/src/fs-upload-list.vue +22 -19
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload.vue +2 -2
- package/packages/fs-upload-new/src/fs-button-upload.vue +24 -3
- package/packages/fs-upload-new/src/fs-drag-upload.vue +21 -7
- package/packages/fs-upload-new/src/fs-preview-new.vue +37 -38
- package/packages/fs-upload-new/src/fs-upload-new.vue +46 -26
- package/packages/organization-input/src/organization-input.vue +55 -19
- package/packages/super-grid/src/custom-formatter.js +14 -8
- package/packages/super-grid/src/dynamic-input.vue +123 -8
- package/packages/super-grid/src/normal-column-content.vue +5 -0
- package/packages/super-grid/src/normal-column.vue +1 -0
- package/packages/super-grid/src/super-grid.vue +28 -0
- package/src/styles/index.scss +32 -0
- package/src/styles/table.scss +3 -3
- package/src/styles/theme/dark-blue/dark-blue-var.scss +1 -0
- package/src/styles/theme/green/green.scss +1 -0
- package/src/styles/theme/ocean-blue/ocean-blue.scss +1 -0
- package/src/utils/jump-page-utils.js +9 -0
|
@@ -179,6 +179,11 @@ export default {
|
|
|
179
179
|
openTree: {
|
|
180
180
|
type: Boolean,
|
|
181
181
|
default: true
|
|
182
|
+
},
|
|
183
|
+
// 当前表单变量数据信息
|
|
184
|
+
pageModels: {
|
|
185
|
+
type: Object,
|
|
186
|
+
default: null
|
|
182
187
|
}
|
|
183
188
|
},
|
|
184
189
|
data() {
|
|
@@ -214,8 +219,20 @@ export default {
|
|
|
214
219
|
}
|
|
215
220
|
},
|
|
216
221
|
getPropName(prop, isJoinTable, tableName) {
|
|
222
|
+
if (prop && prop.startsWith('${')) {
|
|
223
|
+
// 格式是:${page.xxx} 或 ${data.xxx}
|
|
224
|
+
prop = prop.substring(prop.indexOf('.')+1, prop.length - 1)
|
|
225
|
+
}
|
|
217
226
|
return getPropNameWhenJoinTable(prop, isJoinTable, tableName)
|
|
218
227
|
},
|
|
228
|
+
getPropType(prop) {
|
|
229
|
+
let type = 'data'
|
|
230
|
+
if (prop && prop.startsWith('${')) {
|
|
231
|
+
// 格式是:${page.xxx} 或 ${data.xxx}
|
|
232
|
+
type = prop.substring(2, prop.indexOf('.'))
|
|
233
|
+
}
|
|
234
|
+
return type
|
|
235
|
+
},
|
|
219
236
|
// 清空已选的结果
|
|
220
237
|
emptyOrganizationResult() {
|
|
221
238
|
const orgFields = this.fields
|
|
@@ -225,7 +242,8 @@ export default {
|
|
|
225
242
|
// 人员时:id、name、loginName、email、telephone
|
|
226
243
|
// 部门或工作组时:id、name
|
|
227
244
|
const model = this.getPropName(orgField.model)
|
|
228
|
-
this.
|
|
245
|
+
const propType = this.getPropType(orgField.model)
|
|
246
|
+
this.setValue(model, null, propType)
|
|
229
247
|
})
|
|
230
248
|
this.selectOrganizationAllInfo = {}
|
|
231
249
|
this.selectOrganizationInfo = null
|
|
@@ -255,34 +273,43 @@ export default {
|
|
|
255
273
|
const orgDataType = orgField.type
|
|
256
274
|
const orgSelectData = this.getOrgSelectData(orgDataType, orgData, this.isUserTree(treeType), isMulti)
|
|
257
275
|
const model = this.getPropName(orgField.model)
|
|
258
|
-
this.
|
|
276
|
+
const propType = this.getPropType(orgField.model)
|
|
277
|
+
this.getOrgDataModel(model, orgSelectData, isMulti, orgDataType, isRemove, removeItems, propType)
|
|
259
278
|
})
|
|
260
279
|
}
|
|
261
280
|
},
|
|
262
281
|
/**
|
|
263
282
|
* @param orgDataType 字段属性:id、name、loginName、code、email、telephone
|
|
264
283
|
*/
|
|
265
|
-
getOrgDataModel(model, orgSelectData, isMulti, orgDataType, isRemove, removeItems) {
|
|
284
|
+
getOrgDataModel(model, orgSelectData, isMulti, orgDataType, isRemove, removeItems, propType) {
|
|
266
285
|
if (isMulti) {
|
|
267
286
|
// 表示是替换或添加操作
|
|
268
|
-
const orgResult = this.getModelValue(model)
|
|
287
|
+
const orgResult = this.getModelValue(model, propType)
|
|
269
288
|
// 表示替换结果
|
|
270
289
|
this.selectOrganizationAllInfo[orgDataType] = orgSelectData
|
|
271
|
-
this.setValue(model, orgSelectData)
|
|
290
|
+
this.setValue(model, orgSelectData, propType)
|
|
272
291
|
// 参数分别为:属性名、原来的值、新替换的值
|
|
273
292
|
this.$emit('replace', model, orgResult, orgSelectData)
|
|
274
293
|
} else {
|
|
275
|
-
this.setValue(model, orgSelectData)
|
|
294
|
+
this.setValue(model, orgSelectData, propType)
|
|
276
295
|
}
|
|
277
296
|
},
|
|
278
|
-
getModelValue(model) {
|
|
297
|
+
getModelValue(model, propType) {
|
|
298
|
+
let models = this.models
|
|
299
|
+
if(propType && propType === 'page') {
|
|
300
|
+
models = this.pageModels
|
|
301
|
+
}
|
|
279
302
|
let modelValue = ''
|
|
280
303
|
if (this.isJoinTable === false && model && model.indexOf('.') > 0) {
|
|
281
|
-
const parentObj = this.getParentObject(model,
|
|
304
|
+
const parentObj = this.getParentObject(model, models)
|
|
282
305
|
modelValue = parentObj[model.substring(model.lastIndexOf('.') + 1)]
|
|
283
306
|
} else {
|
|
284
|
-
|
|
285
|
-
|
|
307
|
+
const name = this.getPropName(model)
|
|
308
|
+
if(propType && propType === 'page') {
|
|
309
|
+
modelValue = models?models[name]: null
|
|
310
|
+
} else {
|
|
311
|
+
modelValue = models[name]
|
|
312
|
+
}
|
|
286
313
|
}
|
|
287
314
|
return modelValue
|
|
288
315
|
},
|
|
@@ -469,7 +496,8 @@ export default {
|
|
|
469
496
|
const fieldSetting = fieldSettings[0]
|
|
470
497
|
if (fieldSetting) {
|
|
471
498
|
const model = this.getPropName(fieldSetting.model)
|
|
472
|
-
const
|
|
499
|
+
const propType = this.getPropType(fieldSetting.model)
|
|
500
|
+
const selectInfo = this.getModelValue(model, propType)
|
|
473
501
|
if (selectInfo && selectInfo !== null && selectInfo !== '') {
|
|
474
502
|
this.selectOrganizationInfo = selectInfo
|
|
475
503
|
this.searchField = prop
|
|
@@ -491,20 +519,28 @@ export default {
|
|
|
491
519
|
}
|
|
492
520
|
}
|
|
493
521
|
},
|
|
494
|
-
setValue(model, finallyOrgResult) {
|
|
495
|
-
if
|
|
522
|
+
setValue(model, finallyOrgResult, propType) {
|
|
523
|
+
if(!propType) {
|
|
524
|
+
propType = this.getPropType(model)
|
|
525
|
+
}
|
|
526
|
+
let models = this.models
|
|
527
|
+
if(propType && propType === 'page') {
|
|
528
|
+
models = this.pageModels
|
|
529
|
+
}
|
|
530
|
+
this.setEntityValue(model, finallyOrgResult, models)
|
|
531
|
+
},
|
|
532
|
+
setEntityValue(model, finallyOrgResult, models) {
|
|
533
|
+
if (models) {
|
|
496
534
|
if (this.isJoinTable === false && model && model.indexOf('.') > 0) {
|
|
497
|
-
const parentObj = this.getParentObject(model,
|
|
535
|
+
const parentObj = this.getParentObject(model, models)
|
|
498
536
|
if (parentObj) {
|
|
499
537
|
setEntityFieldValue(parentObj, model.substring(model.lastIndexOf('.') + 1), finallyOrgResult)
|
|
500
|
-
// Vue.set(parentObj, model.substring(model.lastIndexOf('.') + 1), finallyOrgResult)
|
|
501
538
|
}
|
|
502
539
|
} else {
|
|
503
|
-
|
|
504
|
-
setEntityFieldValue(
|
|
505
|
-
// Vue.set(this.models, model, finallyOrgResult)
|
|
540
|
+
const name = this.getPropName(model)
|
|
541
|
+
setEntityFieldValue(models, name, finallyOrgResult)
|
|
506
542
|
}
|
|
507
|
-
console.log('this.value',
|
|
543
|
+
console.log('this.value===models=', models)
|
|
508
544
|
// 调用setValue事件
|
|
509
545
|
this.$emit('setValue', model, finallyOrgResult)
|
|
510
546
|
if (finallyOrgResult === undefined || finallyOrgResult === null || finallyOrgResult === '') {
|
|
@@ -239,16 +239,22 @@ const customFormatter = {
|
|
|
239
239
|
jumpPageJson = this.rowLinkConfigMapping[rowIndex]
|
|
240
240
|
}
|
|
241
241
|
if (jumpPageJson && jumpPageJson !== '') {
|
|
242
|
+
// 解析是否需要显示该超链接
|
|
243
|
+
const jumpPageSetting = JSON.parse(jumpPageJson)
|
|
244
|
+
this.jumpPageLink(column, row, listCode, rowIndex, jumpPageSetting)
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
jumpPageLink(column, row, listCode, rowIndex, jumpPageSetting) {
|
|
248
|
+
if (jumpPageSetting) {
|
|
242
249
|
// 解析是否需要显示该超链接
|
|
243
250
|
let canClick = true
|
|
244
251
|
const gridParams = store.get(listCode)
|
|
245
|
-
|
|
246
|
-
console.log('gupre-grid---clickHyperLink--jumpPageSetting=', jumpPageSetting)
|
|
252
|
+
console.log('super-grid---jumpPageLink--jumpPageSetting=', jumpPageSetting)
|
|
247
253
|
if (jumpPageSetting.beforeClick) {
|
|
248
254
|
const funName = jumpPageSetting.beforeClick
|
|
249
|
-
console.log('
|
|
255
|
+
console.log('super-grid---jumpPageLink--jumpPageSetting.beforeClick=', funName)
|
|
250
256
|
console.log(
|
|
251
|
-
'
|
|
257
|
+
'super-grid---jumpPageLink--gridParams.options[eventCallBack]=',
|
|
252
258
|
gridParams.options['eventCallBack']
|
|
253
259
|
)
|
|
254
260
|
if (
|
|
@@ -281,11 +287,11 @@ const customFormatter = {
|
|
|
281
287
|
if (gridParams.options.extraParam && gridParams.options.extraParam.entityMap) {
|
|
282
288
|
parentFormData = gridParams.options.extraParam.entityMap
|
|
283
289
|
}
|
|
284
|
-
console.log('
|
|
290
|
+
console.log('gridParams.options.extraParam.entityMap', gridParams.options.extraParam)
|
|
285
291
|
|
|
286
292
|
/// 把父页面的pageData传给弹出的页面或新页签
|
|
287
293
|
const copyPageData = JSON.parse(
|
|
288
|
-
JSON.stringify(gridParams.pageContext && gridParams.pageContext.page ? gridParams.pageContext.page : {})
|
|
294
|
+
JSON.stringify(gridParams.pageContext && gridParams.pageContext.entity && gridParams.pageContext.entity.page ? gridParams.pageContext.entity.page : {})
|
|
289
295
|
)
|
|
290
296
|
jumpPageSetting._pageData = copyPageData
|
|
291
297
|
jumpToPage(
|
|
@@ -298,7 +304,7 @@ const customFormatter = {
|
|
|
298
304
|
null,
|
|
299
305
|
parentFormData
|
|
300
306
|
).then((openPageParams) => {
|
|
301
|
-
console.log('doClickHyperLink----
|
|
307
|
+
console.log('doClickHyperLink----openPageParams2222----', openPageParams)
|
|
302
308
|
if (openPageParams) {
|
|
303
309
|
// 点击列表组件中某元素弹出的页面
|
|
304
310
|
if (jumpPageSetting && typeof jumpPageSetting === 'string' && jumpPageSetting !== '') {
|
|
@@ -314,7 +320,7 @@ const customFormatter = {
|
|
|
314
320
|
// 列点击时列属性名
|
|
315
321
|
openPageParams._columnProp = column.prop
|
|
316
322
|
// 通知父页面弹出页面
|
|
317
|
-
|
|
323
|
+
this.$emit('open-page', openPageParams)
|
|
318
324
|
}
|
|
319
325
|
})
|
|
320
326
|
},
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
@input="cellEvent('input', $event, true)"
|
|
141
141
|
/>
|
|
142
142
|
<!--必须有@input ,否则无法输入值-->
|
|
143
|
-
<el-input
|
|
143
|
+
<!-- <el-input
|
|
144
144
|
v-else-if="type === 'input'"
|
|
145
145
|
ref="item"
|
|
146
146
|
v-model="innerValue"
|
|
@@ -159,6 +159,85 @@
|
|
|
159
159
|
<template v-if="isShowScanIcon" #append>
|
|
160
160
|
<SuperIcon iconValue="fa-barcode" @click="scanClick()"></SuperIcon>
|
|
161
161
|
</template>
|
|
162
|
+
</el-input> -->
|
|
163
|
+
<el-input
|
|
164
|
+
v-else-if="type === 'input'"
|
|
165
|
+
ref="item"
|
|
166
|
+
:disabled="disabled"
|
|
167
|
+
:maxlength="controlConfig && controlConfig.maxlength ? controlConfig.maxlength : ''"
|
|
168
|
+
:minlength="controlConfig && controlConfig.minlength ? controlConfig.minlength : ''"
|
|
169
|
+
:placeholder="$t('imatrixUIMessage.pleaseEnterContent')"
|
|
170
|
+
:title="innerValue"
|
|
171
|
+
clearable
|
|
172
|
+
v-model="innerValue"
|
|
173
|
+
@blur="cellEvent('blur', $event)"
|
|
174
|
+
@change="cellEvent('change', $event)"
|
|
175
|
+
@clear="cellEvent('clear', $event)"
|
|
176
|
+
@focus="cellEvent('focus', $event)"
|
|
177
|
+
@input="cellEvent('input', $event, true)"
|
|
178
|
+
>
|
|
179
|
+
<template
|
|
180
|
+
v-if="
|
|
181
|
+
designProperty.iconPosition != 'outer' &&
|
|
182
|
+
((designProperty.preIconType && designProperty.preIconValue) || designProperty.preText)
|
|
183
|
+
"
|
|
184
|
+
#prefix
|
|
185
|
+
>
|
|
186
|
+
<SuperIcon
|
|
187
|
+
v-if="designProperty.preIconType && designProperty.preIconValue"
|
|
188
|
+
:iconType="designProperty.preIconType"
|
|
189
|
+
:iconValue="designProperty.preIconValue"
|
|
190
|
+
@click="doClickwithJumpPage('prefixClick')"
|
|
191
|
+
></SuperIcon>
|
|
192
|
+
<span v-if="designProperty.preText">{{ $t(designProperty.preText) }}</span>
|
|
193
|
+
</template>
|
|
194
|
+
<template
|
|
195
|
+
v-if="
|
|
196
|
+
designProperty.iconPosition == 'outer' &&
|
|
197
|
+
((designProperty.preIconType && designProperty.preIconValue) || designProperty.preText)
|
|
198
|
+
"
|
|
199
|
+
#prepend
|
|
200
|
+
>
|
|
201
|
+
<SuperIcon
|
|
202
|
+
v-if="designProperty.preIconType && designProperty.preIconValue"
|
|
203
|
+
:iconType="designProperty.preIconType"
|
|
204
|
+
:iconValue="designProperty.preIconValue"
|
|
205
|
+
@click="doClickwithJumpPage('prefixClick')"
|
|
206
|
+
></SuperIcon>
|
|
207
|
+
<span v-if="designProperty.preText">{{ $t(designProperty.preText) }}</span>
|
|
208
|
+
</template>
|
|
209
|
+
<template
|
|
210
|
+
v-if="
|
|
211
|
+
designProperty.iconPosition != 'outer' &&
|
|
212
|
+
((designProperty.sufIconType && designProperty.sufIconValue) || designProperty.sufText)
|
|
213
|
+
"
|
|
214
|
+
#suffix
|
|
215
|
+
>
|
|
216
|
+
<SuperIcon
|
|
217
|
+
v-if="designProperty.sufIconType && designProperty.sufIconValue"
|
|
218
|
+
:iconType="designProperty.sufIconType"
|
|
219
|
+
:iconValue="designProperty.sufIconValue"
|
|
220
|
+
@click="doClickwithJumpPage('suffixClick')"
|
|
221
|
+
></SuperIcon>
|
|
222
|
+
<span v-if="designProperty.sufText">{{ $t(designProperty.sufText) }}</span>
|
|
223
|
+
</template>
|
|
224
|
+
<template
|
|
225
|
+
v-if="
|
|
226
|
+
isShowScanIcon ||
|
|
227
|
+
(designProperty.iconPosition == 'outer' &&
|
|
228
|
+
((designProperty.sufIconType && designProperty.sufIconValue) || designProperty.sufText))
|
|
229
|
+
"
|
|
230
|
+
#append
|
|
231
|
+
>
|
|
232
|
+
<SuperIcon v-if="isShowScanIcon" iconValue="fa-barcode" @click="scanClick()"></SuperIcon>
|
|
233
|
+
<SuperIcon
|
|
234
|
+
v-if="designProperty.sufIconType && designProperty.sufIconValue"
|
|
235
|
+
:iconType="designProperty.sufIconType"
|
|
236
|
+
:iconValue="designProperty.sufIconValue"
|
|
237
|
+
@click="doClickwithJumpPage('suffixClick')"
|
|
238
|
+
></SuperIcon>
|
|
239
|
+
<span v-if="designProperty.sufText">{{ $t(designProperty.sufText) }}</span>
|
|
240
|
+
</template>
|
|
162
241
|
</el-input>
|
|
163
242
|
|
|
164
243
|
<el-input
|
|
@@ -346,8 +425,6 @@
|
|
|
346
425
|
:disabled="disabled"
|
|
347
426
|
:inactive-text="getSwitchConfig('inactiveText')"
|
|
348
427
|
:inactive-value="getSwitchConfig('inactiveValue')"
|
|
349
|
-
:active-color="getSwitchConfig('onColor')"
|
|
350
|
-
:inactive-color="getSwitchConfig('offColor')"
|
|
351
428
|
@change="cellEvent('change', $event)"
|
|
352
429
|
@input="cellEvent('input', $event, true)"
|
|
353
430
|
/>
|
|
@@ -442,6 +519,7 @@ import { $emit } from '../../utils/gogocodeTransfer'
|
|
|
442
519
|
import eventBus from './eventBus'
|
|
443
520
|
import { isMobileBrowser } from '../../../src/utils/common-util'
|
|
444
521
|
import { analysisScanValue, setScanAnalysisValue } from './scan-util.ts'
|
|
522
|
+
import customFormatter from './custom-formatter'
|
|
445
523
|
export default {
|
|
446
524
|
name: 'DynamicInput',
|
|
447
525
|
components: {
|
|
@@ -577,6 +655,10 @@ export default {
|
|
|
577
655
|
if (!baseURL) {
|
|
578
656
|
baseURL = window.$vueApp.config.globalProperties.baseURL
|
|
579
657
|
}
|
|
658
|
+
const colConfigure = gridParams.colConfigureMap ? gridParams.colConfigureMap[this.column.prop] : null
|
|
659
|
+
const runtimeInfo = colConfigure && colConfigure.runtime ? colConfigure.runtime : {}
|
|
660
|
+
const designProperty = runtimeInfo.props ? runtimeInfo.props : {}
|
|
661
|
+
console.log('super-grid-dynamicInput--designProperty=', designProperty, 'colConfigure=', colConfigure, 'gridParams.colConfigureMap=', gridParams.colConfigureMap)
|
|
580
662
|
return {
|
|
581
663
|
deptManTree: false, // 是否是部门人员树
|
|
582
664
|
isMultiTree: false, // 是否是多选树
|
|
@@ -638,7 +720,9 @@ export default {
|
|
|
638
720
|
isApk,
|
|
639
721
|
isShowBrowserScan: false,
|
|
640
722
|
isShowScanIcon,
|
|
641
|
-
baseURL
|
|
723
|
+
baseURL,
|
|
724
|
+
colConfigure, // v10字段配置原信息
|
|
725
|
+
designProperty // 字段配置
|
|
642
726
|
}
|
|
643
727
|
},
|
|
644
728
|
computed: {},
|
|
@@ -818,6 +902,7 @@ export default {
|
|
|
818
902
|
eventBus.$off(this.componentId + '-scanDone')
|
|
819
903
|
},
|
|
820
904
|
methods: {
|
|
905
|
+
...customFormatter,
|
|
821
906
|
/**
|
|
822
907
|
* @author: 梁旭
|
|
823
908
|
* @description: 获取提示标题
|
|
@@ -1797,11 +1882,12 @@ export default {
|
|
|
1797
1882
|
} else {
|
|
1798
1883
|
return 0
|
|
1799
1884
|
}
|
|
1800
|
-
} else if (switchProp === 'offColor') {
|
|
1801
|
-
return '#ff4949'
|
|
1802
|
-
} else if (switchProp === 'onColor') {
|
|
1803
|
-
return '#13ce66'
|
|
1804
1885
|
}
|
|
1886
|
+
// else if (switchProp === 'offColor') {
|
|
1887
|
+
// return '#ff4949'
|
|
1888
|
+
// } else if (switchProp === 'onColor') {
|
|
1889
|
+
// return '#13ce66'
|
|
1890
|
+
// }
|
|
1805
1891
|
}
|
|
1806
1892
|
},
|
|
1807
1893
|
scanClick() {
|
|
@@ -1847,6 +1933,35 @@ export default {
|
|
|
1847
1933
|
if (columnRule.required !== undefined) {
|
|
1848
1934
|
this.$emit('change-required', columnRule.required)
|
|
1849
1935
|
}
|
|
1936
|
+
},
|
|
1937
|
+
doClickwithJumpPage(eventName) {
|
|
1938
|
+
let configureObj = this.colConfigure
|
|
1939
|
+
let linkPage = configureObj.props.linkPage
|
|
1940
|
+
console.log('doClickwithJumpPage-----linkPage=', linkPage, 'eventName=', eventName)
|
|
1941
|
+
if (eventName && (eventName === 'click' || eventName === 'prefixClick' || eventName === 'suffixClick' ) && (linkPage && linkPage.jumpPageUrl)) {
|
|
1942
|
+
// 表示有跳转页面配置
|
|
1943
|
+
const jumpJson = JSON.parse(JSON.stringify(linkPage))
|
|
1944
|
+
if (jumpJson && Array.isArray(jumpJson)) {
|
|
1945
|
+
format.multPage = true
|
|
1946
|
+
jumpJson.forEach((item) => {
|
|
1947
|
+
if (
|
|
1948
|
+
item.jumpPageSetting.displayTextJudge &&
|
|
1949
|
+
item.jumpPageSetting.dynamicTags &&
|
|
1950
|
+
item.jumpPageSetting.dynamicTags.length > 0
|
|
1951
|
+
) {
|
|
1952
|
+
item.jumpPageSetting.displayText = item.jumpPageSetting.dynamicTags.join('-#-#')
|
|
1953
|
+
}
|
|
1954
|
+
})
|
|
1955
|
+
} else {
|
|
1956
|
+
if (jumpJson.displayTextJudge && jumpJson.dynamicTags && jumpJson.dynamicTags.length > 0) {
|
|
1957
|
+
jumpJson.displayText = jumpJson.dynamicTags.join('-#-#')
|
|
1958
|
+
}
|
|
1959
|
+
}
|
|
1960
|
+
this.jumpPageLink(this.column, this.row, this.listCode, this.rowIndex, jumpJson)
|
|
1961
|
+
} else {
|
|
1962
|
+
// 表示没有跳转页面配置
|
|
1963
|
+
this.callCustomEvent(eventName)
|
|
1964
|
+
}
|
|
1850
1965
|
}
|
|
1851
1966
|
}
|
|
1852
1967
|
}
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
@refresPortsData="refresPortsData"
|
|
31
31
|
@change-disabled="changeDisabled"
|
|
32
32
|
@change-required="changeRequired"
|
|
33
|
+
@open-page="openPageEvent"
|
|
33
34
|
/>
|
|
34
35
|
<span v-else>
|
|
35
36
|
<span v-if="column.operations" class="grid-operation-buttons">
|
|
@@ -1030,6 +1031,10 @@ export default {
|
|
|
1030
1031
|
},
|
|
1031
1032
|
changeRequired(required) {
|
|
1032
1033
|
this.requiredClass = required? 'm-requried' : ''
|
|
1034
|
+
},
|
|
1035
|
+
openPageEvent(openPageParams) {
|
|
1036
|
+
console.log('normalColumnContent----openPageEvent----', openPageParams)
|
|
1037
|
+
this.$emit('open-page', openPageParams)
|
|
1033
1038
|
}
|
|
1034
1039
|
},
|
|
1035
1040
|
emits: ['refresData', 'refresPortData', 'refresPortsData', 'refresMainTableFields', 'prohibitToEdit']
|
|
@@ -404,6 +404,7 @@ export default {
|
|
|
404
404
|
if (this.options && this.options.configureObj) {
|
|
405
405
|
configureObj = this.options.configureObj
|
|
406
406
|
}
|
|
407
|
+
|
|
407
408
|
let pageContext
|
|
408
409
|
if (this.options && this.options.pageContext) {
|
|
409
410
|
pageContext = this.options.pageContext
|
|
@@ -1278,6 +1279,8 @@ export default {
|
|
|
1278
1279
|
baseURL = window.$vueApp.config.globalProperties.baseURL
|
|
1279
1280
|
}
|
|
1280
1281
|
this.baseURL = baseURL
|
|
1282
|
+
// 封装v10字段配置
|
|
1283
|
+
gridParams.colConfigureMap = this.packageListColumnSetting()
|
|
1281
1284
|
},
|
|
1282
1285
|
changeRowStyle(param) {
|
|
1283
1286
|
// param的格式:{row, rowIndex}
|
|
@@ -3123,6 +3126,31 @@ export default {
|
|
|
3123
3126
|
params.additionalParamMap = params.additionalParamMap || {}
|
|
3124
3127
|
Object.assign(params.additionalParamMap, additionalParamMap)
|
|
3125
3128
|
}
|
|
3129
|
+
},
|
|
3130
|
+
// 封装v10字段配置,key是数据库字段名(属性名),value是该字段的配置
|
|
3131
|
+
packageListColumnSetting() {
|
|
3132
|
+
// key是属性名,value是字段配置
|
|
3133
|
+
let colConfigureMap = {}
|
|
3134
|
+
if(this.configureObj){
|
|
3135
|
+
const colItems = this.configureObj.items
|
|
3136
|
+
if(colItems) {
|
|
3137
|
+
colItems.forEach((colConfigure)=>{
|
|
3138
|
+
const propName = this.getFormPropName(colConfigure.props.base.prop)
|
|
3139
|
+
if(propName){
|
|
3140
|
+
colConfigureMap[propName] = colConfigure
|
|
3141
|
+
}
|
|
3142
|
+
})
|
|
3143
|
+
}
|
|
3144
|
+
}
|
|
3145
|
+
return colConfigureMap
|
|
3146
|
+
},
|
|
3147
|
+
// prop的格式是${data.MY_NAME}
|
|
3148
|
+
getFormPropName(prop) {
|
|
3149
|
+
if (prop && prop.indexOf('${') >= 0) {
|
|
3150
|
+
return prop.substring(prop.indexOf('.') + 1, prop.lastIndexOf('}'))
|
|
3151
|
+
} else {
|
|
3152
|
+
return prop
|
|
3153
|
+
}
|
|
3126
3154
|
}
|
|
3127
3155
|
},
|
|
3128
3156
|
emits: [
|
package/src/styles/index.scss
CHANGED
|
@@ -160,3 +160,35 @@ body .el-table colgroup.gutter {
|
|
|
160
160
|
margin-left: 10px;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
+
// v10图表样式
|
|
164
|
+
.amb-widget-chart {
|
|
165
|
+
--el-card-border-color: var(--el-border-color-light);
|
|
166
|
+
--el-card-border-radius: 4px;
|
|
167
|
+
--el-card-padding: 20px;
|
|
168
|
+
--el-card-bg-color: var(--el-fill-color-blank);
|
|
169
|
+
background-color: var(--el-card-bg-color);
|
|
170
|
+
border: 1px solid var(--el-card-border-color);
|
|
171
|
+
border-radius: var(--el-card-border-radius);
|
|
172
|
+
color: var(--el-text-color-primary);
|
|
173
|
+
overflow: hidden;
|
|
174
|
+
transition: var(--el-transition-duration);
|
|
175
|
+
box-shadow: var(--el-box-shadow-light);
|
|
176
|
+
margin-bottom: 18px;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.amb-widget-chart-header {
|
|
180
|
+
border-bottom: 1px solid var(--el-card-border-color);
|
|
181
|
+
padding: 6px 10px;
|
|
182
|
+
display: flex;
|
|
183
|
+
min-height: 36px;
|
|
184
|
+
}
|
|
185
|
+
.amb-widget-chart-header-item {
|
|
186
|
+
display: flex;
|
|
187
|
+
align-items: center;
|
|
188
|
+
}
|
|
189
|
+
.amb-widget-chart-header-center {
|
|
190
|
+
flex-grow: 1;
|
|
191
|
+
text-align: center;
|
|
192
|
+
vertical-align: middle;
|
|
193
|
+
justify-content: center;
|
|
194
|
+
}
|
package/src/styles/table.scss
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
.ocean-blue,.green,.dark-blue{
|
|
2
2
|
.el-table th.el-table__cell {
|
|
3
|
-
background-color:
|
|
3
|
+
background-color: $th-background-color;
|
|
4
4
|
}
|
|
5
5
|
.el-table.is-scrolling-right th.el-table-fixed-column--right{
|
|
6
|
-
background-color:
|
|
6
|
+
background-color: $th-background-color;
|
|
7
7
|
}
|
|
8
8
|
.el-table.is-scrolling-left th.el-table-fixed-column--left{
|
|
9
|
-
background-color:
|
|
9
|
+
background-color: $th-background-color;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -236,6 +236,15 @@ export function jumpToPage(
|
|
|
236
236
|
paramMap.jumpPageTitle = jumpPageSetting.jumpPageTitle
|
|
237
237
|
// 表单页面
|
|
238
238
|
paramMap.entity = entity
|
|
239
|
+
// 把pageData封装到附加参数中
|
|
240
|
+
let pageData = jumpPageSetting._pageData
|
|
241
|
+
if (!pageData) {
|
|
242
|
+
pageData = {}
|
|
243
|
+
}
|
|
244
|
+
if(!additionalParamMap){
|
|
245
|
+
additionalParamMap = {}
|
|
246
|
+
}
|
|
247
|
+
Object.assign(additionalParamMap, pageData)
|
|
239
248
|
paramMap.additionalParamMap = additionalParamMap
|
|
240
249
|
console.log('paramMap.parentFormData', parentFormData)
|
|
241
250
|
paramMap.parentFormData = parentFormData
|