doway-coms 1.6.44 → 1.6.46

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 (72) hide show
  1. package/.browserslistrc +2 -2
  2. package/README.md +28 -28
  3. package/dist/css/chunk-vendors.7f83d8f9.css +8 -0
  4. package/dist/css/index.86478f73.css +3 -0
  5. package/dist/favicon.ico +0 -0
  6. package/dist/js/chunk-vendors.307eaa8f.js +347 -0
  7. package/dist/js/index.48e7f7ac.js +2 -0
  8. package/package.json +52 -52
  9. package/packages/BaseButton/index.js +7 -7
  10. package/packages/BaseButton/src/index.vue +241 -241
  11. package/packages/BaseCheckbox/index.js +7 -7
  12. package/packages/BaseCheckbox/src/index.vue +134 -134
  13. package/packages/BaseDate/index.js +7 -7
  14. package/packages/BaseDate/src/index.vue +197 -197
  15. package/packages/BaseDateWeek/index.js +7 -7
  16. package/packages/BaseDateWeek/src/index.vue +163 -163
  17. package/packages/BaseDatetime/index.js +7 -7
  18. package/packages/BaseDatetime/src/index.vue +196 -196
  19. package/packages/BaseForm/index.js +7 -7
  20. package/packages/BaseForm/src/index.vue +666 -666
  21. package/packages/BaseGantt/index.js +9 -9
  22. package/packages/BaseGantt/src/index.vue +608 -608
  23. package/packages/BaseGrid/index.js +9 -9
  24. package/packages/BaseGrid/src/index.vue +2749 -2746
  25. package/packages/BaseGridAdjust/index.js +9 -9
  26. package/packages/BaseGridAdjust/src/index.vue +482 -455
  27. package/packages/BaseInput/index.js +7 -7
  28. package/packages/BaseInput/src/index.vue +164 -164
  29. package/packages/BaseIntervalInput/index.js +7 -7
  30. package/packages/BaseIntervalInput/src/index.vue +310 -310
  31. package/packages/BaseKanbanEmpty/index.js +7 -7
  32. package/packages/BaseKanbanEmpty/src/index.vue +176 -176
  33. package/packages/BaseNumberInput/index.js +7 -7
  34. package/packages/BaseNumberInput/src/index.vue +229 -229
  35. package/packages/BasePagination/index.js +7 -7
  36. package/packages/BasePagination/src/index.vue +91 -91
  37. package/packages/BasePictureCard/index.js +7 -7
  38. package/packages/BasePictureCard/src/index.vue +580 -580
  39. package/packages/BasePrintPreview/index.js +7 -7
  40. package/packages/BasePrintPreview/src/index.vue +117 -117
  41. package/packages/BasePulldown/index.js +7 -7
  42. package/packages/BasePulldown/src/index.vue +1136 -1136
  43. package/packages/BaseSearch/index.js +7 -7
  44. package/packages/BaseSearch/src/index.vue +935 -935
  45. package/packages/BaseSelect/index.js +7 -7
  46. package/packages/BaseSelect/src/index.vue +155 -155
  47. package/packages/BaseSelectMulti/index.js +7 -7
  48. package/packages/BaseSelectMulti/src/index.vue +148 -148
  49. package/packages/BaseTextArea/index.js +7 -7
  50. package/packages/BaseTextArea/src/index.vue +178 -178
  51. package/packages/BaseTime/index.js +7 -7
  52. package/packages/BaseTime/src/index.vue +166 -166
  53. package/packages/BaseTool/index.js +7 -7
  54. package/packages/BaseTool/src/index.vue +349 -349
  55. package/packages/BaseToolStatus/index.js +7 -7
  56. package/packages/BaseToolStatus/src/index.vue +388 -388
  57. package/packages/LeaveAMessage/index.js +8 -0
  58. package/packages/LeaveAMessage/src/index.vue +386 -0
  59. package/packages/index.js +167 -165
  60. package/packages/styles/default.less +80 -80
  61. package/packages/utils/api.js +74 -45
  62. package/packages/utils/auth.js +38 -38
  63. package/packages/utils/common.js +595 -595
  64. package/packages/utils/dom.js +181 -181
  65. package/packages/utils/enum.js +83 -83
  66. package/packages/utils/filters.js +458 -458
  67. package/packages/utils/gridFormat.js +60 -60
  68. package/packages/utils/msg.js +16 -16
  69. package/packages/utils/patchFiles.js +44 -44
  70. package/packages/utils/request.js +169 -169
  71. package/packages/utils/store.js +261 -261
  72. package/vue.config.js +59 -59
@@ -1,8 +1,8 @@
1
- // 导入组件,组件必须声明 name
2
- import BasePrintPreview from './src/index.vue';
3
- // 为组件提供 install 安装方法,供按需引入
4
- BasePrintPreview.install = function(Vue) {
5
- Vue.component(BasePrintPreview.name, BasePrintPreview);
6
- };
7
- // 默认导出组件
1
+ // 导入组件,组件必须声明 name
2
+ import BasePrintPreview from './src/index.vue';
3
+ // 为组件提供 install 安装方法,供按需引入
4
+ BasePrintPreview.install = function(Vue) {
5
+ Vue.component(BasePrintPreview.name, BasePrintPreview);
6
+ };
7
+ // 默认导出组件
8
8
  export default BasePrintPreview;
@@ -1,117 +1,117 @@
1
- <template>
2
- <div>
3
- <vxe-modal
4
- ref="printModal"
5
- show-zoom
6
- append-to-body
7
- :maskClosable="false"
8
- :keyboard="false"
9
- resize
10
- width="80%"
11
- height="80%"
12
- :position="'center'"
13
- v-model="isShow"
14
- destroy-on-close
15
- esc-closable
16
- title="打印预览"
17
- wrap-class-name="full-modal"
18
- @cancel="closeModal"
19
- >
20
- <iframe
21
- name="printFrame"
22
- id="printFrame"
23
- ref="printFrame"
24
- style="height: 98%"
25
- frameborder="0"
26
- width="100%"
27
- height="300px"
28
- :src="url"
29
- >
30
- </iframe>
31
- </vxe-modal>
32
- </div>
33
- </template>
34
- <script>
35
- import {Modal as VxeModal} from 'vxe-table'
36
- export default {
37
- name: 'BasePrintPreview',
38
- components:{
39
- VxeModal
40
- },
41
- props: {},
42
- data() {
43
- return {
44
- isShow: false,
45
- url: '',
46
- postData: '',
47
- requestToken: '',
48
- tempData: '',
49
- }
50
- },
51
- methods: {
52
- showPreview(url, data, isReplace, method, companyId) {
53
- this.$refs.printModal.maximize()
54
- this.isShow = true
55
- if (!companyId) {
56
- companyId = null
57
- }
58
- if (method == 'post') {
59
- this.isShow = true
60
- this.$nextTick(() => {
61
- const formExport = document.createElement('form')
62
- formExport.method = 'post'
63
- formExport.action = url + '?token=' + this.$store.getters.token
64
- const inputValue = document.createElement('input')
65
- inputValue.type = 'hidden'
66
- inputValue.name = 'ids'
67
- inputValue.value = JSON.stringify(data)
68
- formExport.target = 'printFrame'
69
- if (companyId) {
70
- // 添加公司id数据
71
- const companyids = document.createElement('input')
72
- companyids.type = 'hidden'
73
- companyids.name = 'companyId'
74
- companyids.value = companyId
75
- formExport.target = 'printFrame'
76
- formExport.appendChild(companyids)
77
- }
78
- formExport.appendChild(inputValue)
79
- document.body.appendChild(formExport)
80
- formExport.submit()
81
- formExport.removeChild(inputValue)
82
- document.body.removeChild(formExport)
83
- })
84
- } else {
85
- let ids = JSON.stringify(data)
86
- if (companyId) {
87
- this.url = url + '?token=' + this.$store.getters.token + '&ids=' + ids + '&companyId=' + companyId
88
- } else {
89
- this.url = url + '?token=' + this.$store.getters.token + '&ids=' + ids
90
- }
91
- }
92
- },
93
- closeModal() {
94
- this.$emit('close')
95
- },
96
- },
97
- }
98
- </script>
99
-
100
- <style lang="less" scoped>
101
- .full-modal {
102
- .ant-modal {
103
- max-width: 100%;
104
- top: 0;
105
- padding-bottom: 0;
106
- margin: 0;
107
- }
108
- .ant-modal-content {
109
- display: flex;
110
- flex-direction: column;
111
- height: calc(100vh);
112
- }
113
- .ant-modal-body {
114
- flex: 1;
115
- }
116
- }
117
- </style>
1
+ <template>
2
+ <div>
3
+ <vxe-modal
4
+ ref="printModal"
5
+ show-zoom
6
+ append-to-body
7
+ :maskClosable="false"
8
+ :keyboard="false"
9
+ resize
10
+ width="80%"
11
+ height="80%"
12
+ :position="'center'"
13
+ v-model="isShow"
14
+ destroy-on-close
15
+ esc-closable
16
+ title="打印预览"
17
+ wrap-class-name="full-modal"
18
+ @cancel="closeModal"
19
+ >
20
+ <iframe
21
+ name="printFrame"
22
+ id="printFrame"
23
+ ref="printFrame"
24
+ style="height: 98%"
25
+ frameborder="0"
26
+ width="100%"
27
+ height="300px"
28
+ :src="url"
29
+ >
30
+ </iframe>
31
+ </vxe-modal>
32
+ </div>
33
+ </template>
34
+ <script>
35
+ import {Modal as VxeModal} from 'vxe-table'
36
+ export default {
37
+ name: 'BasePrintPreview',
38
+ components:{
39
+ VxeModal
40
+ },
41
+ props: {},
42
+ data() {
43
+ return {
44
+ isShow: false,
45
+ url: '',
46
+ postData: '',
47
+ requestToken: '',
48
+ tempData: '',
49
+ }
50
+ },
51
+ methods: {
52
+ showPreview(url, data, isReplace, method, companyId) {
53
+ this.$refs.printModal.maximize()
54
+ this.isShow = true
55
+ if (!companyId) {
56
+ companyId = null
57
+ }
58
+ if (method == 'post') {
59
+ this.isShow = true
60
+ this.$nextTick(() => {
61
+ const formExport = document.createElement('form')
62
+ formExport.method = 'post'
63
+ formExport.action = url + '?token=' + this.$store.getters.token
64
+ const inputValue = document.createElement('input')
65
+ inputValue.type = 'hidden'
66
+ inputValue.name = 'ids'
67
+ inputValue.value = JSON.stringify(data)
68
+ formExport.target = 'printFrame'
69
+ if (companyId) {
70
+ // 添加公司id数据
71
+ const companyids = document.createElement('input')
72
+ companyids.type = 'hidden'
73
+ companyids.name = 'companyId'
74
+ companyids.value = companyId
75
+ formExport.target = 'printFrame'
76
+ formExport.appendChild(companyids)
77
+ }
78
+ formExport.appendChild(inputValue)
79
+ document.body.appendChild(formExport)
80
+ formExport.submit()
81
+ formExport.removeChild(inputValue)
82
+ document.body.removeChild(formExport)
83
+ })
84
+ } else {
85
+ let ids = JSON.stringify(data)
86
+ if (companyId) {
87
+ this.url = url + '?token=' + this.$store.getters.token + '&ids=' + ids + '&companyId=' + companyId
88
+ } else {
89
+ this.url = url + '?token=' + this.$store.getters.token + '&ids=' + ids
90
+ }
91
+ }
92
+ },
93
+ closeModal() {
94
+ this.$emit('close')
95
+ },
96
+ },
97
+ }
98
+ </script>
99
+
100
+ <style lang="less" scoped>
101
+ .full-modal {
102
+ .ant-modal {
103
+ max-width: 100%;
104
+ top: 0;
105
+ padding-bottom: 0;
106
+ margin: 0;
107
+ }
108
+ .ant-modal-content {
109
+ display: flex;
110
+ flex-direction: column;
111
+ height: calc(100vh);
112
+ }
113
+ .ant-modal-body {
114
+ flex: 1;
115
+ }
116
+ }
117
+ </style>
@@ -1,8 +1,8 @@
1
- // 导入组件,组件必须声明 name
2
- import BasePulldown from './src/index.vue';
3
- // 为组件提供 install 安装方法,供按需引入
4
- BasePulldown.install = function(Vue) {
5
- Vue.component(BasePulldown.name, BasePulldown);
6
- };
7
- // 默认导出组件
1
+ // 导入组件,组件必须声明 name
2
+ import BasePulldown from './src/index.vue';
3
+ // 为组件提供 install 安装方法,供按需引入
4
+ BasePulldown.install = function(Vue) {
5
+ Vue.component(BasePulldown.name, BasePulldown);
6
+ };
7
+ // 默认导出组件
8
8
  export default BasePulldown;