agilebuilder-ui 1.1.36-sit2 → 1.1.36-sit4
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-ce759760.js → 401-d4decb58.js} +1 -1
- package/lib/{404-5fcc1a6f.js → 404-74cc4843.js} +1 -1
- package/lib/{iframe-page-a51e6412.js → iframe-page-c7973b9d.js} +1 -1
- package/lib/{index-51824aff.js → index-c739d5d5.js} +2811 -2794
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +60 -60
- package/lib/{tab-content-iframe-index-b132e3ad.js → tab-content-iframe-index-18ef0e35.js} +1 -1
- package/lib/{tab-content-index-1af3948e.js → tab-content-index-72db2984.js} +1 -1
- package/lib/{tache-subprocess-history-af6fbc5a.js → tache-subprocess-history-4d3623ca.js} +1 -1
- package/package.json +1 -1
- package/packages/department-user-tree/src/department-user-multiple-tree.vue +1 -0
- package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +1 -0
- package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +25 -45
- package/packages/fs-preview/src/fs-preview.vue +20 -2
- package/packages/fs-upload-list/src/fs-upload-list.vue +30 -7
- package/packages/fs-upload-new/src/fs-preview-new.vue +27 -15
|
@@ -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-c739d5d5.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-c739d5d5.js";
|
|
2
2
|
import { resolveComponent as u, openBlock as d, createBlock as b, withCtx as g, createVNode as v, TransitionGroup as L, createElementBlock as p, Fragment as T, renderList as C, 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-c739d5d5.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
|
@@ -183,6 +183,7 @@ const departmentUserTreeMultiService = {
|
|
|
183
183
|
},
|
|
184
184
|
// 加载指定部门节点
|
|
185
185
|
loadPointDepartments() {
|
|
186
|
+
debugger
|
|
186
187
|
let url = window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/point-department-users'
|
|
187
188
|
if (this.limitFilterColumn) {
|
|
188
189
|
url += '/' + this.limitFilterColumn
|
|
@@ -7,8 +7,7 @@ const departmentUserTreeSingleService = {
|
|
|
7
7
|
filterAppendNodes(value) {
|
|
8
8
|
this.$http
|
|
9
9
|
.post(
|
|
10
|
-
window.$vueApp.config.globalProperties.baseAPI +
|
|
11
|
-
'/component/organization-trees/search-users',
|
|
10
|
+
window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/search-users',
|
|
12
11
|
this.searchParam
|
|
13
12
|
)
|
|
14
13
|
.then((result) => {
|
|
@@ -19,7 +18,7 @@ const departmentUserTreeSingleService = {
|
|
|
19
18
|
this.$message({
|
|
20
19
|
showClose: true,
|
|
21
20
|
type: 'error',
|
|
22
|
-
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty')
|
|
21
|
+
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty')
|
|
23
22
|
})
|
|
24
23
|
return
|
|
25
24
|
}
|
|
@@ -29,7 +28,7 @@ const departmentUserTreeSingleService = {
|
|
|
29
28
|
this.$message({
|
|
30
29
|
showClose: true,
|
|
31
30
|
type: 'error',
|
|
32
|
-
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty')
|
|
31
|
+
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty')
|
|
33
32
|
})
|
|
34
33
|
return
|
|
35
34
|
}
|
|
@@ -48,11 +47,7 @@ const departmentUserTreeSingleService = {
|
|
|
48
47
|
// this.handleSelectUtil(item, localStorage)
|
|
49
48
|
// 查询最新用户信息替换,缓存为历史数据 数据库可能发生变化
|
|
50
49
|
this.$http
|
|
51
|
-
.get(
|
|
52
|
-
window.$vueApp.config.globalProperties.baseAPI +
|
|
53
|
-
'/api/users?loginName=' +
|
|
54
|
-
item.loginName
|
|
55
|
-
)
|
|
50
|
+
.get(window.$vueApp.config.globalProperties.baseAPI + '/api/users?loginName=' + item.loginName)
|
|
56
51
|
.then((userDTO) => {
|
|
57
52
|
if (userDTO !== null) {
|
|
58
53
|
for (const dtoKey in userDTO) {
|
|
@@ -100,17 +95,13 @@ const departmentUserTreeSingleService = {
|
|
|
100
95
|
// 表示没有加载过该父节点的子节点集合时
|
|
101
96
|
const param = {
|
|
102
97
|
parentId: parentId,
|
|
103
|
-
needVirtualUser: this.isNeedVirtualUser
|
|
98
|
+
needVirtualUser: this.isNeedVirtualUser
|
|
104
99
|
}
|
|
105
100
|
if (node.data) {
|
|
106
101
|
param.branchId = node.data.branchId
|
|
107
102
|
}
|
|
108
103
|
this.$http
|
|
109
|
-
.post(
|
|
110
|
-
window.$vueApp.config.globalProperties.baseAPI +
|
|
111
|
-
'/component/organization-trees/department-users',
|
|
112
|
-
param
|
|
113
|
-
)
|
|
104
|
+
.post(window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/department-users', param)
|
|
114
105
|
.then((data) => {
|
|
115
106
|
resolve(data)
|
|
116
107
|
// 更新当前点击的节点的子节点,必须加该方法,否则会导致子节点无法选中
|
|
@@ -134,41 +125,30 @@ const departmentUserTreeSingleService = {
|
|
|
134
125
|
loadDepartment(parentId, parentNodeId, isSearch, searchValue) {
|
|
135
126
|
const param = {
|
|
136
127
|
parentId: parentId,
|
|
137
|
-
needVirtualUser: this.isNeedVirtualUser
|
|
128
|
+
needVirtualUser: this.isNeedVirtualUser
|
|
138
129
|
}
|
|
139
130
|
this.$http
|
|
140
|
-
.post(
|
|
141
|
-
window.$vueApp.config.globalProperties.baseAPI +
|
|
142
|
-
'/component/organization-trees/department-users',
|
|
143
|
-
param
|
|
144
|
-
)
|
|
145
|
-
.then((children) => {
|
|
146
|
-
if (this.$refs.deparmentUserTree) {
|
|
147
|
-
this.$refs.deparmentUserTree.updateKeyChildren(parentNodeId, children)
|
|
148
|
-
if (this.$refs.deparmentUserTree.store.nodesMap[parentNodeId]) {
|
|
149
|
-
this.$refs.deparmentUserTree.store.nodesMap[parentNodeId].expanded = true
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
})
|
|
153
|
-
},
|
|
154
|
-
loadPointDepartments() {
|
|
155
|
-
this.$http
|
|
156
|
-
.post(
|
|
157
|
-
window.$vueApp.config.globalProperties.baseAPI +
|
|
158
|
-
'/component/organization-trees/point-department-users',
|
|
159
|
-
this.departmentInfo
|
|
160
|
-
)
|
|
131
|
+
.post(window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/department-users', param)
|
|
161
132
|
.then((children) => {
|
|
162
|
-
this.$refs.deparmentUserTree
|
|
163
|
-
this.
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
this.$refs.deparmentUserTree.store.nodesMap[
|
|
168
|
-
this.tenantNodeId
|
|
169
|
-
].expanded = true
|
|
133
|
+
if (this.$refs.deparmentUserTree) {
|
|
134
|
+
this.$refs.deparmentUserTree.updateKeyChildren(parentNodeId, children)
|
|
135
|
+
if (this.$refs.deparmentUserTree.store.nodesMap[parentNodeId]) {
|
|
136
|
+
this.$refs.deparmentUserTree.store.nodesMap[parentNodeId].expanded = true
|
|
137
|
+
}
|
|
170
138
|
}
|
|
171
139
|
})
|
|
172
140
|
},
|
|
141
|
+
loadPointDepartments() {
|
|
142
|
+
let url = window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/point-department-users'
|
|
143
|
+
if (this.limitFilterColumn) {
|
|
144
|
+
url += '/' + this.limitFilterColumn
|
|
145
|
+
}
|
|
146
|
+
this.$http.post(url, this.departmentInfo).then((children) => {
|
|
147
|
+
this.$refs.deparmentUserTree.updateKeyChildren(this.tenantNodeId, children)
|
|
148
|
+
if (this.$refs.deparmentUserTree.store.nodesMap[this.tenantNodeId]) {
|
|
149
|
+
this.$refs.deparmentUserTree.store.nodesMap[this.tenantNodeId].expanded = true
|
|
150
|
+
}
|
|
151
|
+
})
|
|
152
|
+
}
|
|
173
153
|
}
|
|
174
154
|
export default departmentUserTreeSingleService
|
|
@@ -37,7 +37,16 @@
|
|
|
37
37
|
</span>
|
|
38
38
|
</template>
|
|
39
39
|
<el-table :show-header="false" :data="fileList" max-height="60vh">
|
|
40
|
-
<el-table-column prop="showName" show-overflow-tooltip
|
|
40
|
+
<el-table-column prop="showName" show-overflow-tooltip>
|
|
41
|
+
<template v-slot="scope">
|
|
42
|
+
<div style="display: flex; align-items: center">
|
|
43
|
+
<super-icon :iconValue="getFileIconByName(scope.row.showName)" />
|
|
44
|
+
<span style="margin-left: 10px; cursor: pointer" @click="previewSingle(scope.row)">
|
|
45
|
+
{{ scope.row.showName }}
|
|
46
|
+
</span>
|
|
47
|
+
</div>
|
|
48
|
+
</template>
|
|
49
|
+
</el-table-column>
|
|
41
50
|
<el-table-column width="80" align="center">
|
|
42
51
|
<template v-slot="scope">
|
|
43
52
|
<div style="margin: -10px 0">
|
|
@@ -69,6 +78,7 @@ import { isPlateSys, getSystemFrontendUrl } from '../../../src/utils/common-util
|
|
|
69
78
|
import { isImage, getEntityFieldValue } from '../../../src/utils/util'
|
|
70
79
|
import { packageFile } from '../../super-grid/src/utils'
|
|
71
80
|
import { getToken } from '../../../src/utils/auth'
|
|
81
|
+
import { getFileIconByName } from '../../../src/utils/file-util'
|
|
72
82
|
import { Base64 } from 'js-base64'
|
|
73
83
|
export default {
|
|
74
84
|
components: {
|
|
@@ -284,10 +294,18 @@ export default {
|
|
|
284
294
|
},
|
|
285
295
|
formatFileName(fileName) {
|
|
286
296
|
return fileName.replace('#', '~~').replace('?', '~$').replace('&', '$')
|
|
297
|
+
},
|
|
298
|
+
getFileIconByName(fileName) {
|
|
299
|
+
return getFileIconByName(fileName)
|
|
287
300
|
}
|
|
288
301
|
},
|
|
289
302
|
emits: ['close']
|
|
290
303
|
}
|
|
291
304
|
</script>
|
|
292
305
|
|
|
293
|
-
<style lang="scss" scoped
|
|
306
|
+
<style lang="scss" scoped>
|
|
307
|
+
.amb-color-iconfont {
|
|
308
|
+
width: 30px;
|
|
309
|
+
height: 30px;
|
|
310
|
+
}
|
|
311
|
+
</style>
|
|
@@ -82,22 +82,35 @@
|
|
|
82
82
|
</span>
|
|
83
83
|
</template>
|
|
84
84
|
<el-table :data="showFileList" :show-header="false">
|
|
85
|
-
<el-table-column prop="showName" width="300"
|
|
85
|
+
<el-table-column prop="showName" width="300" show-overflow-tooltip>
|
|
86
|
+
<template v-slot="scope">
|
|
87
|
+
<div style="display: flex; align-items: center">
|
|
88
|
+
<super-icon :iconValue="getFileIconByName(scope.row.showName)" />
|
|
89
|
+
<span style="margin-left: 10px; cursor: pointer" @click="previewSingle(scope.row)">
|
|
90
|
+
{{ scope.row.showName }}
|
|
91
|
+
</span>
|
|
92
|
+
</div>
|
|
93
|
+
</template>
|
|
94
|
+
</el-table-column>
|
|
86
95
|
<el-table-column align="right">
|
|
87
96
|
<template v-slot="scope">
|
|
88
97
|
<el-tooltip :content="$t('imatrixUIPublicModel.preview')" class="item" effect="dark" placement="top">
|
|
89
|
-
<el-
|
|
90
|
-
<el-icon
|
|
91
|
-
|
|
98
|
+
<el-button type="text" @click="previewSingle(scope.row)">
|
|
99
|
+
<el-icon style="cursor: pointer">
|
|
100
|
+
<el-icon-view />
|
|
101
|
+
</el-icon>
|
|
102
|
+
</el-button>
|
|
92
103
|
</el-tooltip>
|
|
93
104
|
</template>
|
|
94
105
|
</el-table-column>
|
|
95
106
|
<el-table-column v-if="!disabled">
|
|
96
107
|
<template v-slot="scope">
|
|
97
108
|
<el-tooltip :content="$t('imatrixUIPublicModel.delete')" class="item" effect="dark" placement="top">
|
|
98
|
-
<el-
|
|
99
|
-
<el-icon
|
|
100
|
-
|
|
109
|
+
<el-button type="text" @click="deleteRow(scope.$index)">
|
|
110
|
+
<el-icon style="cursor: pointer">
|
|
111
|
+
<el-icon-delete />
|
|
112
|
+
</el-icon>
|
|
113
|
+
</el-button>
|
|
101
114
|
</el-tooltip>
|
|
102
115
|
</template>
|
|
103
116
|
</el-table-column>
|
|
@@ -144,6 +157,7 @@ import FsPreview from '../../fs-preview/src/fs-preview.vue'
|
|
|
144
157
|
import { packageFile } from '../../super-grid/src/utils'
|
|
145
158
|
import FileUploadInputMobile from '../../fs-upload-new/src/file-upload-mobile/file-upload-input.vue'
|
|
146
159
|
import { Base64 } from 'js-base64'
|
|
160
|
+
import { getFileIconByName } from '../../../src/utils/file-util'
|
|
147
161
|
export default {
|
|
148
162
|
name: 'FsUploadList',
|
|
149
163
|
props: {
|
|
@@ -418,8 +432,17 @@ export default {
|
|
|
418
432
|
},
|
|
419
433
|
uploadFileDone(data) {
|
|
420
434
|
this.$refs.fileUploadRef.uploadFileDone(data)
|
|
435
|
+
},
|
|
436
|
+
getFileIconByName(fileName) {
|
|
437
|
+
return getFileIconByName(fileName)
|
|
421
438
|
}
|
|
422
439
|
},
|
|
423
440
|
emits: ['close', 'upload-success', 'delete-success', 'delete', 'update:value', 'close', 'update:value']
|
|
424
441
|
}
|
|
425
442
|
</script>
|
|
443
|
+
<style lang="scss" scoped>
|
|
444
|
+
.amb-color-iconfont {
|
|
445
|
+
width: 30px;
|
|
446
|
+
height: 30px;
|
|
447
|
+
}
|
|
448
|
+
</style>
|
|
@@ -2,21 +2,26 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<div v-if="!isMobile">
|
|
4
4
|
<div v-for="(file, index) in fileList" :key="index" style="width: 100%">
|
|
5
|
-
<el-tag>
|
|
6
|
-
<
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
5
|
+
<el-tag color="white" size="large">
|
|
6
|
+
<template #default>
|
|
7
|
+
<div style="display: flex; align-items: center">
|
|
8
|
+
<!-- 'amb-color-icon-XLS' -->
|
|
9
|
+
<super-icon :iconValue="getFileIconByName(file.showName)" />
|
|
10
|
+
<el-tooltip content="预览" placement="top">
|
|
11
|
+
<span style="cursor: pointer" @click="preview(file.showName, file.serverPath)">
|
|
12
|
+
<span style="margin-left: 6.5px">{{ file.showName }}</span>
|
|
13
|
+
</span>
|
|
14
|
+
</el-tooltip>
|
|
15
|
+
<el-tooltip v-if="!disabled" content="下载" placement="top">
|
|
16
|
+
<el-icon style="margin-left: 10px" @click="handleDownload(file)">
|
|
17
|
+
<Download />
|
|
18
|
+
</el-icon>
|
|
19
|
+
</el-tooltip>
|
|
20
|
+
<el-tooltip v-if="!disabled" content="移除" placement="top">
|
|
21
|
+
<el-icon @click="handleOnRemove(file)"><Close /></el-icon>
|
|
22
|
+
</el-tooltip>
|
|
23
|
+
</div>
|
|
24
|
+
</template>
|
|
20
25
|
</el-tag>
|
|
21
26
|
</div>
|
|
22
27
|
</div>
|
|
@@ -53,6 +58,7 @@ import { getSystemFrontendUrl, isPlateSys, isMobileBrowser, getReplaceUrlDomain
|
|
|
53
58
|
import { getToken } from '../../../src/utils/auth'
|
|
54
59
|
import { isImage } from '../../../src/utils/util'
|
|
55
60
|
import { Base64 } from 'js-base64'
|
|
61
|
+
import { getFileIconByName } from '../../../src/utils/file-util'
|
|
56
62
|
const props = defineProps({
|
|
57
63
|
systemCode: {
|
|
58
64
|
type: String,
|
|
@@ -264,3 +270,9 @@ const isPreview = (fileName: string) => {
|
|
|
264
270
|
return false
|
|
265
271
|
}
|
|
266
272
|
</script>
|
|
273
|
+
<style lang="scss" scoped>
|
|
274
|
+
.amb-color-iconfont {
|
|
275
|
+
width: 30px;
|
|
276
|
+
height: 30px;
|
|
277
|
+
}
|
|
278
|
+
</style>
|