ui-process-h5 2.0.8-beta → 2.1.0-beta
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 +11 -204
- package/build/configure/README.md +211 -0
- package/build/configure/package.json +32 -0
- package/debug.js +9 -0
- package/index.html +12 -0
- package/package.json +56 -25
- package/src/App.vue +233 -0
- package/src/assets/font-icon/iconfont.scss +57 -0
- package/src/assets/font-icon/iconfont.ttf +0 -0
- package/src/assets/img/add-file.png +0 -0
- package/src/assets/img/arrow-right.png +0 -0
- package/src/assets/img/arrow.png +0 -0
- package/src/assets/img/check.png +0 -0
- package/src/assets/img/del.png +0 -0
- package/src/assets/img/doc.png +0 -0
- package/src/assets/img/file.png +0 -0
- package/src/assets/img/image.png +0 -0
- package/src/assets/img/pdf.png +0 -0
- package/src/assets/img/process.png +0 -0
- package/src/assets/img/xls.png +0 -0
- package/src/assets/img/zip.png +0 -0
- package/src/assets/js/auth.js +65 -0
- package/src/assets/js/errorCode.js +6 -0
- package/src/assets/js/message.js +352 -0
- package/src/assets/js/request.js +99 -0
- package/src/assets/js/toast.js +239 -0
- package/src/assets/js/top.js +229 -0
- package/src/assets/js/utils.js +83 -0
- package/src/assets/js/vuePopper.js +123 -0
- package/src/assets/query.png +0 -0
- package/src/assets/status/check.png +0 -0
- package/src/assets/status/del.png +0 -0
- package/src/assets/status/error.png +0 -0
- package/src/assets/status/loading.png +0 -0
- package/src/assets/status/success.png +0 -0
- package/src/main.js +17 -0
- package/src/packages/attchUpload/index.js +375 -0
- package/src/packages/attchUpload/index.scss +143 -0
- package/src/packages/attchUpload/index.vue +173 -0
- package/src/packages/downSelect/index.js +119 -0
- package/src/packages/downSelect/index.scss +88 -0
- package/src/packages/downSelect/index.vue +62 -0
- package/src/packages/index.js +6 -0
- package/src/packages/popup/index.js +125 -0
- package/src/packages/popup/index.scss +178 -0
- package/src/packages/popup/index.vue +80 -0
- package/src/packages/preview/index.js +40 -0
- package/src/packages/preview/index.vue +15 -0
- package/src/packages/previewImage/index.js +286 -0
- package/src/packages/previewImage/index.scss +76 -0
- package/src/packages/previewImage/index.vue +53 -0
- package/src/packages/process/index.js +1016 -0
- package/src/packages/process/index.scss +188 -0
- package/src/packages/process/index.vue +291 -0
- package/src/packages/process/operation/backNode.vue +396 -0
- package/src/packages/process/operation/cancel.vue +425 -0
- package/src/packages/process/operation/ccTask.vue +256 -0
- package/src/packages/process/operation/complete.vue +1384 -0
- package/src/packages/process/operation/counterSign.vue +498 -0
- package/src/packages/process/operation/delegateTask.vue +493 -0
- package/src/packages/process/operation/index.js +8 -0
- package/src/packages/process/operation/index.scss +212 -0
- package/src/packages/process/operation/msgList.vue +174 -0
- package/src/packages/process/operation/treeNode.vue +901 -0
- package/src/packages/process/operation/treePerson.vue +304 -0
- package/src/packages/submitPopup/index.js +708 -0
- package/src/packages/submitPopup/index.scss +190 -0
- package/src/packages/submitPopup/index.vue +125 -0
- package/src/packages/tab/index.js +236 -0
- package/src/packages/tab/index.scss +177 -0
- package/src/packages/tab/index.vue +155 -0
- package/src/packages/tip/index.js +80 -0
- package/src/packages/tip/index.scss +121 -0
- package/src/packages/tip/index.vue +57 -0
- package/src/packages/viewAttchList/index.js +138 -0
- package/src/packages/viewAttchList/index.scss +76 -0
- package/src/packages/viewAttchList/index.vue +121 -0
- package/src/style.css +80 -0
- package/vite.config.ts +118 -0
- package/v2/style.css +0 -1
- package/v2/ui-process-h5.js +0 -9945
- package/v2/ui-process-h5.umd.cjs +0 -18
- package/v2.7/style.css +0 -1
- package/v2.7/ui-process-h5.js +0 -9322
- package/v2.7/ui-process-h5.umd.cjs +0 -18
- package/v3/style.css +0 -1
- package/v3/ui-process-h5.js +0 -6842
- package/v3/ui-process-h5.umd.cjs +0 -6
- /package/{scripts → build/scripts}/postinstall.mjs +0 -0
- /package/{scripts → build/scripts}/switch-cli.mjs +0 -0
- /package/{scripts → build/scripts}/utils.mjs +0 -0
package/README.md
CHANGED
|
@@ -1,211 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Vue 3 + TypeScript + Vite
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Recommended IDE Setup
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
>
|
|
9
|
-
> > ```bash
|
|
10
|
-
> > npm i ui-process-h5 -D
|
|
11
|
-
> > ```
|
|
7
|
+
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
>
|
|
15
|
-
> > ```bash
|
|
16
|
-
> > npm i @vue/composition-api -D
|
|
17
|
-
> > npm i ui-process-h5 -D
|
|
18
|
-
> > ```
|
|
9
|
+
## Type Support For `.vue` Imports in TS
|
|
19
10
|
|
|
20
|
-
|
|
11
|
+
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
|
|
21
12
|
|
|
22
|
-
|
|
13
|
+
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
|
|
23
14
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
TopSumbitPopup,
|
|
29
|
-
ViewAttchList,
|
|
30
|
-
} from "ui-process-h5";
|
|
31
|
-
export default {
|
|
32
|
-
components: { TopProcess, attchViews, TopSumbitPopup, ViewAttchList },
|
|
33
|
-
};
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
```html
|
|
37
|
-
<template>
|
|
38
|
-
<TopProcess
|
|
39
|
-
:processInstId="processInstId"
|
|
40
|
-
:processDefId="processDefId"
|
|
41
|
-
:formData="formData"
|
|
42
|
-
:isView="isView"
|
|
43
|
-
:userId="userId"
|
|
44
|
-
:request="request"
|
|
45
|
-
:tapList="tapList"
|
|
46
|
-
:selfTapList="selfTapList"
|
|
47
|
-
:endFunction="endFunction"
|
|
48
|
-
:isDocument="isDocument"
|
|
49
|
-
>
|
|
50
|
-
<slot></slot>
|
|
51
|
-
</TopProcess>
|
|
52
|
-
<attchViews
|
|
53
|
-
v-if="labels == '1'"
|
|
54
|
-
:limit="limit ? limit : -1"
|
|
55
|
-
:requires="requires"
|
|
56
|
-
:request="param.request"
|
|
57
|
-
:linkUrl="param.linkUrl"
|
|
58
|
-
@getValue="getValues"
|
|
59
|
-
/>
|
|
60
|
-
<ViewAttchList :inList="inList"></ViewAttchList>
|
|
61
|
-
<TopSumbitPopup
|
|
62
|
-
:visible="visible"
|
|
63
|
-
:request="request"
|
|
64
|
-
:appId="appId"
|
|
65
|
-
:resubmit="resubmit"
|
|
66
|
-
:id="businessKey"
|
|
67
|
-
:businessType="businessType"
|
|
68
|
-
:todoParameter="todoParameter"
|
|
69
|
-
:title="title"
|
|
70
|
-
@successFn="successFn"
|
|
71
|
-
:beforeFunction="beforeFunction"
|
|
72
|
-
></TopSumbitPopup>
|
|
73
|
-
</template>
|
|
74
|
-
<script>
|
|
75
|
-
import "ui-process-h5/style.css";
|
|
76
|
-
import {
|
|
77
|
-
TopProcess,
|
|
78
|
-
attchViews,
|
|
79
|
-
TopSumbitPopup,
|
|
80
|
-
ViewAttchList,
|
|
81
|
-
} from "ui-process-h5";
|
|
82
|
-
export default {
|
|
83
|
-
components: { TopProcess, attchViews, TopSumbitPopup, ViewAttchList },
|
|
84
|
-
data() {
|
|
85
|
-
return {
|
|
86
|
-
formData: {
|
|
87
|
-
businessKey: businessKey,
|
|
88
|
-
processInstId: processInstId,
|
|
89
|
-
processDefId: processDefId,
|
|
90
|
-
title: title,
|
|
91
|
-
subjectId: subjectId,
|
|
92
|
-
userId: userId,
|
|
93
|
-
userName: userName,
|
|
94
|
-
reason: reason,
|
|
95
|
-
meetingTheme: meetingTheme,
|
|
96
|
-
},
|
|
97
|
-
selfBtn: [
|
|
98
|
-
{
|
|
99
|
-
name: "测试",
|
|
100
|
-
type: "danger",
|
|
101
|
-
click: () => {
|
|
102
|
-
console.log("当前::");
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
name: "测试2",
|
|
107
|
-
type: "default",
|
|
108
|
-
click: () => {
|
|
109
|
-
console.log("当前::");
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
],
|
|
113
|
-
};
|
|
114
|
-
},
|
|
115
|
-
methods: {
|
|
116
|
-
endFunction() {
|
|
117
|
-
console.log("endFunction");
|
|
118
|
-
},
|
|
119
|
-
beforeFunction() {
|
|
120
|
-
console.log("beforeFunction");
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
};
|
|
124
|
-
</script>
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
## 属性-Attributes (TopProcess)
|
|
128
|
-
|
|
129
|
-
| 参数 | 类型 | 默认值 | 说明 |
|
|
130
|
-
| -------------- | -------- | ----------------- | --------------------------------------------------- |
|
|
131
|
-
| tapList | Array | [] | tab 节点插入、自定义附件等信息 |
|
|
132
|
-
| selfTapList | Array | [] | 自定义 tab 节点,传入后覆盖原本参数 |
|
|
133
|
-
| request | Object | null | axios 接口请求方法 [需要包含 get post 请求方式] |
|
|
134
|
-
| processInstId | String | '' | 流程实例 ID [必填] |
|
|
135
|
-
| formData | Object | {} | 集合数据 内部存储流程相关信息 businessKey[必填] |
|
|
136
|
-
| isAdditional | boolean | false | 自定义按钮开关 开启后可使用按钮插槽 |
|
|
137
|
-
| getVars | Function | null | 业务方法 |
|
|
138
|
-
| endFunction | Function | null | 弹窗结束后执行方法 |
|
|
139
|
-
| beforeFunction | Function | null | 弹窗开启前执行方法 |
|
|
140
|
-
| restartData | Object | null | 重新提交参数 |
|
|
141
|
-
| isDocument | Boolean | false | 公文独立配置 |
|
|
142
|
-
| selfList | Array | {id,name} | 自定义流程列表 |
|
|
143
|
-
| selfBtn | Array | {name,type,click} | 自定义流程按钮(查看案例 data) |
|
|
144
|
-
| uid | String | "" | 炎黄 uid 若业务流程不需要催办,撤回,可以不使用该参数 |
|
|
145
|
-
| isCheckType | String | "0" | 选人类型 传入后默认所有选人都为该类型 |
|
|
146
|
-
| isMsg | Boolean | false | 意见是否展示 |
|
|
147
|
-
|
|
148
|
-
## 属性-Attributes (attchViews)
|
|
149
|
-
|
|
150
|
-
| 参数 | 类型 | 默认值 | 说明 |
|
|
151
|
-
| -------- | ---------------- | ------ | ----------------------------------------------- |
|
|
152
|
-
| request | Object | null | axios 接口请求方法 [需要包含 get post 请求方式] |
|
|
153
|
-
| limit | [String, Number] | 4 | 最大上传数 |
|
|
154
|
-
| getValue | Function | null | 返回上传数据 url |
|
|
155
|
-
| requires | Boolean | false | 必填 |
|
|
156
|
-
| inComing | Array | Array | 回显已上传列表 |
|
|
157
|
-
| deletFn | Function | null | 组件本身提供静态删除功能,动态删除需传入相应方法 |
|
|
158
|
-
|
|
159
|
-
## 属性-Attributes (ViewAttchList)
|
|
160
|
-
|
|
161
|
-
| 参数 | 类型 | 默认值 | 说明 |
|
|
162
|
-
| ------ | ----- | ------ | ------------ |
|
|
163
|
-
| inList | Array | [] | 附件列表展示 |
|
|
164
|
-
|
|
165
|
-
## 属性-Attributes (TopSumbitPopup)
|
|
166
|
-
|
|
167
|
-
| 参数 | 类型 | 默认值 | 说明 |
|
|
168
|
-
| -------------- | ---------------- | --------- | ----------------------------------------------- |
|
|
169
|
-
| visible | Boolean | false | 展示参数 | |
|
|
170
|
-
| title | String | "" | 送审提交标题参数 |
|
|
171
|
-
| todoParameter | Object | {} | 发起流程时的其他参数 |
|
|
172
|
-
| businessType | [String, Number] | null | 业务类型 |
|
|
173
|
-
| id | String | "" | 业务 Id |
|
|
174
|
-
| resubmit | Boolean | false | 是否为重新提交 |
|
|
175
|
-
| request | Object | null | axios 接口请求方法 [需要包含 get post 请求方式] |
|
|
176
|
-
| appId | String | '' | appId |
|
|
177
|
-
| beforeFunction | Function | null | 提交前执行事件 |
|
|
178
|
-
| successFn | Function | null | 成功后回调 |
|
|
179
|
-
| manual | Boolean | false | 手动执行启动(ref 绑定后执行 handleSongshen()) |
|
|
180
|
-
| selfList | Array | {id,name} | 自定义流程列表 |
|
|
181
|
-
| isCheckType | String | "0" | 选人类型 uid |
|
|
182
|
-
|
|
183
|
-
### tapList-对象说明
|
|
184
|
-
|
|
185
|
-
| 属性名 | 类型 | 说明 |
|
|
186
|
-
| ------ | ------ | ---------------------------------------------------------------------------- |
|
|
187
|
-
| label | String | 选项卡 title |
|
|
188
|
-
| key | String | 选项卡 ID 请勿重复 defaultTabList 内已拥有的默认 key(a、b、c 为默认节点 key) |
|
|
189
|
-
| type | String | 插槽类型 默认 default 插槽 slot |
|
|
190
|
-
| slot | String | 插槽名 |
|
|
191
|
-
| sort | Number | 排序参数,无参数默认插入末尾 |
|
|
192
|
-
|
|
193
|
-
### selfTapList-对象说明 同上
|
|
194
|
-
|
|
195
|
-
### formData-对象说明
|
|
196
|
-
|
|
197
|
-
| 属性名 | 类型 | 说明 |
|
|
198
|
-
| ------------------------- | ------ | ------- |
|
|
199
|
-
| businessKey | String | 业务 ID [必填] |
|
|
200
|
-
| title reason meetingTheme | String | 标题 |
|
|
201
|
-
| uid | String | 角色 id |
|
|
202
|
-
|
|
203
|
-
附件相关列表,参考 getValue 回调参数
|
|
204
|
-
|
|
205
|
-
### restartData-对象说明
|
|
206
|
-
|
|
207
|
-
| 属性名 | 类型 | 说明 |
|
|
208
|
-
| ------------ | ------ | -------------------- |
|
|
209
|
-
| businessType | String | 业务 类型 |
|
|
210
|
-
| showType | String | 流程类型(all,pc,app) |
|
|
211
|
-
| processName | String | 流程查询字段 |
|
|
15
|
+
1. Disable the built-in TypeScript Extension
|
|
16
|
+
1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
|
|
17
|
+
2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
|
|
18
|
+
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
# ui-process-h5
|
|
2
|
+
|
|
3
|
+
> App 端 流程、附件上传、附件列表、送审插件
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
> vue2.7 以上版本安装指令
|
|
8
|
+
>
|
|
9
|
+
> > ```bash
|
|
10
|
+
> > npm i ui-process-h5 -D
|
|
11
|
+
> > ```
|
|
12
|
+
|
|
13
|
+
> vue2.7 以下版本安装指令
|
|
14
|
+
>
|
|
15
|
+
> > ```bash
|
|
16
|
+
> > npm i @vue/composition-api -D
|
|
17
|
+
> > npm i ui-process-h5 -D
|
|
18
|
+
> > ```
|
|
19
|
+
|
|
20
|
+
## 使用
|
|
21
|
+
|
|
22
|
+
在需要使用的组件内引入
|
|
23
|
+
|
|
24
|
+
```js
|
|
25
|
+
import {
|
|
26
|
+
TopProcess,
|
|
27
|
+
attchViews,
|
|
28
|
+
TopSumbitPopup,
|
|
29
|
+
ViewAttchList,
|
|
30
|
+
} from "ui-process-h5";
|
|
31
|
+
export default {
|
|
32
|
+
components: { TopProcess, attchViews, TopSumbitPopup, ViewAttchList },
|
|
33
|
+
};
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
```html
|
|
37
|
+
<template>
|
|
38
|
+
<TopProcess
|
|
39
|
+
:processInstId="processInstId"
|
|
40
|
+
:processDefId="processDefId"
|
|
41
|
+
:formData="formData"
|
|
42
|
+
:isView="isView"
|
|
43
|
+
:userId="userId"
|
|
44
|
+
:request="request"
|
|
45
|
+
:tapList="tapList"
|
|
46
|
+
:selfTapList="selfTapList"
|
|
47
|
+
:endFunction="endFunction"
|
|
48
|
+
:isDocument="isDocument"
|
|
49
|
+
>
|
|
50
|
+
<slot></slot>
|
|
51
|
+
</TopProcess>
|
|
52
|
+
<attchViews
|
|
53
|
+
v-if="labels == '1'"
|
|
54
|
+
:limit="limit ? limit : -1"
|
|
55
|
+
:requires="requires"
|
|
56
|
+
:request="param.request"
|
|
57
|
+
:linkUrl="param.linkUrl"
|
|
58
|
+
@getValue="getValues"
|
|
59
|
+
/>
|
|
60
|
+
<ViewAttchList :inList="inList"></ViewAttchList>
|
|
61
|
+
<TopSumbitPopup
|
|
62
|
+
:visible="visible"
|
|
63
|
+
:request="request"
|
|
64
|
+
:appId="appId"
|
|
65
|
+
:resubmit="resubmit"
|
|
66
|
+
:id="businessKey"
|
|
67
|
+
:businessType="businessType"
|
|
68
|
+
:todoParameter="todoParameter"
|
|
69
|
+
:title="title"
|
|
70
|
+
@successFn="successFn"
|
|
71
|
+
:beforeFunction="beforeFunction"
|
|
72
|
+
></TopSumbitPopup>
|
|
73
|
+
</template>
|
|
74
|
+
<script>
|
|
75
|
+
import "ui-process-h5/style.css";
|
|
76
|
+
import {
|
|
77
|
+
TopProcess,
|
|
78
|
+
attchViews,
|
|
79
|
+
TopSumbitPopup,
|
|
80
|
+
ViewAttchList,
|
|
81
|
+
} from "ui-process-h5";
|
|
82
|
+
export default {
|
|
83
|
+
components: { TopProcess, attchViews, TopSumbitPopup, ViewAttchList },
|
|
84
|
+
data() {
|
|
85
|
+
return {
|
|
86
|
+
formData: {
|
|
87
|
+
businessKey: businessKey,
|
|
88
|
+
processInstId: processInstId,
|
|
89
|
+
processDefId: processDefId,
|
|
90
|
+
title: title,
|
|
91
|
+
subjectId: subjectId,
|
|
92
|
+
userId: userId,
|
|
93
|
+
userName: userName,
|
|
94
|
+
reason: reason,
|
|
95
|
+
meetingTheme: meetingTheme,
|
|
96
|
+
},
|
|
97
|
+
selfBtn: [
|
|
98
|
+
{
|
|
99
|
+
name: "测试",
|
|
100
|
+
type: "danger",
|
|
101
|
+
click: () => {
|
|
102
|
+
console.log("当前::");
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: "测试2",
|
|
107
|
+
type: "default",
|
|
108
|
+
click: () => {
|
|
109
|
+
console.log("当前::");
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
};
|
|
114
|
+
},
|
|
115
|
+
methods: {
|
|
116
|
+
endFunction() {
|
|
117
|
+
console.log("endFunction");
|
|
118
|
+
},
|
|
119
|
+
beforeFunction() {
|
|
120
|
+
console.log("beforeFunction");
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
</script>
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## 属性-Attributes (TopProcess)
|
|
128
|
+
|
|
129
|
+
| 参数 | 类型 | 默认值 | 说明 |
|
|
130
|
+
| -------------- | -------- | ----------------- | --------------------------------------------------- |
|
|
131
|
+
| tapList | Array | [] | tab 节点插入、自定义附件等信息 |
|
|
132
|
+
| selfTapList | Array | [] | 自定义 tab 节点,传入后覆盖原本参数 |
|
|
133
|
+
| request | Object | null | axios 接口请求方法 [需要包含 get post 请求方式] |
|
|
134
|
+
| processInstId | String | '' | 流程实例 ID [必填] |
|
|
135
|
+
| formData | Object | {} | 集合数据 内部存储流程相关信息 businessKey[必填] |
|
|
136
|
+
| isAdditional | boolean | false | 自定义按钮开关 开启后可使用按钮插槽 |
|
|
137
|
+
| getVars | Function | null | 业务方法 |
|
|
138
|
+
| endFunction | Function | null | 弹窗结束后执行方法 |
|
|
139
|
+
| beforeFunction | Function | null | 弹窗开启前执行方法 |
|
|
140
|
+
| restartData | Object | null | 重新提交参数 |
|
|
141
|
+
| isDocument | Boolean | false | 公文独立配置 |
|
|
142
|
+
| selfList | Array | {id,name} | 自定义流程列表 |
|
|
143
|
+
| selfBtn | Array | {name,type,click} | 自定义流程按钮(查看案例 data) |
|
|
144
|
+
| uid | String | "" | 炎黄 uid 若业务流程不需要催办,撤回,可以不使用该参数 |
|
|
145
|
+
| isCheckType | String | "0" | 选人类型 传入后默认所有选人都为该类型 |
|
|
146
|
+
| isMsg | Boolean | false | 意见是否展示 |
|
|
147
|
+
|
|
148
|
+
## 属性-Attributes (attchViews)
|
|
149
|
+
|
|
150
|
+
| 参数 | 类型 | 默认值 | 说明 |
|
|
151
|
+
| -------- | ---------------- | ------ | ----------------------------------------------- |
|
|
152
|
+
| request | Object | null | axios 接口请求方法 [需要包含 get post 请求方式] |
|
|
153
|
+
| limit | [String, Number] | 4 | 最大上传数 |
|
|
154
|
+
| getValue | Function | null | 返回上传数据 url |
|
|
155
|
+
| requires | Boolean | false | 必填 |
|
|
156
|
+
| inComing | Array | Array | 回显已上传列表 |
|
|
157
|
+
| deletFn | Function | null | 组件本身提供静态删除功能,动态删除需传入相应方法 |
|
|
158
|
+
|
|
159
|
+
## 属性-Attributes (ViewAttchList)
|
|
160
|
+
|
|
161
|
+
| 参数 | 类型 | 默认值 | 说明 |
|
|
162
|
+
| ------ | ----- | ------ | ------------ |
|
|
163
|
+
| inList | Array | [] | 附件列表展示 |
|
|
164
|
+
|
|
165
|
+
## 属性-Attributes (TopSumbitPopup)
|
|
166
|
+
|
|
167
|
+
| 参数 | 类型 | 默认值 | 说明 |
|
|
168
|
+
| -------------- | ---------------- | --------- | ----------------------------------------------- |
|
|
169
|
+
| visible | Boolean | false | 展示参数 | |
|
|
170
|
+
| title | String | "" | 送审提交标题参数 |
|
|
171
|
+
| todoParameter | Object | {} | 发起流程时的其他参数 |
|
|
172
|
+
| businessType | [String, Number] | null | 业务类型 |
|
|
173
|
+
| id | String | "" | 业务 Id |
|
|
174
|
+
| resubmit | Boolean | false | 是否为重新提交 |
|
|
175
|
+
| request | Object | null | axios 接口请求方法 [需要包含 get post 请求方式] |
|
|
176
|
+
| appId | String | '' | appId |
|
|
177
|
+
| beforeFunction | Function | null | 提交前执行事件 |
|
|
178
|
+
| successFn | Function | null | 成功后回调 |
|
|
179
|
+
| manual | Boolean | false | 手动执行启动(ref 绑定后执行 handleSongshen()) |
|
|
180
|
+
| selfList | Array | {id,name} | 自定义流程列表 |
|
|
181
|
+
| isCheckType | String | "0" | 选人类型 uid |
|
|
182
|
+
|
|
183
|
+
### tapList-对象说明
|
|
184
|
+
|
|
185
|
+
| 属性名 | 类型 | 说明 |
|
|
186
|
+
| ------ | ------ | ---------------------------------------------------------------------------- |
|
|
187
|
+
| label | String | 选项卡 title |
|
|
188
|
+
| key | String | 选项卡 ID 请勿重复 defaultTabList 内已拥有的默认 key(a、b、c 为默认节点 key) |
|
|
189
|
+
| type | String | 插槽类型 默认 default 插槽 slot |
|
|
190
|
+
| slot | String | 插槽名 |
|
|
191
|
+
| sort | Number | 排序参数,无参数默认插入末尾 |
|
|
192
|
+
|
|
193
|
+
### selfTapList-对象说明 同上
|
|
194
|
+
|
|
195
|
+
### formData-对象说明
|
|
196
|
+
|
|
197
|
+
| 属性名 | 类型 | 说明 |
|
|
198
|
+
| ------------------------- | ------ | ------- |
|
|
199
|
+
| businessKey | String | 业务 ID [必填] |
|
|
200
|
+
| title reason meetingTheme | String | 标题 |
|
|
201
|
+
| uid | String | 角色 id |
|
|
202
|
+
|
|
203
|
+
附件相关列表,参考 getValue 回调参数
|
|
204
|
+
|
|
205
|
+
### restartData-对象说明
|
|
206
|
+
|
|
207
|
+
| 属性名 | 类型 | 说明 |
|
|
208
|
+
| ------------ | ------ | -------------------- |
|
|
209
|
+
| businessType | String | 业务 类型 |
|
|
210
|
+
| showType | String | 流程类型(all,pc,app) |
|
|
211
|
+
| processName | String | 流程查询字段 |
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ui-process-h5",
|
|
3
|
+
"version": "2.1.0-beta",
|
|
4
|
+
"description": "> app端 流程插件",
|
|
5
|
+
"main": "./ui-process-h5.umd.cjs",
|
|
6
|
+
"style": "./style.css",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./ui-process-h5.js",
|
|
11
|
+
"require": "./ui-process-h5.umd.cjs"
|
|
12
|
+
},
|
|
13
|
+
"./style.css": {
|
|
14
|
+
"import": "./style.css",
|
|
15
|
+
"require": "./style.css"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
20
|
+
"postinstall": "node scripts/postinstall.mjs"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"checked-pick-app": "^1.4.12",
|
|
24
|
+
"dsbridge": "^3.1.4"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"checked-pick-app": "^1.4.12",
|
|
28
|
+
"dsbridge": "^3.1.4"
|
|
29
|
+
},
|
|
30
|
+
"author": "",
|
|
31
|
+
"license": "ISC"
|
|
32
|
+
}
|
package/debug.js
ADDED
package/index.html
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
+
<meta name="format-detection" content="telephone=yes"/>
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<div id="app"></div>
|
|
10
|
+
<script type="module" src="/src/main.js"></script>
|
|
11
|
+
</body>
|
|
12
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,32 +1,63 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ui-process-h5",
|
|
3
|
-
"
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
6
|
-
"style": "./style.css",
|
|
3
|
+
"private": false,
|
|
4
|
+
"description": "流程组件",
|
|
5
|
+
"version": "2.1.0-beta",
|
|
7
6
|
"type": "module",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"import": "./ui-process-h5.js",
|
|
11
|
-
"require": "./ui-process-h5.umd.cjs"
|
|
12
|
-
},
|
|
13
|
-
"./style.css": {
|
|
14
|
-
"import": "./style.css",
|
|
15
|
-
"require": "./style.css"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
7
|
"scripts": {
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
"
|
|
8
|
+
"dev": "vite --host 0.0.0.0",
|
|
9
|
+
"build": "npm run clean && run-s build:*",
|
|
10
|
+
"debug:2": "node ./debug.js 2",
|
|
11
|
+
"debug:2.7": "node ./debug.js 2.7",
|
|
12
|
+
"debug:3": "node ./debug.js 3",
|
|
13
|
+
"clean": "rimraf ./ui-process-h5",
|
|
14
|
+
"dev:2": "npm run switch:2 && vite",
|
|
15
|
+
"dev:2.7": "npm run switch:2.7 && vite",
|
|
16
|
+
"dev:3": "npm run switch:3 && vite --force",
|
|
17
|
+
"switch:2": "vue-demi-switch 2 vue2",
|
|
18
|
+
"switch:2.7": "vue-demi-switch 2.7 vue2.7",
|
|
19
|
+
"switch:3": "vue-demi-switch 3 vue3",
|
|
20
|
+
"build:2": "npm run switch:2 && vite build",
|
|
21
|
+
"build:2.7": "npm run switch:2.7 && vite build",
|
|
22
|
+
"build:3": "npm run switch:3 && vite build"
|
|
25
23
|
},
|
|
26
24
|
"dependencies": {
|
|
27
|
-
"
|
|
28
|
-
"
|
|
25
|
+
"@types/node": "^18.16.3",
|
|
26
|
+
"@vue/composition-api": "^1.7.1",
|
|
27
|
+
"axios": "^1.3.6",
|
|
28
|
+
"checked-pick-app": "^1.4.9",
|
|
29
|
+
"dsbridge": "^3.1.4",
|
|
30
|
+
"js-cookie": "^3.0.5",
|
|
31
|
+
"json-bigint": "^1.0.0",
|
|
32
|
+
"npm-run-all": "^4.1.5",
|
|
33
|
+
"perfect-scrollbar": "^1.5.5",
|
|
34
|
+
"sass": "^1.62.1",
|
|
35
|
+
"ui-process-h5": "^1.6.6",
|
|
36
|
+
"vue-demi": "^0.13.8"
|
|
29
37
|
},
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"@vue/composition-api": "^1.7.0",
|
|
40
|
+
"vue": "^2.0.0 || >=3.0.0"
|
|
41
|
+
},
|
|
42
|
+
"peerDependenciesMeta": {
|
|
43
|
+
"@vue/composition-api": {
|
|
44
|
+
"optional": true
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@vitejs/plugin-vue": "^3.0.3",
|
|
49
|
+
"consola": "^3.2.3",
|
|
50
|
+
"postcss-relaxed-unit": "^1.1.1",
|
|
51
|
+
"rimraf": "^3.0.2",
|
|
52
|
+
"rollup-plugin-copy": "^3.4.0",
|
|
53
|
+
"vite": "^3.0.7",
|
|
54
|
+
"vite-plugin-vue2": "^2.0.2",
|
|
55
|
+
"vue": "2.6.14",
|
|
56
|
+
"vue-eslint-parser": "^9.0.3",
|
|
57
|
+
"vue-template-compiler": "2.6.14",
|
|
58
|
+
"vue-tsc": "^0.39.5",
|
|
59
|
+
"vue2": "npm:vue@2.6.14",
|
|
60
|
+
"vue2.7": "npm:vue@2.7.14",
|
|
61
|
+
"vue3": "npm:vue@^3.2.36"
|
|
62
|
+
}
|
|
63
|
+
}
|