widget.qw 1.0.83 → 1.0.85

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 (108) 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 +521 -471
  5. package/build/widget.qw.es.js +253 -84
  6. package/build/widget.qw.umd.js +252 -83
  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 +173 -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 +375 -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/HeadBar.vue +130 -0
  21. package/src/components/Input.vue +80 -80
  22. package/src/components/MonthDropdown.vue +51 -51
  23. package/src/components/MultiPicker.vue +123 -123
  24. package/src/components/ObjsEditor.vue +334 -334
  25. package/src/components/SecretNotify.js +5 -5
  26. package/src/components/Sheet.vue +92 -92
  27. package/src/components/SingleApiPicker.vue +108 -108
  28. package/src/components/SinglePicker.vue +102 -102
  29. package/src/components/SingleUserSelector.vue +425 -425
  30. package/src/components/Switch.vue +64 -64
  31. package/src/components/TreePicker.vue +113 -113
  32. package/src/components/UserPicker.vue +106 -106
  33. package/src/components/UserProfile.vue +129 -129
  34. package/src/components/UsersPicker.vue +118 -118
  35. package/src/components/YearDropdown.vue +59 -59
  36. package/src/components/data_selector.vue +303 -303
  37. package/src/components/image_picker.vue +123 -123
  38. package/src/components/images_picker.vue +195 -195
  39. package/src/components/index.js +172 -162
  40. package/src/components/mult_list_selector.vue +155 -155
  41. package/src/components/subdepartment_selector.vue +481 -481
  42. package/src/components/user_selector.vue +639 -639
  43. package/src/components/widget/DataPop.vue +95 -95
  44. package/src/components/{DatetimePicker → widget}/DatetimePop.vue +342 -342
  45. package/src/components/widget/TreePop.vue +88 -88
  46. package/src/components/widget/UserPop.vue +347 -347
  47. package/src/main.js +117 -117
  48. package/src/router/index.ts +183 -173
  49. package/src/util/array_util.js +32 -32
  50. package/src/util/auth_util.js +72 -72
  51. package/src/util/bool_util.js +5 -5
  52. package/src/util/bus.js +1 -1
  53. package/src/util/cache_util.js +18 -18
  54. package/src/util/errer_code.js +6 -6
  55. package/src/util/eval_util.js +19 -19
  56. package/src/util/icon_util.js +36 -36
  57. package/src/util/image_util.js +27 -27
  58. package/src/util/index.js +57 -57
  59. package/src/util/num_util.js +70 -70
  60. package/src/util/obj_util.js +28 -28
  61. package/src/util/request.js +73 -73
  62. package/src/util/request_json.js +71 -71
  63. package/src/util/request_json_mute.js +65 -65
  64. package/src/util/request_upload.js +79 -79
  65. package/src/util/route_util.js +31 -31
  66. package/src/util/str_util.js +143 -143
  67. package/src/util/time_util.js +406 -406
  68. package/src/util/toast_util.js +24 -24
  69. package/src/util/tree_util.js +153 -153
  70. package/src/util/uuid_util.js +9 -9
  71. package/src/util/validate.js +182 -182
  72. package/src/util/vue_filter.js +223 -223
  73. package/src/views/auditbar/index.vue +78 -78
  74. package/src/views/billcard/index.vue +48 -48
  75. package/src/views/cascaderpicker/index.vue +0 -0
  76. package/src/views/cascaderpicker/userpicker.vue +183 -0
  77. package/src/views/cascaderpop/index.vue +90 -90
  78. package/src/views/checkgroup/index.vue +35 -35
  79. package/src/views/dataSelector/index.vue +48 -48
  80. package/src/views/datetimedropdown/index.vue +34 -0
  81. package/src/views/datetimepicker/index.vue +34 -34
  82. package/src/views/daydropdown/index.vue +31 -31
  83. package/src/views/filepicker/index.vue +32 -32
  84. package/src/views/headbar/index.vue +28 -0
  85. package/src/views/home/index.vue +0 -0
  86. package/src/views/imagepicker/index.vue +31 -31
  87. package/src/views/imagespicker/index.vue +37 -37
  88. package/src/views/input/index.vue +35 -35
  89. package/src/views/monthdropdown/index.vue +31 -31
  90. package/src/views/multListSelector/index.vue +61 -61
  91. package/src/views/multipicker/index.vue +36 -36
  92. package/src/views/objseditor/index.vue +277 -277
  93. package/src/views/productSelector/index.vue +35 -35
  94. package/src/views/projectpicker/index.vue +41 -41
  95. package/src/views/secretnotify/index.vue +27 -27
  96. package/src/views/sheet/index.vue +45 -45
  97. package/src/views/singlepicker/index.vue +35 -35
  98. package/src/views/subdepartmentSelector/index.vue +40 -40
  99. package/src/views/switch/index.vue +34 -34
  100. package/src/views/treepicker/index.vue +41 -41
  101. package/src/views/userSelector/index.vue +54 -54
  102. package/src/views/userSelectorNew/index.vue +45 -45
  103. package/src/views/userpicker/index.vue +43 -43
  104. package/src/views/userprofile/index.vue +30 -30
  105. package/src/views/userspicker/index.vue +43 -43
  106. package/src/views/yeardropdown/index.vue +32 -32
  107. package/src/vm/index.js +1 -1
  108. package/vite.config.ts +122 -122
@@ -1,54 +1,54 @@
1
- <template>
2
- <div class="page">
3
- <widget-qw-user-selector v-model="formData.singleUser"
4
- label="单选人员"
5
- mode="single"
6
- :auth="formData.auth"
7
- @select="onSelect" />
8
-
9
- <widget-qw-user-selector v-model="formData.multUser"
10
- label="多选人员"
11
- mode="multiple"
12
- :required="true"
13
- :rules="[{ required: true, message: '请选择人员' }]"
14
- :readonly="false" />
15
-
16
- <widget-qw-user-selector v-model="formData.singleUser"
17
- label="指定部门下的人员"
18
- mode="single"
19
- :required="true"
20
- :currentDept="formData.department"
21
- :rules="[{ required: true, message: '请选择人员' }]"
22
- :readonly="false" />
23
- </div>
24
- </template>
25
-
26
- <script setup>
27
- import { ref, onMounted, reactive, watch } from "vue";
28
-
29
- const formData = ref({
30
- department: '1517', // 组件默认展开哪个部门下的数据,可为空
31
- singleUser: '014391',
32
- multUser: ['014391','014392'],
33
- auth:'require'
34
- })
35
-
36
- const onSelect=(e)=>{
37
- console.log('onSelect', e)
38
- }
39
-
40
- </script>
41
-
42
- <style lang="scss" scoped>
43
- .page {
44
- height: 100vh;
45
- background: #fff;
46
- text-align: center;
47
- background-size: cover;
48
- display: flex;
49
- flex-direction: column;
50
- justify-content: flex-start;
51
- padding: 80px 15px 0 15px;
52
- box-sizing: border-box;
53
- }
54
- </style>
1
+ <template>
2
+ <div class="page">
3
+ <widget-qw-user-selector v-model="formData.singleUser"
4
+ label="单选人员"
5
+ mode="single"
6
+ :auth="formData.auth"
7
+ @select="onSelect" />
8
+
9
+ <widget-qw-user-selector v-model="formData.multUser"
10
+ label="多选人员"
11
+ mode="multiple"
12
+ :required="true"
13
+ :rules="[{ required: true, message: '请选择人员' }]"
14
+ :readonly="false" />
15
+
16
+ <widget-qw-user-selector v-model="formData.singleUser"
17
+ label="指定部门下的人员"
18
+ mode="single"
19
+ :required="true"
20
+ :currentDept="formData.department"
21
+ :rules="[{ required: true, message: '请选择人员' }]"
22
+ :readonly="false" />
23
+ </div>
24
+ </template>
25
+
26
+ <script setup>
27
+ import { ref, onMounted, reactive, watch } from "vue";
28
+
29
+ const formData = ref({
30
+ department: '1517', // 组件默认展开哪个部门下的数据,可为空
31
+ singleUser: '014391',
32
+ multUser: ['014391','014392'],
33
+ auth:'require'
34
+ })
35
+
36
+ const onSelect=(e)=>{
37
+ console.log('onSelect', e)
38
+ }
39
+
40
+ </script>
41
+
42
+ <style lang="scss" scoped>
43
+ .page {
44
+ height: 100vh;
45
+ background: #fff;
46
+ text-align: center;
47
+ background-size: cover;
48
+ display: flex;
49
+ flex-direction: column;
50
+ justify-content: flex-start;
51
+ padding: 80px 15px 0 15px;
52
+ box-sizing: border-box;
53
+ }
54
+ </style>
@@ -1,45 +1,45 @@
1
- <template>
2
- <div class="page">
3
- <WidgetQwSingleUserSelector
4
- :auth="formData.auth"
5
- :deptRangeId="formData.deptRangeId"
6
- v-model="formData.singleUser"
7
- @select="onSelect"
8
- />
9
- </div>
10
- </template>
11
-
12
- <script setup>
13
- import { reactive ,onMounted} from "vue";
14
- const formData = reactive({
15
- departmentId: "1517", // 组件默认展开哪个部门下的数据,可为空
16
- deptRangeId: "production_dept_ids",
17
- singleUser: "023663",
18
- // singleUser: "014391",
19
- auth: "require",
20
- });
21
-
22
- const onSelect=(e)=>{
23
- console.log('onSelect', e)
24
- }
25
-
26
- onMounted(()=>{
27
- setTimeout(()=>{
28
- formData.singleUser = '014391'
29
- },10000)
30
- })
31
- </script>
32
-
33
- <style lang="scss" scoped>
34
- .page {
35
- height: 100vh;
36
- background: #fff;
37
- text-align: center;
38
- background-size: cover;
39
- display: flex;
40
- flex-direction: column;
41
- justify-content: flex-start;
42
- padding: 80px 15px 0 15px;
43
- box-sizing: border-box;
44
- }
45
- </style>
1
+ <template>
2
+ <div class="page">
3
+ <WidgetQwSingleUserSelector
4
+ :auth="formData.auth"
5
+ :deptRangeId="formData.deptRangeId"
6
+ v-model="formData.singleUser"
7
+ @select="onSelect"
8
+ />
9
+ </div>
10
+ </template>
11
+
12
+ <script setup>
13
+ import { reactive ,onMounted} from "vue";
14
+ const formData = reactive({
15
+ departmentId: "1517", // 组件默认展开哪个部门下的数据,可为空
16
+ deptRangeId: "production_dept_ids",
17
+ singleUser: "023663",
18
+ // singleUser: "014391",
19
+ auth: "require",
20
+ });
21
+
22
+ const onSelect=(e)=>{
23
+ console.log('onSelect', e)
24
+ }
25
+
26
+ onMounted(()=>{
27
+ setTimeout(()=>{
28
+ formData.singleUser = '014391'
29
+ },10000)
30
+ })
31
+ </script>
32
+
33
+ <style lang="scss" scoped>
34
+ .page {
35
+ height: 100vh;
36
+ background: #fff;
37
+ text-align: center;
38
+ background-size: cover;
39
+ display: flex;
40
+ flex-direction: column;
41
+ justify-content: flex-start;
42
+ padding: 80px 15px 0 15px;
43
+ box-sizing: border-box;
44
+ }
45
+ </style>
@@ -1,43 +1,43 @@
1
- <template>
2
- <div class="page">
3
- <WidgetQwUserPicker
4
- :auth="formData.auth"
5
- v-model="formData.userId"
6
- @select="onSelect"
7
- rootDeptId="-1"
8
- />
9
- </div>
10
- </template>
11
-
12
- <script setup>
13
- import { reactive ,onMounted} from "vue";
14
- const formData = reactive({
15
- deptRangeId: "production_dept_ids",
16
- userId: "014391",
17
- auth: "option",
18
- });
19
-
20
- const onSelect=(e)=>{
21
- console.log('onSelect', e)
22
- }
23
-
24
- onMounted(()=>{
25
- setTimeout(()=>{
26
- formData.singleUser = '014391'
27
- },10000)
28
- })
29
- </script>
30
-
31
- <style lang="scss" scoped>
32
- .page {
33
- height: 100vh;
34
- background: #fff;
35
- text-align: center;
36
- background-size: cover;
37
- display: flex;
38
- flex-direction: column;
39
- justify-content: flex-start;
40
- padding: 80px 15px 0 15px;
41
- box-sizing: border-box;
42
- }
43
- </style>
1
+ <template>
2
+ <div class="page">
3
+ <WidgetQwUserPicker
4
+ :auth="formData.auth"
5
+ v-model="formData.userId"
6
+ @select="onSelect"
7
+ rootDeptId="-1"
8
+ />
9
+ </div>
10
+ </template>
11
+
12
+ <script setup>
13
+ import { reactive ,onMounted} from "vue";
14
+ const formData = reactive({
15
+ deptRangeId: "production_dept_ids",
16
+ userId: "014391",
17
+ auth: "option",
18
+ });
19
+
20
+ const onSelect=(e)=>{
21
+ console.log('onSelect', e)
22
+ }
23
+
24
+ onMounted(()=>{
25
+ setTimeout(()=>{
26
+ formData.singleUser = '014391'
27
+ },10000)
28
+ })
29
+ </script>
30
+
31
+ <style lang="scss" scoped>
32
+ .page {
33
+ height: 100vh;
34
+ background: #fff;
35
+ text-align: center;
36
+ background-size: cover;
37
+ display: flex;
38
+ flex-direction: column;
39
+ justify-content: flex-start;
40
+ padding: 80px 15px 0 15px;
41
+ box-sizing: border-box;
42
+ }
43
+ </style>
@@ -1,30 +1,30 @@
1
- <template>
2
- <div class="page">
3
- <widget-qw-user-profile @logout="onLogout" />
4
- </div>
5
- </template>
6
-
7
- <script setup>
8
- import { reactive ,onMounted} from "vue";
9
-
10
- const onLogout=(e)=>{
11
- console.log('+++onLogout+++', e)
12
- }
13
-
14
- onMounted(()=>{
15
- })
16
- </script>
17
-
18
- <style lang="scss" scoped>
19
- .page {
20
- height: 100vh;
21
- background: #fff;
22
- text-align: center;
23
- background-size: cover;
24
- display: flex;
25
- flex-direction: column;
26
- justify-content: flex-start;
27
- padding: 80px 15px 0 15px;
28
- box-sizing: border-box;
29
- }
30
- </style>
1
+ <template>
2
+ <div class="page">
3
+ <widget-qw-user-profile @logout="onLogout" />
4
+ </div>
5
+ </template>
6
+
7
+ <script setup>
8
+ import { reactive ,onMounted} from "vue";
9
+
10
+ const onLogout=(e)=>{
11
+ console.log('+++onLogout+++', e)
12
+ }
13
+
14
+ onMounted(()=>{
15
+ })
16
+ </script>
17
+
18
+ <style lang="scss" scoped>
19
+ .page {
20
+ height: 100vh;
21
+ background: #fff;
22
+ text-align: center;
23
+ background-size: cover;
24
+ display: flex;
25
+ flex-direction: column;
26
+ justify-content: flex-start;
27
+ padding: 80px 15px 0 15px;
28
+ box-sizing: border-box;
29
+ }
30
+ </style>
@@ -1,43 +1,43 @@
1
- <template>
2
- <div class="page">
3
- <WidgetQwUsersPicker
4
- :auth="formData.auth"
5
- :deptRangeId="formData.deptRangeId"
6
- v-model="formData.userIds"
7
- @select="onSelect"
8
- />
9
- </div>
10
- </template>
11
-
12
- <script setup>
13
- import { reactive ,onMounted} from "vue";
14
- const formData = reactive({
15
- deptRangeId: "production_dept_ids",
16
- userIds: null,
17
- auth: "require",
18
- });
19
-
20
- const onSelect=(e)=>{
21
- console.log('onSelect', e)
22
- }
23
-
24
- onMounted(()=>{
25
- // setTimeout(()=>{
26
- // formData.singleUser = '014391'
27
- // },10000)
28
- })
29
- </script>
30
-
31
- <style lang="scss" scoped>
32
- .page {
33
- height: 100vh;
34
- background: #fff;
35
- text-align: center;
36
- background-size: cover;
37
- display: flex;
38
- flex-direction: column;
39
- justify-content: flex-start;
40
- padding: 80px 15px 0 15px;
41
- box-sizing: border-box;
42
- }
43
- </style>
1
+ <template>
2
+ <div class="page">
3
+ <WidgetQwUsersPicker
4
+ :auth="formData.auth"
5
+ :deptRangeId="formData.deptRangeId"
6
+ v-model="formData.userIds"
7
+ @select="onSelect"
8
+ />
9
+ </div>
10
+ </template>
11
+
12
+ <script setup>
13
+ import { reactive ,onMounted} from "vue";
14
+ const formData = reactive({
15
+ deptRangeId: "production_dept_ids",
16
+ userIds: null,
17
+ auth: "require",
18
+ });
19
+
20
+ const onSelect=(e)=>{
21
+ console.log('onSelect', e)
22
+ }
23
+
24
+ onMounted(()=>{
25
+ // setTimeout(()=>{
26
+ // formData.singleUser = '014391'
27
+ // },10000)
28
+ })
29
+ </script>
30
+
31
+ <style lang="scss" scoped>
32
+ .page {
33
+ height: 100vh;
34
+ background: #fff;
35
+ text-align: center;
36
+ background-size: cover;
37
+ display: flex;
38
+ flex-direction: column;
39
+ justify-content: flex-start;
40
+ padding: 80px 15px 0 15px;
41
+ box-sizing: border-box;
42
+ }
43
+ </style>
@@ -1,32 +1,32 @@
1
- <template>
2
- <div class="page">
3
- <van-dropdown-menu>
4
- <widget-qw-year-dropdown v-model="formData.year" startYear="2020" />
5
- </van-dropdown-menu>
6
-
7
- </div>
8
- </template>
9
-
10
- <script setup>
11
- import { reactive, onMounted } from "vue";
12
- const formData = reactive({
13
- year: new Date().getFullYear()
14
- })
15
-
16
- onMounted(() => {
17
- })
18
- </script>
19
-
20
- <style lang="scss" scoped>
21
- .page {
22
- height: 100vh;
23
- background: #fff;
24
- text-align: center;
25
- background-size: cover;
26
- display: flex;
27
- flex-direction: column;
28
- justify-content: flex-start;
29
- padding: 80px 15px 0 15px;
30
- box-sizing: border-box;
31
- }
32
- </style>
1
+ <template>
2
+ <div class="page">
3
+ <van-dropdown-menu>
4
+ <widget-qw-year-dropdown v-model="formData.year" startYear="2020" />
5
+ </van-dropdown-menu>
6
+
7
+ </div>
8
+ </template>
9
+
10
+ <script setup>
11
+ import { reactive, onMounted } from "vue";
12
+ const formData = reactive({
13
+ year: new Date().getFullYear()
14
+ })
15
+
16
+ onMounted(() => {
17
+ })
18
+ </script>
19
+
20
+ <style lang="scss" scoped>
21
+ .page {
22
+ height: 100vh;
23
+ background: #fff;
24
+ text-align: center;
25
+ background-size: cover;
26
+ display: flex;
27
+ flex-direction: column;
28
+ justify-content: flex-start;
29
+ padding: 80px 15px 0 15px;
30
+ box-sizing: border-box;
31
+ }
32
+ </style>
package/src/vm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- // 默认的apibaseUrl
1
+ // 默认的apibaseUrl
2
2
  export default {}