doway-coms 2.10.19 → 2.10.21

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 (87) 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/BaseDateMonth/index.js +7 -7
  22. package/packages/BaseDateMonth/src/index.vue +163 -163
  23. package/packages/BaseDateWeek/index.js +7 -7
  24. package/packages/BaseDateWeek/src/index.vue +163 -163
  25. package/packages/BaseDatetime/index.js +7 -7
  26. package/packages/BaseDatetime/src/index.vue +196 -196
  27. package/packages/BaseFileGroup/index.js +7 -7
  28. package/packages/BaseFileGroup/src/index.vue +724 -724
  29. package/packages/BaseForm/index.js +7 -7
  30. package/packages/BaseForm/src/index.vue +754 -754
  31. package/packages/BaseGantt/index.js +9 -9
  32. package/packages/BaseGantt/src/index.vue +617 -617
  33. package/packages/BaseGrid/index.js +9 -9
  34. package/packages/BaseGrid/src/SeqSetting.vue +278 -278
  35. package/packages/BaseGrid/src/index.vue +3866 -3866
  36. package/packages/BaseGridAdjust/index.js +9 -9
  37. package/packages/BaseGridAdjust/src/index.vue +482 -482
  38. package/packages/BaseInput/index.js +7 -7
  39. package/packages/BaseInput/src/index.vue +164 -164
  40. package/packages/BaseIntervalInput/index.js +7 -7
  41. package/packages/BaseIntervalInput/src/index.vue +310 -310
  42. package/packages/BaseKanbanEmpty/index.js +7 -7
  43. package/packages/BaseKanbanEmpty/src/index.vue +176 -176
  44. package/packages/BaseNumberInput/index.js +7 -7
  45. package/packages/BaseNumberInput/src/index.vue +290 -290
  46. package/packages/BasePagination/index.js +7 -7
  47. package/packages/BasePagination/src/index.vue +91 -91
  48. package/packages/BasePictureCard/index.js +7 -7
  49. package/packages/BasePictureCard/src/index.vue +580 -580
  50. package/packages/BasePrintPreview/index.js +7 -7
  51. package/packages/BasePrintPreview/src/index.vue +150 -150
  52. package/packages/BasePulldown/index.js +7 -7
  53. package/packages/BasePulldown/src/index.vue +1359 -1359
  54. package/packages/BaseSearch/index.js +7 -7
  55. package/packages/BaseSearch/src/index.vue +935 -935
  56. package/packages/BaseSelect/index.js +7 -7
  57. package/packages/BaseSelect/src/index.vue +155 -155
  58. package/packages/BaseSelectMulti/index.js +7 -7
  59. package/packages/BaseSelectMulti/src/index.vue +148 -148
  60. package/packages/BaseTextArea/index.js +7 -7
  61. package/packages/BaseTextArea/src/index.vue +178 -178
  62. package/packages/BaseTime/index.js +7 -7
  63. package/packages/BaseTime/src/index.vue +166 -166
  64. package/packages/BaseTool/index.js +7 -7
  65. package/packages/BaseTool/src/index.vue +353 -353
  66. package/packages/BaseToolStatus/index.js +7 -7
  67. package/packages/BaseToolStatus/src/ApprovalPersonsGroup.vue +41 -41
  68. package/packages/BaseToolStatus/src/index.vue +439 -439
  69. package/packages/BaseTreeSelect/index.js +8 -8
  70. package/packages/BaseTreeSelect/src/index.vue +437 -437
  71. package/packages/LeaveAMessage/index.js +7 -7
  72. package/packages/LeaveAMessage/src/index.vue +601 -601
  73. package/packages/index.js +194 -194
  74. package/packages/styles/default.css +78 -78
  75. package/packages/styles/default.less +91 -91
  76. package/packages/utils/api.js +106 -106
  77. package/packages/utils/auth.js +38 -38
  78. package/packages/utils/common.js +636 -636
  79. package/packages/utils/dom.js +181 -181
  80. package/packages/utils/enum.js +86 -86
  81. package/packages/utils/filters.js +485 -485
  82. package/packages/utils/gridFormat.js +66 -66
  83. package/packages/utils/msg.js +84 -84
  84. package/packages/utils/patchFiles.js +44 -44
  85. package/packages/utils/request.js +181 -181
  86. package/packages/utils/store.js +332 -325
  87. package/vue.config.js +59 -59
@@ -1,315 +1,315 @@
1
- <template>
2
- <div>
3
- <div class="icon" @click="showModal = !showModal">
4
- <a-icon type="edit" style="font-size: 30px; color: #fff" />
5
- </div>
6
- <vxe-modal
7
- v-model="showModal"
8
- :height="moduleHeight"
9
- :width="300"
10
- :zIndex="1000"
11
- :showHeader="false"
12
- :mask="false"
13
- :mask-closable="true"
14
- :position="{
15
- left: '78%',
16
- top: '15%'
17
- }"
18
- destroy-on-close
19
- >
20
- <div class="history" v-if="historyList.length>0">
21
- <div class="title">审计日志</div>
22
- <div
23
- class="box"
24
- v-for="(item,index) in historyList"
25
- :key="index"
26
- @click="historyData(item)"
27
- >
28
- <div class="item">
29
- <div
30
- class="status"
31
- :style="{color:textColor(item.logOperation)}"
32
- >{{item.logOperationName || item.logOperation|filterData}}</div>
33
- <div class="time">{{item.createTime}}</div>
34
- <div class="name">{{item.createUserName}}</div>
35
- </div>
36
- <div class="divider">
37
- <div></div>
38
- </div>
39
- </div>
40
- </div>
41
- <div v-else class="history">
42
- <div class="none">
43
- <div class="img"></div>
44
- <i class="text">暂无历史数据</i>
45
- </div>
46
- </div>
47
- </vxe-modal>
48
- </div>
49
- </template>
50
-
51
- <script>
52
- import { objectAuditLogApi } from "../../utils/api";
53
- export default {
54
- name: "AuditsList",
55
- props: {
56
- formId: {
57
- type: String
58
- },
59
- moduleHeight: {
60
- type: Number
61
- }
62
- },
63
- components: {},
64
- watch: {
65
- showModal(newVal, oldVal) {
66
- if (newVal) {
67
- this.getHistoryData();
68
- }
69
- },
70
- immediate: true
71
- },
72
- filters: {
73
- filterData(val) {
74
- switch (val) {
75
- case "update":
76
- return "修改";
77
- case "add":
78
- return "新增";
79
- case "print":
80
- return "打印";
81
- default:
82
- return val;
83
- }
84
- }
85
- },
86
- mounted() {},
87
- data() {
88
- return {
89
- historyList: [],
90
- showModal: false
91
- };
92
- },
93
- methods: {
94
- getHistoryData() {
95
- let postData = {
96
- begin: 1,
97
- size: 0,
98
- expression: {
99
- expressions: [
100
- {
101
- field: "logDataKeyId",
102
- operator: "EQ",
103
- value: this.formId
104
- }
105
- ],
106
- operator: "and"
107
- },
108
- sorts: [["createTime", "asc"]]
109
- };
110
- objectAuditLogApi(postData).then(res => {
111
- res.content.forEach(item => {
112
- try {
113
- item.logData = JSON.parse(item.logData);
114
- } catch (e) {
115
- console.debug(e)
116
- }
117
-
118
- });
119
- this.historyList = res.content;
120
- });
121
- },
122
- historyData(val) {
123
- if (val.logOperation && val.logOperation === 'print') {
124
- return
125
- }
126
- if (
127
- // eslint-disable-next-line no-prototype-builtins
128
- val.logData.hasOwnProperty("code") &&
129
- // eslint-disable-next-line no-prototype-builtins
130
- val.logData.hasOwnProperty("content")
131
- ) {
132
- val.logData = val.logData.content;
133
- this.$emit("historyData", val);
134
- } else {
135
- this.$emit("historyData", val);
136
- }
137
- },
138
- textColor(val) {
139
- switch (val) {
140
- case "add":
141
- return "green";
142
- case "update":
143
- return "orange";
144
- case "print":
145
- return "orange";
146
- default :
147
- return "orange";
148
- }
149
- }
150
- }
151
- };
152
- </script>
153
-
154
- <style lang="less" scoped>
155
- .icon {
156
- position: fixed;
157
- top: 46%;
158
- right: -30px;
159
- z-index: 100;
160
- cursor: pointer;
161
- width: 40px;
162
- height: 40px;
163
- display: flex;
164
- justify-content: center;
165
- align-items: center;
166
- border-radius: 5px;
167
- background: #089def;
168
- }
169
- .icon:hover {
170
- right: 0px;
171
- transition:all 0.3s;
172
- }
173
- ::v-deep .vxe-modal--wrapper .vxe-modal--content {
174
- padding: 0;
175
- }
176
- .history {
177
- width: 100%;
178
- height: 100%;
179
- overflow-x: hidden;
180
- overflow-y: auto;
181
- .title {
182
- text-align: center;
183
- padding: 10px;
184
- font-size: 15px;
185
- font-weight: bold;
186
- }
187
- .box {
188
- .item {
189
- display: flex;
190
- justify-content: space-between;
191
- align-items: center;
192
- padding: 8px 12px;
193
- background-color: #f9f9f9;
194
- border-radius: 5px;
195
- transition: background 0.3s, transform 0.3s;
196
- margin-bottom: 8px;
197
-
198
- .time, .status, .name {
199
- display: flex;
200
- justify-content: center;
201
- align-items: center;
202
- font-size: 14px;
203
- color: #333;
204
- white-space: nowrap;
205
- overflow: hidden;
206
- text-overflow: ellipsis;
207
- }
208
-
209
- .time {
210
- flex: 3;
211
- justify-content: flex-start; /* 时间靠左对齐 */
212
- }
213
-
214
- .status {
215
- display: inline-block;
216
- padding: 4px 12px;
217
- border-radius: 12px;
218
- font-weight: bold;
219
- font-size: 13px;
220
- text-align: center;
221
- color: #fff;
222
- min-width: 60px;
223
- transition: all 0.3s ease;
224
-
225
- /* 根据不同操作状态,使用不同的背景色 */
226
- &.add {
227
- background: linear-gradient(90deg, #43e97b, #38f9d7); /* 绿色渐变 */
228
- box-shadow: 0 2px 6px rgba(67, 233, 123, 0.5);
229
- }
230
- &.update {
231
- background: linear-gradient(90deg, #fbc747, #f49842); /* 橙色渐变 */
232
- box-shadow: 0 2px 6px rgba(251, 199, 71, 0.5);
233
- }
234
- &.delete {
235
- background: linear-gradient(90deg, #ff6b6b, #ff8787); /* 红色渐变 */
236
- box-shadow: 0 2px 6px rgba(255, 107, 107, 0.5);
237
- }
238
- }
239
-
240
- .name {
241
- flex: 1;
242
- justify-content: flex-end; /* 名字靠右对齐 */
243
- }
244
- }
245
-
246
- /* 鼠标悬停效果 */
247
- .item:hover {
248
- background-color: #e0f7fa;
249
- transform: scale(1.02);
250
- transition: background-color 0.3s ease, transform 0.3s ease;
251
- }
252
-
253
- /* 分割线优化 */
254
- .divider {
255
- margin-top: 5px;
256
- div {
257
- width: 100%;
258
- height: 1px;
259
- background-color: #e0e0e0;
260
- }
261
- }
262
- }
263
-
264
- .none {
265
- width: 100%;
266
- height: 100%;
267
- display: flex;
268
- flex-direction: column;
269
- justify-content: center;
270
- align-items: center;
271
- .img {
272
- width: 200px;
273
- height: 150px;
274
- background: url("./暂无数据.png") no-repeat;
275
- background-size: 100%;
276
- }
277
- text {
278
- font-size: 15px;
279
- text-align: center;
280
- }
281
- }
282
- }
283
- /*滚动条整体部分*/
284
- .history::-webkit-scrollbar {
285
- width: 5px;
286
- height: 5px;
287
- z-index: 10;
288
- }
289
- /*滚动条的轨道*/
290
- .history::-webkit-scrollbar-track {
291
- background-color: #ffffff;
292
- z-index: 10;
293
- }
294
- /*滚动条里面的小方块,能向上向下移动*/
295
- .history::-webkit-scrollbar-thumb {
296
- background-color: #bfbfbf;
297
- border-radius: 5px;
298
- border: 1px solid #f1f1f1;
299
- box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
300
- z-index: 10;
301
- }
302
- .history::-webkit-scrollbar-thumb:hover {
303
- background-color: #a8a8a8;
304
- z-index: 10;
305
- }
306
- .history::-webkit-scrollbar-thumb:active {
307
- background-color: #787878;
308
- z-index: 10;
309
- }
310
- /*边角,即两个滚动条的交汇处*/
311
- .history::-webkit-scrollbar-corner {
312
- background-color: #ffffff;
313
- z-index: 10;
314
- }
315
- </style>
1
+ <template>
2
+ <div>
3
+ <div class="icon" @click="showModal = !showModal">
4
+ <a-icon type="edit" style="font-size: 30px; color: #fff" />
5
+ </div>
6
+ <vxe-modal
7
+ v-model="showModal"
8
+ :height="moduleHeight"
9
+ :width="300"
10
+ :zIndex="1000"
11
+ :showHeader="false"
12
+ :mask="false"
13
+ :mask-closable="true"
14
+ :position="{
15
+ left: '78%',
16
+ top: '15%'
17
+ }"
18
+ destroy-on-close
19
+ >
20
+ <div class="history" v-if="historyList.length>0">
21
+ <div class="title">审计日志</div>
22
+ <div
23
+ class="box"
24
+ v-for="(item,index) in historyList"
25
+ :key="index"
26
+ @click="historyData(item)"
27
+ >
28
+ <div class="item">
29
+ <div
30
+ class="status"
31
+ :style="{color:textColor(item.logOperation)}"
32
+ >{{item.logOperationName || item.logOperation|filterData}}</div>
33
+ <div class="time">{{item.createTime}}</div>
34
+ <div class="name">{{item.createUserName}}</div>
35
+ </div>
36
+ <div class="divider">
37
+ <div></div>
38
+ </div>
39
+ </div>
40
+ </div>
41
+ <div v-else class="history">
42
+ <div class="none">
43
+ <div class="img"></div>
44
+ <i class="text">暂无历史数据</i>
45
+ </div>
46
+ </div>
47
+ </vxe-modal>
48
+ </div>
49
+ </template>
50
+
51
+ <script>
52
+ import { objectAuditLogApi } from "../../utils/api";
53
+ export default {
54
+ name: "AuditsList",
55
+ props: {
56
+ formId: {
57
+ type: String
58
+ },
59
+ moduleHeight: {
60
+ type: Number
61
+ }
62
+ },
63
+ components: {},
64
+ watch: {
65
+ showModal(newVal, oldVal) {
66
+ if (newVal) {
67
+ this.getHistoryData();
68
+ }
69
+ },
70
+ immediate: true
71
+ },
72
+ filters: {
73
+ filterData(val) {
74
+ switch (val) {
75
+ case "update":
76
+ return "修改";
77
+ case "add":
78
+ return "新增";
79
+ case "print":
80
+ return "打印";
81
+ default:
82
+ return val;
83
+ }
84
+ }
85
+ },
86
+ mounted() {},
87
+ data() {
88
+ return {
89
+ historyList: [],
90
+ showModal: false
91
+ };
92
+ },
93
+ methods: {
94
+ getHistoryData() {
95
+ let postData = {
96
+ begin: 1,
97
+ size: 0,
98
+ expression: {
99
+ expressions: [
100
+ {
101
+ field: "logDataKeyId",
102
+ operator: "EQ",
103
+ value: this.formId
104
+ }
105
+ ],
106
+ operator: "and"
107
+ },
108
+ sorts: [["createTime", "asc"]]
109
+ };
110
+ objectAuditLogApi(postData).then(res => {
111
+ res.content.forEach(item => {
112
+ try {
113
+ item.logData = JSON.parse(item.logData);
114
+ } catch (e) {
115
+ console.debug(e)
116
+ }
117
+
118
+ });
119
+ this.historyList = res.content;
120
+ });
121
+ },
122
+ historyData(val) {
123
+ if (val.logOperation && val.logOperation === 'print') {
124
+ return
125
+ }
126
+ if (
127
+ // eslint-disable-next-line no-prototype-builtins
128
+ val.logData.hasOwnProperty("code") &&
129
+ // eslint-disable-next-line no-prototype-builtins
130
+ val.logData.hasOwnProperty("content")
131
+ ) {
132
+ val.logData = val.logData.content;
133
+ this.$emit("historyData", val);
134
+ } else {
135
+ this.$emit("historyData", val);
136
+ }
137
+ },
138
+ textColor(val) {
139
+ switch (val) {
140
+ case "add":
141
+ return "green";
142
+ case "update":
143
+ return "orange";
144
+ case "print":
145
+ return "orange";
146
+ default :
147
+ return "orange";
148
+ }
149
+ }
150
+ }
151
+ };
152
+ </script>
153
+
154
+ <style lang="less" scoped>
155
+ .icon {
156
+ position: fixed;
157
+ top: 46%;
158
+ right: -30px;
159
+ z-index: 100;
160
+ cursor: pointer;
161
+ width: 40px;
162
+ height: 40px;
163
+ display: flex;
164
+ justify-content: center;
165
+ align-items: center;
166
+ border-radius: 5px;
167
+ background: #089def;
168
+ }
169
+ .icon:hover {
170
+ right: 0px;
171
+ transition:all 0.3s;
172
+ }
173
+ ::v-deep .vxe-modal--wrapper .vxe-modal--content {
174
+ padding: 0;
175
+ }
176
+ .history {
177
+ width: 100%;
178
+ height: 100%;
179
+ overflow-x: hidden;
180
+ overflow-y: auto;
181
+ .title {
182
+ text-align: center;
183
+ padding: 10px;
184
+ font-size: 15px;
185
+ font-weight: bold;
186
+ }
187
+ .box {
188
+ .item {
189
+ display: flex;
190
+ justify-content: space-between;
191
+ align-items: center;
192
+ padding: 8px 12px;
193
+ background-color: #f9f9f9;
194
+ border-radius: 5px;
195
+ transition: background 0.3s, transform 0.3s;
196
+ margin-bottom: 8px;
197
+
198
+ .time, .status, .name {
199
+ display: flex;
200
+ justify-content: center;
201
+ align-items: center;
202
+ font-size: 14px;
203
+ color: #333;
204
+ white-space: nowrap;
205
+ overflow: hidden;
206
+ text-overflow: ellipsis;
207
+ }
208
+
209
+ .time {
210
+ flex: 3;
211
+ justify-content: flex-start; /* 时间靠左对齐 */
212
+ }
213
+
214
+ .status {
215
+ display: inline-block;
216
+ padding: 4px 12px;
217
+ border-radius: 12px;
218
+ font-weight: bold;
219
+ font-size: 13px;
220
+ text-align: center;
221
+ color: #fff;
222
+ min-width: 60px;
223
+ transition: all 0.3s ease;
224
+
225
+ /* 根据不同操作状态,使用不同的背景色 */
226
+ &.add {
227
+ background: linear-gradient(90deg, #43e97b, #38f9d7); /* 绿色渐变 */
228
+ box-shadow: 0 2px 6px rgba(67, 233, 123, 0.5);
229
+ }
230
+ &.update {
231
+ background: linear-gradient(90deg, #fbc747, #f49842); /* 橙色渐变 */
232
+ box-shadow: 0 2px 6px rgba(251, 199, 71, 0.5);
233
+ }
234
+ &.delete {
235
+ background: linear-gradient(90deg, #ff6b6b, #ff8787); /* 红色渐变 */
236
+ box-shadow: 0 2px 6px rgba(255, 107, 107, 0.5);
237
+ }
238
+ }
239
+
240
+ .name {
241
+ flex: 1;
242
+ justify-content: flex-end; /* 名字靠右对齐 */
243
+ }
244
+ }
245
+
246
+ /* 鼠标悬停效果 */
247
+ .item:hover {
248
+ background-color: #e0f7fa;
249
+ transform: scale(1.02);
250
+ transition: background-color 0.3s ease, transform 0.3s ease;
251
+ }
252
+
253
+ /* 分割线优化 */
254
+ .divider {
255
+ margin-top: 5px;
256
+ div {
257
+ width: 100%;
258
+ height: 1px;
259
+ background-color: #e0e0e0;
260
+ }
261
+ }
262
+ }
263
+
264
+ .none {
265
+ width: 100%;
266
+ height: 100%;
267
+ display: flex;
268
+ flex-direction: column;
269
+ justify-content: center;
270
+ align-items: center;
271
+ .img {
272
+ width: 200px;
273
+ height: 150px;
274
+ background: url("./暂无数据.png") no-repeat;
275
+ background-size: 100%;
276
+ }
277
+ text {
278
+ font-size: 15px;
279
+ text-align: center;
280
+ }
281
+ }
282
+ }
283
+ /*滚动条整体部分*/
284
+ .history::-webkit-scrollbar {
285
+ width: 5px;
286
+ height: 5px;
287
+ z-index: 10;
288
+ }
289
+ /*滚动条的轨道*/
290
+ .history::-webkit-scrollbar-track {
291
+ background-color: #ffffff;
292
+ z-index: 10;
293
+ }
294
+ /*滚动条里面的小方块,能向上向下移动*/
295
+ .history::-webkit-scrollbar-thumb {
296
+ background-color: #bfbfbf;
297
+ border-radius: 5px;
298
+ border: 1px solid #f1f1f1;
299
+ box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
300
+ z-index: 10;
301
+ }
302
+ .history::-webkit-scrollbar-thumb:hover {
303
+ background-color: #a8a8a8;
304
+ z-index: 10;
305
+ }
306
+ .history::-webkit-scrollbar-thumb:active {
307
+ background-color: #787878;
308
+ z-index: 10;
309
+ }
310
+ /*边角,即两个滚动条的交汇处*/
311
+ .history::-webkit-scrollbar-corner {
312
+ background-color: #ffffff;
313
+ z-index: 10;
314
+ }
315
+ </style>
@@ -1,8 +1,8 @@
1
- // 导入组件,组件必须声明 name
2
- import BaseButton from './src/index.vue';
3
- // 为组件提供 install 安装方法,供按需引入
4
- BaseButton.install = function(Vue) {
5
- Vue.component(BaseButton.name, BaseButton);
6
- };
7
- // 默认导出组件
1
+ // 导入组件,组件必须声明 name
2
+ import BaseButton from './src/index.vue';
3
+ // 为组件提供 install 安装方法,供按需引入
4
+ BaseButton.install = function(Vue) {
5
+ Vue.component(BaseButton.name, BaseButton);
6
+ };
7
+ // 默认导出组件
8
8
  export default BaseButton;