ui-process-h5 2.1.0-beta → 2.1.1-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.
Files changed (91) hide show
  1. package/README.md +204 -11
  2. package/package.json +25 -56
  3. package/v2/style.css +1 -0
  4. package/v2/ui-process-h5.js +9926 -0
  5. package/v2/ui-process-h5.umd.cjs +18 -0
  6. package/v2.7/style.css +1 -0
  7. package/v2.7/ui-process-h5.js +9303 -0
  8. package/v2.7/ui-process-h5.umd.cjs +18 -0
  9. package/v3/style.css +1 -0
  10. package/v3/ui-process-h5.js +6819 -0
  11. package/v3/ui-process-h5.umd.cjs +6 -0
  12. package/build/configure/README.md +0 -211
  13. package/build/configure/package.json +0 -32
  14. package/debug.js +0 -9
  15. package/index.html +0 -12
  16. package/src/App.vue +0 -233
  17. package/src/assets/font-icon/iconfont.scss +0 -57
  18. package/src/assets/font-icon/iconfont.ttf +0 -0
  19. package/src/assets/img/add-file.png +0 -0
  20. package/src/assets/img/arrow-right.png +0 -0
  21. package/src/assets/img/arrow.png +0 -0
  22. package/src/assets/img/check.png +0 -0
  23. package/src/assets/img/del.png +0 -0
  24. package/src/assets/img/doc.png +0 -0
  25. package/src/assets/img/file.png +0 -0
  26. package/src/assets/img/image.png +0 -0
  27. package/src/assets/img/pdf.png +0 -0
  28. package/src/assets/img/process.png +0 -0
  29. package/src/assets/img/xls.png +0 -0
  30. package/src/assets/img/zip.png +0 -0
  31. package/src/assets/js/auth.js +0 -65
  32. package/src/assets/js/errorCode.js +0 -6
  33. package/src/assets/js/message.js +0 -352
  34. package/src/assets/js/request.js +0 -99
  35. package/src/assets/js/toast.js +0 -239
  36. package/src/assets/js/top.js +0 -229
  37. package/src/assets/js/utils.js +0 -83
  38. package/src/assets/js/vuePopper.js +0 -123
  39. package/src/assets/query.png +0 -0
  40. package/src/assets/status/check.png +0 -0
  41. package/src/assets/status/del.png +0 -0
  42. package/src/assets/status/error.png +0 -0
  43. package/src/assets/status/loading.png +0 -0
  44. package/src/assets/status/success.png +0 -0
  45. package/src/main.js +0 -17
  46. package/src/packages/attchUpload/index.js +0 -375
  47. package/src/packages/attchUpload/index.scss +0 -143
  48. package/src/packages/attchUpload/index.vue +0 -173
  49. package/src/packages/downSelect/index.js +0 -119
  50. package/src/packages/downSelect/index.scss +0 -88
  51. package/src/packages/downSelect/index.vue +0 -62
  52. package/src/packages/index.js +0 -6
  53. package/src/packages/popup/index.js +0 -125
  54. package/src/packages/popup/index.scss +0 -178
  55. package/src/packages/popup/index.vue +0 -80
  56. package/src/packages/preview/index.js +0 -40
  57. package/src/packages/preview/index.vue +0 -15
  58. package/src/packages/previewImage/index.js +0 -286
  59. package/src/packages/previewImage/index.scss +0 -76
  60. package/src/packages/previewImage/index.vue +0 -53
  61. package/src/packages/process/index.js +0 -1016
  62. package/src/packages/process/index.scss +0 -188
  63. package/src/packages/process/index.vue +0 -291
  64. package/src/packages/process/operation/backNode.vue +0 -396
  65. package/src/packages/process/operation/cancel.vue +0 -425
  66. package/src/packages/process/operation/ccTask.vue +0 -256
  67. package/src/packages/process/operation/complete.vue +0 -1384
  68. package/src/packages/process/operation/counterSign.vue +0 -498
  69. package/src/packages/process/operation/delegateTask.vue +0 -493
  70. package/src/packages/process/operation/index.js +0 -8
  71. package/src/packages/process/operation/index.scss +0 -212
  72. package/src/packages/process/operation/msgList.vue +0 -174
  73. package/src/packages/process/operation/treeNode.vue +0 -901
  74. package/src/packages/process/operation/treePerson.vue +0 -304
  75. package/src/packages/submitPopup/index.js +0 -708
  76. package/src/packages/submitPopup/index.scss +0 -190
  77. package/src/packages/submitPopup/index.vue +0 -125
  78. package/src/packages/tab/index.js +0 -236
  79. package/src/packages/tab/index.scss +0 -177
  80. package/src/packages/tab/index.vue +0 -155
  81. package/src/packages/tip/index.js +0 -80
  82. package/src/packages/tip/index.scss +0 -121
  83. package/src/packages/tip/index.vue +0 -57
  84. package/src/packages/viewAttchList/index.js +0 -138
  85. package/src/packages/viewAttchList/index.scss +0 -76
  86. package/src/packages/viewAttchList/index.vue +0 -121
  87. package/src/style.css +0 -80
  88. package/vite.config.ts +0 -118
  89. /package/{build/scripts → scripts}/postinstall.mjs +0 -0
  90. /package/{build/scripts → scripts}/switch-cli.mjs +0 -0
  91. /package/{build/scripts → scripts}/utils.mjs +0 -0
@@ -1,211 +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
- :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 | 流程查询字段 |
@@ -1,32 +0,0 @@
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 DELETED
@@ -1,9 +0,0 @@
1
- import { copyFile, cp } from "fs";
2
-
3
-
4
- cp('./ui-process-h5/v'+process.argv[2], './ui-process-h5', { recursive: true }, (err) => {
5
- if (err) {
6
- console.error(err);
7
- }
8
- }
9
- )
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,233 +0,0 @@
1
- <template>
2
- <TopProcess
3
- :processInstId="formData.processInstId"
4
- :processDefId="formData.processDefId"
5
- :formData="formData"
6
- :appId="appId"
7
- :uid="formData.uid"
8
- :request="request"
9
- :tapList="tapList"
10
- :endFunction="endFunction"
11
- :beforeFunction="beforeFunction"
12
- :restartData="restartData"
13
- :selfBtn="selfBtn"
14
- :isQuickReply="true"
15
- :isMsg="true"
16
- :isView="false"
17
- :isRequire="true"
18
- >
19
- <!-- :isDocument="true" -->
20
- <!-- :isAdditional="true" -->
21
- <!-- :getVars="getVars" -->
22
- <template #default>展示当前形态</template>
23
- <template #attch>attch</template>
24
- <template #fsList>fsList</template>
25
- <template #documentPage>documentPage</template>
26
- <!-- <template #completeSlot>completeSlot</template> -->
27
- <template v-slot:btn="data">
28
- <div>123{{ data.data.status }}</div>
29
- </template>
30
- </TopProcess>
31
- </template>
32
- <script>
33
- import { TopProcess } from "@/packages/index.js";
34
- import request from "@/assets/js/request";
35
- import { defineComponent } from "vue-demi";
36
- import { setToken, setSubject, setProject } from "@/assets/js/auth";
37
- // import departPerson from "@/packages/checked-pick-app";
38
- // import { TopProcess } from "ui-process-h5";
39
- export default {
40
- data() {
41
- return {
42
- formData: {
43
- businessKey: "eada9d68437547b790b1194327cd6c45",
44
- processInstId: "2256c30f-4651-413c-827f-0403730c3e23",
45
- processDefId: "obj_5402fe691cad48b3ae39da0699d53be1",
46
- title: "测试",
47
- subjectId: "3a4ef115e32c85a78239e3f5f76b9637",
48
- tel: "15107910151",
49
- userId: "8c7d012761a680dff78b19e10e794c99",
50
- userName: "刘博文",
51
- uid: "c59f9cc2c341e5608befb566c1a625a5",
52
- },
53
- appId: "com.awspaas.user.apps.recevie.document",
54
- isView: false,
55
- info: {},
56
- bizId: "",
57
- style: {
58
- color: "#333",
59
- disableColor: "#F7F6F6",
60
- },
61
- param: {
62
- realStartTime: "",
63
- realEndTime: "",
64
- estimateHours: 0,
65
- estimateMinutes: 0,
66
- },
67
- realDays: "",
68
- timeLoading: false,
69
- processIDS: "",
70
- request: request,
71
- // 选人组件
72
- visible: false,
73
- entity: {
74
- source: "0",
75
- type: "5",
76
- request: this.request, //'http://59.53.91.231:2100' 0002
77
- businessId: "0003",
78
- codeType: [1, 2, 3], // 可选类型 1-主体 2-部门 3-人员
79
- multiple: true, // 是否多选
80
- },
81
- tapList: [
82
- {
83
- label: "附件",
84
- key: "attch",
85
- type: "slot",
86
- sort: 2,
87
- slot: "attch",
88
- },
89
- {
90
- label: "分送记录",
91
- key: "fsList",
92
- type: "slot",
93
- slot: "fsList",
94
- },
95
- {
96
- label: "正文",
97
- key: "documentPage",
98
- type: "slot",
99
- sort: 3,
100
- slot: "documentPage",
101
- },
102
- ],
103
- restartData: {
104
- businessType: "4",
105
- title: "测试送审",
106
- showType: "all",
107
- processName: "",
108
- },
109
- selfBtn: [
110
- {
111
- name: "测试",
112
- type: "danger",
113
- click: () => {
114
- console.log("当前::");
115
- },
116
- },
117
- {
118
- name: "测试2",
119
- type: "default",
120
- click: () => {
121
- console.log("当前::");
122
- },
123
- },
124
- ],
125
- userData: false,
126
- };
127
- },
128
- components: {
129
- /* topProcess, */
130
- TopProcess,
131
- // departPerson,
132
- },
133
- onLoad(e) {
134
- this.bizId = e.bizId;
135
- this.getInfo();
136
-
137
- this.processIDS = e.processId;
138
- },
139
- mounted() {
140
- console.log("this.request", this.request);
141
- setToken("8655b06d-b030-465b-807e-5d02aa24c962");
142
- // 7369abf4-e2b4-44d0-87b2-7c46a444d3b5
143
- // da6bab4f-fa42-4730-b0fe-c5e022123c0c
144
- setSubject("9f13a9c9c400fa6e6228848ce1f131ee");
145
- /* setProject("4b23dd7dcb9cf7cb548fbd087ce9d748"); */
146
- console.log("processIDS", request);
147
- },
148
- methods: {
149
- getVars() {
150
- console.log("getVars");
151
- return true;
152
- },
153
- endFunction(val) {
154
- console.log("endFunction:::", val);
155
- /* location.reload(); */
156
- },
157
- async beforeFunction() {
158
- let res = await this.request.get("/app/user/info");
159
- if (res.code === 200) {
160
- return true
161
- } else {
162
- return false
163
- }
164
-
165
- // return false
166
- },
167
- },
168
- };
169
- </script>
170
- <style lang="scss">
171
- * {
172
- margin: 0;
173
- padding: 0;
174
- }
175
- #app {
176
- font-family: Avenir, Helvetica, Arial, sans-serif;
177
- -webkit-font-smoothing: antialiased;
178
- -moz-osx-font-smoothing: grayscale;
179
- text-align: center;
180
- color: #2c3e50;
181
- width: 100vw;
182
- height: 100vh;
183
- }
184
- .info-box {
185
- background-color: #fff;
186
- padding: 10px;
187
- .info {
188
- display: flex;
189
- justify-content: space-between;
190
- font-size: 14px;
191
- margin-bottom: 10px;
192
- b {
193
- font-weight: 400;
194
- color: #959595;
195
- }
196
- }
197
- .time-info {
198
- background-color: #f6f6f6;
199
- padding: 10px;
200
- border-radius: 10px;
201
- margin-bottom: 10px;
202
- div {
203
- margin-bottom: 10px;
204
- font-size: 14px;
205
- display: flex;
206
- justify-content: space-between;
207
- i {
208
- color: #000;
209
- font-style: normal;
210
- font-weight: bold;
211
- }
212
- em {
213
- font-style: normal;
214
- font-size: 12px;
215
- color: #4e87d4;
216
- }
217
- }
218
- }
219
- }
220
- ::v-deep .uni-date-x--border {
221
- border: none;
222
- }
223
- em {
224
- font-style: normal;
225
- font-size: 12px;
226
- color: #4e87d4;
227
- }
228
- .ren-title {
229
- font-weight: bold;
230
- font-size: 16px;
231
- margin-bottom: 18px;
232
- }
233
- </style>
@@ -1,57 +0,0 @@
1
- @font-face {
2
- font-family: "iconfont";
3
- src: url("iconfont.ttf") format("truetype");
4
- }
5
-
6
- .iconfont {
7
- font-family: "iconfont" !important;
8
- font-size: 16px;
9
- font-style: normal;
10
- -webkit-font-smoothing: antialiased;
11
- -moz-osx-font-smoothing: grayscale;
12
- }
13
-
14
- .icon-jiantouyou:before {
15
- content: "\e62d";
16
- }
17
-
18
- .icon-chaxun:before {
19
- content: "\e6b4";
20
- }
21
-
22
- .icon-warning-circle-fill:before {
23
- content: "\e848";
24
- }
25
-
26
- .icon-error-fill:before {
27
- content: "\e839";
28
- }
29
-
30
- .icon-info-fill:before {
31
- content: "\e83d";
32
- }
33
-
34
- .icon-success-fill:before {
35
- content: "\e842";
36
- }
37
-
38
- .icon-nan:before {
39
- content: "\e623";
40
- }
41
-
42
- .icon-nv:before {
43
- content: "\e624";
44
- }
45
-
46
- .icon-cuowuguanbiquxiao:before {
47
- content: "\e8e7";
48
- }
49
-
50
- .icon-zuzhijigou:before {
51
- content: "\e608";
52
- }
53
-
54
- .icon-pedigree:before {
55
- content: "\e60e";
56
- }
57
-
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,65 +0,0 @@
1
- import Cookies from "js-cookie";
2
-
3
- const TokenKey = "Admin-Token";
4
-
5
- const ExpiresInKey = "Admin-Expires-In";
6
-
7
- export function getToken() {
8
- return Cookies.get(TokenKey);
9
- }
10
-
11
- export function setToken(token) {
12
- return Cookies.set(TokenKey, token);
13
- }
14
-
15
- export function removeToken() {
16
- return Cookies.remove(TokenKey);
17
- }
18
-
19
- export function getExpiresIn() {
20
- return Cookies.get(ExpiresInKey) || -1;
21
- }
22
-
23
- export function setExpiresIn(time) {
24
- return Cookies.set(ExpiresInKey, time);
25
- }
26
-
27
- export function removeExpiresIn() {
28
- return Cookies.remove(ExpiresInKey);
29
- }
30
-
31
- export function setSystemId(systemId) {
32
- return Cookies.set("systemId", systemId);
33
- }
34
-
35
- export function getSystemId() {
36
- return Cookies.get("systemId") || "oa";
37
- }
38
-
39
- export function removeSystemId() {
40
- return Cookies.remove("systemId");
41
- }
42
-
43
- export function getSubject() {
44
- return Cookies.get("subjectId");
45
- }
46
-
47
- export function setSubject(token) {
48
- return Cookies.set("subjectId", token);
49
- }
50
-
51
- export function removeSubject() {
52
- return Cookies.remove("subjectId");
53
- }
54
-
55
- export function getProject() {
56
- return Cookies.get("projectId");
57
- }
58
-
59
- export function setProject(token) {
60
- return Cookies.set("projectId", token);
61
- }
62
-
63
- export function removeProject() {
64
- return Cookies.remove("projectId");
65
- }
@@ -1,6 +0,0 @@
1
- export default {
2
- '401': '认证失败,无法访问系统资源',
3
- '403': '当前操作没有权限',
4
- '404': '访问资源不存在',
5
- 'default': '系统未知错误,请反馈给管理员'
6
- }