widget.qw 1.0.82 → 1.0.84

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 (105) hide show
  1. package/.env.development +10 -10
  2. package/.env.production +8 -8
  3. package/README.md +75 -75
  4. package/build/style.css +471 -471
  5. package/build/widget.qw.es.js +132 -65
  6. package/build/widget.qw.umd.js +132 -65
  7. package/index.html +17 -17
  8. package/package.json +47 -47
  9. package/src/App.vue +26 -26
  10. package/src/api/index.js +165 -165
  11. package/src/components/AuditBar.vue +396 -396
  12. package/src/components/BillCard.vue +164 -164
  13. package/src/components/CascaderPicker.vue +132 -132
  14. package/src/components/CascaderPop.vue +373 -371
  15. package/src/components/CheckGroup.vue +113 -113
  16. package/src/components/DatetimeDropdown.vue +62 -0
  17. package/src/components/{DatetimePicker/index.vue → DatetimePicker.vue} +124 -124
  18. package/src/components/DayDropdown.vue +56 -56
  19. package/src/components/FilePicker.vue +169 -169
  20. package/src/components/Input.vue +80 -80
  21. package/src/components/MonthDropdown.vue +51 -51
  22. package/src/components/MultiPicker.vue +123 -123
  23. package/src/components/ObjsEditor.vue +334 -334
  24. package/src/components/SecretNotify.js +5 -5
  25. package/src/components/Sheet.vue +92 -92
  26. package/src/components/SingleApiPicker.vue +108 -108
  27. package/src/components/SinglePicker.vue +102 -102
  28. package/src/components/SingleUserSelector.vue +425 -425
  29. package/src/components/Switch.vue +64 -64
  30. package/src/components/TreePicker.vue +113 -113
  31. package/src/components/UserPicker.vue +106 -106
  32. package/src/components/UserProfile.vue +129 -129
  33. package/src/components/UsersPicker.vue +118 -118
  34. package/src/components/YearDropdown.vue +59 -59
  35. package/src/components/data_selector.vue +303 -303
  36. package/src/components/image_picker.vue +123 -123
  37. package/src/components/images_picker.vue +195 -195
  38. package/src/components/index.js +167 -162
  39. package/src/components/mult_list_selector.vue +155 -155
  40. package/src/components/subdepartment_selector.vue +481 -481
  41. package/src/components/user_selector.vue +639 -639
  42. package/src/components/widget/DataPop.vue +95 -95
  43. package/src/components/{DatetimePicker → widget}/DatetimePop.vue +342 -342
  44. package/src/components/widget/TreePop.vue +88 -88
  45. package/src/components/widget/UserPop.vue +347 -347
  46. package/src/main.js +117 -117
  47. package/src/router/index.ts +178 -173
  48. package/src/util/array_util.js +32 -32
  49. package/src/util/auth_util.js +72 -72
  50. package/src/util/bool_util.js +5 -5
  51. package/src/util/bus.js +1 -1
  52. package/src/util/cache_util.js +18 -18
  53. package/src/util/errer_code.js +6 -6
  54. package/src/util/eval_util.js +19 -19
  55. package/src/util/icon_util.js +36 -36
  56. package/src/util/image_util.js +27 -27
  57. package/src/util/index.js +57 -57
  58. package/src/util/num_util.js +70 -70
  59. package/src/util/obj_util.js +28 -28
  60. package/src/util/request.js +73 -73
  61. package/src/util/request_json.js +71 -71
  62. package/src/util/request_json_mute.js +65 -65
  63. package/src/util/request_upload.js +79 -79
  64. package/src/util/route_util.js +31 -31
  65. package/src/util/str_util.js +143 -143
  66. package/src/util/time_util.js +406 -406
  67. package/src/util/toast_util.js +24 -24
  68. package/src/util/tree_util.js +153 -153
  69. package/src/util/uuid_util.js +9 -9
  70. package/src/util/validate.js +182 -182
  71. package/src/util/vue_filter.js +223 -223
  72. package/src/views/auditbar/index.vue +78 -78
  73. package/src/views/billcard/index.vue +48 -48
  74. package/src/views/cascaderpicker/index.vue +0 -0
  75. package/src/views/cascaderpop/index.vue +90 -90
  76. package/src/views/checkgroup/index.vue +35 -35
  77. package/src/views/dataSelector/index.vue +48 -48
  78. package/src/views/datetimedropdown/index.vue +34 -0
  79. package/src/views/datetimepicker/index.vue +34 -34
  80. package/src/views/daydropdown/index.vue +31 -31
  81. package/src/views/filepicker/index.vue +32 -32
  82. package/src/views/home/index.vue +0 -0
  83. package/src/views/imagepicker/index.vue +31 -31
  84. package/src/views/imagespicker/index.vue +37 -37
  85. package/src/views/input/index.vue +35 -35
  86. package/src/views/monthdropdown/index.vue +31 -31
  87. package/src/views/multListSelector/index.vue +61 -61
  88. package/src/views/multipicker/index.vue +36 -36
  89. package/src/views/objseditor/index.vue +277 -277
  90. package/src/views/productSelector/index.vue +35 -35
  91. package/src/views/projectpicker/index.vue +41 -41
  92. package/src/views/secretnotify/index.vue +27 -27
  93. package/src/views/sheet/index.vue +45 -45
  94. package/src/views/singlepicker/index.vue +35 -35
  95. package/src/views/subdepartmentSelector/index.vue +40 -40
  96. package/src/views/switch/index.vue +34 -34
  97. package/src/views/treepicker/index.vue +41 -41
  98. package/src/views/userSelector/index.vue +54 -54
  99. package/src/views/userSelectorNew/index.vue +45 -45
  100. package/src/views/userpicker/index.vue +43 -43
  101. package/src/views/userprofile/index.vue +30 -30
  102. package/src/views/userspicker/index.vue +43 -43
  103. package/src/views/yeardropdown/index.vue +32 -32
  104. package/src/vm/index.js +1 -1
  105. package/vite.config.ts +122 -122
package/package.json CHANGED
@@ -1,47 +1,47 @@
1
- {
2
- "name": "widget.qw",
3
- "private": false,
4
- "version": "1.0.82",
5
- "description": "marqstree Vue3组件库",
6
- "main": "build/widget.qw.es.js",
7
- "keywords": [
8
- "widget.qw"
9
- ],
10
- "author": "marqstree",
11
- "license": "ISC",
12
- "scripts": {
13
- "dev": "vite",
14
- "build": "vue-tsc --noEmit && vite build",
15
- "preview": "vite preview"
16
- },
17
- "dependencies": {
18
- "@vueuse/core": "^10.11.0",
19
- "axios": "^0.27.2",
20
- "compressorjs": "^1.2.1",
21
- "dayjs": "^1.11.13",
22
- "echarts": "^5.4.1",
23
- "lodash": "^4.17.21",
24
- "mitt": "^3.0.0",
25
- "moment": "^2.30.1",
26
- "vant": "^4.9.21",
27
- "vite-plugin-require-transform": "^1.0.3",
28
- "vue": "^3.2.25",
29
- "vue-router": "^4.0.15",
30
- "vuex": "^4.0.2"
31
- },
32
- "devDependencies": {
33
- "@types/node": "^17.0.42",
34
- "@types/qs": "^6.9.7",
35
- "@vitejs/plugin-vue": "^2.3.3",
36
- "qs": "^6.10.5",
37
- "sass": "^1.52.3",
38
- "sass-loader": "^13.0.0",
39
- "typescript": "^4.5.4",
40
- "vite": "^2.9.9",
41
- "vite-plugin-style-import": "^1.4.1",
42
- "vue-tsc": "^0.34.7"
43
- },
44
- "publishConfig": {
45
- "registry": "https://registry.npmjs.org/"
46
- }
47
- }
1
+ {
2
+ "name": "widget.qw",
3
+ "private": false,
4
+ "version": "1.0.84",
5
+ "description": "marqstree Vue3组件库",
6
+ "main": "build/widget.qw.es.js",
7
+ "keywords": [
8
+ "widget.qw"
9
+ ],
10
+ "author": "marqstree",
11
+ "license": "ISC",
12
+ "scripts": {
13
+ "dev": "vite",
14
+ "build": "vue-tsc --noEmit && vite build",
15
+ "preview": "vite preview"
16
+ },
17
+ "dependencies": {
18
+ "@vueuse/core": "^10.11.0",
19
+ "axios": "^0.27.2",
20
+ "compressorjs": "^1.2.1",
21
+ "dayjs": "^1.11.13",
22
+ "echarts": "^5.4.1",
23
+ "lodash": "^4.17.21",
24
+ "mitt": "^3.0.0",
25
+ "moment": "^2.30.1",
26
+ "vant": "^4.9.21",
27
+ "vite-plugin-require-transform": "^1.0.3",
28
+ "vue": "^3.2.25",
29
+ "vue-router": "^4.0.15",
30
+ "vuex": "^4.0.2"
31
+ },
32
+ "devDependencies": {
33
+ "@types/node": "^17.0.42",
34
+ "@types/qs": "^6.9.7",
35
+ "@vitejs/plugin-vue": "^2.3.3",
36
+ "qs": "^6.10.5",
37
+ "sass": "^1.52.3",
38
+ "sass-loader": "^13.0.0",
39
+ "typescript": "^4.5.4",
40
+ "vite": "^2.9.9",
41
+ "vite-plugin-style-import": "^1.4.1",
42
+ "vue-tsc": "^0.34.7"
43
+ },
44
+ "publishConfig": {
45
+ "registry": "https://registry.npmjs.org/"
46
+ }
47
+ }
package/src/App.vue CHANGED
@@ -1,26 +1,26 @@
1
- <template>
2
- <div id="app-wrapper">
3
- <router-view />
4
- </div>
5
- </template>
6
-
7
- <script setup>
8
-
9
- import { onMounted } from 'vue';
10
-
11
- onMounted(() => {
12
- console.log('111111111111111',import.meta.env)
13
- })
14
- </script>
15
-
16
- <style lang="scss">
17
- body {
18
- font-size: 12px;
19
- margin: 0 0 !important;
20
- background-color: #f3f6fb;
21
- }
22
-
23
- #app {
24
- width: 100vw;
25
- }
26
- </style>
1
+ <template>
2
+ <div id="app-wrapper">
3
+ <router-view />
4
+ </div>
5
+ </template>
6
+
7
+ <script setup>
8
+
9
+ import { onMounted } from 'vue';
10
+
11
+ onMounted(() => {
12
+ console.log('111111111111111',import.meta.env)
13
+ })
14
+ </script>
15
+
16
+ <style lang="scss">
17
+ body {
18
+ font-size: 12px;
19
+ margin: 0 0 !important;
20
+ background-color: #f3f6fb;
21
+ }
22
+
23
+ #app {
24
+ width: 100vw;
25
+ }
26
+ </style>
package/src/api/index.js CHANGED
@@ -1,166 +1,166 @@
1
- import request_json from "../util/request_json";
2
- import request_json_mute from "../util/request_json_mute";
3
- import request_upload from "../util/request_upload";
4
- import request from "../util/request";
5
- import vm from "../vm";
6
-
7
-
8
- export const process_can_apply = (data) => {
9
- return request_json_mute({
10
- url: `${vm.gstepBaseUrlCallback()}/process/can_apply`,
11
- method: "POST",
12
- data,
13
- });
14
- };
15
-
16
- export const process_detail = (data) => {
17
- return request_json({
18
- url: `${vm.gstepBaseUrlCallback()}/process/detail`,
19
- method: "POST",
20
- data,
21
- })
22
- }
23
-
24
- export const process_step_auth = (data) => {
25
- return request_json_mute({
26
- url: `${vm.gstepBaseUrlCallback()}/process/step_auth`,
27
- method: "POST",
28
- data,
29
- })
30
- };
31
-
32
- export const dictionary_dict = (data) => {
33
- return request_json({
34
- url: vm.urlCallback() + "/qw-api/server-dictionary/dictionary/dict",
35
- method: "POST",
36
- data,
37
- });
38
- };
39
-
40
- // 获取产品列表
41
- export const project_list = (data) => {
42
- return request_json({
43
- url: vm.urlCallback() + "/ac-api/project/list",
44
- method: "POST",
45
- data,
46
- });
47
- };
48
-
49
- // 获取子部门列表
50
- export const get_subdepartments = (data) => {
51
- return request({
52
- url: vm.urlCallback() + "/qw-api/server-auth/auth/get_subdepartments",
53
- method: "POST",
54
- data,
55
- });
56
- };
57
-
58
- // 获取部门列表
59
- export const get_departments_by_ids = (data) => {
60
- return request({
61
- url: vm.urlCallback() + "/qw-api/server-auth/auth/get_departments_by_ids",
62
- method: "POST",
63
- data,
64
- })
65
- }
66
-
67
- // 根据id获取部门
68
- export const get_subdepartments_byId = (data) => {
69
- return request_json({
70
- url: vm.urlCallback() + "/qw-api/server-auth/auth/get_subdepartments",
71
- method: "POST",
72
- data,
73
- });
74
- };
75
-
76
- // 获取部门和用户列表
77
- export const get_subdepartments_users = (data) => {
78
- return request({
79
- url: vm.urlCallback() + "/qw-api/server-auth/auth/get_subdepartments_users",
80
- method: "POST",
81
- data: data,
82
- });
83
- };
84
-
85
- // 通过工号查询授权用户
86
- export const get_user_by_id = (data) => {
87
- return request_json({
88
- url: vm.urlCallback() + "/qw-api/server-auth/auth/get_user_by_id",
89
- method: "POST",
90
- data: data,
91
- });
92
- };
93
-
94
- // 通过工号查询用户(不限制)
95
- export const get_wxuser_by_id = (data) => {
96
- return request({
97
- url: vm.urlCallback() + "/qw-api/server-auth/auth/get_wxuser_by_id",
98
- method: "POST",
99
- data: data,
100
- });
101
- };
102
-
103
- // 关键字查询用户列表
104
- export const wx_user_list = (data) => {
105
- return request({
106
- url: vm.urlCallback() + "/qw-api/server-auth/auth/wx_user_list",
107
- method: "POST",
108
- data: data,
109
- });
110
- };
111
-
112
- export const file_upload = (data) => {
113
- return request_upload({
114
- url: `${vm.fileUploadUrlCallback()}`,
115
- method: "POST",
116
- data: data,
117
- })
118
- }
119
-
120
- export const auth_get_user_info = (data) => {
121
- return request({
122
- url: vm.urlCallback() + "/qw-api/server-auth/auth/get_user_info",
123
- method: "POST",
124
- data: data,
125
- })
126
- }
127
-
128
- export const part_children = (data) => {
129
- return request_json({
130
- url: vm.urlCallback() + "/ac-api/part/children",
131
- method: "POST",
132
- data: data,
133
- })
134
- }
135
-
136
- export const part_detail = (data) => {
137
- return request_json({
138
- url: vm.urlCallback() + "/ac-api/part/detail",
139
- method: "POST",
140
- data: data,
141
- })
142
- }
143
-
144
- export const qw_department_children = (data) => {
145
- return request_json({
146
- url: vm.urlCallback() + "/ac-api/qw/department/children",
147
- method: "POST",
148
- data: data,
149
- })
150
- }
151
-
152
- export const qw_user_detail = (data) => {
153
- return request_json({
154
- url: vm.urlCallback() + "/ac-api/qw/user/detail",
155
- method: "POST",
156
- data: data,
157
- })
158
- }
159
-
160
- export const reform_detail = (data) => {
161
- return request_json({
162
- url: vm.urlCallback() + "/ac-api/reform/detail",
163
- method: "POST",
164
- data: data,
165
- })
1
+ import request_json from "../util/request_json";
2
+ import request_json_mute from "../util/request_json_mute";
3
+ import request_upload from "../util/request_upload";
4
+ import request from "../util/request";
5
+ import vm from "../vm";
6
+
7
+
8
+ export const process_can_apply = (data) => {
9
+ return request_json_mute({
10
+ url: `${vm.gstepBaseUrlCallback()}/process/can_apply`,
11
+ method: "POST",
12
+ data,
13
+ });
14
+ };
15
+
16
+ export const process_detail = (data) => {
17
+ return request_json({
18
+ url: `${vm.gstepBaseUrlCallback()}/process/detail`,
19
+ method: "POST",
20
+ data,
21
+ })
22
+ }
23
+
24
+ export const process_step_auth = (data) => {
25
+ return request_json_mute({
26
+ url: `${vm.gstepBaseUrlCallback()}/process/step_auth`,
27
+ method: "POST",
28
+ data,
29
+ })
30
+ };
31
+
32
+ export const dictionary_dict = (data) => {
33
+ return request_json({
34
+ url: vm.urlCallback() + "/qw-api/server-dictionary/dictionary/dict",
35
+ method: "POST",
36
+ data,
37
+ });
38
+ };
39
+
40
+ // 获取产品列表
41
+ export const project_list = (data) => {
42
+ return request_json({
43
+ url: vm.urlCallback() + "/ac-api/project/list",
44
+ method: "POST",
45
+ data,
46
+ });
47
+ };
48
+
49
+ // 获取子部门列表
50
+ export const get_subdepartments = (data) => {
51
+ return request({
52
+ url: vm.urlCallback() + "/qw-api/server-auth/auth/get_subdepartments",
53
+ method: "POST",
54
+ data,
55
+ });
56
+ };
57
+
58
+ // 获取部门列表
59
+ export const get_departments_by_ids = (data) => {
60
+ return request({
61
+ url: vm.urlCallback() + "/qw-api/server-auth/auth/get_departments_by_ids",
62
+ method: "POST",
63
+ data,
64
+ })
65
+ }
66
+
67
+ // 根据id获取部门
68
+ export const get_subdepartments_byId = (data) => {
69
+ return request_json({
70
+ url: vm.urlCallback() + "/qw-api/server-auth/auth/get_subdepartments",
71
+ method: "POST",
72
+ data,
73
+ });
74
+ };
75
+
76
+ // 获取部门和用户列表
77
+ export const get_subdepartments_users = (data) => {
78
+ return request({
79
+ url: vm.urlCallback() + "/qw-api/server-auth/auth/get_subdepartments_users",
80
+ method: "POST",
81
+ data: data,
82
+ });
83
+ };
84
+
85
+ // 通过工号查询授权用户
86
+ export const get_user_by_id = (data) => {
87
+ return request_json({
88
+ url: vm.urlCallback() + "/qw-api/server-auth/auth/get_user_by_id",
89
+ method: "POST",
90
+ data: data,
91
+ });
92
+ };
93
+
94
+ // 通过工号查询用户(不限制)
95
+ export const get_wxuser_by_id = (data) => {
96
+ return request({
97
+ url: vm.urlCallback() + "/qw-api/server-auth/auth/get_wxuser_by_id",
98
+ method: "POST",
99
+ data: data,
100
+ });
101
+ };
102
+
103
+ // 关键字查询用户列表
104
+ export const wx_user_list = (data) => {
105
+ return request({
106
+ url: vm.urlCallback() + "/qw-api/server-auth/auth/wx_user_list",
107
+ method: "POST",
108
+ data: data,
109
+ });
110
+ };
111
+
112
+ export const file_upload = (data) => {
113
+ return request_upload({
114
+ url: `${vm.fileUploadUrlCallback()}`,
115
+ method: "POST",
116
+ data: data,
117
+ })
118
+ }
119
+
120
+ export const auth_get_user_info = (data) => {
121
+ return request({
122
+ url: vm.urlCallback() + "/qw-api/server-auth/auth/get_user_info",
123
+ method: "POST",
124
+ data: data,
125
+ })
126
+ }
127
+
128
+ export const part_children = (data) => {
129
+ return request_json({
130
+ url: vm.urlCallback() + "/ac-api/part/children",
131
+ method: "POST",
132
+ data: data,
133
+ })
134
+ }
135
+
136
+ export const part_detail = (data) => {
137
+ return request_json({
138
+ url: vm.urlCallback() + "/ac-api/part/detail",
139
+ method: "POST",
140
+ data: data,
141
+ })
142
+ }
143
+
144
+ export const qw_department_children = (data) => {
145
+ return request_json({
146
+ url: vm.urlCallback() + "/ac-api/qw/department/children",
147
+ method: "POST",
148
+ data: data,
149
+ })
150
+ }
151
+
152
+ export const qw_user_detail = (data) => {
153
+ return request_json({
154
+ url: vm.urlCallback() + "/ac-api/qw/user/detail",
155
+ method: "POST",
156
+ data: data,
157
+ })
158
+ }
159
+
160
+ export const reform_detail = (data) => {
161
+ return request_json({
162
+ url: vm.urlCallback() + "/ac-api/reform/detail",
163
+ method: "POST",
164
+ data: data,
165
+ })
166
166
  }