n20-common-lib 2.5.38 → 2.5.40
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/package.json +1 -1
- package/src/components/ApprovalButtons/showAppOpi.vue +23 -3
- package/src/index.js +13 -14
- package/style/index.css +1 -1
- package/style/index.css.map +1 -1
- package/theme/blue.css +1 -1
- package/theme/cctcRed.css +1 -1
- package/theme/green.css +1 -1
- package/theme/lightBlue.css +1 -1
- package/theme/orange.css +1 -1
- package/theme/purple.css +1 -1
- package/theme/red.css +1 -1
- package/theme/yellow.css +1 -1
package/package.json
CHANGED
|
@@ -53,17 +53,37 @@ export default {
|
|
|
53
53
|
getData() {
|
|
54
54
|
if (this.andUser) {
|
|
55
55
|
axios.post('/bems/activiti/actAppOpi/queryAppOpiAndUser', null, { loading: false }).then(({ data }) => {
|
|
56
|
-
this.approveMsgList = data || []
|
|
56
|
+
this.approveMsgList = this.getOnlyData(data || [])
|
|
57
57
|
})
|
|
58
58
|
} else {
|
|
59
59
|
axios.post('/bems/activiti/actAppOpi/queryAppOpi', null, { loading: false }).then(({ data }) => {
|
|
60
|
-
this.approveMsgList = data.list || []
|
|
60
|
+
this.approveMsgList = this.getOnlyData(data.list || [])
|
|
61
61
|
})
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
|
+
getOnlyData(data) {
|
|
65
|
+
const length = data.length
|
|
66
|
+
if (length === 0) {
|
|
67
|
+
return result
|
|
68
|
+
}
|
|
69
|
+
let result = []
|
|
70
|
+
const suggestionMap = {}
|
|
71
|
+
for (let i = 0; i < length; i++) {
|
|
72
|
+
let currentItem = data[i]
|
|
73
|
+
let suggestion = currentItem.suggestion
|
|
74
|
+
if (!suggestionMap[suggestion]) {
|
|
75
|
+
suggestionMap[suggestion] = true
|
|
76
|
+
result.push(currentItem)
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return result
|
|
80
|
+
},
|
|
64
81
|
changeFn() {
|
|
65
82
|
// if (this.approveMsgSlt?.length) {
|
|
66
|
-
this.$emit(
|
|
83
|
+
this.$emit(
|
|
84
|
+
'update:message',
|
|
85
|
+
Array.isArray(this.approveMsgSlt) ? this.approveMsgSlt.join('\n') : this.approveMsgSlt
|
|
86
|
+
)
|
|
67
87
|
// }
|
|
68
88
|
}
|
|
69
89
|
}
|
package/src/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './utils/storagePro.js' // 扩展Storage
|
|
2
2
|
/** 提供组件给外部使用的入口 */
|
|
3
|
-
import Anchor from './components/Anchor/index.vue'
|
|
4
3
|
import AnchorItem from './components/Anchor/AnchorItem.vue'
|
|
4
|
+
import Anchor from './components/Anchor/index.vue'
|
|
5
5
|
|
|
6
6
|
import ApprovalButtons from './components/ApprovalButtons/index.vue'
|
|
7
7
|
import ApproveCard from './components/ApprovalCard/ApproveCard.vue'
|
|
@@ -51,9 +51,9 @@ import StatisPopover from './components/Statis/statisPopover.vue'
|
|
|
51
51
|
import Step from './components/Step/index.vue'
|
|
52
52
|
import Suspend from './components/Suspend/index.vue'
|
|
53
53
|
import Table from './components/Table/index.vue'
|
|
54
|
-
import TablePro from './components/TablePro/index.vue'
|
|
55
54
|
import TableOperate from './components/TableOperateColumn/OperateBtns.vue'
|
|
56
55
|
import TableOperateColumn from './components/TableOperateColumn/index.vue'
|
|
56
|
+
import TablePro from './components/TablePro/index.vue'
|
|
57
57
|
import TableProOperateColumn from './components/TableProOperateColumn/index.vue'
|
|
58
58
|
import TableSetSize from './components/TableSetSize'
|
|
59
59
|
import Task from './components/Task/index.vue'
|
|
@@ -62,9 +62,9 @@ import TimePicker from './components/TimePicker/index.vue'
|
|
|
62
62
|
import Upload from './components/Upload/index.vue'
|
|
63
63
|
import WornPagination from './components/WornPagination/index.vue'
|
|
64
64
|
|
|
65
|
-
import Tree from './components/Tree/index.vue'
|
|
66
|
-
import SelectTreePro from './components/SelectTree/pro.vue'
|
|
67
65
|
import AdvancedFilter from './components/AdvancedFilter/index.vue'
|
|
66
|
+
import SelectTreePro from './components/SelectTree/pro.vue'
|
|
67
|
+
import Tree from './components/Tree/index.vue'
|
|
68
68
|
|
|
69
69
|
// 新版日期选择框
|
|
70
70
|
import BusiDatePicker from './components/DateSelect/busiDate.vue'
|
|
@@ -92,12 +92,12 @@ import ApprovalRecordZjk from './components/ApprovalRecord/index-zjk.vue'
|
|
|
92
92
|
/** 注入指令 */
|
|
93
93
|
import VClickOutside from './directives/VClickOutside/index.js'
|
|
94
94
|
import VDrag from './directives/VDrag/index.js'
|
|
95
|
+
import VErrorMessage from './directives/VErrorMessage/index.js'
|
|
95
96
|
import VHas from './directives/VHas/index.js'
|
|
96
97
|
import VMove from './directives/VMove/index.js'
|
|
97
98
|
import VRuleKey from './directives/VRuleKey/index.js'
|
|
98
99
|
import { HoverTooltip, TitleDirective } from './directives/VTitle/index.js'
|
|
99
100
|
import VTableLoading from './directives/loading/index.js'
|
|
100
|
-
import VErrorMessage from './directives/VErrorMessage/index.js'
|
|
101
101
|
|
|
102
102
|
/** 注入方法 */
|
|
103
103
|
import dayjs from 'dayjs'
|
|
@@ -109,7 +109,7 @@ import auth from './utils/auth.js'
|
|
|
109
109
|
import axios from './utils/axios.js'
|
|
110
110
|
import downloadBlob from './utils/downloadBlob.js'
|
|
111
111
|
import forEachs from './utils/forEachs'
|
|
112
|
-
import {
|
|
112
|
+
import { refreshTab, setTabs } from './utils/handleTab.js'
|
|
113
113
|
import imgLoad from './utils/imgLoad.js'
|
|
114
114
|
import importG from './utils/importGlobal.js' // 联合加载组件保存位置
|
|
115
115
|
import list2tree from './utils/list2tree'
|
|
@@ -120,7 +120,7 @@ function numerify(input, formatType, roundingFunction) {
|
|
|
120
120
|
return _numerify(input, formatType, roundingFunction || Math.floor)
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
import { convert
|
|
123
|
+
import { convert } from './utils/amountInWords.js'
|
|
124
124
|
|
|
125
125
|
/** 国际化 */
|
|
126
126
|
import i18n, { $l } from './utils/i18n'
|
|
@@ -251,6 +251,7 @@ export default {
|
|
|
251
251
|
const linkClose = closeTab
|
|
252
252
|
export {
|
|
253
253
|
$l,
|
|
254
|
+
AdvancedFilter,
|
|
254
255
|
Anchor,
|
|
255
256
|
AnchorItem,
|
|
256
257
|
ApprovalButtons,
|
|
@@ -303,6 +304,7 @@ export {
|
|
|
303
304
|
SelectLazy,
|
|
304
305
|
SelectTree,
|
|
305
306
|
SelectTreeLazy,
|
|
307
|
+
SelectTreePro,
|
|
306
308
|
ShowColumn,
|
|
307
309
|
Sifting,
|
|
308
310
|
Stamp,
|
|
@@ -312,15 +314,16 @@ export {
|
|
|
312
314
|
Step,
|
|
313
315
|
Suspend,
|
|
314
316
|
Table,
|
|
315
|
-
TablePro,
|
|
316
317
|
TableOperate,
|
|
317
318
|
TableOperateColumn,
|
|
319
|
+
TablePro,
|
|
318
320
|
TableProOperateColumn,
|
|
319
321
|
TableSetSize,
|
|
320
322
|
TableTransfer,
|
|
321
323
|
Task,
|
|
322
324
|
TertiaryTab,
|
|
323
325
|
TimePicker,
|
|
326
|
+
Tree,
|
|
324
327
|
Upload,
|
|
325
328
|
UploadMsg,
|
|
326
329
|
WorkCard,
|
|
@@ -330,14 +333,13 @@ export {
|
|
|
330
333
|
auth,
|
|
331
334
|
axios,
|
|
332
335
|
closeTab,
|
|
336
|
+
convert,
|
|
333
337
|
dayjs,
|
|
334
338
|
downloadBlob,
|
|
335
339
|
forEachs,
|
|
336
340
|
getJsonc,
|
|
337
341
|
imgLoad,
|
|
338
342
|
importG,
|
|
339
|
-
convert,
|
|
340
|
-
singleConvert,
|
|
341
343
|
// 权限
|
|
342
344
|
isHas,
|
|
343
345
|
isHasG,
|
|
@@ -347,12 +349,9 @@ export {
|
|
|
347
349
|
list2tree,
|
|
348
350
|
numerify,
|
|
349
351
|
operatingStatus,
|
|
352
|
+
refreshTab,
|
|
350
353
|
repairEl,
|
|
351
354
|
// 页签/路由
|
|
352
355
|
setTabs,
|
|
353
|
-
refreshTab,
|
|
354
|
-
Tree,
|
|
355
|
-
SelectTreePro,
|
|
356
|
-
AdvancedFilter,
|
|
357
356
|
version
|
|
358
357
|
}
|