doway-coms 2.11.95 → 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 -4744
  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,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;