widget.qw 1.0.24 → 1.0.25

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 (101) hide show
  1. package/.env.development +9 -9
  2. package/.env.production +8 -8
  3. package/README.md +73 -73
  4. package/build/style.css +468 -482
  5. package/build/widget.qw.es.js +1628 -2374
  6. package/build/widget.qw.umd.js +1540 -2286
  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 +149 -141
  11. package/src/components/AuditBar.vue +340 -340
  12. package/src/components/BillCard.vue +155 -155
  13. package/src/components/CascaderPicker.vue +87 -87
  14. package/src/components/CascaderPop.vue +319 -330
  15. package/src/components/CheckGroup.vue +113 -113
  16. package/src/components/DatetimePicker/DatetimePop.vue +342 -342
  17. package/src/components/DatetimePicker/index.vue +112 -112
  18. package/src/components/DayDropdown.vue +56 -56
  19. package/src/components/FilePicker.vue +113 -113
  20. package/src/components/Input.vue +71 -71
  21. package/src/components/MonthDropdown.vue +51 -51
  22. package/src/components/MultiPicker.vue +123 -123
  23. package/src/components/SecretNotify.js +5 -5
  24. package/src/components/Sheet.vue +92 -92
  25. package/src/components/SingleApiPicker.vue +112 -112
  26. package/src/components/SinglePicker.vue +102 -102
  27. package/src/components/SingleUserSelector.vue +425 -425
  28. package/src/components/Switch.vue +64 -64
  29. package/src/components/TreePicker.vue +113 -113
  30. package/src/components/UserPicker.vue +106 -106
  31. package/src/components/UserProfile.vue +131 -131
  32. package/src/components/UsersPicker.vue +118 -118
  33. package/src/components/YearDropdown.vue +59 -59
  34. package/src/components/data_selector.vue +280 -280
  35. package/src/components/image_picker.vue +114 -114
  36. package/src/components/images_picker.vue +139 -139
  37. package/src/components/index.js +157 -157
  38. package/src/components/mult_list_selector.vue +155 -155
  39. package/src/components/subdepartment_selector.vue +481 -481
  40. package/src/components/user_selector.vue +639 -639
  41. package/src/components/widget/DataPop.vue +95 -95
  42. package/src/components/widget/TreePop.vue +88 -88
  43. package/src/components/widget/UserPop.vue +347 -347
  44. package/src/main.js +117 -117
  45. package/src/router/index.ts +168 -168
  46. package/src/util/array_util.js +32 -32
  47. package/src/util/auth_util.js +72 -72
  48. package/src/util/bool_util.js +5 -5
  49. package/src/util/bus.js +1 -1
  50. package/src/util/cache_util.js +18 -18
  51. package/src/util/errer_code.js +6 -6
  52. package/src/util/eval_util.js +19 -19
  53. package/src/util/icon_util.js +36 -36
  54. package/src/util/image_util.js +27 -27
  55. package/src/util/index.js +55 -55
  56. package/src/util/num_util.js +70 -70
  57. package/src/util/obj_util.js +28 -28
  58. package/src/util/request.js +73 -73
  59. package/src/util/request_json.js +71 -71
  60. package/src/util/request_json_mute.js +65 -65
  61. package/src/util/request_upload.js +79 -79
  62. package/src/util/route_util.js +31 -31
  63. package/src/util/str_util.js +143 -143
  64. package/src/util/time_util.js +406 -406
  65. package/src/util/toast_util.js +24 -24
  66. package/src/util/tree_util.js +153 -153
  67. package/src/util/validate.js +182 -182
  68. package/src/util/vue_filter.js +223 -223
  69. package/src/views/auditbar/index.vue +65 -65
  70. package/src/views/billcard/index.vue +45 -45
  71. package/src/views/cascaderpicker/index copy.vue +0 -0
  72. package/src/views/cascaderpicker/index.vue +0 -0
  73. package/src/views/cascaderpop/index.vue +90 -90
  74. package/src/views/checkgroup/index.vue +35 -35
  75. package/src/views/dataSelector/index.vue +48 -48
  76. package/src/views/datetimepicker/index.vue +34 -34
  77. package/src/views/daydropdown/index.vue +31 -31
  78. package/src/views/filepicker/index.vue +31 -31
  79. package/src/views/imagepicker/index.vue +31 -31
  80. package/src/views/imagespicker/index.vue +31 -31
  81. package/src/views/input/index.vue +34 -34
  82. package/src/views/monthdropdown/index.vue +31 -31
  83. package/src/views/multListSelector/index.vue +61 -61
  84. package/src/views/multipicker/index.vue +36 -36
  85. package/src/views/productSelector/index.vue +35 -35
  86. package/src/views/projectdropdown/index.vue +31 -31
  87. package/src/views/projectpicker/index.vue +41 -41
  88. package/src/views/secretnotify/index.vue +27 -27
  89. package/src/views/sheet/index.vue +45 -45
  90. package/src/views/singlepicker/index.vue +35 -35
  91. package/src/views/subdepartmentSelector/index.vue +40 -40
  92. package/src/views/switch/index.vue +34 -34
  93. package/src/views/treepicker/index.vue +41 -41
  94. package/src/views/userSelector/index.vue +54 -54
  95. package/src/views/userSelectorNew/index.vue +45 -45
  96. package/src/views/userpicker/index.vue +43 -43
  97. package/src/views/userprofile/index.vue +30 -30
  98. package/src/views/userspicker/index.vue +43 -43
  99. package/src/views/yeardropdown/index.vue +32 -32
  100. package/src/vm/index.js +1 -1
  101. package/vite.config.ts +122 -122
package/index.html CHANGED
@@ -1,17 +1,17 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="UTF-8" />
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
- <meta name="viewport" content="width=device-width, initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
8
- <link rel="icon" href="/favicon.ico" />
9
- <title>访客预约管理</title>
10
- </head>
11
-
12
- <body>
13
- <div id="app"></div>
14
- <script type="module" src="/src/main.js"></script>
15
- </body>
16
-
17
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="UTF-8" />
6
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
8
+ <link rel="icon" href="/favicon.ico" />
9
+ <title>访客预约管理</title>
10
+ </head>
11
+
12
+ <body>
13
+ <div id="app"></div>
14
+ <script type="module" src="/src/main.js"></script>
15
+ </body>
16
+
17
+ </html>
package/package.json CHANGED
@@ -1,47 +1,47 @@
1
- {
2
- "name": "widget.qw",
3
- "private": false,
4
- "version": "1.0.24",
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.25",
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,142 +1,150 @@
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
- })
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
+ })
142
150
  }