agilebuilder-ui 1.1.38-tmp1 → 1.1.39-sit1
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-d84fc7c6.js → 401-994c9198.js} +1 -1
- package/lib/{404-b47ec5c0.js → 404-529e9d04.js} +1 -1
- package/lib/{iframe-page-21dddc9b.js → iframe-page-8416d7e7.js} +1 -1
- package/lib/{index-4de073b5.js → index-f2020c47.js} +14108 -14058
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +63 -63
- package/lib/{tab-content-iframe-index-f3419de1.js → tab-content-iframe-index-b9c23a8b.js} +1 -1
- package/lib/{tab-content-index-034f8326.js → tab-content-index-289ae3af.js} +1 -1
- package/lib/{tache-subprocess-history-53fa49b9.js → tache-subprocess-history-3ad4baa1.js} +1 -1
- package/package.json +1 -1
- package/packages/department-tree-inline/src/department-single-tree-inline.vue +3 -1
- package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +5 -1
- package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +2 -1
- package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +0 -1
- package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +3 -1
- package/packages/fs-preview/src/fs-preview.vue +44 -7
- package/packages/fs-upload-list/src/fs-upload-list.vue +50 -24
- 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 +24 -5
- package/packages/fs-upload-new/src/fs-upload-new.vue +20 -0
- package/packages/organization-input/src/organization-input.vue +3 -3
- package/packages/super-grid/src/components/mobile-table-card.jsx +0 -1
- package/packages/super-grid/src/custom-formatter.js +1 -1
- package/packages/super-grid/src/dynamic-input.vue +16 -22
- package/packages/super-grid/src/normal-column-content.vue +25 -13
- package/packages/super-grid/src/row-operation.vue +13 -9
- package/packages/super-grid/src/search-form-item.vue +75 -17
- package/packages/super-grid/src/search-form-mobile.vue +5 -0
- package/packages/super-grid/src/search-form-ordinarySearch.vue +5 -0
- package/packages/super-grid/src/search-methods.js +3 -1
- package/packages/utils/organization.ts +56 -40
- package/packages/workflow-history-list/src/workflow-history-list.vue +41 -3
- package/src/directives/permission/permission.js +7 -1
- package/src/i18n/langs/cn.js +10 -3
- package/src/i18n/langs/en.js +10 -3
- package/src/utils/file-util.ts +12 -4
- package/src/utils/jump-page-utils.js +1 -0
- package/src/utils/permission.js +2 -2
- package/src/utils/permissionAuth.js +4 -2
- package/src/utils/util.js +19 -0
- package/src/views/dsc-component/Sidebar/Item.vue +18 -7
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +10 -2
- package/src/views/dsc-component/Sidebar/index.vue +0 -2
- package/src/views/layout/components/Menubar/Item.vue +20 -3
- package/src/views/layout/components/Menubar/SidebarItem.vue +46 -18
|
@@ -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-f2020c47.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-f2020c47.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-f2020c47.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
|
@@ -253,7 +253,9 @@ export default {
|
|
|
253
253
|
containBranch: this.containBranch,
|
|
254
254
|
zhName: department.name,
|
|
255
255
|
enName: department.enName,
|
|
256
|
-
department: department
|
|
256
|
+
department: department,
|
|
257
|
+
leader: department.leader,
|
|
258
|
+
leaderName: department.leaderName
|
|
257
259
|
}
|
|
258
260
|
this.selectNodeInfo = selectNodeInfo
|
|
259
261
|
},
|
|
@@ -609,7 +609,8 @@ export default {
|
|
|
609
609
|
emails: [],
|
|
610
610
|
telephones: [],
|
|
611
611
|
users: [],
|
|
612
|
-
divisionManager: []
|
|
612
|
+
divisionManager: [],
|
|
613
|
+
divisionManagerName: []
|
|
613
614
|
}
|
|
614
615
|
// 是否需要显示提示框,默认不显示
|
|
615
616
|
var showTip = false
|
|
@@ -625,6 +626,9 @@ export default {
|
|
|
625
626
|
if (userData.divisionManager && userData.divisionManager !== '') {
|
|
626
627
|
selectNodeInfo.divisionManager.push(userData.divisionManager)
|
|
627
628
|
}
|
|
629
|
+
if (userData.divisionManagerName && userData.divisionManagerName !== '') {
|
|
630
|
+
selectNodeInfo.divisionManagerName.push(userData.divisionManagerName)
|
|
631
|
+
}
|
|
628
632
|
if (userData.email && userData.email !== '') {
|
|
629
633
|
selectNodeInfo.emails.push(userData.email)
|
|
630
634
|
}
|
|
@@ -252,7 +252,8 @@ export default {
|
|
|
252
252
|
user: user,
|
|
253
253
|
enName: user.enName,
|
|
254
254
|
subCompanyName: user.subCompanyName,
|
|
255
|
-
divisionManager: user.divisionManager
|
|
255
|
+
divisionManager: user.divisionManager,
|
|
256
|
+
divisionManagerName: user.divisionManagerName
|
|
256
257
|
}
|
|
257
258
|
// 表示是勾选单选按钮或 选中树节点
|
|
258
259
|
this.selectNodeInfo = selectNodeInfo
|
|
@@ -183,7 +183,6 @@ const departmentUserTreeMultiService = {
|
|
|
183
183
|
},
|
|
184
184
|
// 加载指定部门节点
|
|
185
185
|
loadPointDepartments() {
|
|
186
|
-
debugger
|
|
187
186
|
let url = window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/point-department-users'
|
|
188
187
|
if (this.limitFilterColumn) {
|
|
189
188
|
url += '/' + this.limitFilterColumn
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div v-if="label">
|
|
3
|
-
<div
|
|
3
|
+
<div
|
|
4
|
+
ref="filePreviewRef"
|
|
5
|
+
@dblclick="dblclickEvent"
|
|
6
|
+
style="display: flex; align-items: center; gap: 5px"
|
|
7
|
+
:style="{ cursor: disabled && fileSetObj.disabledNoPreview ? 'not-allowed' : 'pointer' }"
|
|
8
|
+
@click="previewMuti()"
|
|
9
|
+
>
|
|
4
10
|
<el-icon><el-icon-paperclip /></el-icon>
|
|
5
11
|
{{ label }}
|
|
6
|
-
<el-tooltip :content="$t('imatrixUIPublicModel.preview')">
|
|
12
|
+
<el-tooltip v-if="!disabled || !fileSetObj.disabledNoPreview" :content="$t('imatrixUIPublicModel.preview')">
|
|
7
13
|
<el-icon style="cursor: pointer; color: #409eff; padding-right: 5px" @click="previewMuti()"
|
|
8
14
|
><el-icon-view
|
|
9
15
|
/></el-icon>
|
|
10
16
|
</el-tooltip>
|
|
11
|
-
<el-tooltip :content="$t('imatrixUIPublicModel.download')">
|
|
17
|
+
<el-tooltip v-if="!disabled || !fileSetObj.disabledNoDownload" :content="$t('imatrixUIPublicModel.download')">
|
|
12
18
|
<el-icon style="cursor: pointer; color: #409eff" @click="donwloadViewFile()">
|
|
13
19
|
<el-icon-download />
|
|
14
20
|
</el-icon>
|
|
@@ -40,8 +46,10 @@
|
|
|
40
46
|
<el-table-column prop="showName" show-overflow-tooltip>
|
|
41
47
|
<template v-slot="scope">
|
|
42
48
|
<div style="display: flex; align-items: center">
|
|
43
|
-
<
|
|
44
|
-
|
|
49
|
+
<span>
|
|
50
|
+
<super-icon :iconValue="getFileIconByName(scope.row.showName)" />
|
|
51
|
+
</span>
|
|
52
|
+
<span class="amb-list-preivew-name" @click="previewSingle(scope.row)">
|
|
45
53
|
{{ scope.row.showName }}
|
|
46
54
|
</span>
|
|
47
55
|
</div>
|
|
@@ -50,12 +58,24 @@
|
|
|
50
58
|
<el-table-column width="80" align="center">
|
|
51
59
|
<template v-slot="scope">
|
|
52
60
|
<div style="margin: -10px 0">
|
|
53
|
-
<el-tooltip
|
|
61
|
+
<el-tooltip
|
|
62
|
+
v-if="!fileSetObj.disabledNoPreview"
|
|
63
|
+
:content="$t('imatrixUIPublicModel.preview')"
|
|
64
|
+
class="item"
|
|
65
|
+
effect="dark"
|
|
66
|
+
placement="top"
|
|
67
|
+
>
|
|
54
68
|
<el-button type="text" @click="previewSingle(scope.row)">
|
|
55
69
|
<el-icon style="cursor: pointer"><el-icon-view /></el-icon>
|
|
56
70
|
</el-button>
|
|
57
71
|
</el-tooltip>
|
|
58
|
-
<el-tooltip
|
|
72
|
+
<el-tooltip
|
|
73
|
+
v-if="!fileSetObj.disabledNoDownload"
|
|
74
|
+
:content="$t('imatrixUIPublicModel.download')"
|
|
75
|
+
class="item"
|
|
76
|
+
effect="dark"
|
|
77
|
+
placement="top"
|
|
78
|
+
>
|
|
59
79
|
<el-button type="text" @click="donwloadFile(scope.$index, fileList)">
|
|
60
80
|
<el-icon v-if="downloadable" style="cursor: pointer">
|
|
61
81
|
<el-icon-download />
|
|
@@ -111,6 +131,10 @@ export default {
|
|
|
111
131
|
default: () => {
|
|
112
132
|
return {}
|
|
113
133
|
}
|
|
134
|
+
},
|
|
135
|
+
disabled: {
|
|
136
|
+
type: Boolean,
|
|
137
|
+
default: false
|
|
114
138
|
}
|
|
115
139
|
},
|
|
116
140
|
data() {
|
|
@@ -164,12 +188,18 @@ export default {
|
|
|
164
188
|
serverPath = getEntityFieldValue(this.entity, this.keyValueParam.serverPath)
|
|
165
189
|
showName = getEntityFieldValue(this.entity, this.keyValueParam.showName)
|
|
166
190
|
}
|
|
191
|
+
if (!serverPath) {
|
|
192
|
+
ElMessage.error(this.$t('imatrixUIMessage.filePathNotFound'))
|
|
193
|
+
}
|
|
167
194
|
return {
|
|
168
195
|
showName: showName,
|
|
169
196
|
serverPath: serverPath
|
|
170
197
|
}
|
|
171
198
|
},
|
|
172
199
|
previewMuti() {
|
|
200
|
+
if (this.disabled && this.fileSetObj.disabledNoPreview) {
|
|
201
|
+
return
|
|
202
|
+
}
|
|
173
203
|
const { showName, serverPath } = this.getShowNameAndUuidKey()
|
|
174
204
|
if (serverPath) {
|
|
175
205
|
const uuids = serverPath.split(',')
|
|
@@ -308,4 +338,11 @@ export default {
|
|
|
308
338
|
width: 30px;
|
|
309
339
|
height: 30px;
|
|
310
340
|
}
|
|
341
|
+
.amb-list-preivew-name {
|
|
342
|
+
margin-left: 10px;
|
|
343
|
+
cursor: pointer;
|
|
344
|
+
overflow: hidden;
|
|
345
|
+
text-overflow: ellipsis;
|
|
346
|
+
white-space: nowrap;
|
|
347
|
+
}
|
|
311
348
|
</style>
|
|
@@ -81,37 +81,49 @@
|
|
|
81
81
|
<!-- <i v-if="deleteable" class="el-icon-delete" style="padding-left:5px;cursor:pointer;color:#F56C6C" @click="deleteFile()" /> -->
|
|
82
82
|
</span>
|
|
83
83
|
</template>
|
|
84
|
-
<el-table :data="showFileList"
|
|
85
|
-
<el-table-column prop="showName"
|
|
84
|
+
<el-table :show-header="false" :data="showFileList" max-height="60vh">
|
|
85
|
+
<el-table-column prop="showName" show-overflow-tooltip>
|
|
86
86
|
<template v-slot="scope">
|
|
87
87
|
<div style="display: flex; align-items: center">
|
|
88
|
-
<
|
|
89
|
-
|
|
88
|
+
<span>
|
|
89
|
+
<super-icon :iconValue="getFileIconByName(scope.row.showName)" />
|
|
90
|
+
</span>
|
|
91
|
+
<span class="amb-list-preivew-name" @click="previewSingle(scope.row)">
|
|
90
92
|
{{ scope.row.showName }}
|
|
91
93
|
</span>
|
|
92
94
|
</div>
|
|
93
95
|
</template>
|
|
94
96
|
</el-table-column>
|
|
95
|
-
<el-table-column align="
|
|
97
|
+
<el-table-column width="80" align="center">
|
|
96
98
|
<template v-slot="scope">
|
|
97
|
-
<
|
|
98
|
-
<el-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
99
|
+
<div style="margin: -10px 0">
|
|
100
|
+
<el-tooltip
|
|
101
|
+
v-if="!fileSetObj.disabledNoPreview"
|
|
102
|
+
:content="$t('imatrixUIPublicModel.preview')"
|
|
103
|
+
class="item"
|
|
104
|
+
effect="dark"
|
|
105
|
+
placement="top"
|
|
106
|
+
>
|
|
107
|
+
<el-button type="text" @click="previewSingle(scope.row)">
|
|
108
|
+
<el-icon style="cursor: pointer">
|
|
109
|
+
<el-icon-view />
|
|
110
|
+
</el-icon>
|
|
111
|
+
</el-button>
|
|
112
|
+
</el-tooltip>
|
|
113
|
+
<el-tooltip
|
|
114
|
+
v-if="!disabled"
|
|
115
|
+
:content="$t('imatrixUIPublicModel.delete')"
|
|
116
|
+
class="item"
|
|
117
|
+
effect="dark"
|
|
118
|
+
placement="top"
|
|
119
|
+
>
|
|
120
|
+
<el-button type="text" @click="deleteRow(scope.$index)">
|
|
121
|
+
<el-icon style="cursor: pointer">
|
|
122
|
+
<el-icon-delete />
|
|
123
|
+
</el-icon>
|
|
124
|
+
</el-button>
|
|
125
|
+
</el-tooltip>
|
|
126
|
+
</div>
|
|
115
127
|
</template>
|
|
116
128
|
</el-table-column>
|
|
117
129
|
</el-table>
|
|
@@ -141,7 +153,14 @@
|
|
|
141
153
|
/>
|
|
142
154
|
</template>
|
|
143
155
|
<template v-else>
|
|
144
|
-
<fs-preview
|
|
156
|
+
<fs-preview
|
|
157
|
+
:entity="row"
|
|
158
|
+
:disabled="disabled"
|
|
159
|
+
:fileInfo="fileInfo"
|
|
160
|
+
:file-set-obj="fileSetObj"
|
|
161
|
+
:is-sql="isSql"
|
|
162
|
+
:label="value"
|
|
163
|
+
/>
|
|
145
164
|
</template>
|
|
146
165
|
</span>
|
|
147
166
|
</template>
|
|
@@ -445,4 +464,11 @@ export default {
|
|
|
445
464
|
width: 30px;
|
|
446
465
|
height: 30px;
|
|
447
466
|
}
|
|
467
|
+
.amb-list-preivew-name {
|
|
468
|
+
margin-left: 10px;
|
|
469
|
+
cursor: pointer;
|
|
470
|
+
overflow: hidden;
|
|
471
|
+
text-overflow: ellipsis;
|
|
472
|
+
white-space: nowrap;
|
|
473
|
+
}
|
|
448
474
|
</style>
|
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
<template v-if="fileList && fileList.length > 0">
|
|
28
28
|
<fs-preview-new
|
|
29
29
|
:disabled="disabled"
|
|
30
|
+
:disabled-no-preview="disabledNoPreview"
|
|
31
|
+
:disabled-no-download="disabledNoDownload"
|
|
30
32
|
:file-list="fileList"
|
|
31
33
|
:system-code="systemCode"
|
|
32
34
|
:before-remove="beforeRemove"
|
|
@@ -117,6 +119,16 @@ const props = defineProps({
|
|
|
117
119
|
beforeUpload: {
|
|
118
120
|
type: Function,
|
|
119
121
|
default: () => {}
|
|
122
|
+
},
|
|
123
|
+
// 是否禁用时也可预览
|
|
124
|
+
disabledNoPreview: {
|
|
125
|
+
type: Boolean,
|
|
126
|
+
default: false
|
|
127
|
+
},
|
|
128
|
+
// 是否禁用时也可下载
|
|
129
|
+
disabledNoDownload: {
|
|
130
|
+
type: Boolean,
|
|
131
|
+
default: false
|
|
120
132
|
}
|
|
121
133
|
})
|
|
122
134
|
const baseURL = window.$vueApp.config.globalProperties.baseURL
|
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
<template v-if="fileList && fileList.length > 0">
|
|
25
25
|
<fs-preview-new
|
|
26
26
|
:disabled="disabled"
|
|
27
|
+
:disabled-no-preview="disabledNoPreview"
|
|
28
|
+
:disabled-no-download="disabledNoDownload"
|
|
27
29
|
:file-list="fileList"
|
|
28
30
|
:system-code="systemCode"
|
|
29
31
|
:before-remove="beforeRemove"
|
|
@@ -114,6 +116,16 @@ const props = defineProps({
|
|
|
114
116
|
beforeUpload: {
|
|
115
117
|
type: Function,
|
|
116
118
|
default: () => {}
|
|
119
|
+
},
|
|
120
|
+
// 是否禁用时也可预览
|
|
121
|
+
disabledNoPreview: {
|
|
122
|
+
type: Boolean,
|
|
123
|
+
default: false
|
|
124
|
+
},
|
|
125
|
+
// 是否禁用时也可下载
|
|
126
|
+
disabledNoDownload: {
|
|
127
|
+
type: Boolean,
|
|
128
|
+
default: false
|
|
117
129
|
}
|
|
118
130
|
})
|
|
119
131
|
const baseURL = window.$vueApp.config.globalProperties.baseURL
|
|
@@ -7,12 +7,19 @@
|
|
|
7
7
|
<div style="display: flex; align-items: center">
|
|
8
8
|
<!-- 'amb-color-icon-XLS' -->
|
|
9
9
|
<super-icon :iconValue="getFileIconByName(file.showName)" />
|
|
10
|
-
<
|
|
11
|
-
<span style="cursor:
|
|
10
|
+
<template v-if="disabled && disabledNoPreview">
|
|
11
|
+
<span style="cursor: no-drop">
|
|
12
12
|
<span style="margin-left: 6.5px">{{ file.showName }}</span>
|
|
13
13
|
</span>
|
|
14
|
-
</
|
|
15
|
-
<
|
|
14
|
+
</template>
|
|
15
|
+
<template v-if="!disabled || !disabledNoPreview">
|
|
16
|
+
<el-tooltip content="预览" placement="top">
|
|
17
|
+
<span style="cursor: pointer" @click="preview(file.showName, file.serverPath)">
|
|
18
|
+
<span style="margin-left: 6.5px">{{ file.showName }}</span>
|
|
19
|
+
</span>
|
|
20
|
+
</el-tooltip>
|
|
21
|
+
</template>
|
|
22
|
+
<el-tooltip v-if="!disabled || !disabledNoDownload" content="下载" placement="top">
|
|
16
23
|
<el-icon style="margin-left: 10px" @click="handleDownload(file)">
|
|
17
24
|
<Download />
|
|
18
25
|
</el-icon>
|
|
@@ -104,6 +111,16 @@ const props = defineProps({
|
|
|
104
111
|
baseURL: {
|
|
105
112
|
type: String,
|
|
106
113
|
default: null
|
|
114
|
+
},
|
|
115
|
+
// 是否禁用时也可预览
|
|
116
|
+
disabledNoPreview: {
|
|
117
|
+
type: Boolean,
|
|
118
|
+
default: false
|
|
119
|
+
},
|
|
120
|
+
// 是否禁用时也可下载
|
|
121
|
+
disabledNoDownload: {
|
|
122
|
+
type: Boolean,
|
|
123
|
+
default: false
|
|
107
124
|
}
|
|
108
125
|
})
|
|
109
126
|
const baseURL = props.baseURL ? props.baseURL : window.$vueApp.config.globalProperties.baseURL
|
|
@@ -179,7 +196,9 @@ const isPromise = (p: any) => {
|
|
|
179
196
|
}
|
|
180
197
|
const preview = (showName: string, serverPath: string) => {
|
|
181
198
|
console.log('preview----props.fileList=', props.fileList)
|
|
182
|
-
|
|
199
|
+
if (props.disabled && props.disabledNoPreview) {
|
|
200
|
+
return
|
|
201
|
+
}
|
|
183
202
|
let isImg = false
|
|
184
203
|
if (showName && isImage(showName)) {
|
|
185
204
|
isImg = true
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
:openFsUpload="openFsUpload"
|
|
9
9
|
:fileSetObj="{
|
|
10
10
|
accept: accept,
|
|
11
|
+
disabledNoPreview: disabledNoPreview,
|
|
12
|
+
disabledNoDownload: disabledNoDownload,
|
|
11
13
|
multiple: multiple,
|
|
12
14
|
limitFileSize: limitFileSize,
|
|
13
15
|
limit: limitNum,
|
|
@@ -23,6 +25,8 @@
|
|
|
23
25
|
:systemCode="systemCode"
|
|
24
26
|
:accept="accept"
|
|
25
27
|
:multiple="multiple"
|
|
28
|
+
:disabled-no-preview="disabledNoPreview"
|
|
29
|
+
:disabled-no-download="disabledNoDownload"
|
|
26
30
|
:limit="limitNum"
|
|
27
31
|
:limitFileSize="limitFileSize"
|
|
28
32
|
:placeholder="placeholder"
|
|
@@ -47,6 +51,8 @@
|
|
|
47
51
|
:multiple="multiple"
|
|
48
52
|
:limit="limitNum"
|
|
49
53
|
:limitFileSize="limitFileSize"
|
|
54
|
+
:disabled-no-preview="disabledNoPreview"
|
|
55
|
+
:disabled-no-download="disabledNoDownload"
|
|
50
56
|
:placeholder="placeholder"
|
|
51
57
|
:action="action"
|
|
52
58
|
:headers="headers"
|
|
@@ -70,6 +76,8 @@
|
|
|
70
76
|
:multiple="multiple"
|
|
71
77
|
:limit="limitNum"
|
|
72
78
|
:limitFileSize="limitFileSize"
|
|
79
|
+
:disabled-no-preview="disabledNoPreview"
|
|
80
|
+
:disabled-no-download="disabledNoDownload"
|
|
73
81
|
:placeholder="placeholder"
|
|
74
82
|
:action="action"
|
|
75
83
|
:headers="headers"
|
|
@@ -97,6 +105,8 @@
|
|
|
97
105
|
:multiple="multiple"
|
|
98
106
|
:limit="limitNum"
|
|
99
107
|
:limitFileSize="limitFileSize"
|
|
108
|
+
:disabled-no-preview="disabledNoPreview"
|
|
109
|
+
:disabled-no-download="disabledNoDownload"
|
|
100
110
|
:placeholder="placeholder"
|
|
101
111
|
:action="action"
|
|
102
112
|
:headers="headers"
|
|
@@ -252,6 +262,16 @@ const props = defineProps({
|
|
|
252
262
|
openCameraOrChoosePhoto: {
|
|
253
263
|
type: String,
|
|
254
264
|
default: 'openCameraAndChoosePhoto'
|
|
265
|
+
},
|
|
266
|
+
// 是否禁用时也可预览
|
|
267
|
+
disabledNoPreview: {
|
|
268
|
+
type: Boolean,
|
|
269
|
+
default: false
|
|
270
|
+
},
|
|
271
|
+
// 是否禁用时也可下载
|
|
272
|
+
disabledNoDownload: {
|
|
273
|
+
type: Boolean,
|
|
274
|
+
default: false
|
|
255
275
|
}
|
|
256
276
|
})
|
|
257
277
|
const isMobile = ref(isMobileBrowser())
|
|
@@ -428,11 +428,11 @@ export default {
|
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
return branchDeptIds.join(this.separator)
|
|
431
|
-
} else if (orgDataType === 'divisionManager') {
|
|
431
|
+
} else if (orgDataType === 'divisionManager' || orgDataType === 'divisionManagerName') {
|
|
432
432
|
let divisionManagerArr = []
|
|
433
433
|
if (isUserTree) {
|
|
434
|
-
if (selectNodeInfo
|
|
435
|
-
divisionManagerArr = selectNodeInfo
|
|
434
|
+
if (selectNodeInfo[orgDataType] && selectNodeInfo[orgDataType].length > 0) {
|
|
435
|
+
divisionManagerArr = selectNodeInfo[orgDataType]
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
438
|
if (divisionManagerArr && divisionManagerArr.length > 0) {
|
|
@@ -212,7 +212,7 @@ const customFormatter = {
|
|
|
212
212
|
// console.log('getHyperLinkSetting--resut=', result)
|
|
213
213
|
if (result && result.label && result.label !== '') {
|
|
214
214
|
console.log('label存在')
|
|
215
|
-
} else {
|
|
215
|
+
} else if(result && (result.displayTextJudge === undefined || result.displayTextJudge)){
|
|
216
216
|
result.label = this.objectPropValueTwo(row, column)
|
|
217
217
|
}
|
|
218
218
|
if (result && result.title && result.title !== '') {
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
:additional-settings="controlConfig"
|
|
14
14
|
:parent="parentFormData"
|
|
15
15
|
:prop="column.prop"
|
|
16
|
+
:custom-params="myCustomParams"
|
|
16
17
|
:row="row"
|
|
17
18
|
:row-index="position ? position.row : null"
|
|
18
19
|
:select-options="options"
|
|
@@ -545,7 +546,8 @@ import {
|
|
|
545
546
|
getEntityFieldValue,
|
|
546
547
|
setEntityFieldValue,
|
|
547
548
|
getPropValueNew,
|
|
548
|
-
watchPageContextDynamicVariable
|
|
549
|
+
watchPageContextDynamicVariable,
|
|
550
|
+
formatCustomParams
|
|
549
551
|
} from '../../../src/utils/util'
|
|
550
552
|
import { getToken } from '../../../src/utils/auth'
|
|
551
553
|
import apis from './apis'
|
|
@@ -662,16 +664,17 @@ export default {
|
|
|
662
664
|
const gridData = gridParams.gridData
|
|
663
665
|
const subTableData = gridParams.subTableData
|
|
664
666
|
const isSubTableShowPage = gridParams.isSubTableShowPage
|
|
665
|
-
|
|
666
|
-
if (this.column.controlConfig) {
|
|
667
|
-
controlConfig = JSON.parse(this.column.controlConfig)
|
|
668
|
-
}
|
|
667
|
+
|
|
669
668
|
const additionalParamMap = getAdditionalParamMap(gridParams)
|
|
670
669
|
const pageContext = gridParams.options.pageContext
|
|
671
670
|
const isMobile = isMobileBrowser()
|
|
672
671
|
|
|
673
672
|
const componentId = this.listCode + '_' + this.column.prop
|
|
674
673
|
let scanEnable = false
|
|
674
|
+
let controlConfig = {}
|
|
675
|
+
if (this.column.controlConfig) {
|
|
676
|
+
controlConfig = JSON.parse(this.column.controlConfig)
|
|
677
|
+
}
|
|
675
678
|
if (controlConfig.scanEnable) {
|
|
676
679
|
scanEnable = true
|
|
677
680
|
}
|
|
@@ -760,7 +763,8 @@ export default {
|
|
|
760
763
|
isShowScanIcon,
|
|
761
764
|
baseURL,
|
|
762
765
|
colConfigure, // v10字段配置原信息
|
|
763
|
-
designProperty // 字段配置
|
|
766
|
+
designProperty, // 字段配置
|
|
767
|
+
myCustomParams: {}
|
|
764
768
|
}
|
|
765
769
|
},
|
|
766
770
|
computed: {},
|
|
@@ -808,6 +812,12 @@ export default {
|
|
|
808
812
|
},
|
|
809
813
|
created() {
|
|
810
814
|
const gridParams = store.get(this.listCode)
|
|
815
|
+
if (this.controlConfig?.customParams) {
|
|
816
|
+
if (!this.pageContext) {
|
|
817
|
+
this.pageContext = gridParams.options.pageContext
|
|
818
|
+
}
|
|
819
|
+
this.myCustomParams = formatCustomParams(this.controlConfig.customParams, this.pageContext, this.row)
|
|
820
|
+
}
|
|
811
821
|
this.gridParams = gridParams
|
|
812
822
|
this.isCreateRow = gridParams.isCreateRow
|
|
813
823
|
this.setTreeType()
|
|
@@ -901,14 +911,6 @@ export default {
|
|
|
901
911
|
const that = this
|
|
902
912
|
// 选择文件结束
|
|
903
913
|
eventBus.$on(this.componentId + '-pickFileDone', (data) => {
|
|
904
|
-
console.log(
|
|
905
|
-
'superPage666611---pickFileDone--data.componentId=',
|
|
906
|
-
data.componentId,
|
|
907
|
-
'data.listCode=',
|
|
908
|
-
data.listCode,
|
|
909
|
-
'data=',
|
|
910
|
-
data
|
|
911
|
-
)
|
|
912
914
|
if (that.$refs.fileUploadRef) {
|
|
913
915
|
that.$refs.fileUploadRef.pickFileDone(data)
|
|
914
916
|
}
|
|
@@ -921,14 +923,6 @@ export default {
|
|
|
921
923
|
})
|
|
922
924
|
// 扫描结束
|
|
923
925
|
eventBus.$on(this.componentId + '-scanDone', (data) => {
|
|
924
|
-
console.log(
|
|
925
|
-
'superPage666611---scanDone--data.componentId=',
|
|
926
|
-
data.componentId,
|
|
927
|
-
'data.listCode=',
|
|
928
|
-
data.listCode,
|
|
929
|
-
'data=',
|
|
930
|
-
data
|
|
931
|
-
)
|
|
932
926
|
that.innerValue = data.result
|
|
933
927
|
that.blurEvent()
|
|
934
928
|
this.callCustomEvent('afterScanDone')
|