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,242 +1,242 @@
1
- <template>
2
- <div class="d-control-container">
3
- <div class="d-control-label">
4
- {{ colInfo.title
5
- }}<span
6
- v-if="colInfo.rules && colInfo.rules['required']"
7
- class="d-control-label-required"
8
- >*
9
- </span>
10
- </div>
11
- <div class="d-control">
12
- <ValidationProvider
13
- :name="colInfo.title"
14
- v-slot="v"
15
- :rules="colInfo.rules"
16
- >
17
- <span
18
- v-if="
19
- currentValue !== null &&
20
- currentValue !== '' &&
21
- currentValue !== undefined
22
- "
23
- >
24
- {{ currentValue }}&nbsp;&nbsp;&nbsp;
25
- </span>
26
-
27
- <div class="d-error-msg">
28
- {{ v.errors[0] }}
29
- </div>
30
- <!-- 弹出框输入,单独保存接口 -->
31
- <Modal
32
- v-model="visibleModal"
33
- :title="colInfo.buttonTitle + '--' + colInfo.title"
34
- @ok="handleOk"
35
- >
36
- <!-- 文本框输入 -->
37
- <Input
38
- v-if="
39
- colInfo.controlType == 'text' ||
40
- colInfo.controlType == null ||
41
- colInfo.controlType == undefined
42
- "
43
- :size="'small'"
44
- v-model="showValue"
45
- placeholder="请输入需保存的值"
46
- style="width: 100%"
47
- :class="{ 'd-error-input': v.errors.length > 0 }"
48
- />
49
- <!-- 文本框输入控件 -->
50
- <BaseTextArea
51
- v-if="colInfo.controlType === 'textarea'"
52
- :label="colInfo.title"
53
- v-model="currentValue"
54
- :edit="true"
55
- :rules="colInfo.rules"
56
- />
57
- <!-- 日期选择控件 -->
58
- <BaseDate
59
- v-if="colInfo.controlType === 'date'"
60
- :label="colInfo.title"
61
- v-model="currentValue"
62
- :pastDate="colInfo.pastDate"
63
- :rules="colInfo.rules"
64
- :edit="true"
65
- />
66
- <!-- 日期时间控件 -->
67
- <BaseDatetime
68
- v-if="colInfo.controlType === 'datetime'"
69
- :label="colInfo.title"
70
- v-model="currentValue"
71
- :pastDate="colInfo.pastDate"
72
- :rules="colInfo.rules"
73
- :edit="true"
74
- />
75
- <!-- 时间选择控件 -->
76
- <BaseTime
77
- v-if="colInfo.controlType === 'time'"
78
- :label="colInfo.title"
79
- v-model="currentValue"
80
- :edit="true"
81
- :rules="colInfo.rules"
82
- />
83
- <!-- 周数选择器 -->
84
- <BaseDateWeek
85
- v-if="colInfo.controlType === 'dateweek'"
86
- :label="colInfo.title"
87
- v-model="currentValue"
88
- :edit="true"
89
- :rules="colInfo.rules"
90
- />
91
- <!-- 数字输入 -->
92
- <BaseNumberInput
93
- v-if="colInfo.controlType === 'number'"
94
- :label="colInfo.title"
95
- v-model="currentValue"
96
- :edit="true"
97
- :rules="colInfo.rules"
98
- :min="colInfo.min"
99
- :max="colInfo.max"
100
- :precision="colInfo.precision"
101
- />
102
- <BaseIntervalInput
103
- v-if="colInfo.controlType === 'interval'"
104
- :label="colInfo.title"
105
- v-model="currentValue"
106
- :edit="true"
107
- :rules="colInfo.rules"
108
- :displayType="colInfo.displayType"
109
- :valueType="colInfo.valueType"
110
- />
111
- <!-- 单选框 -->
112
- <BaseCheckbox
113
- v-if="colInfo.controlType === 'checkbox'"
114
- :label="colInfo.title"
115
- v-model="currentValue"
116
- :edit="true"
117
- :rules="colInfo.rules"
118
- />
119
- <!-- 下拉选择器 -->
120
- <BaseSelect
121
- v-if="colInfo.controlType === 'select'"
122
- :label="colInfo.title"
123
- v-model="currentValue"
124
- :edit="true"
125
- :rules="colInfo.rules"
126
- :dataSource="colInfo.dataSource"
127
- />
128
- <BaseSelectMulti
129
- v-if="colInfo.controlType === 'dropmulti'"
130
- :label="colInfo.title"
131
- v-model="currentValue"
132
- :edit="colInfo.edit"
133
- :rules="colInfo.rules"
134
- :dataSource="colInfo.dataSource"
135
- />
136
- <!-- 下拉表格容器 -->
137
- <BasePulldown
138
- v-if="colInfo.controlType === 'pulldown'"
139
- :formRow="formRow"
140
- :edit="true"
141
- :defaultExpression="colInfo.defaultExpression"
142
- :row="row"
143
- :api="colInfo.api"
144
- :optBtns="colInfo.optBtns"
145
- :popupAddName="colInfo.popupAddName"
146
- :popupAddPath="colInfo.popupAddPath"
147
- :label="colInfo.title"
148
- :rules="colInfo.rules"
149
- :route="colInfo.route"
150
- v-model="currentValue"
151
- :field="colInfo.field"
152
- :columns="colInfo.columns"
153
- :pageSize="colInfo.pageSize"
154
- :immediate="colInfo.immediate"
155
- />
156
- </Modal>
157
- </ValidationProvider>
158
- </div>
159
- <Button type="primary" :size="'small'" @click="buttonClick">{{
160
- colInfo.buttonTitle
161
- }}</Button>
162
- </div>
163
- </template>
164
- <script>
165
- import { Modal, Input, Button } from 'ant-design-vue'
166
- import { ValidationProvider } from 'vee-validate'
167
- export default {
168
- name: 'BaseButton',
169
- components: {
170
- ValidationProvider,
171
- Modal,
172
- Input,
173
- Button,
174
- },
175
- data() {
176
- return {
177
- showValue: '',
178
- // 弹出框是否展示
179
- visibleModal: false
180
- }
181
- },
182
- computed: {
183
- currentValue: {
184
- // 动态计算currentValue的值
185
- get: function() {
186
- return this.value // 将props中的value赋值给currentValue
187
- },
188
- set: function(val) {
189
- this.$emit('input', val) // 通过$emit触发父组件
190
- }
191
- }
192
- },
193
- props: {
194
- value: {
195
- type: String,
196
- default: function() {
197
- return ''
198
- }
199
- },
200
- colInfo: {
201
- type: Object,
202
- default: function() {
203
- return {}
204
- }
205
- },
206
- row: {
207
- // 当前行,如果是表单的话当前行和当前页面数据集是一样的
208
- type: Object,
209
- default: function() {
210
- return {}
211
- }
212
- },
213
- formRow: {
214
- // 当前页面数据集
215
- type: Object,
216
- default: () => {
217
- return {}
218
- }
219
- }
220
- },
221
- created() {},
222
- mounted() {
223
- // 将父组件的值拿来用,确认更改前不改变外部的值
224
- this.showValue = this.value
225
- },
226
- methods: {
227
- // 弹出框显示
228
- buttonClick() {
229
- this.visibleModal = true
230
- },
231
- // 确认
232
- handleOk() {
233
- this.$emit('handleOk', this.showValue)
234
- this.$nextTick(() => {
235
- this.visibleModal = false
236
- })
237
- }
238
- }
239
- }
240
- </script>
241
-
242
- <style lang="scss" scoped></style>
1
+ <template>
2
+ <div class="d-control-container">
3
+ <div class="d-control-label">
4
+ {{ colInfo.title
5
+ }}<span
6
+ v-if="colInfo.rules && colInfo.rules['required']"
7
+ class="d-control-label-required"
8
+ >*
9
+ </span>
10
+ </div>
11
+ <div class="d-control">
12
+ <ValidationProvider
13
+ :name="colInfo.title"
14
+ v-slot="v"
15
+ :rules="colInfo.rules"
16
+ >
17
+ <span
18
+ v-if="
19
+ currentValue !== null &&
20
+ currentValue !== '' &&
21
+ currentValue !== undefined
22
+ "
23
+ >
24
+ {{ currentValue }}&nbsp;&nbsp;&nbsp;
25
+ </span>
26
+
27
+ <div class="d-error-msg">
28
+ {{ v.errors[0] }}
29
+ </div>
30
+ <!-- 弹出框输入,单独保存接口 -->
31
+ <Modal
32
+ v-model="visibleModal"
33
+ :title="colInfo.buttonTitle + '--' + colInfo.title"
34
+ @ok="handleOk"
35
+ >
36
+ <!-- 文本框输入 -->
37
+ <Input
38
+ v-if="
39
+ colInfo.controlType == 'text' ||
40
+ colInfo.controlType == null ||
41
+ colInfo.controlType == undefined
42
+ "
43
+ :size="'small'"
44
+ v-model="showValue"
45
+ placeholder="请输入需保存的值"
46
+ style="width: 100%"
47
+ :class="{ 'd-error-input': v.errors.length > 0 }"
48
+ />
49
+ <!-- 文本框输入控件 -->
50
+ <BaseTextArea
51
+ v-if="colInfo.controlType === 'textarea'"
52
+ :label="colInfo.title"
53
+ v-model="currentValue"
54
+ :edit="true"
55
+ :rules="colInfo.rules"
56
+ />
57
+ <!-- 日期选择控件 -->
58
+ <BaseDate
59
+ v-if="colInfo.controlType === 'date'"
60
+ :label="colInfo.title"
61
+ v-model="currentValue"
62
+ :pastDate="colInfo.pastDate"
63
+ :rules="colInfo.rules"
64
+ :edit="true"
65
+ />
66
+ <!-- 日期时间控件 -->
67
+ <BaseDatetime
68
+ v-if="colInfo.controlType === 'datetime'"
69
+ :label="colInfo.title"
70
+ v-model="currentValue"
71
+ :pastDate="colInfo.pastDate"
72
+ :rules="colInfo.rules"
73
+ :edit="true"
74
+ />
75
+ <!-- 时间选择控件 -->
76
+ <BaseTime
77
+ v-if="colInfo.controlType === 'time'"
78
+ :label="colInfo.title"
79
+ v-model="currentValue"
80
+ :edit="true"
81
+ :rules="colInfo.rules"
82
+ />
83
+ <!-- 周数选择器 -->
84
+ <BaseDateWeek
85
+ v-if="colInfo.controlType === 'dateweek'"
86
+ :label="colInfo.title"
87
+ v-model="currentValue"
88
+ :edit="true"
89
+ :rules="colInfo.rules"
90
+ />
91
+ <!-- 数字输入 -->
92
+ <BaseNumberInput
93
+ v-if="colInfo.controlType === 'number'"
94
+ :label="colInfo.title"
95
+ v-model="currentValue"
96
+ :edit="true"
97
+ :rules="colInfo.rules"
98
+ :min="colInfo.min"
99
+ :max="colInfo.max"
100
+ :precision="colInfo.precision"
101
+ />
102
+ <BaseIntervalInput
103
+ v-if="colInfo.controlType === 'interval'"
104
+ :label="colInfo.title"
105
+ v-model="currentValue"
106
+ :edit="true"
107
+ :rules="colInfo.rules"
108
+ :displayType="colInfo.displayType"
109
+ :valueType="colInfo.valueType"
110
+ />
111
+ <!-- 单选框 -->
112
+ <BaseCheckbox
113
+ v-if="colInfo.controlType === 'checkbox'"
114
+ :label="colInfo.title"
115
+ v-model="currentValue"
116
+ :edit="true"
117
+ :rules="colInfo.rules"
118
+ />
119
+ <!-- 下拉选择器 -->
120
+ <BaseSelect
121
+ v-if="colInfo.controlType === 'select'"
122
+ :label="colInfo.title"
123
+ v-model="currentValue"
124
+ :edit="true"
125
+ :rules="colInfo.rules"
126
+ :dataSource="colInfo.dataSource"
127
+ />
128
+ <BaseSelectMulti
129
+ v-if="colInfo.controlType === 'dropmulti'"
130
+ :label="colInfo.title"
131
+ v-model="currentValue"
132
+ :edit="colInfo.edit"
133
+ :rules="colInfo.rules"
134
+ :dataSource="colInfo.dataSource"
135
+ />
136
+ <!-- 下拉表格容器 -->
137
+ <BasePulldown
138
+ v-if="colInfo.controlType === 'pulldown'"
139
+ :formRow="formRow"
140
+ :edit="true"
141
+ :defaultExpression="colInfo.defaultExpression"
142
+ :row="row"
143
+ :api="colInfo.api"
144
+ :optBtns="colInfo.optBtns"
145
+ :popupAddName="colInfo.popupAddName"
146
+ :popupAddPath="colInfo.popupAddPath"
147
+ :label="colInfo.title"
148
+ :rules="colInfo.rules"
149
+ :route="colInfo.route"
150
+ v-model="currentValue"
151
+ :field="colInfo.field"
152
+ :columns="colInfo.columns"
153
+ :pageSize="colInfo.pageSize"
154
+ :immediate="colInfo.immediate"
155
+ />
156
+ </Modal>
157
+ </ValidationProvider>
158
+ </div>
159
+ <Button type="primary" :size="'small'" @click="buttonClick">{{
160
+ colInfo.buttonTitle
161
+ }}</Button>
162
+ </div>
163
+ </template>
164
+ <script>
165
+ import { Modal, Input, Button } from 'ant-design-vue'
166
+ import { ValidationProvider } from 'vee-validate'
167
+ export default {
168
+ name: 'BaseButton',
169
+ components: {
170
+ ValidationProvider,
171
+ Modal,
172
+ Input,
173
+ Button,
174
+ },
175
+ data() {
176
+ return {
177
+ showValue: '',
178
+ // 弹出框是否展示
179
+ visibleModal: false
180
+ }
181
+ },
182
+ computed: {
183
+ currentValue: {
184
+ // 动态计算currentValue的值
185
+ get: function() {
186
+ return this.value // 将props中的value赋值给currentValue
187
+ },
188
+ set: function(val) {
189
+ this.$emit('input', val) // 通过$emit触发父组件
190
+ }
191
+ }
192
+ },
193
+ props: {
194
+ value: {
195
+ type: String,
196
+ default: function() {
197
+ return ''
198
+ }
199
+ },
200
+ colInfo: {
201
+ type: Object,
202
+ default: function() {
203
+ return {}
204
+ }
205
+ },
206
+ row: {
207
+ // 当前行,如果是表单的话当前行和当前页面数据集是一样的
208
+ type: Object,
209
+ default: function() {
210
+ return {}
211
+ }
212
+ },
213
+ formRow: {
214
+ // 当前页面数据集
215
+ type: Object,
216
+ default: () => {
217
+ return {}
218
+ }
219
+ }
220
+ },
221
+ created() {},
222
+ mounted() {
223
+ // 将父组件的值拿来用,确认更改前不改变外部的值
224
+ this.showValue = this.value
225
+ },
226
+ methods: {
227
+ // 弹出框显示
228
+ buttonClick() {
229
+ this.visibleModal = true
230
+ },
231
+ // 确认
232
+ handleOk() {
233
+ this.$emit('handleOk', this.showValue)
234
+ this.$nextTick(() => {
235
+ this.visibleModal = false
236
+ })
237
+ }
238
+ }
239
+ }
240
+ </script>
241
+
242
+ <style lang="scss" scoped></style>
@@ -1,8 +1,8 @@
1
- // 导入组件,组件必须声明 name
2
- import BaseCheckbox from './src/index.vue';
3
- // 为组件提供 install 安装方法,供按需引入
4
- BaseCheckbox.install = function(Vue) {
5
- Vue.component(BaseCheckbox.name, BaseCheckbox);
6
- };
7
- // 默认导出组件
1
+ // 导入组件,组件必须声明 name
2
+ import BaseCheckbox from './src/index.vue';
3
+ // 为组件提供 install 安装方法,供按需引入
4
+ BaseCheckbox.install = function(Vue) {
5
+ Vue.component(BaseCheckbox.name, BaseCheckbox);
6
+ };
7
+ // 默认导出组件
8
8
  export default BaseCheckbox;