doway-coms 2.11.96 → 2.11.97

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 (94) hide show
  1. package/.browserslistrc +2 -2
  2. package/README.md +28 -28
  3. package/package.json +63 -63
  4. package/packages/AuditsList/index.js +7 -7
  5. package/packages/AuditsList/src/index.vue +314 -314
  6. package/packages/BaseButton/index.js +7 -7
  7. package/packages/BaseButton/src/index.vue +242 -242
  8. package/packages/BaseCheckbox/index.js +7 -7
  9. package/packages/BaseCheckbox/src/index.vue +134 -134
  10. package/packages/BaseDate/index.js +7 -7
  11. package/packages/BaseDate/src/index.vue +233 -233
  12. package/packages/BaseDateMonth/index.js +7 -7
  13. package/packages/BaseDateMonth/src/index.vue +163 -163
  14. package/packages/BaseDateWeek/index.js +7 -7
  15. package/packages/BaseDateWeek/src/index.vue +163 -163
  16. package/packages/BaseDatetime/index.js +7 -7
  17. package/packages/BaseDatetime/src/index.vue +196 -196
  18. package/packages/BaseFileGroup/index.js +7 -7
  19. package/packages/BaseFileGroup/src/index.vue +778 -778
  20. package/packages/BaseForm/index.js +7 -7
  21. package/packages/BaseForm/src/index.vue +913 -913
  22. package/packages/BaseGantt/index.js +9 -9
  23. package/packages/BaseGantt/src/index.vue +617 -617
  24. package/packages/BaseGrid/index.js +9 -9
  25. package/packages/BaseGrid/src/exportCmp.vue +105 -105
  26. package/packages/BaseGrid/src/gridApi.js +32 -32
  27. package/packages/BaseGrid/src/index.vue +4762 -4762
  28. package/packages/BaseGridAdjust/index.js +9 -9
  29. package/packages/BaseGridAdjust/src/index.vue +482 -482
  30. package/packages/BaseInput/index.js +7 -7
  31. package/packages/BaseInput/src/index.vue +207 -207
  32. package/packages/BaseIntervalInput/index.js +7 -7
  33. package/packages/BaseIntervalInput/src/index.vue +316 -316
  34. package/packages/BaseKanbanEmpty/index.js +7 -7
  35. package/packages/BaseKanbanEmpty/src/index.vue +176 -176
  36. package/packages/BaseNumberInput/index.js +7 -7
  37. package/packages/BaseNumberInput/src/index.vue +278 -278
  38. package/packages/BasePagination/index.js +7 -7
  39. package/packages/BasePagination/src/index.vue +90 -90
  40. package/packages/BasePictureCard/index.js +7 -7
  41. package/packages/BasePictureCard/src/index.vue +671 -671
  42. package/packages/BasePrintPreview/index.js +7 -7
  43. package/packages/BasePrintPreview/src/index.vue +214 -214
  44. package/packages/BasePulldown/index.js +7 -7
  45. package/packages/BasePulldown/src/index.vue +1406 -1406
  46. package/packages/BaseSearch/index.js +7 -7
  47. package/packages/BaseSearch/src/index.vue +935 -935
  48. package/packages/BaseSelect/index.js +7 -7
  49. package/packages/BaseSelect/src/index.vue +169 -169
  50. package/packages/BaseSelectMulti/index.js +7 -7
  51. package/packages/BaseSelectMulti/src/index.vue +148 -148
  52. package/packages/BaseTextArea/index.js +7 -7
  53. package/packages/BaseTextArea/src/index.vue +197 -197
  54. package/packages/BaseTime/index.js +7 -7
  55. package/packages/BaseTime/src/index.vue +166 -166
  56. package/packages/BaseTool/index.js +7 -7
  57. package/packages/BaseTool/src/index.vue +353 -353
  58. package/packages/BaseToolStatus/index.js +7 -7
  59. package/packages/BaseToolStatus/src/ApprovalPersonsGroup.vue +41 -41
  60. package/packages/BaseToolStatus/src/index.vue +439 -439
  61. package/packages/BaseTreeSelect/index.js +8 -8
  62. package/packages/BaseTreeSelect/src/index.vue +437 -437
  63. package/packages/HistoryModal/index.js +8 -8
  64. package/packages/HistoryModal/src/index.vue +161 -161
  65. package/packages/LeaveAMessage/index.js +7 -7
  66. package/packages/LeaveAMessage/src/index.vue +601 -601
  67. package/packages/directive/clickoutside.js +44 -44
  68. package/packages/index.js +197 -197
  69. package/packages/styles/default.css +78 -78
  70. package/packages/styles/default.less +91 -91
  71. package/packages/styles/hps/default.less +73 -73
  72. package/packages/utils/api.js +134 -134
  73. package/packages/utils/auth.js +38 -38
  74. package/packages/utils/common.js +728 -728
  75. package/packages/utils/dom.js +181 -181
  76. package/packages/utils/enum.js +87 -87
  77. package/packages/utils/filters.js +542 -542
  78. package/packages/utils/gridFormat.js +66 -66
  79. package/packages/utils/msg.js +105 -105
  80. package/packages/utils/patchFiles.js +44 -44
  81. package/packages/utils/request.js +181 -181
  82. package/packages/utils/store.js +405 -396
  83. package/packages/utils/tscPrinter.js +101 -101
  84. package/sync.bash +6 -6
  85. package/vue.config.js +59 -59
  86. package/dist/css/chunk-vendors.7f83d8f9.css +0 -8
  87. package/dist/css/index.7946d50b.css +0 -1
  88. package/dist/favicon.ico +0 -0
  89. package/dist/js/chunk-vendors.28fda91d.js +0 -340
  90. package/dist/js/index.49bc6add.js +0 -2
  91. package/lib/doway-coms.common.js +0 -120397
  92. package/lib/doway-coms.css +0 -1
  93. package/lib/doway-coms.umd.js +0 -120407
  94. package/lib/doway-coms.umd.min.js +0 -328
@@ -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,214 +1,214 @@
1
- <template>
2
- <div>
3
- <vxe-modal
4
- show-footer
5
- ref="printModal"
6
- show-zoom
7
- append-to-body
8
- :maskClosable="false"
9
- :keyboard="false"
10
- resize
11
- width="80%"
12
- height="80%"
13
- :position="'center'"
14
- v-model="isShow"
15
- destroy-on-close
16
- esc-closable
17
- title="打印预览"
18
- wrap-class-name="full-modal"
19
- @cancel="closeModal"
20
- >
21
- <template #default>
22
- <iframe
23
- name="printFrame"
24
- id="printFrame"
25
- ref="printFrame"
26
- style="height: 98%"
27
- frameborder="0"
28
- width="100%"
29
- height="300px"
30
- :src="url"
31
- >
32
- </iframe>
33
- </template>
34
- <template #footer>
35
- <div v-if="sendEmailInfo.show===true" class="email-controls">
36
- <Checkbox v-model="sendEmailInfo.self">抄送自己</Checkbox>
37
- <Input v-model="sendEmailInfo.to" class="email-input"/>
38
- <Button :loading="sendEmailInfo.loading" type="primary" @click="sendEmail">发送电子邮件</Button>
39
- </div>
40
- </template>
41
- </vxe-modal>
42
- </div>
43
- </template>
44
- <script>
45
- import {Modal as VxeModal} from 'vxe-table'
46
- import { Checkbox,Input,Button } from 'ant-design-vue'
47
- import request from '../../utils/request'
48
- export default {
49
- name: 'BasePrintPreview',
50
- components:{
51
- VxeModal,
52
- Checkbox,
53
- Input,
54
- Button
55
- },
56
- props: {},
57
- data() {
58
- return {
59
- isShow: false,
60
- url: '',
61
- postData: '',
62
- requestToken: '',
63
- tempData: '',
64
- sendEmailInfo:{
65
- show:false,
66
- to:null,
67
- self:false,
68
- cacheKey:null,
69
- sendEmailUrl:null,
70
- loading:false
71
- }
72
- }
73
- },
74
- methods: {
75
-
76
- showPrintPreview(url,data){
77
- this.$refs.printModal.maximize()
78
- this.isShow = true
79
- this.$nextTick(() => {
80
- const formExport = document.createElement('form')
81
- formExport.method = 'post'
82
- formExport.action = url + '?token=' + this.$store.getters.token
83
- const inputValue = document.createElement('input')
84
- inputValue.type = 'hidden'
85
- inputValue.name = 'printData'
86
- inputValue.value = JSON.stringify(data)
87
- formExport.target = 'printFrame'
88
- formExport.appendChild(inputValue)
89
- document.body.appendChild(formExport)
90
- formExport.submit()
91
- formExport.removeChild(inputValue)
92
- document.body.removeChild(formExport)
93
- })
94
- },
95
- async sendEmail(){
96
- this.sendEmailInfo.loading = true
97
-
98
- try{
99
- await request({
100
- url: this.sendEmailInfo.sendEmailUrl,
101
- method: 'post',
102
- data: {to:this.sendEmailInfo.to,self:this.sendEmailInfo.self,cacheKey:this.sendEmailInfo.cacheKey}
103
- })
104
- this.$antsuccess('发送成功')
105
- }finally{
106
- this.sendEmailInfo.loading = false
107
- }
108
- },
109
- showPreview(url, data, isReplace, method, modalInfo,contentInfo) {
110
- // modalInfo = {type: '', info: {}}
111
- this.$refs.printModal.maximize()
112
- this.isShow = true
113
- if (!modalInfo) {
114
- modalInfo = null
115
- }
116
-
117
- if(contentInfo){
118
- //构造是否发送电子邮件信息
119
- this.sendEmailInfo.show = contentInfo.sendEmail
120
- this.sendEmailInfo.to = contentInfo.emailTo
121
- this.sendEmailInfo.self = contentInfo.emailSelf
122
- this.sendEmailInfo.cacheKey = contentInfo.cacheKey
123
- this.sendEmailInfo.sendEmailUrl = contentInfo.sendEmailUrl
124
- }
125
-
126
- if (method == 'post') {
127
- this.isShow = true
128
- this.$nextTick(() => {
129
- const formExport = document.createElement('form')
130
- formExport.method = 'post'
131
- formExport.action = url + '?token=' + this.$store.getters.token
132
- const inputValue = document.createElement('input')
133
- inputValue.type = 'hidden'
134
- inputValue.name = 'ids'
135
- inputValue.value = JSON.stringify(data)
136
- formExport.target = 'printFrame'
137
- if (modalInfo && modalInfo.type == 'company') {
138
- // 添加公司id数据
139
- const companyids = document.createElement('input')
140
- companyids.type = 'hidden'
141
- companyids.name = 'companyId'
142
- companyids.value = modalInfo.info
143
- formExport.target = 'printFrame'
144
- formExport.appendChild(companyids)
145
- }
146
- if (modalInfo && modalInfo.type == 'templateName') {
147
- // 添加模板数据
148
- const templateData = document.createElement('input')
149
- templateData.type = 'hidden'
150
- templateData.name = 'templateName'
151
- templateData.value = modalInfo.info
152
- formExport.target = 'printFrame'
153
- formExport.appendChild(templateData)
154
- }
155
- formExport.appendChild(inputValue)
156
- document.body.appendChild(formExport)
157
- formExport.submit()
158
- formExport.removeChild(inputValue)
159
- document.body.removeChild(formExport)
160
- })
161
- } else {
162
- let ids = JSON.stringify(data)
163
- if ((modalInfo !== null) && modalInfo.type == 'company') { // 公司
164
- this.url = url + '?token=' + this.$store.getters.token + '&ids=' + ids + '&companyId=' + modalInfo.info
165
- } else if ((modalInfo !== null) && modalInfo.type == 'templateName') { // 模板
166
- this.url = url + '?token=' + this.$store.getters.token + '&ids=' + ids + '&templateName=' + modalInfo.info
167
- } else { // 其它
168
- this.url = url + '?token=' + this.$store.getters.token + '&ids=' + ids
169
- }
170
- if(this.sendEmailInfo.cacheKey){
171
- this.url = this.url + '&cacheKey=' + this.sendEmailInfo.cacheKey
172
- }
173
- }
174
- },
175
- closeModal() {
176
- this.$emit('close')
177
- },
178
- },
179
- }
180
- </script>
181
-
182
- <style lang="less" scoped>
183
- .full-modal {
184
- .ant-modal {
185
- max-width: 100%;
186
- top: 0;
187
- padding-bottom: 0;
188
- margin: 0;
189
- }
190
- .ant-modal-content {
191
- display: flex;
192
- flex-direction: column;
193
- height: calc(100vh);
194
- }
195
- .ant-modal-body {
196
- flex: 1;
197
- }
198
- }
199
- .email-controls {
200
- right: 20px;
201
- bottom: 20px;
202
- display: flex;
203
- align-items: center;
204
- gap: 10px;
205
- background: white;
206
- padding: 10px;
207
- border-radius: 4px;
208
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
209
- }
210
-
211
- .email-input {
212
- width: 200px;
213
- }
214
- </style>
1
+ <template>
2
+ <div>
3
+ <vxe-modal
4
+ show-footer
5
+ ref="printModal"
6
+ show-zoom
7
+ append-to-body
8
+ :maskClosable="false"
9
+ :keyboard="false"
10
+ resize
11
+ width="80%"
12
+ height="80%"
13
+ :position="'center'"
14
+ v-model="isShow"
15
+ destroy-on-close
16
+ esc-closable
17
+ title="打印预览"
18
+ wrap-class-name="full-modal"
19
+ @cancel="closeModal"
20
+ >
21
+ <template #default>
22
+ <iframe
23
+ name="printFrame"
24
+ id="printFrame"
25
+ ref="printFrame"
26
+ style="height: 98%"
27
+ frameborder="0"
28
+ width="100%"
29
+ height="300px"
30
+ :src="url"
31
+ >
32
+ </iframe>
33
+ </template>
34
+ <template #footer>
35
+ <div v-if="sendEmailInfo.show===true" class="email-controls">
36
+ <Checkbox v-model="sendEmailInfo.self">抄送自己</Checkbox>
37
+ <Input v-model="sendEmailInfo.to" class="email-input"/>
38
+ <Button :loading="sendEmailInfo.loading" type="primary" @click="sendEmail">发送电子邮件</Button>
39
+ </div>
40
+ </template>
41
+ </vxe-modal>
42
+ </div>
43
+ </template>
44
+ <script>
45
+ import {Modal as VxeModal} from 'vxe-table'
46
+ import { Checkbox,Input,Button } from 'ant-design-vue'
47
+ import request from '../../utils/request'
48
+ export default {
49
+ name: 'BasePrintPreview',
50
+ components:{
51
+ VxeModal,
52
+ Checkbox,
53
+ Input,
54
+ Button
55
+ },
56
+ props: {},
57
+ data() {
58
+ return {
59
+ isShow: false,
60
+ url: '',
61
+ postData: '',
62
+ requestToken: '',
63
+ tempData: '',
64
+ sendEmailInfo:{
65
+ show:false,
66
+ to:null,
67
+ self:false,
68
+ cacheKey:null,
69
+ sendEmailUrl:null,
70
+ loading:false
71
+ }
72
+ }
73
+ },
74
+ methods: {
75
+
76
+ showPrintPreview(url,data){
77
+ this.$refs.printModal.maximize()
78
+ this.isShow = true
79
+ this.$nextTick(() => {
80
+ const formExport = document.createElement('form')
81
+ formExport.method = 'post'
82
+ formExport.action = url + '?token=' + this.$store.getters.token
83
+ const inputValue = document.createElement('input')
84
+ inputValue.type = 'hidden'
85
+ inputValue.name = 'printData'
86
+ inputValue.value = JSON.stringify(data)
87
+ formExport.target = 'printFrame'
88
+ formExport.appendChild(inputValue)
89
+ document.body.appendChild(formExport)
90
+ formExport.submit()
91
+ formExport.removeChild(inputValue)
92
+ document.body.removeChild(formExport)
93
+ })
94
+ },
95
+ async sendEmail(){
96
+ this.sendEmailInfo.loading = true
97
+
98
+ try{
99
+ await request({
100
+ url: this.sendEmailInfo.sendEmailUrl,
101
+ method: 'post',
102
+ data: {to:this.sendEmailInfo.to,self:this.sendEmailInfo.self,cacheKey:this.sendEmailInfo.cacheKey}
103
+ })
104
+ this.$antsuccess('发送成功')
105
+ }finally{
106
+ this.sendEmailInfo.loading = false
107
+ }
108
+ },
109
+ showPreview(url, data, isReplace, method, modalInfo,contentInfo) {
110
+ // modalInfo = {type: '', info: {}}
111
+ this.$refs.printModal.maximize()
112
+ this.isShow = true
113
+ if (!modalInfo) {
114
+ modalInfo = null
115
+ }
116
+
117
+ if(contentInfo){
118
+ //构造是否发送电子邮件信息
119
+ this.sendEmailInfo.show = contentInfo.sendEmail
120
+ this.sendEmailInfo.to = contentInfo.emailTo
121
+ this.sendEmailInfo.self = contentInfo.emailSelf
122
+ this.sendEmailInfo.cacheKey = contentInfo.cacheKey
123
+ this.sendEmailInfo.sendEmailUrl = contentInfo.sendEmailUrl
124
+ }
125
+
126
+ if (method == 'post') {
127
+ this.isShow = true
128
+ this.$nextTick(() => {
129
+ const formExport = document.createElement('form')
130
+ formExport.method = 'post'
131
+ formExport.action = url + '?token=' + this.$store.getters.token
132
+ const inputValue = document.createElement('input')
133
+ inputValue.type = 'hidden'
134
+ inputValue.name = 'ids'
135
+ inputValue.value = JSON.stringify(data)
136
+ formExport.target = 'printFrame'
137
+ if (modalInfo && modalInfo.type == 'company') {
138
+ // 添加公司id数据
139
+ const companyids = document.createElement('input')
140
+ companyids.type = 'hidden'
141
+ companyids.name = 'companyId'
142
+ companyids.value = modalInfo.info
143
+ formExport.target = 'printFrame'
144
+ formExport.appendChild(companyids)
145
+ }
146
+ if (modalInfo && modalInfo.type == 'templateName') {
147
+ // 添加模板数据
148
+ const templateData = document.createElement('input')
149
+ templateData.type = 'hidden'
150
+ templateData.name = 'templateName'
151
+ templateData.value = modalInfo.info
152
+ formExport.target = 'printFrame'
153
+ formExport.appendChild(templateData)
154
+ }
155
+ formExport.appendChild(inputValue)
156
+ document.body.appendChild(formExport)
157
+ formExport.submit()
158
+ formExport.removeChild(inputValue)
159
+ document.body.removeChild(formExport)
160
+ })
161
+ } else {
162
+ let ids = JSON.stringify(data)
163
+ if ((modalInfo !== null) && modalInfo.type == 'company') { // 公司
164
+ this.url = url + '?token=' + this.$store.getters.token + '&ids=' + ids + '&companyId=' + modalInfo.info
165
+ } else if ((modalInfo !== null) && modalInfo.type == 'templateName') { // 模板
166
+ this.url = url + '?token=' + this.$store.getters.token + '&ids=' + ids + '&templateName=' + modalInfo.info
167
+ } else { // 其它
168
+ this.url = url + '?token=' + this.$store.getters.token + '&ids=' + ids
169
+ }
170
+ if(this.sendEmailInfo.cacheKey){
171
+ this.url = this.url + '&cacheKey=' + this.sendEmailInfo.cacheKey
172
+ }
173
+ }
174
+ },
175
+ closeModal() {
176
+ this.$emit('close')
177
+ },
178
+ },
179
+ }
180
+ </script>
181
+
182
+ <style lang="less" scoped>
183
+ .full-modal {
184
+ .ant-modal {
185
+ max-width: 100%;
186
+ top: 0;
187
+ padding-bottom: 0;
188
+ margin: 0;
189
+ }
190
+ .ant-modal-content {
191
+ display: flex;
192
+ flex-direction: column;
193
+ height: calc(100vh);
194
+ }
195
+ .ant-modal-body {
196
+ flex: 1;
197
+ }
198
+ }
199
+ .email-controls {
200
+ right: 20px;
201
+ bottom: 20px;
202
+ display: flex;
203
+ align-items: center;
204
+ gap: 10px;
205
+ background: white;
206
+ padding: 10px;
207
+ border-radius: 4px;
208
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
209
+ }
210
+
211
+ .email-input {
212
+ width: 200px;
213
+ }
214
+ </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;