agilebuilder-ui 1.1.80 → 1.1.81-tmp1
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-79ff6c9c.js → 401-559680c3.js} +1 -1
- package/lib/{404-ea2bd6a4.js → 404-525cb9e6.js} +1 -1
- package/lib/{_baseUniq-BXtq6_NW-b5fc489d.js → _baseUniq-BXtq6_NW-195b7624.js} +2 -2
- package/lib/{arc-Js_tyW10-b52fc23c.js → arc-Js_tyW10-5f2bdd5b.js} +1 -1
- package/lib/architecture-O4VJ6CD3-ZoZ2IAk2-b4d13c1b.js +11 -0
- package/lib/{architectureDiagram-SUXI7LT5-kyYGGrHN-dec821e8.js → architectureDiagram-SUXI7LT5-kyYGGrHN-7c386c1d.js} +8 -8
- package/lib/{blockDiagram-6J76NXCF-IAr4zDV3-0ffdf98a.js → blockDiagram-6J76NXCF-IAr4zDV3-2a38c333.js} +7 -7
- package/lib/{c4Diagram-6F6E4RAY-Dv27rXcJ-a632eb32.js → c4Diagram-6F6E4RAY-Dv27rXcJ-73b0e533.js} +3 -3
- package/lib/{channel-BBZy6zOT-91e52a0c.js → channel-BBZy6zOT-737b9e4e.js} +1 -1
- package/lib/{chunk-353BL4L5-Dn_Y_Yna-764d0356.js → chunk-353BL4L5-Dn_Y_Yna-86517913.js} +1 -1
- package/lib/{chunk-67H74DCK-Br5U8bfD-d8f38128.js → chunk-67H74DCK-Br5U8bfD-35e4a15f.js} +1 -1
- package/lib/{chunk-AACKK3MU-DH_MKxca-5fcc97ad.js → chunk-AACKK3MU-DH_MKxca-351457bb.js} +1 -1
- package/lib/{chunk-BFAMUDN2-DHLCoYMN-5c6fc011.js → chunk-BFAMUDN2-DHLCoYMN-18d15356.js} +1 -1
- package/lib/{chunk-E2GYISFI-DQPHyyga-dac1d017.js → chunk-E2GYISFI-DQPHyyga-af4c38c9.js} +1 -1
- package/lib/{chunk-OW32GOEJ-CQOSE6Bn-a1d9f4fa.js → chunk-OW32GOEJ-CQOSE6Bn-1e9df6d6.js} +3 -3
- package/lib/{chunk-SKB7J2MH-BlwHRDiW-5cb0273d.js → chunk-SKB7J2MH-BlwHRDiW-9a6869aa.js} +1 -1
- package/lib/{chunk-SZ463SBG-DEp8buKJ-9c8a0224.js → chunk-SZ463SBG-DEp8buKJ-537c2c6c.js} +4 -4
- package/lib/{classDiagram-M3E45YP4-D0ySDe-v-83ba13b1.js → classDiagram-M3E45YP4-D0ySDe-v-25beaa6f.js} +6 -6
- package/lib/{classDiagram-v2-YAWTLIQI-D0ySDe-v-83ba13b1.js → classDiagram-v2-YAWTLIQI-D0ySDe-v-25beaa6f.js} +6 -6
- package/lib/{clone-CEJtuQzg-87b6fde3.js → clone-CEJtuQzg-2dcec15b.js} +1 -1
- package/lib/{dagre-JOIXM2OF-5zx0JY2T-2fc1b791.js → dagre-JOIXM2OF-5zx0JY2T-4770e35a.js} +7 -7
- package/lib/{diagram-5UYTHUR4-C19nyAKc-a2566e15.js → diagram-5UYTHUR4-C19nyAKc-2ff59de4.js} +7 -7
- package/lib/{diagram-VMROVX33-DkGwo-hj-51a4fa89.js → diagram-VMROVX33-DkGwo-hj-1a449d84.js} +8 -8
- package/lib/{diagram-ZTM2IBQH-CBgHCu9L-336d2a44.js → diagram-ZTM2IBQH-CBgHCu9L-79cbe80b.js} +7 -7
- package/lib/{erDiagram-3M52JZNH-cttdAJXW-fadfd61d.js → erDiagram-3M52JZNH-cttdAJXW-2d654d38.js} +5 -5
- package/lib/{flowDiagram-KYDEHFYC-9HpsqDdB-c2062dc5.js → flowDiagram-KYDEHFYC-9HpsqDdB-e95c6355.js} +6 -6
- package/lib/{ganttDiagram-EK5VF46D-8QB3ofs6-8531f1a3.js → ganttDiagram-EK5VF46D-8QB3ofs6-e85abbd4.js} +3 -3
- package/lib/gitGraph-ZV4HHKMB-BSmtVGRu-38ba5de5.js +11 -0
- package/lib/{gitGraphDiagram-GW3U2K7C-DNzc0Vx_-4b8af9f9.js → gitGraphDiagram-GW3U2K7C-DNzc0Vx_-30e86ada.js} +8 -8
- package/lib/{graph-3zJxsO-i-8c5c3145.js → graph-3zJxsO-i-7cd62c17.js} +3 -3
- package/lib/{iframe-page-bf3581e2.js → iframe-page-aec49896.js} +1 -1
- package/lib/{index-13e73297.js → index-f25a0f8b.js} +2220 -2077
- package/lib/info-63CPKGFF-C8sYWczU-f25456bb.js +11 -0
- package/lib/{infoDiagram-LHK5PUON-C-vFFPTf-32a28f59.js → infoDiagram-LHK5PUON-C-vFFPTf-94039349.js} +6 -6
- package/lib/{journeyDiagram-EWQZEKCU-BJrw4-AG-0db52f9d.js → journeyDiagram-EWQZEKCU-BJrw4-AG-eff80a35.js} +5 -5
- package/lib/{kanban-definition-ZSS6B67P-BptAnqU--09df3bd0.js → kanban-definition-ZSS6B67P-BptAnqU--ebfdba4e.js} +3 -3
- package/lib/{layout-sGZIJplX-89308221.js → layout-sGZIJplX-49fc0d6f.js} +5 -5
- package/lib/{linear-DqgVh5FN-22bf30ca.js → linear-DqgVh5FN-f87c9e12.js} +1 -1
- package/lib/{mermaid-parser.core-CH9ryA1K-54fad62d.js → mermaid-parser.core-CH9ryA1K-246804df.js} +12 -12
- package/lib/{mermaid.core-CAqkCmS1-1a2bb6c5.js → mermaid.core-CAqkCmS1-889e3b7e.js} +30 -30
- package/lib/{min-BngCxx8g-f2fc5ef1.js → min-BngCxx8g-fdc6e8f6.js} +3 -3
- package/lib/{mindmap-definition-6CBA2TL7-Cp_EeEsh-5257b407.js → mindmap-definition-6CBA2TL7-Cp_EeEsh-45ad4a61.js} +2 -2
- package/lib/packet-HUATNLJX-bfFWFja0-e991049a.js +11 -0
- package/lib/pie-WTHONI2E-QPrWs3SR-e794f4b5.js +11 -0
- package/lib/{pieDiagram-NIOCPIFQ-C46Y_4C6-481f3d87.js → pieDiagram-NIOCPIFQ-C46Y_4C6-9a038b76.js} +8 -8
- package/lib/{quadrantDiagram-2OG54O6I-Dgf6d6F_-369bcedf.js → quadrantDiagram-2OG54O6I-Dgf6d6F_-3791343e.js} +3 -3
- package/lib/radar-NJJJXTRR-BnUCJhQL-79f1b4ac.js +11 -0
- package/lib/{requirementDiagram-QOLK2EJ7-CSF6N7HA-32c846ee.js → requirementDiagram-QOLK2EJ7-CSF6N7HA-06551e7c.js} +4 -4
- package/lib/{sankeyDiagram-4UZDY2LN-BAHB7dMS-8621ea6c.js → sankeyDiagram-4UZDY2LN-BAHB7dMS-ae050112.js} +2 -2
- package/lib/{sequenceDiagram-SKLFT4DO-10gLJ50N-cedf74ac.js → sequenceDiagram-SKLFT4DO-10gLJ50N-75fe8e81.js} +4 -4
- package/lib/{stateDiagram-MI5ZYTHO-D6p6nCaj-2184b52e.js → stateDiagram-MI5ZYTHO-D6p6nCaj-a62d5ef6.js} +9 -9
- package/lib/{stateDiagram-v2-5AN5P6BG-DaN5hC-t-22338951.js → stateDiagram-v2-5AN5P6BG-DaN5hC-t-d7ab7c41.js} +5 -5
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +113 -113
- package/lib/{tab-content-iframe-index-49bddc0a.js → tab-content-iframe-index-448977a0.js} +1 -1
- package/lib/{tab-content-index-e371b16f.js → tab-content-index-cdf2780f.js} +1 -1
- package/lib/{tache-subprocess-history-59e976f7.js → tache-subprocess-history-eeaa7770.js} +1 -1
- package/lib/{timeline-definition-MYPXXCX6-gLqnWxDu-f9e9fe2e.js → timeline-definition-MYPXXCX6-gLqnWxDu-4affe323.js} +3 -3
- package/lib/treemap-75Q7IDZK-B2atdfMH-7cb5e6f2.js +11 -0
- package/lib/{xychartDiagram-H2YORKM3-Whqa4ezL-74aac2bd.js → xychartDiagram-H2YORKM3-Whqa4ezL-7e67fbaa.js} +3 -3
- package/package.json +1 -1
- package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +7 -22
- package/packages/department-user-tree-inline/src/search-result.vue +2 -9
- package/packages/fs-preview/src/fs-preview.vue +60 -68
- package/packages/fs-upload-new/src/fs-preview-new.vue +4 -13
- package/packages/scan-code-input/src/scan-code-input.vue +1 -1
- package/packages/scan-code-input-browser/src/scan-code-input.vue +13 -23
- package/packages/super-grid/src/columns-config.vue +86 -25
- package/packages/super-grid/src/list-tabs.vue +70 -0
- package/packages/super-grid/src/super-grid-service.js +4 -0
- package/packages/super-grid/src/super-grid.vue +101 -9
- package/packages/super-grid/src/tab-config.vue +295 -0
- package/packages/workflow-history-list/src/workflow-history-list.vue +4 -18
- package/src/i18n/langs/cn.js +10 -6
- package/src/i18n/langs/en.js +10 -10
- package/src/utils/jump-page-utils.js +1 -1
- package/src/utils/workflow-util.js +2 -5
- package/lib/architecture-O4VJ6CD3-ZoZ2IAk2-6b17acd8.js +0 -11
- package/lib/gitGraph-ZV4HHKMB-BSmtVGRu-3e09653d.js +0 -11
- package/lib/info-63CPKGFF-C8sYWczU-1e29ebd2.js +0 -11
- package/lib/packet-HUATNLJX-bfFWFja0-667f6600.js +0 -11
- package/lib/pie-WTHONI2E-QPrWs3SR-e78315cf.js +0 -11
- package/lib/radar-NJJJXTRR-BnUCJhQL-da5b5f7d.js +0 -11
- package/lib/treemap-75Q7IDZK-B2atdfMH-54046a6a.js +0 -11
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog
|
|
3
|
+
:close-on-click-modal="false"
|
|
4
|
+
:model-value="true"
|
|
5
|
+
:show-close="true"
|
|
6
|
+
:title="$t('superGrid.tabConfig')"
|
|
7
|
+
append-to-body
|
|
8
|
+
top="5vh"
|
|
9
|
+
width="50%"
|
|
10
|
+
@close="closeTabConfig"
|
|
11
|
+
@closed="$emit('closed')"
|
|
12
|
+
@open="$emit('open')"
|
|
13
|
+
@opend="$emit('opend')"
|
|
14
|
+
>
|
|
15
|
+
<div class="operation-area">
|
|
16
|
+
<el-button size="default" type="primary" @click="saveConfig">
|
|
17
|
+
{{ $t('imatrixUIPublicModel.sure') }}
|
|
18
|
+
</el-button>
|
|
19
|
+
<el-button size="default" @click="resetConfig">
|
|
20
|
+
{{ $t('imatrixUIPublicModel.reset') }}
|
|
21
|
+
</el-button>
|
|
22
|
+
<el-button size="default" @click="closeTabConfig">
|
|
23
|
+
{{ $t('imatrixUIPublicModel.cancel') }}
|
|
24
|
+
</el-button>
|
|
25
|
+
<span style="padding-left: 10px; color: red"
|
|
26
|
+
>({{ $t('superGrid.dragColumnOrderMessage') }})</span
|
|
27
|
+
>
|
|
28
|
+
</div>
|
|
29
|
+
<el-table v-if="hasLoaded" :data="tabs" class="custom-tab-config-elTable" max-height="450" row-key="code">
|
|
30
|
+
<el-table-column :label="$t('superGrid.tabCode')" property="code" width="150">
|
|
31
|
+
<template v-slot="scope">
|
|
32
|
+
<span :title="scope.row.code" class="ellipsis cell--span">{{ scope.row.code }}</span>
|
|
33
|
+
</template>
|
|
34
|
+
<!-- <template v-slot="scope">
|
|
35
|
+
<el-input
|
|
36
|
+
v-model="scope.row.code"
|
|
37
|
+
clearable
|
|
38
|
+
size="default"
|
|
39
|
+
/>
|
|
40
|
+
</template> -->
|
|
41
|
+
</el-table-column>
|
|
42
|
+
<el-table-column :label="$t('superGrid.tabName')" property="name">
|
|
43
|
+
<template v-slot="scope">
|
|
44
|
+
<el-input
|
|
45
|
+
v-model="scope.row.name"
|
|
46
|
+
clearable
|
|
47
|
+
size="default"
|
|
48
|
+
/>
|
|
49
|
+
</template>
|
|
50
|
+
</el-table-column>
|
|
51
|
+
<el-table-column :label="$t('superGrid.displayOrder')" property="displayOrder" sortable width="150">
|
|
52
|
+
<template v-slot="scope">
|
|
53
|
+
<el-input
|
|
54
|
+
v-model="scope.row.displayOrder"
|
|
55
|
+
clearable
|
|
56
|
+
type="number"
|
|
57
|
+
size="default"
|
|
58
|
+
/>
|
|
59
|
+
</template>
|
|
60
|
+
</el-table-column>
|
|
61
|
+
<!-- <el-table-column :label="$t('imatrixUIPublicModel.edit')" width="90">
|
|
62
|
+
<template #header>
|
|
63
|
+
<el-icon
|
|
64
|
+
size="14"
|
|
65
|
+
style="color: #5893ef; cursor: pointer; font-weight: bold;"
|
|
66
|
+
@click="addTab(null)"
|
|
67
|
+
>
|
|
68
|
+
<Plus />
|
|
69
|
+
</el-icon>
|
|
70
|
+
</template>
|
|
71
|
+
<template #default="scope">
|
|
72
|
+
<el-icon
|
|
73
|
+
size="14"
|
|
74
|
+
style="color: #5893ef; cursor: pointer; font-weight: bold; margin-right: 8px"
|
|
75
|
+
@click="addTab(scope.row)"
|
|
76
|
+
>
|
|
77
|
+
<Plus />
|
|
78
|
+
</el-icon>
|
|
79
|
+
<el-icon size="14" style="color: #5893ef; cursor: pointer" @click="deleteTab(scope.row)">
|
|
80
|
+
<Delete />
|
|
81
|
+
</el-icon>
|
|
82
|
+
</template>
|
|
83
|
+
</el-table-column> -->
|
|
84
|
+
</el-table>
|
|
85
|
+
</el-dialog>
|
|
86
|
+
</template>
|
|
87
|
+
|
|
88
|
+
<script>
|
|
89
|
+
import { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer'
|
|
90
|
+
import * as Vue from 'vue'
|
|
91
|
+
import store from './store'
|
|
92
|
+
import Sortable from 'sortablejs'
|
|
93
|
+
|
|
94
|
+
export default {
|
|
95
|
+
name: 'ColumnsConfig',
|
|
96
|
+
props: {
|
|
97
|
+
listCode: {
|
|
98
|
+
type: String,
|
|
99
|
+
default: ''
|
|
100
|
+
},
|
|
101
|
+
listTabs: {
|
|
102
|
+
type: Array,
|
|
103
|
+
default: () => {
|
|
104
|
+
return []
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
data() {
|
|
109
|
+
const listTabsCopy = JSON.parse(JSON.stringify(this.listTabs))
|
|
110
|
+
return {
|
|
111
|
+
tabs: listTabsCopy,
|
|
112
|
+
hasLoaded: false
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
created() {
|
|
116
|
+
},
|
|
117
|
+
mounted() {
|
|
118
|
+
// this.listAllTabs().then((tabs) => {
|
|
119
|
+
// this.tabs = tabs
|
|
120
|
+
this.hasLoaded = true
|
|
121
|
+
this.$nextTick(() => {
|
|
122
|
+
this.dragColumnDisplayOrder()
|
|
123
|
+
})
|
|
124
|
+
// })
|
|
125
|
+
},
|
|
126
|
+
methods: {
|
|
127
|
+
saveConfig() {
|
|
128
|
+
if(!this.tabs || this.tabs.length === 0){
|
|
129
|
+
this.$message({
|
|
130
|
+
type: 'warning',
|
|
131
|
+
message: this.$t('superGrid.emptyTabInfo'),
|
|
132
|
+
showClose: true
|
|
133
|
+
})
|
|
134
|
+
return
|
|
135
|
+
}
|
|
136
|
+
const params = {
|
|
137
|
+
tabs: this.tabs,
|
|
138
|
+
listCode: this.listCode
|
|
139
|
+
}
|
|
140
|
+
this.$http
|
|
141
|
+
.post(window.$vueApp.config.globalProperties.baseAPI + '/component/super-grids/setting-list-tabs', params)
|
|
142
|
+
.then((data) => {
|
|
143
|
+
this.$message({
|
|
144
|
+
type: 'success',
|
|
145
|
+
message: this.$t('imatrixUIMessage.saveSuccessfully'),
|
|
146
|
+
showClose: true
|
|
147
|
+
})
|
|
148
|
+
$emit(this, 'close', this.tabs)
|
|
149
|
+
})
|
|
150
|
+
},
|
|
151
|
+
closeTabConfig(){
|
|
152
|
+
$emit(this, 'close')
|
|
153
|
+
},
|
|
154
|
+
resetConfig() {
|
|
155
|
+
this.$confirm(this.$t('superGrid.whetherToConfirmReset'), this.$t('imatrixUIMessage.tips'), {
|
|
156
|
+
confirmButtonText: this.$t('imatrixUIPublicModel.sure'),
|
|
157
|
+
cancelButtonText: this.$t('imatrixUIPublicModel.cancel'),
|
|
158
|
+
type: 'warning'
|
|
159
|
+
}).then(() => {
|
|
160
|
+
const url =
|
|
161
|
+
window.$vueApp.config.globalProperties.baseAPI + '/component/super-grids/reset-list-tabs/' + this.listCode
|
|
162
|
+
this.$http.delete(url).then(() => {
|
|
163
|
+
this.$message({
|
|
164
|
+
type: 'success',
|
|
165
|
+
message: this.$t('superGrid.resetSuccessful'),
|
|
166
|
+
showClose: true
|
|
167
|
+
})
|
|
168
|
+
this.hasLoaded = false
|
|
169
|
+
this.listAllTabs().then((tabs) => {
|
|
170
|
+
this.tabs = tabs
|
|
171
|
+
this.hasLoaded = true
|
|
172
|
+
this.$nextTick(() => {
|
|
173
|
+
this.dragColumnDisplayOrder()
|
|
174
|
+
})
|
|
175
|
+
$emit(this, 'reset', true)
|
|
176
|
+
})
|
|
177
|
+
// $emit(this, 'close', this.tabs)
|
|
178
|
+
})
|
|
179
|
+
})
|
|
180
|
+
},
|
|
181
|
+
listAllTabs() {
|
|
182
|
+
return new Promise((resolve, reject) => {
|
|
183
|
+
const url =
|
|
184
|
+
window.$vueApp.config.globalProperties.baseAPI + '/component/super-grids/user-list-tabs/' + this.listCode
|
|
185
|
+
this.$http
|
|
186
|
+
.get(url)
|
|
187
|
+
.then((tabs) => {
|
|
188
|
+
resolve(tabs)
|
|
189
|
+
})
|
|
190
|
+
.catch((error) => {
|
|
191
|
+
reject(error)
|
|
192
|
+
})
|
|
193
|
+
})
|
|
194
|
+
},
|
|
195
|
+
// 拖动列顺序
|
|
196
|
+
dragColumnDisplayOrder() {
|
|
197
|
+
return new Promise((resolve, reject) => {
|
|
198
|
+
const tbody = document.querySelector('.custom-tab-config-elTable .el-table__body-wrapper tbody')
|
|
199
|
+
if (tbody != null) {
|
|
200
|
+
const vm = this
|
|
201
|
+
Sortable.create(tbody, {
|
|
202
|
+
onEnd({ newIndex, oldIndex }) {
|
|
203
|
+
if (
|
|
204
|
+
oldIndex !== null &&
|
|
205
|
+
oldIndex !== undefined &&
|
|
206
|
+
oldIndex !== -1 &&
|
|
207
|
+
newIndex !== null &&
|
|
208
|
+
newIndex !== undefined &&
|
|
209
|
+
newIndex !== -1
|
|
210
|
+
) {
|
|
211
|
+
// 如果是 序号、复选框列,不要修改元素
|
|
212
|
+
const dragColumn = JSON.parse(JSON.stringify(vm.tabs[oldIndex]))
|
|
213
|
+
console.log('config拖动页签dragColumn', dragColumn)
|
|
214
|
+
// 将拖动的元素删除
|
|
215
|
+
vm.tabs.splice(oldIndex, 1)
|
|
216
|
+
// 将拖动的元素插入到新位置
|
|
217
|
+
vm.tabs.splice(newIndex, 0, dragColumn)
|
|
218
|
+
}
|
|
219
|
+
// 重置列顺序
|
|
220
|
+
for (let i = 0; i < vm.tabs.length; i++) {
|
|
221
|
+
let tab = vm.tabs[i]
|
|
222
|
+
tab.displayOrder = i + 1
|
|
223
|
+
}
|
|
224
|
+
console.log('config拖动页签', vm.tabs)
|
|
225
|
+
console.log('config拖动页签oldIndex', oldIndex)
|
|
226
|
+
console.log('config拖动页签newIndex', newIndex)
|
|
227
|
+
}
|
|
228
|
+
})
|
|
229
|
+
}
|
|
230
|
+
})
|
|
231
|
+
},
|
|
232
|
+
/**
|
|
233
|
+
* 添加Tab
|
|
234
|
+
*/
|
|
235
|
+
addTab(rowItem) {
|
|
236
|
+
const items = this.tabs
|
|
237
|
+
if(items && items.length === 0){
|
|
238
|
+
const code = 'Tab1'
|
|
239
|
+
items.push({
|
|
240
|
+
name: code,
|
|
241
|
+
displayOrder: 1,
|
|
242
|
+
code: code
|
|
243
|
+
})
|
|
244
|
+
} else if(items && items.length > 0) {
|
|
245
|
+
//查询最大的index
|
|
246
|
+
let maxIndex = -1
|
|
247
|
+
let currentIndex = -1
|
|
248
|
+
if(!rowItem){
|
|
249
|
+
// 表示点击的操作列表头的增加按钮时
|
|
250
|
+
currentIndex = items.length - 1
|
|
251
|
+
maxIndex = items[items.length - 1].index
|
|
252
|
+
} else {
|
|
253
|
+
items.find((item, index) => {
|
|
254
|
+
if (item.index == rowItem.index) {
|
|
255
|
+
currentIndex = index
|
|
256
|
+
}
|
|
257
|
+
if (item.displayOrder > maxIndex) {
|
|
258
|
+
maxIndex = item.displayOrder
|
|
259
|
+
}
|
|
260
|
+
})
|
|
261
|
+
}
|
|
262
|
+
if (currentIndex > -1) {
|
|
263
|
+
const code = 'Tab' + (maxIndex + 1)
|
|
264
|
+
items.splice(currentIndex + 1, 0, {
|
|
265
|
+
name: code,
|
|
266
|
+
displayOrder: maxIndex + 1,
|
|
267
|
+
code: code
|
|
268
|
+
})
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
/**
|
|
274
|
+
* 删除Tab
|
|
275
|
+
*/
|
|
276
|
+
deleteTab(rowItem) {
|
|
277
|
+
const items = this.tabs
|
|
278
|
+
if (!confirm('确定要删除吗?')) {
|
|
279
|
+
return
|
|
280
|
+
}
|
|
281
|
+
let delIdnex = -1
|
|
282
|
+
for (let index in items) {
|
|
283
|
+
if (items[index].code == rowItem.code) {
|
|
284
|
+
delIdnex = index
|
|
285
|
+
break
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
if (delIdnex > -1) {
|
|
289
|
+
items.splice(delIdnex, 1)
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
emits: ['open', 'opend', 'close', 'closed', 'reset', 'opend', 'close', 'closed']
|
|
294
|
+
}
|
|
295
|
+
</script>
|
|
@@ -60,13 +60,7 @@
|
|
|
60
60
|
</template>
|
|
61
61
|
</el-table-column>
|
|
62
62
|
<el-table-column :label="$t('workflowHistoryList.stayDuration')" align="center" width="90">
|
|
63
|
-
<template
|
|
64
|
-
{{ $t('workflowHistoryList.stayDuration') }}
|
|
65
|
-
<el-tooltip :content="$t('workflowHistoryList.stayDurationComment')" placement="top">
|
|
66
|
-
<el-icon><InfoFilled /></el-icon>
|
|
67
|
-
</el-tooltip>
|
|
68
|
-
</template>
|
|
69
|
-
<template #default="scope">
|
|
63
|
+
<template v-slot="scope">
|
|
70
64
|
<span v-if="scope.row.historyType && scope.row.historyType === 'PROCESS_END'" />
|
|
71
65
|
<span v-else-if="!scope.row.copyTask">{{ scope.row.stayDuration }}</span>
|
|
72
66
|
</template>
|
|
@@ -84,13 +78,7 @@
|
|
|
84
78
|
align="center"
|
|
85
79
|
width="110"
|
|
86
80
|
>
|
|
87
|
-
<template
|
|
88
|
-
{{ $t('workflowHistoryList.processingDuration') }}
|
|
89
|
-
<el-tooltip :content="$t('workflowHistoryList.processingDurationComment')" placement="top">
|
|
90
|
-
<el-icon><InfoFilled /></el-icon>
|
|
91
|
-
</el-tooltip>
|
|
92
|
-
</template>
|
|
93
|
-
<template #default="scope">
|
|
81
|
+
<template v-slot="scope">
|
|
94
82
|
<span v-if="scope.row.historyType && scope.row.historyType === 'PROCESS_END'" />
|
|
95
83
|
<span v-else-if="!scope.row.copyTask">{{ scope.row.processingDuration }}</span>
|
|
96
84
|
</template>
|
|
@@ -137,12 +125,9 @@ import { i18nOperation } from '../../../src/utils/workflow-util'
|
|
|
137
125
|
import { getLanguageWithLocale } from '../../../src/utils/util'
|
|
138
126
|
import ApiJs from './api'
|
|
139
127
|
import dayjs from 'dayjs'
|
|
140
|
-
|
|
128
|
+
|
|
141
129
|
export default {
|
|
142
130
|
name: 'WorkflowHistoryList',
|
|
143
|
-
components: {
|
|
144
|
-
InfoFilled
|
|
145
|
-
},
|
|
146
131
|
props: {
|
|
147
132
|
workflowId: {
|
|
148
133
|
type: Number,
|
|
@@ -381,6 +366,7 @@ export default {
|
|
|
381
366
|
if (minutes > 0) {
|
|
382
367
|
parts.push(minutes + this.$t('IntervalSelection.minute'))
|
|
383
368
|
}
|
|
369
|
+
debugger
|
|
384
370
|
if (parts.length === 0) {
|
|
385
371
|
parts.push('0' + this.$t('IntervalSelection.minute'))
|
|
386
372
|
}
|
package/src/i18n/langs/cn.js
CHANGED
|
@@ -155,7 +155,13 @@ const cn = {
|
|
|
155
155
|
orderType: '排序方式',
|
|
156
156
|
orderTypeAsc: '升序',
|
|
157
157
|
orderTypeDesc: '降序',
|
|
158
|
-
close: '关闭'
|
|
158
|
+
close: '关闭',
|
|
159
|
+
tabConfig: '页签配置',
|
|
160
|
+
tab: '所属页签',
|
|
161
|
+
tabCode:'页签编码',
|
|
162
|
+
tabName:'页签名称',
|
|
163
|
+
emptyTabInfo:'页签信息为空,不能保存!',
|
|
164
|
+
otherTabName: '其它信息'
|
|
159
165
|
},
|
|
160
166
|
// 部门树组件
|
|
161
167
|
departmentTree: {},
|
|
@@ -285,11 +291,9 @@ const cn = {
|
|
|
285
291
|
taskStateDoing: '进行中',
|
|
286
292
|
taskStateDone: '已完成',
|
|
287
293
|
cancel_trust_task: '{key_1}取消了用户[{key_2}]的委托任务',
|
|
288
|
-
restore_trust_task: '{key_1}恢复了受托人[{key_2}]的任务',
|
|
289
|
-
cancel_trust_record_task: '{key_1}的委托已取消,办理人[{key_2}]环节[{key_3}]的委托任务被取消',
|
|
290
|
-
cancel_trust_task_complete_task: '{key_1}执行了[{key_2}]操作,办理人[{key_3}]的任务被取消'
|
|
291
|
-
stayDurationComment: '停留时长为上个节点完成的时间到当前节点完成时间的时长,根据自然日计算',
|
|
292
|
-
processingDurationComment: '处理时长为上个节点完成的时间到当前节点完成时间的时长,根据工作日小时数计算'
|
|
294
|
+
restore_trust_task: '{key_1}恢复了受托人[{key_2}]的任务',
|
|
295
|
+
cancel_trust_record_task: '{key_1}的委托已取消,办理人[{key_2}]环节[{key_3}]的委托任务被取消',
|
|
296
|
+
cancel_trust_task_complete_task: '{key_1}执行了[{key_2}]操作,办理人[{key_3}]的任务被取消'
|
|
293
297
|
},
|
|
294
298
|
gateway: {
|
|
295
299
|
timeout: '接口调用超时',
|
package/src/i18n/langs/en.js
CHANGED
|
@@ -156,7 +156,13 @@ const en = {
|
|
|
156
156
|
orderType: 'Order Type',
|
|
157
157
|
orderTypeAsc: 'Asc',
|
|
158
158
|
orderTypeDesc: 'Desc',
|
|
159
|
-
close: 'Close'
|
|
159
|
+
close: 'Close',
|
|
160
|
+
tabConfig: 'Tab Config',
|
|
161
|
+
tab: 'Tab',
|
|
162
|
+
tabCode:'Tab Code',
|
|
163
|
+
tabName:'Tab Name',
|
|
164
|
+
emptyTabInfo:'Tab Information is emtpty,cannot save!',
|
|
165
|
+
otherTabName: 'Other Information'
|
|
160
166
|
},
|
|
161
167
|
departmentTree: {},
|
|
162
168
|
departmentTreeInline: {
|
|
@@ -285,15 +291,9 @@ const en = {
|
|
|
285
291
|
taskStateDoing: 'Doing',
|
|
286
292
|
taskStateDone: 'Done',
|
|
287
293
|
cancel_trust_task: '{key_1} canceled the delegated task of user [{key_2}]',
|
|
288
|
-
restore_trust_task: '{key_1} has restored the task of the trustee [{key_2}]',
|
|
289
|
-
cancel_trust_record_task:
|
|
290
|
-
|
|
291
|
-
cancel_trust_task_complete_task:
|
|
292
|
-
'{key_1} performed the [{key_2}] operation, and the task of the handler [{key_3}] was canceled',
|
|
293
|
-
stayDurationComment:
|
|
294
|
-
'The stay duration is the natural day duration from the completion time of the previous node to the completion time of the current node',
|
|
295
|
-
processingDurationComment:
|
|
296
|
-
'The processing duration is the duration from the completion time of the previous node to the completion time of the current node, measured in working hours between the two node tasks'
|
|
294
|
+
restore_trust_task: '{key_1} has restored the task of the trustee [{key_2}]',
|
|
295
|
+
cancel_trust_record_task: 'The delegation of {key_1} has been canceled, and the delegated task in the [{key_2}] phase of [{key_3}] has been canceled',
|
|
296
|
+
cancel_trust_task_complete_task: '{key_1} performed the [{key_2}] operation, and the task of the handler [{key_3}] was canceled'
|
|
297
297
|
},
|
|
298
298
|
gateway: {
|
|
299
299
|
timeout: 'Interface call timeout',
|
|
@@ -718,7 +718,7 @@ function openDialogWhenPopup(jumpPageSetting, system, pageCode, dataId, jumpMode
|
|
|
718
718
|
return popPageSetting
|
|
719
719
|
}
|
|
720
720
|
|
|
721
|
-
|
|
721
|
+
function packageOpenUrl(system, pageCode, dataId, jumpPageSetting, jumpMode, ids, buttonCode, isHasIdParam) {
|
|
722
722
|
const frontendUrl = getSystemFrontendUrl(system.frontendUrl)
|
|
723
723
|
let path =
|
|
724
724
|
frontendUrl +
|
|
@@ -5,6 +5,7 @@ import { getI18n } from './util'
|
|
|
5
5
|
* @param {*} processNameI18n 流程名称国际化后的值
|
|
6
6
|
*/
|
|
7
7
|
export function i18nOperation(history, processNameI18n, processI18n, language) {
|
|
8
|
+
debugger
|
|
8
9
|
let operation = history.transactionResult
|
|
9
10
|
const historyType = history.historyType
|
|
10
11
|
if (!history.current && historyType) {
|
|
@@ -18,11 +19,7 @@ export function i18nOperation(history, processNameI18n, processI18n, language) {
|
|
|
18
19
|
} else if (i18nKey === 'process_end') {
|
|
19
20
|
i18nKey = 'processEnd'
|
|
20
21
|
}
|
|
21
|
-
if (
|
|
22
|
-
isButtonOperation ||
|
|
23
|
-
historyType === 'HISTORY_COMPLETE_TRANSFER' ||
|
|
24
|
-
historyType === 'CANCEL_TRUST_TASK_COMPLETE_TASK'
|
|
25
|
-
) {
|
|
22
|
+
if (isButtonOperation || historyType === 'HISTORY_COMPLETE_TRANSFER' || historyType === 'CANCEL_TRUST_TASK_COMPLETE_TASK') {
|
|
26
23
|
// 是普通任务办理按钮 或 完成移交任务时,才会传“操作”(例如:submit、save、approve等等)
|
|
27
24
|
// 需要把这些操作进行国际化显示。
|
|
28
25
|
// 在params中2对应的是操作
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { A as a, e as s } from "./mermaid-parser.core-CH9ryA1K-54fad62d.js";
|
|
2
|
-
import "./index-13e73297.js";
|
|
3
|
-
import "vue";
|
|
4
|
-
import "./mermaid.core-CAqkCmS1-1a2bb6c5.js";
|
|
5
|
-
import "./_baseUniq-BXtq6_NW-b5fc489d.js";
|
|
6
|
-
import "./min-BngCxx8g-f2fc5ef1.js";
|
|
7
|
-
import "./clone-CEJtuQzg-87b6fde3.js";
|
|
8
|
-
export {
|
|
9
|
-
a as ArchitectureModule,
|
|
10
|
-
s as createArchitectureServices
|
|
11
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { G, f as s } from "./mermaid-parser.core-CH9ryA1K-54fad62d.js";
|
|
2
|
-
import "./index-13e73297.js";
|
|
3
|
-
import "vue";
|
|
4
|
-
import "./mermaid.core-CAqkCmS1-1a2bb6c5.js";
|
|
5
|
-
import "./_baseUniq-BXtq6_NW-b5fc489d.js";
|
|
6
|
-
import "./min-BngCxx8g-f2fc5ef1.js";
|
|
7
|
-
import "./clone-CEJtuQzg-87b6fde3.js";
|
|
8
|
-
export {
|
|
9
|
-
G as GitGraphModule,
|
|
10
|
-
s as createGitGraphServices
|
|
11
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { I as c, c as f } from "./mermaid-parser.core-CH9ryA1K-54fad62d.js";
|
|
2
|
-
import "./index-13e73297.js";
|
|
3
|
-
import "vue";
|
|
4
|
-
import "./mermaid.core-CAqkCmS1-1a2bb6c5.js";
|
|
5
|
-
import "./_baseUniq-BXtq6_NW-b5fc489d.js";
|
|
6
|
-
import "./min-BngCxx8g-f2fc5ef1.js";
|
|
7
|
-
import "./clone-CEJtuQzg-87b6fde3.js";
|
|
8
|
-
export {
|
|
9
|
-
c as InfoModule,
|
|
10
|
-
f as createInfoServices
|
|
11
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { P as c, a as s } from "./mermaid-parser.core-CH9ryA1K-54fad62d.js";
|
|
2
|
-
import "./index-13e73297.js";
|
|
3
|
-
import "vue";
|
|
4
|
-
import "./mermaid.core-CAqkCmS1-1a2bb6c5.js";
|
|
5
|
-
import "./_baseUniq-BXtq6_NW-b5fc489d.js";
|
|
6
|
-
import "./min-BngCxx8g-f2fc5ef1.js";
|
|
7
|
-
import "./clone-CEJtuQzg-87b6fde3.js";
|
|
8
|
-
export {
|
|
9
|
-
c as PacketModule,
|
|
10
|
-
s as createPacketServices
|
|
11
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { b as s, d as c } from "./mermaid-parser.core-CH9ryA1K-54fad62d.js";
|
|
2
|
-
import "./index-13e73297.js";
|
|
3
|
-
import "vue";
|
|
4
|
-
import "./mermaid.core-CAqkCmS1-1a2bb6c5.js";
|
|
5
|
-
import "./_baseUniq-BXtq6_NW-b5fc489d.js";
|
|
6
|
-
import "./min-BngCxx8g-f2fc5ef1.js";
|
|
7
|
-
import "./clone-CEJtuQzg-87b6fde3.js";
|
|
8
|
-
export {
|
|
9
|
-
s as PieModule,
|
|
10
|
-
c as createPieServices
|
|
11
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { R as d, g as s } from "./mermaid-parser.core-CH9ryA1K-54fad62d.js";
|
|
2
|
-
import "./index-13e73297.js";
|
|
3
|
-
import "vue";
|
|
4
|
-
import "./mermaid.core-CAqkCmS1-1a2bb6c5.js";
|
|
5
|
-
import "./_baseUniq-BXtq6_NW-b5fc489d.js";
|
|
6
|
-
import "./min-BngCxx8g-f2fc5ef1.js";
|
|
7
|
-
import "./clone-CEJtuQzg-87b6fde3.js";
|
|
8
|
-
export {
|
|
9
|
-
d as RadarModule,
|
|
10
|
-
s as createRadarServices
|
|
11
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { T as s, h as T } from "./mermaid-parser.core-CH9ryA1K-54fad62d.js";
|
|
2
|
-
import "./index-13e73297.js";
|
|
3
|
-
import "vue";
|
|
4
|
-
import "./mermaid.core-CAqkCmS1-1a2bb6c5.js";
|
|
5
|
-
import "./_baseUniq-BXtq6_NW-b5fc489d.js";
|
|
6
|
-
import "./min-BngCxx8g-f2fc5ef1.js";
|
|
7
|
-
import "./clone-CEJtuQzg-87b6fde3.js";
|
|
8
|
-
export {
|
|
9
|
-
s as TreemapModule,
|
|
10
|
-
T as createTreemapServices
|
|
11
|
-
};
|