doway-coms 2.10.43 → 2.10.44

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 (88) 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.7946d50b.css +1 -0
  5. package/dist/favicon.ico +0 -0
  6. package/dist/js/chunk-vendors.28fda91d.js +340 -0
  7. package/dist/js/index.49bc6add.js +2 -0
  8. package/lib/doway-coms.common.js +120397 -0
  9. package/lib/doway-coms.css +1 -0
  10. package/lib/doway-coms.umd.js +120407 -0
  11. package/lib/doway-coms.umd.min.js +328 -0
  12. package/package.json +54 -54
  13. package/packages/AuditsList/index.js +7 -7
  14. package/packages/AuditsList/src/index.vue +315 -315
  15. package/packages/BaseButton/index.js +7 -7
  16. package/packages/BaseButton/src/index.vue +242 -242
  17. package/packages/BaseCheckbox/index.js +7 -7
  18. package/packages/BaseCheckbox/src/index.vue +134 -134
  19. package/packages/BaseDate/index.js +7 -7
  20. package/packages/BaseDate/src/index.vue +197 -197
  21. package/packages/BaseDateWeek/index.js +7 -7
  22. package/packages/BaseDateWeek/src/index.vue +163 -163
  23. package/packages/BaseDatetime/index.js +7 -7
  24. package/packages/BaseDatetime/src/index.vue +196 -196
  25. package/packages/BaseFileGroup/index.js +7 -7
  26. package/packages/BaseFileGroup/src/index.vue +724 -724
  27. package/packages/BaseForm/index.js +7 -7
  28. package/packages/BaseForm/src/index.vue +757 -757
  29. package/packages/BaseGantt/index.js +9 -9
  30. package/packages/BaseGantt/src/index.vue +617 -617
  31. package/packages/BaseGrid/index.js +9 -9
  32. package/packages/BaseGrid/src/SeqSetting.vue +278 -278
  33. package/packages/BaseGrid/src/index.vue +3878 -3878
  34. package/packages/BaseGridAdjust/index.js +9 -9
  35. package/packages/BaseGridAdjust/src/index.vue +482 -482
  36. package/packages/BaseInput/index.js +7 -7
  37. package/packages/BaseInput/src/index.vue +164 -164
  38. package/packages/BaseIntervalInput/index.js +7 -7
  39. package/packages/BaseIntervalInput/src/index.vue +310 -310
  40. package/packages/BaseKanbanEmpty/index.js +7 -7
  41. package/packages/BaseKanbanEmpty/src/index.vue +176 -176
  42. package/packages/BaseNumberInput/index.js +7 -7
  43. package/packages/BaseNumberInput/src/index.vue +290 -290
  44. package/packages/BasePagination/index.js +7 -7
  45. package/packages/BasePagination/src/index.vue +91 -91
  46. package/packages/BasePictureCard/index.js +7 -7
  47. package/packages/BasePictureCard/src/index.vue +671 -671
  48. package/packages/BasePrintPreview/index.js +7 -7
  49. package/packages/BasePrintPreview/src/index.vue +150 -150
  50. package/packages/BasePulldown/index.js +7 -7
  51. package/packages/BasePulldown/src/index.vue +1388 -1384
  52. package/packages/BaseSearch/index.js +7 -7
  53. package/packages/BaseSearch/src/index.vue +935 -935
  54. package/packages/BaseSelect/index.js +7 -7
  55. package/packages/BaseSelect/src/index.vue +155 -155
  56. package/packages/BaseSelectMulti/index.js +7 -7
  57. package/packages/BaseSelectMulti/src/index.vue +148 -148
  58. package/packages/BaseTextArea/index.js +7 -7
  59. package/packages/BaseTextArea/src/index.vue +178 -178
  60. package/packages/BaseTime/index.js +7 -7
  61. package/packages/BaseTime/src/index.vue +166 -166
  62. package/packages/BaseTool/index.js +7 -7
  63. package/packages/BaseTool/src/index.vue +353 -353
  64. package/packages/BaseToolStatus/index.js +7 -7
  65. package/packages/BaseToolStatus/src/ApprovalPersonsGroup.vue +41 -41
  66. package/packages/BaseToolStatus/src/index.vue +439 -439
  67. package/packages/BaseTreeSelect/index.js +8 -8
  68. package/packages/BaseTreeSelect/src/index.vue +437 -437
  69. package/packages/HistoryModal/index.js +8 -8
  70. package/packages/HistoryModal/src/index.vue +144 -144
  71. package/packages/LeaveAMessage/index.js +7 -7
  72. package/packages/LeaveAMessage/src/index.vue +601 -601
  73. package/packages/directive/clickoutside.js +44 -44
  74. package/packages/index.js +197 -197
  75. package/packages/styles/default.css +78 -78
  76. package/packages/styles/default.less +91 -91
  77. package/packages/utils/api.js +106 -106
  78. package/packages/utils/auth.js +38 -38
  79. package/packages/utils/common.js +636 -636
  80. package/packages/utils/dom.js +181 -181
  81. package/packages/utils/enum.js +86 -86
  82. package/packages/utils/filters.js +485 -485
  83. package/packages/utils/gridFormat.js +66 -66
  84. package/packages/utils/msg.js +84 -84
  85. package/packages/utils/patchFiles.js +44 -44
  86. package/packages/utils/request.js +181 -181
  87. package/packages/utils/store.js +372 -372
  88. 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,150 +1,150 @@
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
-
53
- showPrintPreview(url,data){
54
- this.$refs.printModal.maximize()
55
- this.isShow = true
56
- this.$nextTick(() => {
57
- const formExport = document.createElement('form')
58
- formExport.method = 'post'
59
- formExport.action = url + '?token=' + this.$store.getters.token
60
- const inputValue = document.createElement('input')
61
- inputValue.type = 'hidden'
62
- inputValue.name = 'printData'
63
- inputValue.value = JSON.stringify(data)
64
- formExport.target = 'printFrame'
65
- formExport.appendChild(inputValue)
66
- document.body.appendChild(formExport)
67
- formExport.submit()
68
- formExport.removeChild(inputValue)
69
- document.body.removeChild(formExport)
70
- })
71
- },
72
-
73
- showPreview(url, data, isReplace, method, modalInfo) {
74
- // modalInfo = {type: '', info: {}}
75
- this.$refs.printModal.maximize()
76
- this.isShow = true
77
- if (!modalInfo) {
78
- modalInfo = null
79
- }
80
- if (method == 'post') {
81
- this.isShow = true
82
- this.$nextTick(() => {
83
- const formExport = document.createElement('form')
84
- formExport.method = 'post'
85
- formExport.action = url + '?token=' + this.$store.getters.token
86
- const inputValue = document.createElement('input')
87
- inputValue.type = 'hidden'
88
- inputValue.name = 'ids'
89
- inputValue.value = JSON.stringify(data)
90
- formExport.target = 'printFrame'
91
- if (modalInfo && modalInfo.type == 'company') {
92
- // 添加公司id数据
93
- const companyids = document.createElement('input')
94
- companyids.type = 'hidden'
95
- companyids.name = 'companyId'
96
- companyids.value = modalInfo.info
97
- formExport.target = 'printFrame'
98
- formExport.appendChild(companyids)
99
- }
100
- if (modalInfo && modalInfo.type == 'templateName') {
101
- // 添加模板数据
102
- const templateData = document.createElement('input')
103
- templateData.type = 'hidden'
104
- templateData.name = 'templateName'
105
- templateData.value = modalInfo.info
106
- formExport.target = 'printFrame'
107
- formExport.appendChild(templateData)
108
- }
109
- formExport.appendChild(inputValue)
110
- document.body.appendChild(formExport)
111
- formExport.submit()
112
- formExport.removeChild(inputValue)
113
- document.body.removeChild(formExport)
114
- })
115
- } else {
116
- let ids = JSON.stringify(data)
117
- if ((modalInfo !== null) && modalInfo.type == 'company') { // 公司
118
- this.url = url + '?token=' + this.$store.getters.token + '&ids=' + ids + '&companyId=' + modalInfo.info
119
- } else if ((modalInfo !== null) && modalInfo.type == 'templateName') { // 模板
120
- this.url = url + '?token=' + this.$store.getters.token + '&ids=' + ids + '&templateName=' + modalInfo.info
121
- } else { // 其它
122
- this.url = url + '?token=' + this.$store.getters.token + '&ids=' + ids
123
- }
124
- }
125
- },
126
- closeModal() {
127
- this.$emit('close')
128
- },
129
- },
130
- }
131
- </script>
132
-
133
- <style lang="less" scoped>
134
- .full-modal {
135
- .ant-modal {
136
- max-width: 100%;
137
- top: 0;
138
- padding-bottom: 0;
139
- margin: 0;
140
- }
141
- .ant-modal-content {
142
- display: flex;
143
- flex-direction: column;
144
- height: calc(100vh);
145
- }
146
- .ant-modal-body {
147
- flex: 1;
148
- }
149
- }
150
- </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
+
53
+ showPrintPreview(url,data){
54
+ this.$refs.printModal.maximize()
55
+ this.isShow = true
56
+ this.$nextTick(() => {
57
+ const formExport = document.createElement('form')
58
+ formExport.method = 'post'
59
+ formExport.action = url + '?token=' + this.$store.getters.token
60
+ const inputValue = document.createElement('input')
61
+ inputValue.type = 'hidden'
62
+ inputValue.name = 'printData'
63
+ inputValue.value = JSON.stringify(data)
64
+ formExport.target = 'printFrame'
65
+ formExport.appendChild(inputValue)
66
+ document.body.appendChild(formExport)
67
+ formExport.submit()
68
+ formExport.removeChild(inputValue)
69
+ document.body.removeChild(formExport)
70
+ })
71
+ },
72
+
73
+ showPreview(url, data, isReplace, method, modalInfo) {
74
+ // modalInfo = {type: '', info: {}}
75
+ this.$refs.printModal.maximize()
76
+ this.isShow = true
77
+ if (!modalInfo) {
78
+ modalInfo = null
79
+ }
80
+ if (method == 'post') {
81
+ this.isShow = true
82
+ this.$nextTick(() => {
83
+ const formExport = document.createElement('form')
84
+ formExport.method = 'post'
85
+ formExport.action = url + '?token=' + this.$store.getters.token
86
+ const inputValue = document.createElement('input')
87
+ inputValue.type = 'hidden'
88
+ inputValue.name = 'ids'
89
+ inputValue.value = JSON.stringify(data)
90
+ formExport.target = 'printFrame'
91
+ if (modalInfo && modalInfo.type == 'company') {
92
+ // 添加公司id数据
93
+ const companyids = document.createElement('input')
94
+ companyids.type = 'hidden'
95
+ companyids.name = 'companyId'
96
+ companyids.value = modalInfo.info
97
+ formExport.target = 'printFrame'
98
+ formExport.appendChild(companyids)
99
+ }
100
+ if (modalInfo && modalInfo.type == 'templateName') {
101
+ // 添加模板数据
102
+ const templateData = document.createElement('input')
103
+ templateData.type = 'hidden'
104
+ templateData.name = 'templateName'
105
+ templateData.value = modalInfo.info
106
+ formExport.target = 'printFrame'
107
+ formExport.appendChild(templateData)
108
+ }
109
+ formExport.appendChild(inputValue)
110
+ document.body.appendChild(formExport)
111
+ formExport.submit()
112
+ formExport.removeChild(inputValue)
113
+ document.body.removeChild(formExport)
114
+ })
115
+ } else {
116
+ let ids = JSON.stringify(data)
117
+ if ((modalInfo !== null) && modalInfo.type == 'company') { // 公司
118
+ this.url = url + '?token=' + this.$store.getters.token + '&ids=' + ids + '&companyId=' + modalInfo.info
119
+ } else if ((modalInfo !== null) && modalInfo.type == 'templateName') { // 模板
120
+ this.url = url + '?token=' + this.$store.getters.token + '&ids=' + ids + '&templateName=' + modalInfo.info
121
+ } else { // 其它
122
+ this.url = url + '?token=' + this.$store.getters.token + '&ids=' + ids
123
+ }
124
+ }
125
+ },
126
+ closeModal() {
127
+ this.$emit('close')
128
+ },
129
+ },
130
+ }
131
+ </script>
132
+
133
+ <style lang="less" scoped>
134
+ .full-modal {
135
+ .ant-modal {
136
+ max-width: 100%;
137
+ top: 0;
138
+ padding-bottom: 0;
139
+ margin: 0;
140
+ }
141
+ .ant-modal-content {
142
+ display: flex;
143
+ flex-direction: column;
144
+ height: calc(100vh);
145
+ }
146
+ .ant-modal-body {
147
+ flex: 1;
148
+ }
149
+ }
150
+ </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;