ui-process-h5 0.1.40 → 1.0.6

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.
Files changed (89) hide show
  1. package/README.md +171 -18
  2. package/package.json +21 -51
  3. package/build/configure/README.md +0 -171
  4. package/build/configure/package.json +0 -27
  5. package/index.html +0 -12
  6. package/src/App.vue +0 -151
  7. package/src/assets/font-icon/iconfont.scss +0 -57
  8. package/src/assets/font-icon/iconfont.ttf +0 -0
  9. package/src/assets/img/add-file.png +0 -0
  10. package/src/assets/img/arrow-right.png +0 -0
  11. package/src/assets/img/arrow.png +0 -0
  12. package/src/assets/img/check.png +0 -0
  13. package/src/assets/img/del.png +0 -0
  14. package/src/assets/img/doc.png +0 -0
  15. package/src/assets/img/file.png +0 -0
  16. package/src/assets/img/image.png +0 -0
  17. package/src/assets/img/pdf.png +0 -0
  18. package/src/assets/img/xls.png +0 -0
  19. package/src/assets/img/zip.png +0 -0
  20. package/src/assets/js/auth.js +0 -41
  21. package/src/assets/js/errorCode.js +0 -6
  22. package/src/assets/js/message.js +0 -352
  23. package/src/assets/js/request.js +0 -90
  24. package/src/assets/js/toast.js +0 -239
  25. package/src/assets/js/top.js +0 -229
  26. package/src/assets/js/utils.js +0 -82
  27. package/src/assets/js/vuePopper.js +0 -123
  28. package/src/assets/query.png +0 -0
  29. package/src/assets/status/error.png +0 -0
  30. package/src/assets/status/loading.png +0 -0
  31. package/src/assets/status/success.png +0 -0
  32. package/src/main.js +0 -15
  33. package/src/packages/attchUpload/index.js +0 -371
  34. package/src/packages/attchUpload/index.scss +0 -136
  35. package/src/packages/attchUpload/index.vue +0 -173
  36. package/src/packages/downSelect/index.js +0 -81
  37. package/src/packages/downSelect/index.scss +0 -82
  38. package/src/packages/downSelect/index.vue +0 -54
  39. package/src/packages/index.js +0 -6
  40. package/src/packages/popup/index.js +0 -61
  41. package/src/packages/popup/index.scss +0 -174
  42. package/src/packages/popup/index.vue +0 -79
  43. package/src/packages/preview/index.js +0 -36
  44. package/src/packages/preview/index.vue +0 -15
  45. package/src/packages/previewImage/index.js +0 -158
  46. package/src/packages/previewImage/index.scss +0 -59
  47. package/src/packages/previewImage/index.vue +0 -32
  48. package/src/packages/process/index.js +0 -679
  49. package/src/packages/process/index.scss +0 -164
  50. package/src/packages/process/index.vue +0 -189
  51. package/src/packages/process/operation/backNode.vue +0 -393
  52. package/src/packages/process/operation/cancel.vue +0 -399
  53. package/src/packages/process/operation/ccTask.vue +0 -461
  54. package/src/packages/process/operation/complete.vue +0 -488
  55. package/src/packages/process/operation/counterSign.vue +0 -485
  56. package/src/packages/process/operation/delegateTask.vue +0 -480
  57. package/src/packages/process/operation/index.js +0 -9
  58. package/src/packages/process/operation/restart.vue +0 -305
  59. package/src/packages/submitPopup/index.js +0 -296
  60. package/src/packages/submitPopup/index.scss +0 -83
  61. package/src/packages/submitPopup/index.vue +0 -138
  62. package/src/packages/tab/index.js +0 -207
  63. package/src/packages/tab/index.scss +0 -176
  64. package/src/packages/tab/index.vue +0 -155
  65. package/src/packages/tip/index.js +0 -74
  66. package/src/packages/tip/index.scss +0 -82
  67. package/src/packages/tip/index.vue +0 -57
  68. package/src/packages/viewAttchList/index.js +0 -132
  69. package/src/packages/viewAttchList/index.scss +0 -76
  70. package/src/packages/viewAttchList/index.vue +0 -112
  71. package/src/style.css +0 -80
  72. package/ui-process-h5/README.md +0 -171
  73. package/ui-process-h5/package.json +0 -27
  74. package/ui-process-h5/scripts/postinstall.mjs +0 -14
  75. package/ui-process-h5/scripts/switch-cli.mjs +0 -4
  76. package/ui-process-h5/scripts/utils.mjs +0 -60
  77. package/vite.config.ts +0 -78
  78. /package/{build/scripts → scripts}/postinstall.mjs +0 -0
  79. /package/{build/scripts → scripts}/switch-cli.mjs +0 -0
  80. /package/{build/scripts → scripts}/utils.mjs +0 -0
  81. /package/{ui-process-h5/v2 → v2}/style.css +0 -0
  82. /package/{ui-process-h5/v2 → v2}/ui-process-h5.js +0 -0
  83. /package/{ui-process-h5/v2 → v2}/ui-process-h5.umd.cjs +0 -0
  84. /package/{ui-process-h5/v2.7 → v2.7}/style.css +0 -0
  85. /package/{ui-process-h5/v2.7 → v2.7}/ui-process-h5.js +0 -0
  86. /package/{ui-process-h5/v2.7 → v2.7}/ui-process-h5.umd.cjs +0 -0
  87. /package/{ui-process-h5/v3 → v3}/style.css +0 -0
  88. /package/{ui-process-h5/v3 → v3}/ui-process-h5.js +0 -0
  89. /package/{ui-process-h5/v3 → v3}/ui-process-h5.umd.cjs +0 -0
package/README.md CHANGED
@@ -1,18 +1,171 @@
1
- # Vue 3 + TypeScript + Vite
2
-
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
-
5
- ## Recommended IDE Setup
6
-
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).
8
-
9
- ## Type Support For `.vue` Imports in TS
10
-
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.
12
-
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:
14
-
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.
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
+ :appId="appId"
43
+ :isView="isView"
44
+ :userId="userId"
45
+ :request="request"
46
+ :tapList="tapList"
47
+ :selfTapList="selfTapList"
48
+ >
49
+ <slot></slot>
50
+ </TopProcess>
51
+ <attchViews
52
+ v-if="labels == '1'"
53
+ :limit="limit ? limit : -1"
54
+ :requires="requires"
55
+ :request="param.request"
56
+ :linkUrl="param.linkUrl"
57
+ @getValue="getValues"
58
+ />
59
+ <ViewAttchList :inList="inList"></ViewAttchList>
60
+ <TopSumbitPopup
61
+ :visible="visible"
62
+ :request="request"
63
+ :appId="appId"
64
+ :resubmit="resubmit"
65
+ :id="businessKey"
66
+ :businessType="businessType"
67
+ :todoParameter="todoParameter"
68
+ :isClearHistory="isClearHistory"
69
+ :title="title"
70
+ ></TopSumbitPopup>
71
+ </template>
72
+ <script>
73
+ import "ui-process-h5/ui-process-h5.css";
74
+ import {
75
+ TopProcess,
76
+ attchViews,
77
+ TopSumbitPopup,
78
+ ViewAttchList,
79
+ } from "ui-process-h5";
80
+ export default {
81
+ components: { TopProcess, attchViews, TopSumbitPopup, ViewAttchList },
82
+ data() {
83
+ return {
84
+ formData: {
85
+ businessKey: businessKey,
86
+ processInstId: processInstId,
87
+ processDefId: processDefId,
88
+ title: title,
89
+ subjectId: subjectId,
90
+ userId: userId,
91
+ userName: userName,
92
+ reason: reason,
93
+ meetingTheme: meetingTheme,
94
+ },
95
+ };
96
+ },
97
+ methods: {},
98
+ };
99
+ </script>
100
+ ```
101
+
102
+ ## 属性-Attributes (TopProcess)
103
+
104
+ | 参数 | 类型 | 默认值 | 说明 |
105
+ | ------------- | -------- | ------ | ----------------------------------------------- |
106
+ | tapList | Array | [] | tab 节点插入、自定义附件等信息 |
107
+ | selfTapList | Array | [] | 自定义 tab 节点,传入后覆盖原本参数 |
108
+ | processDefId | String | '' | 流程 ID |
109
+ | request | Object | null | axios 接口请求方法 [需要包含 get post 请求方式] |
110
+ | processInstId | String | '' | 流程实例 ID |
111
+ | userId | String | '' | 当前角色 id |
112
+ | formData | Object | {} | 集合数据 内部存储流程相关信息 |
113
+ | appId | String | '' | appId |
114
+ | getVars | Function | null | 业务方法 |
115
+ | endFunction | Function | null | 弹窗结束后执行方法 |
116
+
117
+ ## 属性-Attributes (attchViews)
118
+
119
+ | 参数 | 类型 | 默认值 | 说明 |
120
+ | -------- | -------- | ------- | ----------------------------------------------- |
121
+ | request | Object | null | axios 接口请求方法 [需要包含 get post 请求方式] |
122
+ | limit | [Number | String] | 4 | 最大上传数 |
123
+ | getValue | Function | null | 返回上传数据 url |
124
+ | requires | Boolean | false | 必填 |
125
+ | inComing | Array | Array | 回显已上传列表 |
126
+ | deletFn | Function | null | 组件本身提供静态删除功能,动态删除需传入相应方法 |
127
+
128
+ ## 属性-Attributes (ViewAttchList)
129
+
130
+ | 参数 | 类型 | 默认值 | 说明 |
131
+ | ------ | ----- | ------ | ------------ |
132
+ | inList | Array | [] | 附件列表展示 |
133
+
134
+ ## 属性-Attributes (TopSumbitPopup)
135
+
136
+ | 参数 | 类型 | 默认值 | 说明 |
137
+ | -------------- | ---------------- | ------ | ----------------------------------------------- |
138
+ | visible | Boolean | false | 展示参数 |
139
+ | isClearHistory | Boolean | false | 是否清除送审记录 |
140
+ | title | String | "" | 送审提交标题参数 |
141
+ | todoParameter | Object | {} | 发起流程时的其他参数 |
142
+ | businessType | [String, Number] | null | 业务类型 |
143
+ | id | String | "" | 业务 Id |
144
+ | resubmit | Boolean | false | 是否为重新提交 |
145
+ | request | Object | null | axios 接口请求方法 [需要包含 get post 请求方式] |
146
+ | appId | String | '' | appId |
147
+
148
+ > ### tapList-对象说明
149
+ >
150
+ | 属性名 | 类型 | 说明 |
151
+ | ------ | ------ | ---------------------------------------------------------------------------- |
152
+ | label | String | 选项卡 title |
153
+ | key | String | 选项卡 ID 请勿重复 defaultTabList 内已拥有的默认 key(a、b、c 为默认节点 key) |
154
+ | type | String | 插槽类型 默认 default 插槽 slot |
155
+ | slot | String | 插槽名 |
156
+ | sort | Number | 排序参数,无参数默认插入末尾 |
157
+
158
+ ### selfTapList-对象说明 同上
159
+
160
+ ### formData-对象说明
161
+
162
+ | 属性名 | 类型 | 说明 |
163
+ | ------------------------- | ------ | ----------- |
164
+ | businessKey | String | 业务 ID |
165
+ | processDefId | String | 流程 ID |
166
+ | processInstId | String | 流程实例 ID |
167
+ | title reason meetingTheme | String | 标题 |
168
+ | userId | String | 角色 id |
169
+ | userName | String | 姓名 |
170
+
171
+ 附件相关列表,参考 getValue 回调参数
package/package.json CHANGED
@@ -1,57 +1,27 @@
1
1
  {
2
2
  "name": "ui-process-h5",
3
- "private": false,
4
- "description": "流程组件",
5
- "version": "0.1.40",
3
+ "version": "1.0.6",
4
+ "description": "> app端 流程插件",
5
+ "main": "./ui-process-h5.umd.cjs",
6
+ "style": "./style.css",
6
7
  "type": "module",
7
- "scripts": {
8
- "dev": "vite --host 0.0.0.0",
9
- "build": "npm run clean && run-s build:*",
10
- "clean": "rimraf ./ui-process-h5",
11
- "dev:2": "npm run switch:2 && vite",
12
- "dev:2.7": "npm run switch:2.7 && vite",
13
- "dev:3": "npm run switch:3 && vite --force",
14
- "switch:2": "vue-demi-switch 2 vue2",
15
- "switch:2.7": "vue-demi-switch 2.7 vue2.7",
16
- "switch:3": "vue-demi-switch 3 vue3",
17
- "build:2": "npm run switch:2 && vite build",
18
- "build:2.7": "npm run switch:2.7 && vite build",
19
- "build:3": "npm run switch:3 && vite build"
20
- },
21
- "dependencies": {
22
- "@types/node": "^18.16.3",
23
- "@vue/composition-api": "^1.7.1",
24
- "axios": "^1.3.6",
25
- "js-cookie": "^3.0.5",
26
- "json-bigint": "^1.0.0",
27
- "npm-run-all": "^4.1.5",
28
- "perfect-scrollbar": "^1.5.5",
29
- "sass": "^1.62.1",
30
- "vue-demi": "^0.13.8"
31
- },
32
- "peerDependencies": {
33
- "@vue/composition-api": "^1.7.0",
34
- "vue": "^2.0.0 || >=3.0.0"
35
- },
36
- "peerDependenciesMeta": {
37
- "@vue/composition-api": {
38
- "optional": true
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"
39
16
  }
40
17
  },
18
+ "scripts": {
19
+ "test": "echo \"Error: no test specified\" && exit 1",
20
+ "postinstall": "node scripts/postinstall.mjs"
21
+ },
41
22
  "devDependencies": {
42
- "@vitejs/plugin-vue": "^3.0.3",
43
- "checked-pick-app": "1.0.5",
44
- "postcss-relaxed-unit": "^1.1.1",
45
- "rimraf": "^3.0.2",
46
- "rollup-plugin-copy": "^3.4.0",
47
- "vite": "^3.0.7",
48
- "vite-plugin-vue2": "^2.0.2",
49
- "vue": "2.6.14",
50
- "vue-eslint-parser": "^9.0.3",
51
- "vue-template-compiler": "2.6.14",
52
- "vue-tsc": "^0.39.5",
53
- "vue2": "npm:vue@2.6.14",
54
- "vue2.7": "npm:vue@2.7.14",
55
- "vue3": "npm:vue@^3.2.36"
56
- }
57
- }
23
+ "checked-pick-app": "^1.0.5"
24
+ },
25
+ "author": "",
26
+ "license": "ISC"
27
+ }
@@ -1,171 +0,0 @@
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
- :appId="appId"
43
- :isView="isView"
44
- :userId="userId"
45
- :request="request"
46
- :tapList="tapList"
47
- :selfTapList="selfTapList"
48
- >
49
- <slot></slot>
50
- </TopProcess>
51
- <attchViews
52
- v-if="labels == '1'"
53
- :limit="limit ? limit : -1"
54
- :requires="requires"
55
- :request="param.request"
56
- :linkUrl="param.linkUrl"
57
- @getValue="getValues"
58
- />
59
- <ViewAttchList :inList="inList"></ViewAttchList>
60
- <TopSumbitPopup
61
- :visible="visible"
62
- :request="request"
63
- :appId="appId"
64
- :resubmit="resubmit"
65
- :id="businessKey"
66
- :businessType="businessType"
67
- :todoParameter="todoParameter"
68
- :isClearHistory="isClearHistory"
69
- :title="title"
70
- ></TopSumbitPopup>
71
- </template>
72
- <script>
73
- import "ui-process-h5/ui-process-h5.css";
74
- import {
75
- TopProcess,
76
- attchViews,
77
- TopSumbitPopup,
78
- ViewAttchList,
79
- } from "ui-process-h5";
80
- export default {
81
- components: { TopProcess, attchViews, TopSumbitPopup, ViewAttchList },
82
- data() {
83
- return {
84
- formData: {
85
- businessKey: businessKey,
86
- processInstId: processInstId,
87
- processDefId: processDefId,
88
- title: title,
89
- subjectId: subjectId,
90
- userId: userId,
91
- userName: userName,
92
- reason: reason,
93
- meetingTheme: meetingTheme,
94
- },
95
- };
96
- },
97
- methods: {},
98
- };
99
- </script>
100
- ```
101
-
102
- ## 属性-Attributes (TopProcess)
103
-
104
- | 参数 | 类型 | 默认值 | 说明 |
105
- | ------------- | -------- | ------ | ----------------------------------------------- |
106
- | tapList | Array | [] | tab 节点插入、自定义附件等信息 |
107
- | selfTapList | Array | [] | 自定义 tab 节点,传入后覆盖原本参数 |
108
- | processDefId | String | '' | 流程 ID |
109
- | request | Object | null | axios 接口请求方法 [需要包含 get post 请求方式] |
110
- | processInstId | String | '' | 流程实例 ID |
111
- | userId | String | '' | 当前角色 id |
112
- | formData | Object | {} | 集合数据 内部存储流程相关信息 |
113
- | appId | String | '' | appId |
114
- | getVars | Function | null | 业务方法 |
115
- | endFunction | Function | null | 弹窗结束后执行方法 |
116
-
117
- ## 属性-Attributes (attchViews)
118
-
119
- | 参数 | 类型 | 默认值 | 说明 |
120
- | -------- | -------- | ------- | ----------------------------------------------- |
121
- | request | Object | null | axios 接口请求方法 [需要包含 get post 请求方式] |
122
- | limit | [Number | String] | 4 | 最大上传数 |
123
- | getValue | Function | null | 返回上传数据 url |
124
- | requires | Boolean | false | 必填 |
125
- | inComing | Array | Array | 回显已上传列表 |
126
- | deletFn | Function | null | 组件本身提供静态删除功能,动态删除需传入相应方法 |
127
-
128
- ## 属性-Attributes (ViewAttchList)
129
-
130
- | 参数 | 类型 | 默认值 | 说明 |
131
- | ------ | ----- | ------ | ------------ |
132
- | inList | Array | [] | 附件列表展示 |
133
-
134
- ## 属性-Attributes (TopSumbitPopup)
135
-
136
- | 参数 | 类型 | 默认值 | 说明 |
137
- | -------------- | ---------------- | ------ | ----------------------------------------------- |
138
- | visible | Boolean | false | 展示参数 |
139
- | isClearHistory | Boolean | false | 是否清除送审记录 |
140
- | title | String | "" | 送审提交标题参数 |
141
- | todoParameter | Object | {} | 发起流程时的其他参数 |
142
- | businessType | [String, Number] | null | 业务类型 |
143
- | id | String | "" | 业务 Id |
144
- | resubmit | Boolean | false | 是否为重新提交 |
145
- | request | Object | null | axios 接口请求方法 [需要包含 get post 请求方式] |
146
- | appId | String | '' | appId |
147
-
148
- > ### tapList-对象说明
149
- >
150
- | 属性名 | 类型 | 说明 |
151
- | ------ | ------ | ---------------------------------------------------------------------------- |
152
- | label | String | 选项卡 title |
153
- | key | String | 选项卡 ID 请勿重复 defaultTabList 内已拥有的默认 key(a、b、c 为默认节点 key) |
154
- | type | String | 插槽类型 默认 default 插槽 slot |
155
- | slot | String | 插槽名 |
156
- | sort | Number | 排序参数,无参数默认插入末尾 |
157
-
158
- ### selfTapList-对象说明 同上
159
-
160
- ### formData-对象说明
161
-
162
- | 属性名 | 类型 | 说明 |
163
- | ------------------------- | ------ | ----------- |
164
- | businessKey | String | 业务 ID |
165
- | processDefId | String | 流程 ID |
166
- | processInstId | String | 流程实例 ID |
167
- | title reason meetingTheme | String | 标题 |
168
- | userId | String | 角色 id |
169
- | userName | String | 姓名 |
170
-
171
- 附件相关列表,参考 getValue 回调参数
@@ -1,27 +0,0 @@
1
- {
2
- "name": "ui-process-h5",
3
- "version": "1.0.5",
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.0.5"
24
- },
25
- "author": "",
26
- "license": "ISC"
27
- }
package/index.html DELETED
@@ -1,12 +0,0 @@
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/src/App.vue DELETED
@@ -1,151 +0,0 @@
1
- <template>
2
- <TopProcess
3
- processInstId="572405e4-e0dc-40fc-9a95-2b20f5bdfbf1"
4
- processDefId="obj_f81cf369ac6e4bf889fc69be430ca6da"
5
- :formData="formData"
6
- appId="com.awspaas.user.apps.leave"
7
- :isView="false"
8
-
9
- userId="8c7d012761a680dff78b19e10e794c99"
10
- :request="request"
11
- >
12
- <!-- :getVars="getVars" -->
13
- <div>展示当前形态</div>
14
- </TopProcess>
15
- </template>
16
- <script>
17
- import { TopProcess } from "@/packages/index.js";
18
- import request from "@/assets/js/request";
19
- import { defineComponent } from "vue-demi";
20
- import { setToken } from "@/assets/js/auth";
21
- import { departPerson } from "checked-pick-app";
22
- export default {
23
- data() {
24
- return {
25
- formData: {
26
- businessKey: "6a9aaf5742572e82b5d89d6f7e52e2f2",
27
- processInstId: "572405e4-e0dc-40fc-9a95-2b20f5bdfbf1",
28
- processDefId: "obj_f81cf369ac6e4bf889fc69be430ca6da",
29
- title: "测试",
30
- subjectId: "3a4ef115e32c85a78239e3f5f76b9637",
31
- tel: "15107910151",
32
- userId: "8c7d012761a680dff78b19e10e794c99",
33
- userName: "刘博文",
34
- },
35
- appId: "com.awspaas.user.apps.leave",
36
- isView: false,
37
- info: {},
38
- bizId: "",
39
- style: {
40
- color: "#333",
41
- disableColor: "#F7F6F6",
42
- },
43
- param: {
44
- realStartTime: "",
45
- realEndTime: "",
46
- estimateHours: 0,
47
- estimateMinutes: 0,
48
- },
49
- realDays: "",
50
- timeLoading: false,
51
- processIDS: "",
52
- request: request,
53
- // 选人组件
54
- visible: false,
55
- entity: {
56
- source: "0",
57
- type: "5",
58
- request: this.request, //'http://59.53.91.231:2100' 0002
59
- businessId: "0003",
60
- codeType: [1, 2, 3], // 可选类型 1-主体 2-部门 3-人员
61
- multiple: true, // 是否多选
62
- },
63
- };
64
- },
65
- components: {
66
- /* topProcess, */
67
- TopProcess,
68
- departPerson,
69
- },
70
- onLoad(e) {
71
- this.bizId = e.bizId;
72
- this.getInfo();
73
-
74
- this.processIDS = e.processId;
75
- },
76
- mounted() {
77
- console.log("this.request", this.request);
78
- setToken("7d9af038-caae-46b7-b93a-e7a7fcb7d4a4");
79
- console.log("processIDS", request);
80
- },
81
- methods: {
82
- getVars() {
83
- console.log("getVars");
84
- return true;
85
- },
86
- },
87
- };
88
- </script>
89
- <style lang="scss">
90
- body {
91
- margin: 0;
92
- }
93
- #app {
94
- font-family: Avenir, Helvetica, Arial, sans-serif;
95
- -webkit-font-smoothing: antialiased;
96
- -moz-osx-font-smoothing: grayscale;
97
- text-align: center;
98
- color: #2c3e50;
99
- width: 100vw;
100
- height: 100vh;
101
- }
102
- .info-box {
103
- background-color: #fff;
104
- padding: 10px;
105
- .info {
106
- display: flex;
107
- justify-content: space-between;
108
- font-size: 14px;
109
- margin-bottom: 10px;
110
- b {
111
- font-weight: 400;
112
- color: #959595;
113
- }
114
- }
115
- .time-info {
116
- background-color: #f6f6f6;
117
- padding: 10px;
118
- border-radius: 10px;
119
- margin-bottom: 10px;
120
- div {
121
- margin-bottom: 10px;
122
- font-size: 14px;
123
- display: flex;
124
- justify-content: space-between;
125
- i {
126
- color: #000;
127
- font-style: normal;
128
- font-weight: bold;
129
- }
130
- em {
131
- font-style: normal;
132
- font-size: 12px;
133
- color: #4e87d4;
134
- }
135
- }
136
- }
137
- }
138
- ::v-deep .uni-date-x--border {
139
- border: none;
140
- }
141
- em {
142
- font-style: normal;
143
- font-size: 12px;
144
- color: #4e87d4;
145
- }
146
- .ren-title {
147
- font-weight: bold;
148
- font-size: 16px;
149
- margin-bottom: 18px;
150
- }
151
- </style>