agilebuilder-ui 1.1.47 → 1.1.48
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-24b6b525.js → 401-64e37702.js} +1 -1
- package/lib/{404-55dbc936.js → 404-7d89180e.js} +1 -1
- package/lib/{iframe-page-effbb33c.js → iframe-page-4c8bc1d5.js} +1 -1
- package/lib/{index-f3ef09a5.js → index-5c1112e8.js} +4999 -4961
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +87 -87
- package/lib/{tab-content-iframe-index-4c557db3.js → tab-content-iframe-index-0a36be80.js} +1 -1
- package/lib/{tab-content-index-a7350229.js → tab-content-index-9a271908.js} +1 -1
- package/lib/{tache-subprocess-history-f19dd95f.js → tache-subprocess-history-93d013b2.js} +1 -1
- package/package.json +1 -1
- package/packages/fs-preview/src/fs-preview.vue +5 -1
- package/packages/fs-upload-list/src/fs-upload-list.vue +6 -1
- package/packages/fs-upload-new/src/fs-button-upload.vue +8 -1
- package/packages/fs-upload-new/src/fs-drag-upload.vue +8 -1
- package/packages/fs-upload-new/src/fs-upload-new.vue +17 -0
- package/packages/super-grid/src/custom-formatter.js +15 -2
- package/packages/super-grid/src/dynamic-input.vue +34 -6
- package/packages/super-grid/src/formatter.js +5 -1
- package/packages/super-grid/src/normal-column-content.vue +29 -37
- package/src/i18n/langs/cn.js +3 -1
- package/src/i18n/langs/en.js +3 -1
- package/src/utils/jump-page-utils.js +8 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as r, createElementBlock as t, createCommentVNode as o } from "vue";
|
|
2
|
-
import { _ as s } from "./index-
|
|
2
|
+
import { _ as s } from "./index-5c1112e8.js";
|
|
3
3
|
const u = ["src"], f = s({ data: () => ({ src: null }), watch: { $route(n, c) {
|
|
4
4
|
this.src = this.$route.query.src;
|
|
5
5
|
} }, mounted() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as f, c as _, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-
|
|
1
|
+
import { _ as f, c as _, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-5c1112e8.js";
|
|
2
2
|
import { resolveComponent as u, openBlock as l, createBlock as b, withCtx as g, createVNode as v, TransitionGroup as L, createElementBlock as p, Fragment as C, renderList as T, createElementVNode as m, toDisplayString as w, normalizeClass as S, createCommentVNode as y } from "vue";
|
|
3
3
|
const k = { class: "no-redirect" }, A = f({ name: "Breadcrumb", data: () => ({ levelList: null }), computed: { levelListWithTitle() {
|
|
4
4
|
return this.levelList.filter((e) => e.meta.title !== void 0 && e.meta.title !== null);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent as t, openBlock as a, createElementBlock as s, createElementVNode as y, createVNode as l, withCtx as r, createTextVNode as n, toDisplayString as p, createCommentVNode as c, createBlock as h } from "vue";
|
|
2
|
-
import { _ as I } from "./index-
|
|
2
|
+
import { _ as I } from "./index-5c1112e8.js";
|
|
3
3
|
const g = { style: { "padding-bottom": "10px" } }, k = { key: 0, class: "graphDiv" }, N = I({ name: "TacheSubprocessHistory", data: () => ({ type: "graph", workflowId: null }), created() {
|
|
4
4
|
const o = this.$route.query.workflowId;
|
|
5
5
|
o && (this.workflowId = parseInt(o));
|
package/package.json
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
</span>
|
|
12
12
|
</template>
|
|
13
13
|
<div v-if="firstFileName" ref="toolRef" class="fs-preview-tool">
|
|
14
|
+
<slot name="tool-prefix" :item="getFirstFile()"></slot>
|
|
14
15
|
<el-tooltip v-if="enableDelete && !disabled" :content="$t('fsUpload.delete')">
|
|
15
16
|
<super-icon @click="deleteFirst()" iconValue="amb-color-icon-shanchu" />
|
|
16
17
|
</el-tooltip>
|
|
@@ -20,11 +21,12 @@
|
|
|
20
21
|
<el-tooltip v-if="!disabled || !fileSetObj.disabledNoDownload" :content="$t('fsUpload.download')">
|
|
21
22
|
<super-icon @click="downloadFirst()" iconValue="amb-color-icon-xiazai" />
|
|
22
23
|
</el-tooltip>
|
|
24
|
+
<slot name="tool-suffix" :item="getFirstFile()"></slot>
|
|
23
25
|
<el-divider v-if="showMultipleFile" direction="vertical" />
|
|
24
26
|
<el-popover :width="450" trigger="click">
|
|
25
27
|
<template #reference>
|
|
26
28
|
<el-button v-if="showMultipleFile" type="primary" round size="small" @click="showMultiView">
|
|
27
|
-
|
|
29
|
+
{{ $t('fsUpload.more') }}
|
|
28
30
|
<el-icon><ArrowDownBold /></el-icon>
|
|
29
31
|
</el-button>
|
|
30
32
|
</template>
|
|
@@ -53,6 +55,7 @@
|
|
|
53
55
|
<el-link type="primary" v-if="!disabled || !fileSetObj.disabledNoDownload" underline>
|
|
54
56
|
{{ $t('fsUpload.download') }}
|
|
55
57
|
</el-link> -->
|
|
58
|
+
<slot name="tool-more-prefix" :item="item"></slot>
|
|
56
59
|
<el-tooltip v-if="enableDelete" :content="$t('fsUpload.delete')">
|
|
57
60
|
<super-icon @click="deleteFile(item)" iconValue="amb-color-icon-shanchu" />
|
|
58
61
|
</el-tooltip>
|
|
@@ -375,6 +378,7 @@ export default {
|
|
|
375
378
|
})
|
|
376
379
|
}
|
|
377
380
|
}
|
|
381
|
+
return this.fileList
|
|
378
382
|
},
|
|
379
383
|
deleteFirst() {
|
|
380
384
|
const fileInfo = this.getFirstFile()
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
:show-file-list="false"
|
|
22
22
|
:headers="headers"
|
|
23
23
|
:on-success="uploadOnSuccess"
|
|
24
|
+
:on-error="onError"
|
|
24
25
|
:with-credentials="true"
|
|
25
26
|
name="file"
|
|
26
27
|
>
|
|
@@ -310,9 +311,13 @@ export default {
|
|
|
310
311
|
},
|
|
311
312
|
getFileIconByName(fileName) {
|
|
312
313
|
return getFileIconByName(fileName)
|
|
314
|
+
},
|
|
315
|
+
onError(error) {
|
|
316
|
+
$emit(this, 'on-error', error)
|
|
317
|
+
|
|
313
318
|
}
|
|
314
319
|
},
|
|
315
|
-
emits: ['close', 'upload-success', 'delete-success', 'delete', 'update:value', 'close', 'update:value']
|
|
320
|
+
emits: ['close', 'upload-success', 'delete-success', 'delete', 'update:value', 'close', 'update:value', 'on-error']
|
|
316
321
|
}
|
|
317
322
|
</script>
|
|
318
323
|
<style lang="scss" scoped>
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
:before-upload="handleBeforeUpload"
|
|
15
15
|
:before-remove="beforeRemove"
|
|
16
16
|
:on-success="onSuccess"
|
|
17
|
+
:on-error="onError"
|
|
17
18
|
>
|
|
18
19
|
<el-button size="small" type="primary">{{ placeholder }}</el-button>
|
|
19
20
|
<template #tip>
|
|
@@ -40,13 +41,15 @@
|
|
|
40
41
|
</template>
|
|
41
42
|
|
|
42
43
|
<script setup lang="ts">
|
|
43
|
-
import { ref, defineProps } from 'vue'
|
|
44
|
+
import { ref, defineProps, defineEmits } from 'vue'
|
|
44
45
|
import { getSystemFrontendUrl, isPlateSys } from '../../../src/utils/common-util'
|
|
45
46
|
import { getToken } from '../../../src/utils/auth'
|
|
46
47
|
import type { UploadFile, UploadFiles } from 'element-plus'
|
|
47
48
|
import fsPreviewNew from './fs-preview-new.vue'
|
|
48
49
|
import { ElMessage } from 'element-plus'
|
|
49
50
|
import { useI18n } from 'vue-i18n'
|
|
51
|
+
|
|
52
|
+
const emits = defineEmits(['on-error'])
|
|
50
53
|
const { t } = useI18n()
|
|
51
54
|
const props = defineProps({
|
|
52
55
|
openFsUpload: {
|
|
@@ -200,4 +203,8 @@ const onSuccess = (response: any, uploadFile: UploadFile, uploadFiles: UploadFil
|
|
|
200
203
|
})
|
|
201
204
|
props.onSuccess(response, uploadFile, uploadFiles)
|
|
202
205
|
}
|
|
206
|
+
|
|
207
|
+
const onError = (error: any) => {
|
|
208
|
+
emits('on-error', error)
|
|
209
|
+
}
|
|
203
210
|
</script>
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
:before-upload="handleBeforeUpload"
|
|
13
13
|
:on-success="onUploadSuccess"
|
|
14
14
|
:before-remove="beforeRemove"
|
|
15
|
+
:on-error="onError"
|
|
15
16
|
>
|
|
16
17
|
<el-icon class="el-icon--upload"><upload-filled /></el-icon>
|
|
17
18
|
<div class="el-upload__text">{{ placeholder }}</div>
|
|
@@ -38,13 +39,15 @@
|
|
|
38
39
|
|
|
39
40
|
<script setup lang="ts">
|
|
40
41
|
import { UploadFilled } from '@element-plus/icons-vue'
|
|
41
|
-
import { ref, defineProps } from 'vue'
|
|
42
|
+
import { ref, defineProps, defineEmits } from 'vue'
|
|
42
43
|
import { getSystemFrontendUrl, isPlateSys } from '../../../src/utils/common-util'
|
|
43
44
|
import { getToken } from '../../../src/utils/auth'
|
|
44
45
|
import type { UploadFile, UploadFiles } from 'element-plus'
|
|
45
46
|
import fsPreviewNew from './fs-preview-new.vue'
|
|
46
47
|
import { ElMessage } from 'element-plus'
|
|
47
48
|
import { useI18n } from 'vue-i18n'
|
|
49
|
+
|
|
50
|
+
const emits = defineEmits(['on-error'])
|
|
48
51
|
const { t } = useI18n()
|
|
49
52
|
const props = defineProps({
|
|
50
53
|
openFsUpload: {
|
|
@@ -197,4 +200,8 @@ const onUploadSuccess = (response: any, uploadFile: UploadFile, uploadFiles: Upl
|
|
|
197
200
|
})
|
|
198
201
|
props.onSuccess(response, uploadFile, uploadFiles)
|
|
199
202
|
}
|
|
203
|
+
|
|
204
|
+
const onError = (error: any) => {
|
|
205
|
+
emits('on-error', error)
|
|
206
|
+
}
|
|
200
207
|
</script>
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
}"
|
|
18
18
|
@upload-success="onInputUploadSuccess"
|
|
19
19
|
@delete-success="onInputDeleteSuccess"
|
|
20
|
+
@on-error="onError"
|
|
20
21
|
/>
|
|
21
22
|
<fs-button-upload
|
|
22
23
|
v-else-if="!isMobile && displayType === 'button'"
|
|
@@ -135,6 +136,9 @@ import FileUploadInputMobile from './file-upload-mobile/file-upload-input.vue'
|
|
|
135
136
|
import FsUploadList from '../../fs-upload-list/src/fs-upload-list.vue'
|
|
136
137
|
import { ref, defineProps } from 'vue'
|
|
137
138
|
import { getReplaceUrlDomain, isMobileBrowser, isPlateSys } from '../../../src/utils/common-util'
|
|
139
|
+
import { useI18n } from 'vue-i18n'
|
|
140
|
+
import { ElMessage } from 'element-plus'
|
|
141
|
+
const { t } = useI18n()
|
|
138
142
|
const props = defineProps({
|
|
139
143
|
openFsUpload: {
|
|
140
144
|
type: Object,
|
|
@@ -377,5 +381,18 @@ function uploadFileDone(data) {
|
|
|
377
381
|
fileUploadRef.value.uploadFileDone(data)
|
|
378
382
|
}
|
|
379
383
|
}
|
|
384
|
+
|
|
385
|
+
function onError(error) {
|
|
386
|
+
console.error('Upload error:', error)
|
|
387
|
+
if (error.message) {
|
|
388
|
+
let message = JSON.parse(error.message)
|
|
389
|
+
if (message && message.message) {
|
|
390
|
+
message = JSON.parse(message.message)
|
|
391
|
+
}
|
|
392
|
+
ElMessage.error(message)
|
|
393
|
+
} else {
|
|
394
|
+
ElMessage.error(t('fsUpload.uploadFailed'))
|
|
395
|
+
}
|
|
396
|
+
}
|
|
380
397
|
defineExpose({ pickFileDone, uploadFileDone })
|
|
381
398
|
</script>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $emit } from '../../utils/gogocodeTransfer'
|
|
2
|
-
import { doFormat } from './formatter'
|
|
2
|
+
import { doFormat, formatDateTime } from './formatter'
|
|
3
3
|
import store from './store'
|
|
4
4
|
import { initialization, jumpToPage } from '../../../src/utils/jump-page-utils'
|
|
5
5
|
import { analysisFileSetObj, otherFilesToStandard } from './utils'
|
|
@@ -198,9 +198,10 @@ const customFormatter = {
|
|
|
198
198
|
jumpPageJson = column.formatter.options.format
|
|
199
199
|
}
|
|
200
200
|
if (jumpPageJson && jumpPageJson !== '') {
|
|
201
|
+
const jumpPageJsonObject = JSON.parse(jumpPageJson)
|
|
201
202
|
// 解析是否需要显示该超链接
|
|
202
203
|
const result = initialization(
|
|
203
|
-
|
|
204
|
+
jumpPageJsonObject,
|
|
204
205
|
row,
|
|
205
206
|
isSql,
|
|
206
207
|
additionalParamerter,
|
|
@@ -227,6 +228,18 @@ const customFormatter = {
|
|
|
227
228
|
hyperLinkResult.label = this.objectPropValueTwo(row, column)
|
|
228
229
|
hyperLinkResult.title = hyperLinkResult.label
|
|
229
230
|
}
|
|
231
|
+
if (hyperLinkResult.jumpPageItem) {
|
|
232
|
+
const jumpSetting = hyperLinkResult.jumpPageItem.jumpPageSetting
|
|
233
|
+
if (jumpSetting && jumpSetting.displayTextFormatType && jumpSetting.displayTextFormat) {
|
|
234
|
+
const formatValue = formatDateTime(
|
|
235
|
+
jumpSetting.displayTextFormatType,
|
|
236
|
+
hyperLinkResult.label,
|
|
237
|
+
jumpSetting.displayTextFormat
|
|
238
|
+
)
|
|
239
|
+
hyperLinkResult.label = formatValue
|
|
240
|
+
hyperLinkResult.title = formatValue
|
|
241
|
+
}
|
|
242
|
+
}
|
|
230
243
|
return hyperLinkResult
|
|
231
244
|
},
|
|
232
245
|
// 点击超链接
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
v-if="type && type.indexOf('custom:') >= 0 && componentName != ''"
|
|
4
|
-
:class="
|
|
4
|
+
:class="
|
|
5
|
+
!this.isFormSubTable && row.validateErrorField && row.validateErrorField === column.prop ? 'required_bg' : ''
|
|
6
|
+
"
|
|
5
7
|
>
|
|
6
8
|
<component
|
|
7
9
|
:is="componentName"
|
|
@@ -26,7 +28,12 @@
|
|
|
26
28
|
@input="cellEvent('input', $event)"
|
|
27
29
|
/>
|
|
28
30
|
</div>
|
|
29
|
-
<div
|
|
31
|
+
<div
|
|
32
|
+
v-else
|
|
33
|
+
:class="
|
|
34
|
+
!this.isFormSubTable && row.validateErrorField && row.validateErrorField === column.prop ? 'required_bg' : ''
|
|
35
|
+
"
|
|
36
|
+
>
|
|
30
37
|
<!--必须有@input ,否则无法输入值-->
|
|
31
38
|
<el-date-picker
|
|
32
39
|
v-if="type === 'year' || type === 'month' || type === 'week'"
|
|
@@ -293,6 +300,7 @@
|
|
|
293
300
|
@delete="deleteFile"
|
|
294
301
|
@delete-success="deleteSuccess"
|
|
295
302
|
@upload-success="uploadOnSuccess"
|
|
303
|
+
@on-error="onError"
|
|
296
304
|
/>
|
|
297
305
|
<multipart-upload
|
|
298
306
|
v-else-if="type === 'multipartUpload'"
|
|
@@ -768,7 +776,7 @@ export default {
|
|
|
768
776
|
designProperty, // 字段配置
|
|
769
777
|
myCustomParams: {},
|
|
770
778
|
systemCode,
|
|
771
|
-
isFormSubTable: false
|
|
779
|
+
isFormSubTable: false // 是否是表单子表
|
|
772
780
|
}
|
|
773
781
|
},
|
|
774
782
|
computed: {},
|
|
@@ -1143,7 +1151,7 @@ export default {
|
|
|
1143
1151
|
// 在callCustomEvent方法中使用了innerValue属性
|
|
1144
1152
|
this.innerValue = event
|
|
1145
1153
|
$emit(this, 'update:value', event)
|
|
1146
|
-
|
|
1154
|
+
this.clearValidateErrorField()
|
|
1147
1155
|
isInputVal = true
|
|
1148
1156
|
} else if (eventName === 'blur' && !this.isSelectControll()) {
|
|
1149
1157
|
// 为了使输入时流畅,所以在blur时调用input,更改组件的数据
|
|
@@ -1205,8 +1213,8 @@ export default {
|
|
|
1205
1213
|
this.watchScanValueChange(this.innerValue)
|
|
1206
1214
|
},
|
|
1207
1215
|
// 清空单元格必填样式
|
|
1208
|
-
clearValidateErrorField(){
|
|
1209
|
-
if(this.row.validateErrorField){
|
|
1216
|
+
clearValidateErrorField() {
|
|
1217
|
+
if (this.row.validateErrorField) {
|
|
1210
1218
|
this.row.validateErrorField = undefined
|
|
1211
1219
|
}
|
|
1212
1220
|
},
|
|
@@ -2089,6 +2097,26 @@ export default {
|
|
|
2089
2097
|
} else {
|
|
2090
2098
|
this.departmentInfo = []
|
|
2091
2099
|
}
|
|
2100
|
+
},
|
|
2101
|
+
onError(error) {
|
|
2102
|
+
console.error('Upload error:', error)
|
|
2103
|
+
if (error.message) {
|
|
2104
|
+
let message = JSON.parse(error.message)
|
|
2105
|
+
if (message && message.message) {
|
|
2106
|
+
message = JSON.parse(message.message)
|
|
2107
|
+
}
|
|
2108
|
+
this.$message({
|
|
2109
|
+
type: 'error',
|
|
2110
|
+
message: message,
|
|
2111
|
+
showClose: true
|
|
2112
|
+
})
|
|
2113
|
+
} else {
|
|
2114
|
+
this.$message({
|
|
2115
|
+
type: 'error',
|
|
2116
|
+
message: this.$t('fsUpload.uploadFailed'),
|
|
2117
|
+
showClose: true
|
|
2118
|
+
})
|
|
2119
|
+
}
|
|
2092
2120
|
}
|
|
2093
2121
|
}
|
|
2094
2122
|
}
|
|
@@ -179,7 +179,7 @@ export function doFormatWithValueSet(column, value) {
|
|
|
179
179
|
label.push(item[0].label)
|
|
180
180
|
}
|
|
181
181
|
})
|
|
182
|
-
if(label.length > 0){
|
|
182
|
+
if (label.length > 0) {
|
|
183
183
|
value = label.join(',')
|
|
184
184
|
}
|
|
185
185
|
} else {
|
|
@@ -194,3 +194,7 @@ export function doFormatWithValueSet(column, value) {
|
|
|
194
194
|
}
|
|
195
195
|
return value
|
|
196
196
|
}
|
|
197
|
+
|
|
198
|
+
export function formatDateTime(type, value, format) {
|
|
199
|
+
return formatter[type](value, { format: format })
|
|
200
|
+
}
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
columnFormatter.options.format &&
|
|
148
148
|
columnFormatter.options.format !== ''
|
|
149
149
|
"
|
|
150
|
-
:class="
|
|
150
|
+
:class="textOverflow === 'newline' ? 'wrap-text' : 'ellipsis cell--span'"
|
|
151
151
|
>
|
|
152
152
|
<!--:key="column.prop+'_'+rowIndex+'_'+currentPage" 为了解决子表分页时,新增自动跳转到下一页,第一条记录的自定义控件被复用,导致业务逻辑没执行 -->
|
|
153
153
|
<component
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
:component-id="componentId"
|
|
173
173
|
:additional-settings="additionalSettings"
|
|
174
174
|
:page-context="options?.pageContext"
|
|
175
|
-
:custom-params="
|
|
175
|
+
:custom-params="getCustomParams()"
|
|
176
176
|
@prohibitToEdit="prohibitToEdit"
|
|
177
177
|
@refresh-list="refreshList"
|
|
178
178
|
/></span>
|
|
@@ -221,12 +221,7 @@
|
|
|
221
221
|
@click="clickHyperLink(column, row, listCode, rowIndex)"
|
|
222
222
|
> -->
|
|
223
223
|
<el-link
|
|
224
|
-
v-else-if="
|
|
225
|
-
columnFormatter !== undefined &&
|
|
226
|
-
columnFormatter.type !== undefined &&
|
|
227
|
-
columnFormatter.type === 'hyperlinks' &&
|
|
228
|
-
getMyHyperLinkSetting(row, rowIndex).visible === true
|
|
229
|
-
"
|
|
224
|
+
v-else-if="columnFormatter?.type === 'hyperlinks' && linkObject.visible === true"
|
|
230
225
|
:type="getLinkType(row)"
|
|
231
226
|
@click="clickHyperLink(column, row, listCode, rowIndex)"
|
|
232
227
|
>
|
|
@@ -234,20 +229,14 @@
|
|
|
234
229
|
v-if="isShowOverflowTooltip"
|
|
235
230
|
:id="column.prop + 'DomData' + rowIndex"
|
|
236
231
|
:style="textOverflow === 'newline' ? {} : { width: cellWidth + 'px' }"
|
|
237
|
-
:title="
|
|
232
|
+
:title="linkObject.title"
|
|
238
233
|
:class="textOverflow === 'newline' ? 'wrap-text' : 'ellipsis cell--span'"
|
|
239
|
-
>{{
|
|
240
|
-
<SuperIcon
|
|
241
|
-
v-if="getMyHyperLinkSetting(row, rowIndex).icon"
|
|
242
|
-
:iconValue="getMyHyperLinkSetting(row, rowIndex).icon"
|
|
243
|
-
></SuperIcon>
|
|
234
|
+
>{{ linkObject.label }}
|
|
235
|
+
<SuperIcon v-if="linkObject.icon" :iconValue="linkObject.icon"></SuperIcon>
|
|
244
236
|
</span>
|
|
245
237
|
<span v-else :id="column.prop + 'DomData' + rowIndex" :class="isShowForm ? '' : 'cell--span'"
|
|
246
|
-
>{{
|
|
247
|
-
<SuperIcon
|
|
248
|
-
v-if="getMyHyperLinkSetting(row, rowIndex).icon"
|
|
249
|
-
:iconValue="getMyHyperLinkSetting(row, rowIndex).icon"
|
|
250
|
-
></SuperIcon>
|
|
238
|
+
>{{ linkObject.label }}
|
|
239
|
+
<SuperIcon v-if="linkObject.icon" :iconValue="linkObject.icon"></SuperIcon>
|
|
251
240
|
</span>
|
|
252
241
|
</el-link>
|
|
253
242
|
<span
|
|
@@ -307,12 +296,7 @@
|
|
|
307
296
|
</span>
|
|
308
297
|
<!-- 超链接 -->
|
|
309
298
|
<el-link
|
|
310
|
-
v-else-if="
|
|
311
|
-
columnFormatter !== undefined &&
|
|
312
|
-
columnFormatter.type !== undefined &&
|
|
313
|
-
columnFormatter.type === 'hyperlinks' &&
|
|
314
|
-
getMyHyperLinkSetting(row, rowIndex).visible === true
|
|
315
|
-
"
|
|
299
|
+
v-else-if="columnFormatter?.type === 'hyperlinks' && linkObject.visible"
|
|
316
300
|
type="primary"
|
|
317
301
|
@click="clickHyperLink(column, row, listCode, rowIndex)"
|
|
318
302
|
>
|
|
@@ -320,20 +304,14 @@
|
|
|
320
304
|
v-if="isShowOverflowTooltip"
|
|
321
305
|
:id="column.prop + 'DomData' + rowIndex"
|
|
322
306
|
:style="textOverflow === 'newline' ? {} : { width: cellWidth + 'px' }"
|
|
323
|
-
:title="$escapeHtml(
|
|
307
|
+
:title="$escapeHtml(linkObject.title)"
|
|
324
308
|
:class="textOverflow === 'newline' ? 'wrap-text' : 'ellipsis cell--span'"
|
|
325
|
-
>{{ $escapeHtml(
|
|
326
|
-
<SuperIcon
|
|
327
|
-
v-if="getMyHyperLinkSetting(row, rowIndex).icon"
|
|
328
|
-
:iconValue="getMyHyperLinkSetting(row, rowIndex).icon"
|
|
329
|
-
></SuperIcon>
|
|
309
|
+
>{{ $escapeHtml(linkObject.label) }}
|
|
310
|
+
<SuperIcon v-if="linkObject.icon" :iconValue="linkObject.icon"></SuperIcon>
|
|
330
311
|
</span>
|
|
331
312
|
<span v-else :id="column.prop + 'DomData' + rowIndex" :class="isShowForm ? '' : 'cell--span'"
|
|
332
|
-
>{{ $escapeHtml(
|
|
333
|
-
<SuperIcon
|
|
334
|
-
v-if="getMyHyperLinkSetting(row, rowIndex).icon"
|
|
335
|
-
:iconValue="getMyHyperLinkSetting(row, rowIndex).icon"
|
|
336
|
-
></SuperIcon>
|
|
313
|
+
>{{ $escapeHtml(linkObject.label) }}
|
|
314
|
+
<SuperIcon v-if="linkObject.icon" :iconValue="linkObject.icon"></SuperIcon>
|
|
337
315
|
</span>
|
|
338
316
|
</el-link>
|
|
339
317
|
<!-- 富文本 -->
|
|
@@ -554,7 +532,8 @@ export default {
|
|
|
554
532
|
requiredClass: '',
|
|
555
533
|
lineEdit,
|
|
556
534
|
options,
|
|
557
|
-
textOverflow
|
|
535
|
+
textOverflow,
|
|
536
|
+
linkObject: {}
|
|
558
537
|
}
|
|
559
538
|
},
|
|
560
539
|
computed: {
|
|
@@ -707,6 +686,9 @@ export default {
|
|
|
707
686
|
}
|
|
708
687
|
this.setScanRuleSets()
|
|
709
688
|
this.requiredClass = this.isRequired(this.row.$editing) ? 'm-requried column-text-main' : ''
|
|
689
|
+
if (this.columnFormatter?.type === 'hyperlinks') {
|
|
690
|
+
this.linkObject = this.getMyHyperLinkSetting(this.row, this.rowIndex)
|
|
691
|
+
}
|
|
710
692
|
},
|
|
711
693
|
mounted() {
|
|
712
694
|
if (this.controlConfig) {
|
|
@@ -1280,6 +1262,16 @@ export default {
|
|
|
1280
1262
|
}
|
|
1281
1263
|
}
|
|
1282
1264
|
return true
|
|
1265
|
+
},
|
|
1266
|
+
getCustomParams() {
|
|
1267
|
+
if (this.column.formatter.type === 'customControl') {
|
|
1268
|
+
if (this.column.formatter?.options?.controlConfig) {
|
|
1269
|
+
const controlConfig = JSON.parse(this.column.formatter.options.controlConfig)
|
|
1270
|
+
if (controlConfig && controlConfig.customParams) {
|
|
1271
|
+
return formatCustomParams(controlConfig.customParams, this.options?.pageContext, this.row)
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1283
1275
|
}
|
|
1284
1276
|
},
|
|
1285
1277
|
emits: ['refresData', 'refresPortData', 'refresPortsData', 'refresMainTableFields', 'prohibitToEdit']
|
package/src/i18n/langs/cn.js
CHANGED
|
@@ -284,7 +284,9 @@ const cn = {
|
|
|
284
284
|
theNumberOfUploadsExceedsTheLimitTheLimitIs: '上传数量超过限制,限制数量为',
|
|
285
285
|
image: '图片',
|
|
286
286
|
video: '视频',
|
|
287
|
-
updateSuccess: '更新成功'
|
|
287
|
+
updateSuccess: '更新成功',
|
|
288
|
+
more: '更多',
|
|
289
|
+
uploadFailed: '上传失败!'
|
|
288
290
|
},
|
|
289
291
|
messageVideo: {
|
|
290
292
|
attemptingToIdentify: '正在尝试识别....',
|
package/src/i18n/langs/en.js
CHANGED
|
@@ -283,7 +283,9 @@ const en = {
|
|
|
283
283
|
theNumberOfUploadsExceedsTheLimitTheLimitIs: 'The number of uploads exceeds the limit. The limit is',
|
|
284
284
|
image: 'Image',
|
|
285
285
|
video: 'Video',
|
|
286
|
-
updateSuccess: 'Update success'
|
|
286
|
+
updateSuccess: 'Update success',
|
|
287
|
+
more: 'More',
|
|
288
|
+
uploadFailed: 'Upload failed!'
|
|
287
289
|
},
|
|
288
290
|
messageVideo: {
|
|
289
291
|
attemptingToIdentify: 'Attempting to identify',
|
|
@@ -73,6 +73,7 @@ export function initialization(
|
|
|
73
73
|
if (jumpPageResult && jumpPageResult.visible) {
|
|
74
74
|
const res = { ...jumpPageResult }
|
|
75
75
|
res.jumpPageSetting = JSON.stringify(jumpPageItem.jumpPageSetting)
|
|
76
|
+
res.jumpPageItem = jumpPageItem
|
|
76
77
|
return res
|
|
77
78
|
}
|
|
78
79
|
}
|
|
@@ -228,7 +229,10 @@ export function jumpToPage(
|
|
|
228
229
|
}
|
|
229
230
|
getSystem(system, jumpPageSetting.jumpPageUrl, jumpPageSetting.isNewPage, jumpPageSetting)
|
|
230
231
|
.then((system) => {
|
|
231
|
-
if (
|
|
232
|
+
if (
|
|
233
|
+
(jumpPageSetting.jumpPageAdditional && jumpPageSetting.jumpPageAdditional.length > 0) ||
|
|
234
|
+
(jumpPageSetting.jumpPageTitle && jumpPageSetting.jumpPageTitle.indexOf('${') >= 0)
|
|
235
|
+
) {
|
|
232
236
|
// 发送请求,获取附加参数,并存入缓存
|
|
233
237
|
const paramPath =
|
|
234
238
|
window.$vueApp.config.globalProperties.baseAPI + '/component/super-pages/parsing-additional-parameters'
|
|
@@ -242,7 +246,7 @@ export function jumpToPage(
|
|
|
242
246
|
if (!pageData) {
|
|
243
247
|
pageData = {}
|
|
244
248
|
}
|
|
245
|
-
if(!additionalParamMap){
|
|
249
|
+
if (!additionalParamMap) {
|
|
246
250
|
additionalParamMap = {}
|
|
247
251
|
}
|
|
248
252
|
Object.assign(additionalParamMap, pageData)
|
|
@@ -593,11 +597,11 @@ function jumpWithSuperPage(jumpPageUrl, system, dataId, jumpPageSetting, ids, bu
|
|
|
593
597
|
// 移动端时,获得移动端打开方式
|
|
594
598
|
jumpMode = jumpPageSetting.jumpPageMobileOpenMode
|
|
595
599
|
}
|
|
596
|
-
if(!jumpMode && jumpPageSetting) {
|
|
600
|
+
if (!jumpMode && jumpPageSetting) {
|
|
597
601
|
// 移动端没有配置则以 打开方式为准
|
|
598
602
|
jumpMode = jumpPageSetting.jumpPageOpenMode
|
|
599
603
|
}
|
|
600
|
-
if(!jumpMode){
|
|
604
|
+
if (!jumpMode) {
|
|
601
605
|
// 默认是刷新页面
|
|
602
606
|
jumpMode = 'refresh'
|
|
603
607
|
}
|