@lambo-design/workflow-approve 1.0.0-beta.137 → 1.0.0-beta.139
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/README.md +28 -0
- package/package.json +4 -4
- package/src/components/assignee-box.vue +8 -0
- package/src/portrait.vue +6 -1
package/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# 常见问题
|
|
2
|
+
|
|
3
|
+
- 启动报错找不到docx-preview
|
|
4
|
+
修改vue.config.js,在对应属性下增加如下配置。
|
|
5
|
+
```
|
|
6
|
+
chainWebpack: (config) => {
|
|
7
|
+
config.module
|
|
8
|
+
.rule('docx-preview')
|
|
9
|
+
.test(/node_modules[\\/]docx-preview[\\/].*\.js$/)
|
|
10
|
+
.use('babel')
|
|
11
|
+
.loader('babel-loader')
|
|
12
|
+
.options({
|
|
13
|
+
presets: [
|
|
14
|
+
['@babel/preset-env', { modules: false }]
|
|
15
|
+
]
|
|
16
|
+
})
|
|
17
|
+
.end()
|
|
18
|
+
},
|
|
19
|
+
configureWebpack: {
|
|
20
|
+
resolve: {
|
|
21
|
+
alias: {
|
|
22
|
+
// 确保 docx-preview 能被正确解析
|
|
23
|
+
'docx-preview': require.resolve('docx-preview')
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lambo-design/workflow-approve",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.139",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "lambo",
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"registry": "https://registry.npmjs.org/"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"axios": "^0.24.0",
|
|
14
|
-
"axios-cache-plugin": "^0.1.0",
|
|
15
13
|
"@lambo-design/core": "^4.7.1-beta.176",
|
|
16
|
-
"@lambo-design/shared": "^1.0.0-beta.
|
|
14
|
+
"@lambo-design/shared": "^1.0.0-beta.354",
|
|
15
|
+
"axios": "^0.24.0",
|
|
16
|
+
"axios-cache-plugin": "^0.1.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"bpmn-js": "^7.3.1",
|
|
@@ -159,6 +159,14 @@ export default {
|
|
|
159
159
|
align: 'center',
|
|
160
160
|
width: 55
|
|
161
161
|
})
|
|
162
|
+
} else {
|
|
163
|
+
columns.push({
|
|
164
|
+
title: '#',
|
|
165
|
+
key: 'selectId',
|
|
166
|
+
type: 'single-selection',
|
|
167
|
+
align: 'center',
|
|
168
|
+
width: 55
|
|
169
|
+
})
|
|
162
170
|
}
|
|
163
171
|
if (!(self.useTransferRangeUsers && self.ucAdapterType == 'sc')){
|
|
164
172
|
columns.push({
|
package/src/portrait.vue
CHANGED
|
@@ -469,6 +469,11 @@ export default {
|
|
|
469
469
|
type: Boolean,
|
|
470
470
|
default: false
|
|
471
471
|
},
|
|
472
|
+
//驳回指定环节时强制不展示的环节编码
|
|
473
|
+
displayedPreNodes: {
|
|
474
|
+
type: Array,
|
|
475
|
+
default: () => ([])
|
|
476
|
+
},
|
|
472
477
|
},
|
|
473
478
|
components: {
|
|
474
479
|
Title,
|
|
@@ -2236,7 +2241,7 @@ export default {
|
|
|
2236
2241
|
ajax.get(self.smartFlowServerContext + '/manage/processTodo/getAllPreNodes', {params: params}).then(function (resp) {
|
|
2237
2242
|
if (resp.data.code === '200') {
|
|
2238
2243
|
if (resp.data.data.length > 0) {
|
|
2239
|
-
self.allNode = resp.data.data
|
|
2244
|
+
self.allNode = resp.data.data.filter(node => !self.displayedPreNodes.includes(node.taskNode))
|
|
2240
2245
|
self.modal1 = true
|
|
2241
2246
|
} else {
|
|
2242
2247
|
self.$Message.warning('当前流程无前序节点')
|