qgb-process 0.3.28-beta.1 → 0.3.30-beta.1

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 CHANGED
@@ -1,66 +1,66 @@
1
- ### QGB-PROCESS 审批流程
2
-
3
-
4
- 主要应用于企管帮项目中审批模块
5
-
6
- ---
7
- ### 使用方法
8
-
9
- #### 1. 加入企管帮环境变量到本地存储中,用于打包以及不同环境下测试与打包,可在引入路由前加入
10
-
11
- ```js
12
- // 将环境变量加入缓存
13
- // 配合 qgb-process 模块传递环境变量
14
- localStorage.clear("env");
15
- localStorage.set("env", JSON.stringify(process.env));
16
- ```
17
-
18
- #### 1. 入口 main.js 文件
19
-
20
- ```js
21
- // 注意项目组件根据 elementUI 构建界面,需引入 elementUI 模块
22
- import qgbProcess from 'qgb-process'
23
- Vue.use(qgbProcess);
24
- ```
25
-
26
- #### 2. 参数说明
27
- | 参数 | 说明 | 类型 | 填写说明 |默认值 |
28
- | ---- | ---- | ---- | ---- | ---- |
29
- | queryInfo | 审批流程的类型与中文名称 | 必填 | `Object` | `{name:"公告管理",type:"notice"}` |
30
- | formBuilder | 表单相关 | 必填 | `String` | "" |
31
- | path | 路由地址(无特殊要求传递 `$route.path` ) | 必填 | `String` | "/index" |
32
- | userInfo | 用户信息(无特殊要求传递 `$store.state.user` ) | 必填 | `Object` | -- |
33
-
34
-
35
-
36
- #### 3. App.vue 使用示例:
37
- ```js
38
- <template>
39
- <div>
40
- <!-- 流程模块 -->
41
- <Process
42
- :queryInfo="$route.query"
43
- :formBuilder="$store.state.formBuilder"
44
- :path="$route.path"
45
- :userInfo="$store.state.user"
46
- />
47
- </div>
48
- </template>
49
-
50
- <script>
51
- export default {
52
- created(){
53
- // 此处示例审批参数从地址 GET 传参中获取
54
- this.queryInfo = this.$route.query
55
- },
56
- data(){
57
- return{
58
- queryInfo:{ type: "overTimeApply", name: "加班申请" }
59
- }
60
- }
61
- }
62
- </script>
63
-
64
- <style lang="sass">
65
- </style>
66
- ```
1
+ ### QGB-PROCESS 审批流程
2
+
3
+
4
+ 主要应用于企管帮项目中审批模块
5
+
6
+ ---
7
+ ### 使用方法
8
+
9
+ #### 1. 加入企管帮环境变量到本地存储中,用于打包以及不同环境下测试与打包,可在引入路由前加入
10
+
11
+ ```js
12
+ // 将环境变量加入缓存
13
+ // 配合 qgb-process 模块传递环境变量
14
+ localStorage.clear("env");
15
+ localStorage.set("env", JSON.stringify(process.env));
16
+ ```
17
+
18
+ #### 1. 入口 main.js 文件
19
+
20
+ ```js
21
+ // 注意项目组件根据 elementUI 构建界面,需引入 elementUI 模块
22
+ import qgbProcess from 'qgb-process'
23
+ Vue.use(qgbProcess);
24
+ ```
25
+
26
+ #### 2. 参数说明
27
+ | 参数 | 说明 | 类型 | 填写说明 |默认值 |
28
+ | ---- | ---- | ---- | ---- | ---- |
29
+ | queryInfo | 审批流程的类型与中文名称 | 必填 | `Object` | `{name:"公告管理",type:"notice"}` |
30
+ | formBuilder | 表单相关 | 必填 | `String` | "" |
31
+ | path | 路由地址(无特殊要求传递 `$route.path` ) | 必填 | `String` | "/index" |
32
+ | userInfo | 用户信息(无特殊要求传递 `$store.state.user` ) | 必填 | `Object` | -- |
33
+
34
+
35
+
36
+ #### 3. App.vue 使用示例:
37
+ ```js
38
+ <template>
39
+ <div>
40
+ <!-- 流程模块 -->
41
+ <Process
42
+ :queryInfo="$route.query"
43
+ :formBuilder="$store.state.formBuilder"
44
+ :path="$route.path"
45
+ :userInfo="$store.state.user"
46
+ />
47
+ </div>
48
+ </template>
49
+
50
+ <script>
51
+ export default {
52
+ created(){
53
+ // 此处示例审批参数从地址 GET 传参中获取
54
+ this.queryInfo = this.$route.query
55
+ },
56
+ data(){
57
+ return{
58
+ queryInfo:{ type: "overTimeApply", name: "加班申请" }
59
+ }
60
+ }
61
+ }
62
+ </script>
63
+
64
+ <style lang="sass">
65
+ </style>
66
+ ```
package/package.json CHANGED
@@ -1,132 +1,132 @@
1
- {
2
- "name": "qgb-process",
3
- "version": "0.3.28-beta.1",
4
- "private": false,
5
- "description": "",
6
- "author": "",
7
- "files": [
8
- "/lib"
9
- ],
10
- "scripts": {
11
- "serve": "vue-cli-service serve",
12
- "build": "node --max_old_space_size=10096 node_modules/@vue/cli-service/bin/vue-cli-service.js build",
13
- "build:test": "node --max_old_space_size=10096 node_modules/@vue/cli-service/bin/vue-cli-service.js build --mode test",
14
- "build:pre": "node --max_old_space_size=10096 node_modules/@vue/cli-service/bin/vue-cli-service.js build --mode pre",
15
- "lib": "node --max_old_space_size=10096 node_modules/@vue/cli-service/bin/vue-cli-service.js build --target lib --name qgb-process --dest lib packages/index.js",
16
- "lint": "vue-cli-service lint",
17
- "lint-fix": "eslint src/ --fix",
18
- "test:unit": "vue-cli-service test:unit",
19
- "fix-memory-limit": "cross-env LIMIT=8192 increase-memory-limit",
20
- "precommit": "lint-staged"
21
- },
22
- "main": "lib/qgb-process.umd.min.js",
23
- "dependencies": {
24
- "@fullcalendar/core": "^4.4.0",
25
- "axios": "^0.18.0",
26
- "core-js": "^3.26.0",
27
- "element-ui": "^2.15.1",
28
- "fullcalendar": "^3.10.1",
29
- "html2canvas": "^1.0.0-rc.5",
30
- "jquery": "^3.5.1",
31
- "js-cookie": "^2.2.0",
32
- "jsplumb": "^2.12.14",
33
- "lodash-es": "^4.17.15",
34
- "moment": "^2.24.0",
35
- "obs-upload": "latest",
36
- "qrcode": "^1.4.4",
37
- "qs": "^6.9.0",
38
- "vue": "^2.6.10",
39
- "vue-amap": "^0.5.10",
40
- "vue-neditor-wrap": "^1.0.4",
41
- "vue-quill-editor": "^3.0.6",
42
- "vue-router": "^3.0.3",
43
- "vuedraggable": "^2.24.3",
44
- "vuex": "^3.0.1",
45
- "zj-interceptors": "^1.0.3"
46
- },
47
- "devDependencies": {
48
- "@babel/plugin-syntax-dynamic-import": "^7.8.3",
49
- "@commitlint/cli": "^11.0.0",
50
- "@commitlint/config-conventional": "^11.0.0",
51
- "@vue/cli-plugin-babel": "^4.5.12",
52
- "@vue/cli-plugin-eslint": "^4.5.7",
53
- "@vue/cli-plugin-unit-mocha": "^3.3.0",
54
- "@vue/cli-service": "^3.3.0",
55
- "@vue/eslint-config-standard": "^4.0.0",
56
- "@vue/test-utils": "^1.0.0-beta.20",
57
- "awe-dnd": "^0.3.4",
58
- "babel-eslint": "^10.1.0",
59
- "chai": "^4.1.2",
60
- "compression-webpack-plugin": "^3.0.0",
61
- "cross-env": "^7.0.2",
62
- "eslint": "^7.11.0",
63
- "eslint-plugin-vue": "^7.1.0",
64
- "file-loader": "^6.2.0",
65
- "husky": "^4.3.0",
66
- "image-webpack-loader": "^5.1.0",
67
- "increase-memory-limit": "^1.0.7",
68
- "lint-staged": "^10.4.0",
69
- "lodash.clonedeep": "^4.5.0",
70
- "lodash.get": "^4.4.2",
71
- "lodash.set": "^4.3.2",
72
- "node-sass": "^4.14.1",
73
- "npx": "^10.2.0",
74
- "sass-loader": "^7.1.0",
75
- "simple-progress-webpack-plugin": "^1.1.2",
76
- "sortablejs": "^1.10.2",
77
- "terser-webpack-plugin": "^3.0.3",
78
- "uglifyjs-webpack-plugin": "^1.3.0",
79
- "vue-ele-form": "0.8.30",
80
- "vue-ele-form-image-uploader": "^0.1.4",
81
- "vue-ele-form-json-editor": "^0.1.2",
82
- "vue-ele-form-quill-editor": "^0.1.0",
83
- "vue-ele-form-tree-select": "^0.1.1",
84
- "vue-ele-form-upload-file": "0.0.5",
85
- "vue-loader": "^15.9.3",
86
- "vue-multipane": "^0.9.5",
87
- "vue-style-loader": "^4.1.3",
88
- "vue-svg-loader": "^0.16.0",
89
- "vue-template-compiler": "^2.6.10"
90
- },
91
- "eslintConfig": {
92
- "root": true,
93
- "env": {
94
- "node": true
95
- },
96
- "extends": [
97
- "plugin:vue/essential",
98
- "@vue/standard"
99
- ],
100
- "rules": {
101
- "eslint-disable-next-line": false
102
- },
103
- "parserOptions": {
104
- "parser": "babel-eslint"
105
- }
106
- },
107
- "browserslist": [
108
- "> 1%",
109
- "last 2 versions",
110
- "not ie <= 8"
111
- ],
112
- "directories": {
113
- "test": "tests"
114
- },
115
- "husky": {
116
- "hooks": {
117
- "pre-commit": "lint-staged",
118
- "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
119
- }
120
- },
121
- "license": "ISC",
122
- "lint-staged": {
123
- "src/**/*.{js,jsx,vue}": [
124
- "eslint --fix",
125
- "git add"
126
- ]
127
- },
128
- "repository": {
129
- "type": "git",
130
- "url": "https://code.aliyun.com/qg/pc.git"
131
- }
132
- }
1
+ {
2
+ "name": "qgb-process",
3
+ "version": "0.3.30-beta.1",
4
+ "private": false,
5
+ "description": "",
6
+ "author": "",
7
+ "files": [
8
+ "/lib"
9
+ ],
10
+ "scripts": {
11
+ "serve": "vue-cli-service serve",
12
+ "build": "node --max_old_space_size=10096 node_modules/@vue/cli-service/bin/vue-cli-service.js build",
13
+ "build:test": "node --max_old_space_size=10096 node_modules/@vue/cli-service/bin/vue-cli-service.js build --mode test",
14
+ "build:pre": "node --max_old_space_size=10096 node_modules/@vue/cli-service/bin/vue-cli-service.js build --mode pre",
15
+ "lib": "node --max_old_space_size=10096 node_modules/@vue/cli-service/bin/vue-cli-service.js build --target lib --name qgb-process --dest lib packages/index.js",
16
+ "lint": "vue-cli-service lint",
17
+ "lint-fix": "eslint src/ --fix",
18
+ "test:unit": "vue-cli-service test:unit",
19
+ "fix-memory-limit": "cross-env LIMIT=8192 increase-memory-limit",
20
+ "precommit": "lint-staged"
21
+ },
22
+ "main": "lib/qgb-process.umd.min.js",
23
+ "dependencies": {
24
+ "@fullcalendar/core": "^4.4.0",
25
+ "axios": "^0.18.0",
26
+ "core-js": "^3.26.0",
27
+ "element-ui": "^2.15.1",
28
+ "fullcalendar": "^3.10.1",
29
+ "html2canvas": "^1.0.0-rc.5",
30
+ "jquery": "^3.5.1",
31
+ "js-cookie": "^2.2.0",
32
+ "jsplumb": "^2.12.14",
33
+ "lodash-es": "^4.17.15",
34
+ "moment": "^2.24.0",
35
+ "obs-upload": "latest",
36
+ "qrcode": "^1.4.4",
37
+ "qs": "^6.9.0",
38
+ "vue": "^2.6.10",
39
+ "vue-amap": "^0.5.10",
40
+ "vue-neditor-wrap": "^1.0.4",
41
+ "vue-quill-editor": "^3.0.6",
42
+ "vue-router": "^3.0.3",
43
+ "vuedraggable": "^2.24.3",
44
+ "vuex": "^3.0.1",
45
+ "zj-interceptors": "^1.0.3"
46
+ },
47
+ "devDependencies": {
48
+ "@babel/plugin-syntax-dynamic-import": "^7.8.3",
49
+ "@commitlint/cli": "^11.0.0",
50
+ "@commitlint/config-conventional": "^11.0.0",
51
+ "@vue/cli-plugin-babel": "^4.5.12",
52
+ "@vue/cli-plugin-eslint": "^4.5.7",
53
+ "@vue/cli-plugin-unit-mocha": "^3.3.0",
54
+ "@vue/cli-service": "^3.3.0",
55
+ "@vue/eslint-config-standard": "^4.0.0",
56
+ "@vue/test-utils": "^1.0.0-beta.20",
57
+ "awe-dnd": "^0.3.4",
58
+ "babel-eslint": "^10.1.0",
59
+ "chai": "^4.1.2",
60
+ "compression-webpack-plugin": "^3.0.0",
61
+ "cross-env": "^7.0.2",
62
+ "eslint": "^7.11.0",
63
+ "eslint-plugin-vue": "^7.1.0",
64
+ "file-loader": "^6.2.0",
65
+ "husky": "^4.3.0",
66
+ "image-webpack-loader": "^5.1.0",
67
+ "increase-memory-limit": "^1.0.7",
68
+ "lint-staged": "^10.4.0",
69
+ "lodash.clonedeep": "^4.5.0",
70
+ "lodash.get": "^4.4.2",
71
+ "lodash.set": "^4.3.2",
72
+ "node-sass": "^4.14.1",
73
+ "npx": "^10.2.0",
74
+ "sass-loader": "^7.1.0",
75
+ "simple-progress-webpack-plugin": "^1.1.2",
76
+ "sortablejs": "^1.10.2",
77
+ "terser-webpack-plugin": "^3.0.3",
78
+ "uglifyjs-webpack-plugin": "^1.3.0",
79
+ "vue-ele-form": "0.8.30",
80
+ "vue-ele-form-image-uploader": "^0.1.4",
81
+ "vue-ele-form-json-editor": "^0.1.2",
82
+ "vue-ele-form-quill-editor": "^0.1.0",
83
+ "vue-ele-form-tree-select": "^0.1.1",
84
+ "vue-ele-form-upload-file": "0.0.5",
85
+ "vue-loader": "^15.9.3",
86
+ "vue-multipane": "^0.9.5",
87
+ "vue-style-loader": "^4.1.3",
88
+ "vue-svg-loader": "^0.16.0",
89
+ "vue-template-compiler": "^2.6.10"
90
+ },
91
+ "eslintConfig": {
92
+ "root": true,
93
+ "env": {
94
+ "node": true
95
+ },
96
+ "extends": [
97
+ "plugin:vue/essential",
98
+ "@vue/standard"
99
+ ],
100
+ "rules": {
101
+ "eslint-disable-next-line": false
102
+ },
103
+ "parserOptions": {
104
+ "parser": "babel-eslint"
105
+ }
106
+ },
107
+ "browserslist": [
108
+ "> 1%",
109
+ "last 2 versions",
110
+ "not ie <= 8"
111
+ ],
112
+ "directories": {
113
+ "test": "tests"
114
+ },
115
+ "husky": {
116
+ "hooks": {
117
+ "pre-commit": "lint-staged",
118
+ "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
119
+ }
120
+ },
121
+ "license": "ISC",
122
+ "lint-staged": {
123
+ "src/**/*.{js,jsx,vue}": [
124
+ "eslint --fix",
125
+ "git add"
126
+ ]
127
+ },
128
+ "repository": {
129
+ "type": "git",
130
+ "url": "https://code.aliyun.com/qg/pc.git"
131
+ }
132
+ }
package/lib/demo.html DELETED
@@ -1,8 +0,0 @@
1
- <meta charset="utf-8">
2
- <title>qgb-process demo</title>
3
- <script src="./qgb-process.umd.js"></script>
4
-
5
-
6
- <script>
7
- console.log(qgb-process)
8
- </script>