doway-coms 2.1.2 → 2.1.3

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 (77) hide show
  1. package/.browserslistrc +2 -2
  2. package/README.md +28 -28
  3. package/package.json +53 -53
  4. package/packages/AuditsList/index.js +7 -7
  5. package/packages/AuditsList/src/index.vue +262 -262
  6. package/packages/BaseButton/index.js +7 -7
  7. package/packages/BaseButton/src/index.vue +241 -241
  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 +197 -197
  12. package/packages/BaseDateWeek/index.js +7 -7
  13. package/packages/BaseDateWeek/src/index.vue +163 -163
  14. package/packages/BaseDatetime/index.js +7 -7
  15. package/packages/BaseDatetime/src/index.vue +196 -196
  16. package/packages/BaseForm/index.js +7 -7
  17. package/packages/BaseForm/src/index.vue +727 -727
  18. package/packages/BaseGantt/index.js +9 -9
  19. package/packages/BaseGantt/src/index.vue +608 -608
  20. package/packages/BaseGrid/index.js +9 -9
  21. package/packages/BaseGrid/src/SeqSetting.vue +278 -278
  22. package/packages/BaseGrid/src/index.vue +3382 -3380
  23. package/packages/BaseGridAdjust/index.js +9 -9
  24. package/packages/BaseGridAdjust/src/index.vue +482 -482
  25. package/packages/BaseInput/index.js +7 -7
  26. package/packages/BaseInput/src/index.vue +164 -164
  27. package/packages/BaseIntervalInput/index.js +7 -7
  28. package/packages/BaseIntervalInput/src/index.vue +310 -310
  29. package/packages/BaseKanbanEmpty/index.js +7 -7
  30. package/packages/BaseKanbanEmpty/src/index.vue +176 -176
  31. package/packages/BaseNumberInput/index.js +7 -7
  32. package/packages/BaseNumberInput/src/index.vue +267 -267
  33. package/packages/BasePagination/index.js +7 -7
  34. package/packages/BasePagination/src/index.vue +91 -91
  35. package/packages/BasePictureCard/index.js +7 -7
  36. package/packages/BasePictureCard/src/index.vue +580 -580
  37. package/packages/BasePrintPreview/index.js +7 -7
  38. package/packages/BasePrintPreview/src/index.vue +129 -129
  39. package/packages/BasePulldown/index.js +7 -7
  40. package/packages/BasePulldown/src/index.vue +1165 -1165
  41. package/packages/BaseSearch/index.js +7 -7
  42. package/packages/BaseSearch/src/index.vue +935 -935
  43. package/packages/BaseSelect/index.js +7 -7
  44. package/packages/BaseSelect/src/index.vue +155 -155
  45. package/packages/BaseSelectMulti/index.js +7 -7
  46. package/packages/BaseSelectMulti/src/index.vue +148 -148
  47. package/packages/BaseTextArea/index.js +7 -7
  48. package/packages/BaseTextArea/src/index.vue +178 -178
  49. package/packages/BaseTime/index.js +7 -7
  50. package/packages/BaseTime/src/index.vue +166 -166
  51. package/packages/BaseTool/index.js +7 -7
  52. package/packages/BaseTool/src/index.vue +349 -349
  53. package/packages/BaseToolStatus/index.js +7 -7
  54. package/packages/BaseToolStatus/src/index.vue +388 -388
  55. package/packages/BaseTreeSelect/index.js +8 -8
  56. package/packages/BaseTreeSelect/src/index.vue +416 -416
  57. package/packages/LeaveAMessage/index.js +7 -7
  58. package/packages/LeaveAMessage/src/index.vue +597 -597
  59. package/packages/index.js +191 -191
  60. package/packages/styles/default.less +80 -80
  61. package/packages/utils/api.js +99 -99
  62. package/packages/utils/auth.js +38 -38
  63. package/packages/utils/common.js +601 -601
  64. package/packages/utils/dom.js +181 -181
  65. package/packages/utils/enum.js +85 -85
  66. package/packages/utils/filters.js +458 -458
  67. package/packages/utils/gridFormat.js +60 -60
  68. package/packages/utils/msg.js +84 -84
  69. package/packages/utils/patchFiles.js +44 -44
  70. package/packages/utils/request.js +178 -178
  71. package/packages/utils/store.js +303 -303
  72. package/vue.config.js +59 -59
  73. package/dist/css/chunk-vendors.7f83d8f9.css +0 -8
  74. package/dist/css/index.86478f73.css +0 -3
  75. package/dist/favicon.ico +0 -0
  76. package/dist/js/chunk-vendors.307eaa8f.js +0 -347
  77. package/dist/js/index.48e7f7ac.js +0 -2
@@ -1,727 +1,727 @@
1
- <template>
2
- <div class="d-form-items">
3
- <!-- <div @click="hiddenDetail = !hiddenDetail">展开</div> -->
4
- <div
5
- class="d-form-item"
6
- v-for="col in internalComputedHiddenCols"
7
- :key="col.field"
8
- v-show="hiddenDetail ? colIndex === 0 : true"
9
- >
10
- <!-- 文本框输入控件 -->
11
- <BaseInput
12
- v-if="
13
- col.controlType === 'text' &&
14
- (col.isButtonShow == false || col.isButtonShow == undefined)
15
- "
16
- :label="col.title"
17
- v-model="row[col.field]"
18
- :edit="col.edit"
19
- :tooltip="col.tooltip"
20
- :rules="col.rules"
21
- @change="
22
- () => {
23
- inputChange(col)
24
- }
25
- "
26
- @blur="
27
- () => {
28
- blurChange(col)
29
- }
30
- "
31
- />
32
- <!-- 按钮弹出框输入控件 -->
33
- <!-- isButtonShow字段是额外添加字段,用于控制区分输入框控件 -->
34
- <BaseButton
35
- v-if="col.isButtonShow == true"
36
- v-model="row[col.field]"
37
- :colInfo="col"
38
- :row="row"
39
- :formRow="formRow"
40
- @preSearch="preSearch"
41
- @handleOk="
42
- (value) => {
43
- buttonHandleOk(col, value)
44
- }
45
- "
46
- />
47
- <!-- 文本框输入控件 -->
48
- <BaseTextArea
49
- v-if="
50
- col.controlType === 'textarea' &&
51
- (col.isButtonShow == false || col.isButtonShow == undefined)
52
- "
53
- :label="col.title"
54
- v-model="row[col.field]"
55
- :edit="col.edit"
56
- :tooltip="col.tooltip"
57
- :rules="col.rules"
58
- @change="
59
- () => {
60
- inputChange(col)
61
- }
62
- "
63
- />
64
- <!-- 数字输入 -->
65
- <BaseNumberInput
66
- v-if="
67
- col.controlType === 'number' &&
68
- (col.isButtonShow == false || col.isButtonShow == undefined)
69
- "
70
- :label="col.title"
71
- v-model="row[col.field]"
72
- :edit="col.edit"
73
- :rules="col.rules"
74
- :min="col.min"
75
- :tooltip="col.tooltip"
76
- :max="col.max"
77
- :precision="col.precision"
78
- :percent="col.percent"
79
- @change="
80
- () => {
81
- numberChange(col)
82
- }
83
- "
84
- @blur="
85
- () => {
86
- blurChange(col)
87
- }
88
- "
89
- />
90
- <BaseIntervalInput
91
- v-if="
92
- col.controlType === 'interval' &&
93
- (col.isButtonShow == false || col.isButtonShow == undefined)
94
- "
95
- :label="col.title"
96
- v-model="row[col.field]"
97
- :edit="col.edit"
98
- :rules="col.rules"
99
- :tooltip="col.tooltip"
100
- :displayType="col.displayType"
101
- :valueType="col.valueType"
102
- @change="
103
- () => {
104
- numberChange(col)
105
- }
106
- "
107
- />
108
- <!-- 日期选择控件 -->
109
- <BaseDate
110
- v-if="
111
- col.controlType === 'date' &&
112
- (col.isButtonShow == false || col.isButtonShow == undefined)
113
- "
114
- :label="col.title"
115
- v-model="row[col.field]"
116
- :edit="col.edit"
117
- :tooltip="col.tooltip"
118
- :pastDate="col.pastDate"
119
- :rules="col.rules"
120
- :disabledDateValue="col.disabledDateValue"
121
- @change="
122
- () => {
123
- inputChange(col)
124
- }
125
- "
126
- />
127
- <!-- 日期时间控件 -->
128
- <BaseDatetime
129
- v-if="
130
- col.controlType === 'datetime' &&
131
- (col.isButtonShow == false || col.isButtonShow == undefined)
132
- "
133
- :label="col.title"
134
- v-model="row[col.field]"
135
- :pastDate="col.pastDate"
136
- :tooltip="col.tooltip"
137
- :edit="col.edit"
138
- :rules="col.rules"
139
- :disabledDateValue="col.disabledDateValue"
140
- @change="
141
- () => {
142
- inputChange(col)
143
- }
144
- "
145
- />
146
- <!-- 单选框 -->
147
- <BaseCheckbox
148
- v-if="
149
- col.controlType === 'checkbox' &&
150
- (col.isButtonShow == false || col.isButtonShow == undefined)
151
- "
152
- :label="col.title"
153
- v-model="row[col.field]"
154
- :edit="col.edit"
155
- :tooltip="col.tooltip"
156
- :rules="col.rules"
157
- @change="
158
- (rowInfo) => {
159
- checkboxChange(col)
160
- }
161
- "
162
- />
163
- <BaseTime
164
- v-if="
165
- col.controlType === 'time' &&
166
- (col.isButtonShow == false || col.isButtonShow == undefined)
167
- "
168
- :label="col.title"
169
- v-model="row[col.field]"
170
- :tooltip="col.tooltip"
171
- :edit="col.edit"
172
- :rules="col.rules"
173
- @change="
174
- () => {
175
- inputChange(col)
176
- }
177
- "
178
- />
179
- <BaseDateWeek
180
- v-if="
181
- col.controlType === 'dateweek' &&
182
- (col.isButtonShow == false || col.isButtonShow == undefined)
183
- "
184
- :label="col.title"
185
- v-model="row[col.field]"
186
- :edit="col.edit"
187
- :tooltip="col.tooltip"
188
- :rules="col.rules"
189
- @change="
190
- () => {
191
- inputChange(col)
192
- }
193
- "
194
- />
195
- <BaseDateMonth
196
- v-if="
197
- col.controlType === 'datemonth' &&
198
- (col.isButtonShow == false || col.isButtonShow == undefined)
199
- "
200
- :label="col.title"
201
- v-model="row[col.field]"
202
- :edit="col.edit"
203
- :tooltip="col.tooltip"
204
- :rules="col.rules"
205
- @change="
206
- () => {
207
- inputChange(col)
208
- }
209
- "
210
- />
211
- <BaseSelect
212
- v-if="
213
- col.controlType === 'select' &&
214
- (col.isButtonShow == false || col.isButtonShow == undefined)
215
- "
216
- :label="col.title"
217
- v-model="row[col.field]"
218
- :edit="col.edit"
219
- :rules="col.rules"
220
- :tooltip="col.tooltip"
221
- :dataSource="col.dataSource"
222
- @change="
223
- (rowInfo) => {
224
- selectChange(col)
225
- }
226
- "
227
- />
228
- <BaseSelectMulti
229
- v-if="
230
- col.controlType === 'dropmulti' &&
231
- (col.isButtonShow == false || col.isButtonShow == undefined)
232
- "
233
- :label="col.title"
234
- v-model="row[col.field]"
235
- :edit="col.edit"
236
- :tooltip="col.tooltip"
237
- :rules="col.rules"
238
- @change="
239
- (rowInfo) => {
240
- selectMultiChange(col)
241
- }
242
- "
243
- :dataSource="col.dataSource"
244
- />
245
- <BasePulldown
246
- v-if="
247
- col.controlType === 'pulldown' &&
248
- (col.isButtonShow == false || col.isButtonShow == undefined)
249
- "
250
- :formRow="formRow"
251
- :isOld="isOld"
252
- :edit="col.edit"
253
- :defaultExpression="col.defaultExpression"
254
- :row="row"
255
- :api="col.api"
256
- :tooltip="col.tooltip"
257
- :optBtns="col.optBtns"
258
- :popupAddName="col.popupAddName"
259
- :popupAddPath="col.popupAddPath"
260
- @pulldownBtnClick="pulldownBtnClick"
261
- :label="col.title"
262
- :rules="col.rules"
263
- :route="col.route"
264
- v-model="row[col.field]"
265
- :field="col.field"
266
- :columns="col.columns"
267
- :pageSize="col.pageSize"
268
- :immediate="col.immediate"
269
- :allowAutoClear="col.allowAutoClear"
270
- @preSearch="preSearch"
271
- @selectChanged="
272
- (rowInfo) => {
273
- pullDownChange(col, rowInfo)
274
- }
275
- "
276
- />
277
- <BaseTreeSelect
278
- v-if="
279
- col.controlType === 'treeSelect' &&
280
- (col.isButtonShow == false || col.isButtonShow == undefined)
281
- "
282
- :formRow="formRow"
283
- :api="col.api"
284
- :tooltip="col.tooltip"
285
- :row="row"
286
- :edit="col.edit"
287
- :label="col.title"
288
- :rules="col.rules"
289
- :route="col.route"
290
- :field="col.field"
291
- :columns="col.columns"
292
- @preSearch="preSearch"
293
- :replaceFields="col.replaceFields"
294
- :treeWidth="col.treeWidth"
295
- :width="col.width"
296
- :linkedField="col.linkedField"
297
- :showSearch="col.showSearch"
298
- :allowClear="col.allowClear"
299
- :placeholder="col.placeholder"
300
- :linkedTitle="col.linkedTitle"
301
- :method="col.method"
302
- v-model="row[col.field]"
303
- @change="
304
- () => {
305
- inputChange(col)
306
- }
307
- "
308
- />
309
- </div>
310
- <div class="d-form-item-ghost"></div>
311
- <div class="d-form-item-ghost"></div>
312
- <div class="d-form-item-ghost"></div>
313
- <div class="d-form-item-ghost"></div>
314
- </div>
315
- </template>
316
-
317
- <script>
318
- import { sysFormState, sysRowState } from '../../utils/enum'
319
- import BaseInput from '../../BaseInput/index'
320
- import BaseCheckbox from '../../BaseCheckbox/index'
321
- import BaseDate from '../../BaseDate/index'
322
- import BaseDatetime from '../../BaseDatetime/index'
323
- import BaseDateWeek from '../../BaseDateWeek/index'
324
- import BaseTextArea from '../../BaseTextArea/index'
325
- import BaseButton from '../../BaseButton/index'
326
- import BaseSelect from '../../BaseSelect/index'
327
- import BaseSelectMulti from '../../BaseSelectMulti/index'
328
- import BaseTime from '../../BaseTime/index'
329
- import BasePulldown from '../../BasePulldown/index'
330
- import BaseIntervalInput from '../../BaseIntervalInput/index'
331
- import BaseNumberInput from '../../BaseNumberInput/index'
332
- import BaseTreeSelect from '../../BaseTreeSelect'
333
-
334
- import moment from 'moment'
335
- import BaseDateMonth from '../../BaseDateMonth'
336
- export default {
337
- components: {
338
- BaseInput,
339
- BaseCheckbox,
340
- BaseDate,
341
- BaseDatetime,
342
- BaseDateWeek,
343
- BaseDateMonth,
344
- BaseTextArea,
345
- BaseButton,
346
- BaseSelect,
347
- BaseSelectMulti,
348
- BaseTime,
349
- BasePulldown,
350
- BaseIntervalInput,
351
- BaseNumberInput,
352
- BaseTreeSelect,
353
- },
354
- name: 'BaseForm',
355
- props: {
356
- updateDatas: {
357
- // 更新的数据
358
- type: Object,
359
- default: function () {
360
- return {}
361
- },
362
- },
363
- showLoading: {
364
- // 是否显示加载信息
365
- type: Boolean,
366
- default: false,
367
- },
368
- isOld: {
369
- // 是否老系统
370
- type: Boolean,
371
- default: false,
372
- },
373
- valueState: {
374
- type: Object,
375
- default: function () {
376
- return {}
377
- },
378
- },
379
- formState: {
380
- type: String,
381
- default: sysFormState.view,
382
- },
383
- formRow: {
384
- // 当前页面数据集
385
- type: Object,
386
- default: () => {
387
- return {}
388
- },
389
- },
390
- row: {
391
- // 当前行,如果是表单的话当前行和当前页面数据集是一样的
392
- type: Object,
393
- default: () => {
394
- return {}
395
- },
396
- },
397
- columns: {
398
- // 表格列信息
399
- type: Array,
400
- default: function () {
401
- return []
402
- },
403
- },
404
- dataName: {
405
- type: String,
406
- default: function () {
407
- return ''
408
- },
409
- },
410
- },
411
- computed: {
412
- internalComputedHiddenCols: function () {
413
- let vm = this
414
- return this.columns.filter((item) => {
415
- // if (item.isTitle === true) {
416
- // // vm.titleCol = item
417
- // return false
418
- // }
419
- // if (item.controlType === controlType.image) {
420
- // vm.logoCol = item
421
- // return false
422
- // }
423
- return item.visible === true
424
- })
425
- },
426
- },
427
- filters: {},
428
- data() {
429
- return {
430
- hiddenDetail: false,
431
- moment,
432
- editFormName: '',
433
- internalEdit: false,
434
- internalCols: [],
435
- internalValueState: {},
436
- internalFormState: sysFormState.view,
437
- rules: {},
438
- titleCols: [],
439
- logoCol: null,
440
- isShowEditForm: false,
441
- ref: '',
442
- }
443
- },
444
- watch: {
445
- // row: {
446
- // handler: function (newVal) {
447
- // },
448
- // deep: true
449
- // },
450
- // cols: {
451
- // handler: function (newVal) {
452
- // this.internalCols = newVal
453
- // },
454
- // deep: true
455
- // },
456
- // valueState: { // 表单值状态,更新,还是插入
457
- // handler: function (newVal) {
458
- // this.internalValueState = newVal
459
- // },
460
- // deep: true
461
- // },
462
- // formState: {
463
- // handler: function (newVal) {
464
- // this.internalFormState = newVal
465
- // this.setColState()
466
- // },
467
- // deep: true
468
- // }
469
- },
470
- created() {
471
- for (let i = 0; i < this.columns.length; i++) {
472
- // if (this.columns[i].isLogo === true) {
473
- // this.logoCol = this.columns[i]
474
- // continue
475
- // }
476
- // if (this.columns[i].isTitle === true) {
477
- // this.titleCols.push(this.columns[i])
478
- // continue
479
- // }
480
- if (this.columns[i].controlType === 'popup') {
481
- let formUrl =
482
- process.env[
483
- 'VUE_APP_' +
484
- this.columns[i].linkModuleData.objectService.toUpperCase() +
485
- '_SERVICE_URL'
486
- ] +
487
- '/' +
488
- this.columns[i].linkModuleData.objectApiVersion +
489
- '/' +
490
- this.columns[i].linkModuleData.objectName +
491
- '/'
492
- this.columns[i]['api'] = this.columns[i].linkModuleData.objectApiRoute
493
- ? formUrl + this.columns[i].linkModuleData.objectApiRoute
494
- : formUrl + 'Search'
495
-
496
- this.columns[i]['columns'] = {}
497
-
498
- for (
499
- let x = 0;
500
- x < this.columns[i].linkModuleData.moduleFields.length;
501
- x++
502
- ) {
503
- let tempField = this.columns[i].linkModuleData.moduleFields[x]
504
- this.columns[i]['columns'][tempField.field] = {
505
- title: tempField.caption,
506
- width: tempField.width,
507
- visible: tempField.visible,
508
- linkField: tempField.linkValueField,
509
- filter: tempField.isFilter,
510
- }
511
- if (tempField.field === this.columns[i].linkCaptionField) {
512
- this.columns[i]['columns'][tempField.field].linkField =
513
- this.columns[i].field
514
- this.columns[i]['columns'][tempField.field].filter = true
515
- }
516
- }
517
- }
518
-
519
- // this.columns[i]['rules'] = {}
520
- // if (this.columns[i].isRequire === true) {
521
- // this.columns[i].rules['required'] = true
522
- // }
523
- // if (this.columns[i].maxLength) {
524
- // this.columns[i].rules['length'] = [0, this.columns[i].maxLength]
525
- // }
526
- }
527
- },
528
-
529
- mounted() {
530
- //let letterLength = this.$refs.content.value
531
- //letterLength = this.$refs['content'].innerText.substr(0, 6) + '...'
532
- window.addEventListener('beforeunload', (e) => this.beforeunloadHandler(e))
533
- },
534
- destroyed() {
535
- window.removeEventListener('beforeunload', (e) =>
536
- this.beforeunloadHandler(e)
537
- )
538
- },
539
- activated() {},
540
- methods: {
541
- preSearch(searchInfo, repeatRowInfo) {
542
- this.$emit('preSearch', searchInfo, repeatRowInfo)
543
- },
544
- beforeunloadHandler(e) {
545
- if (this.formState !== 'view') {
546
- e = e || window.event
547
- e.returnValue = '提示'
548
- return confirm('确认退出')
549
- } else {
550
- return
551
- }
552
- },
553
- pulldownBtnClick(btnInfo) {
554
- this.$emit('pulldownBtnClick', btnInfo)
555
- },
556
- showToolTip() {},
557
- fieldCaptionClick(col) {
558
- // 下拉框
559
- if (
560
- col.linkModuleData &&
561
- col.linkModuleData.linkModuleId &&
562
- col.linkModuleData.linkModuleOperate.indexOf(sysFormState.view) >= 0
563
- ) {
564
- // 查找模块信息
565
- let linkModule = this.$store.getters.addRouters.filter((filterItem) => {
566
- return (
567
- filterItem.meta &&
568
- filterItem.meta.moduleId === col.linkModuleData.linkModuleId
569
- )
570
- })
571
- if (linkModule.length > 0) {
572
- this.$router.pushRoute({
573
- name: linkModule[0].name,
574
- query: { id: this.row[col.field] },
575
- })
576
- }
577
- }
578
- },
579
- // selectChange(col) {
580
- // if (col.field.indexOf('.') < 0) {
581
- // this.updateDatas[col.field] = this.row[col.field]
582
- // }
583
- // if (
584
- // this.row['sysRowState'] === sysRowState.add ||
585
- // this.row['sysRowState'] === sysRowState.update
586
- // ) {
587
- // return
588
- // }
589
- // this.row['sysRowState'] = sysRowState.update
590
- // },
591
- pullDownChange(colInfo, row) {
592
- this.$emit('change', colInfo)
593
- },
594
- selectMultiChange(colInfo, row) {
595
- this.$emit('change', colInfo)
596
- },
597
- selectChange(colInfo) {
598
- this.$emit('change', colInfo)
599
- },
600
- checkboxChange(colInfo) {
601
- this.$emit('change', colInfo)
602
- },
603
- checkBoxChange(col) {
604
- if (col.field.indexOf('.') < 0) {
605
- this.updateDatas[col.field] = this.row[col.field]
606
- }
607
- this.$emit('change', col)
608
- if (
609
- this.row['sysRowState'] === sysRowState.add ||
610
- this.row['sysRowState'] === sysRowState.update
611
- ) {
612
- return
613
- }
614
- this.row['sysRowState'] = sysRowState.update
615
- },
616
- dateChange(col) {
617
- if (col.field.indexOf('.') < 0) {
618
- this.updateDatas[col.field] = this.row[col.field]
619
- }
620
- this.$emit('change', col)
621
- if (
622
- this.row['sysRowState'] === sysRowState.add ||
623
- this.row['sysRowState'] === sysRowState.update
624
- ) {
625
- return
626
- }
627
- this.row['sysRowState'] = sysRowState.update
628
- },
629
- inputChange(colInfo) {
630
- // 输入框改变
631
- this.$emit('change', colInfo)
632
- },
633
- // 按钮弹出组件返回输入的值
634
- buttonHandleOk(colInfo, value) {
635
- // 按钮弹出确定改变内容改变
636
- this.$emit('buttonHandleOk', colInfo, value)
637
- },
638
- blurChange(colInfo) {
639
- // 输入框失去焦点
640
- this.$emit('blur', colInfo)
641
- },
642
- numberChange(colInfo) {
643
- // 输入框改变
644
- this.$emit('change', colInfo)
645
- },
646
- longtimeChange(data, col) {
647
- this.row[col.field] = data
648
- this.$emit('change', col)
649
- if (
650
- this.row['sysRowState'] === sysRowState.add ||
651
- this.row['sysRowState'] === sysRowState.update
652
- ) {
653
- return
654
- }
655
- this.row['sysRowState'] = sysRowState.update
656
- },
657
- changeControlType(field, controlType) {
658
- let col = this.internalComputedHiddenCols.find(
659
- (col) => col.field === field
660
- )
661
- col.controlType = controlType
662
- },
663
- },
664
- }
665
- </script>
666
-
667
- <style lang="less" scoped>
668
- .form-head {
669
- display: flex;
670
- flex-flow: row wrap;
671
- margin-bottom: 10px;
672
- .form-title {
673
- margin-left: 10px;
674
- }
675
- }
676
- .input-span {
677
- // line-height: 33px;
678
- color: #0b0b0b;
679
- font-size: 12px;
680
- font-weight: normal;
681
- overflow: hidden;
682
- text-overflow: ellipsis;
683
- -o-text-overflow: ellipsis;
684
- display: inline-block;
685
- width: 100%;
686
- height: 32.8px;
687
- white-space: nowrap;
688
- // font-family: "Arial", "Microsoft YaHei";
689
- }
690
- .title-first-input {
691
- width: 200px;
692
- height: 25px;
693
- font-size: 15px;
694
- margin-left: 10px;
695
- font-weight: 500;
696
- }
697
- .title-second-input {
698
- width: 200px;
699
- height: 25px;
700
- font-size: 15px;
701
- margin-left: 10px;
702
- font-weight: 500;
703
- }
704
- .title-first-value {
705
- width: 200px;
706
- height: 40px;
707
- font-size: 24px;
708
- margin-left: 10px;
709
- font-weight: 700;
710
- }
711
- .title-second-value {
712
- width: 200px;
713
- height: 26px;
714
- font-size: 18px;
715
- margin-left: 10px;
716
- font-weight: 600;
717
- }
718
- .option:hover {
719
- background-color: #219bff;
720
- }
721
- .form {
722
- margin-left: 30px;
723
- }
724
- </style>
725
- <style lang="less">
726
- @import '../../styles/default.less';
727
- </style>
1
+ <template>
2
+ <div class="d-form-items">
3
+ <!-- <div @click="hiddenDetail = !hiddenDetail">展开</div> -->
4
+ <div
5
+ class="d-form-item"
6
+ v-for="col in internalComputedHiddenCols"
7
+ :key="col.field"
8
+ v-show="hiddenDetail ? colIndex === 0 : true"
9
+ >
10
+ <!-- 文本框输入控件 -->
11
+ <BaseInput
12
+ v-if="
13
+ col.controlType === 'text' &&
14
+ (col.isButtonShow == false || col.isButtonShow == undefined)
15
+ "
16
+ :label="col.title"
17
+ v-model="row[col.field]"
18
+ :edit="col.edit"
19
+ :tooltip="col.tooltip"
20
+ :rules="col.rules"
21
+ @change="
22
+ () => {
23
+ inputChange(col)
24
+ }
25
+ "
26
+ @blur="
27
+ () => {
28
+ blurChange(col)
29
+ }
30
+ "
31
+ />
32
+ <!-- 按钮弹出框输入控件 -->
33
+ <!-- isButtonShow字段是额外添加字段,用于控制区分输入框控件 -->
34
+ <BaseButton
35
+ v-if="col.isButtonShow == true"
36
+ v-model="row[col.field]"
37
+ :colInfo="col"
38
+ :row="row"
39
+ :formRow="formRow"
40
+ @preSearch="preSearch"
41
+ @handleOk="
42
+ (value) => {
43
+ buttonHandleOk(col, value)
44
+ }
45
+ "
46
+ />
47
+ <!-- 文本框输入控件 -->
48
+ <BaseTextArea
49
+ v-if="
50
+ col.controlType === 'textarea' &&
51
+ (col.isButtonShow == false || col.isButtonShow == undefined)
52
+ "
53
+ :label="col.title"
54
+ v-model="row[col.field]"
55
+ :edit="col.edit"
56
+ :tooltip="col.tooltip"
57
+ :rules="col.rules"
58
+ @change="
59
+ () => {
60
+ inputChange(col)
61
+ }
62
+ "
63
+ />
64
+ <!-- 数字输入 -->
65
+ <BaseNumberInput
66
+ v-if="
67
+ col.controlType === 'number' &&
68
+ (col.isButtonShow == false || col.isButtonShow == undefined)
69
+ "
70
+ :label="col.title"
71
+ v-model="row[col.field]"
72
+ :edit="col.edit"
73
+ :rules="col.rules"
74
+ :min="col.min"
75
+ :tooltip="col.tooltip"
76
+ :max="col.max"
77
+ :precision="col.precision"
78
+ :percent="col.percent"
79
+ @change="
80
+ () => {
81
+ numberChange(col)
82
+ }
83
+ "
84
+ @blur="
85
+ () => {
86
+ blurChange(col)
87
+ }
88
+ "
89
+ />
90
+ <BaseIntervalInput
91
+ v-if="
92
+ col.controlType === 'interval' &&
93
+ (col.isButtonShow == false || col.isButtonShow == undefined)
94
+ "
95
+ :label="col.title"
96
+ v-model="row[col.field]"
97
+ :edit="col.edit"
98
+ :rules="col.rules"
99
+ :tooltip="col.tooltip"
100
+ :displayType="col.displayType"
101
+ :valueType="col.valueType"
102
+ @change="
103
+ () => {
104
+ numberChange(col)
105
+ }
106
+ "
107
+ />
108
+ <!-- 日期选择控件 -->
109
+ <BaseDate
110
+ v-if="
111
+ col.controlType === 'date' &&
112
+ (col.isButtonShow == false || col.isButtonShow == undefined)
113
+ "
114
+ :label="col.title"
115
+ v-model="row[col.field]"
116
+ :edit="col.edit"
117
+ :tooltip="col.tooltip"
118
+ :pastDate="col.pastDate"
119
+ :rules="col.rules"
120
+ :disabledDateValue="col.disabledDateValue"
121
+ @change="
122
+ () => {
123
+ inputChange(col)
124
+ }
125
+ "
126
+ />
127
+ <!-- 日期时间控件 -->
128
+ <BaseDatetime
129
+ v-if="
130
+ col.controlType === 'datetime' &&
131
+ (col.isButtonShow == false || col.isButtonShow == undefined)
132
+ "
133
+ :label="col.title"
134
+ v-model="row[col.field]"
135
+ :pastDate="col.pastDate"
136
+ :tooltip="col.tooltip"
137
+ :edit="col.edit"
138
+ :rules="col.rules"
139
+ :disabledDateValue="col.disabledDateValue"
140
+ @change="
141
+ () => {
142
+ inputChange(col)
143
+ }
144
+ "
145
+ />
146
+ <!-- 单选框 -->
147
+ <BaseCheckbox
148
+ v-if="
149
+ col.controlType === 'checkbox' &&
150
+ (col.isButtonShow == false || col.isButtonShow == undefined)
151
+ "
152
+ :label="col.title"
153
+ v-model="row[col.field]"
154
+ :edit="col.edit"
155
+ :tooltip="col.tooltip"
156
+ :rules="col.rules"
157
+ @change="
158
+ (rowInfo) => {
159
+ checkboxChange(col)
160
+ }
161
+ "
162
+ />
163
+ <BaseTime
164
+ v-if="
165
+ col.controlType === 'time' &&
166
+ (col.isButtonShow == false || col.isButtonShow == undefined)
167
+ "
168
+ :label="col.title"
169
+ v-model="row[col.field]"
170
+ :tooltip="col.tooltip"
171
+ :edit="col.edit"
172
+ :rules="col.rules"
173
+ @change="
174
+ () => {
175
+ inputChange(col)
176
+ }
177
+ "
178
+ />
179
+ <BaseDateWeek
180
+ v-if="
181
+ col.controlType === 'dateweek' &&
182
+ (col.isButtonShow == false || col.isButtonShow == undefined)
183
+ "
184
+ :label="col.title"
185
+ v-model="row[col.field]"
186
+ :edit="col.edit"
187
+ :tooltip="col.tooltip"
188
+ :rules="col.rules"
189
+ @change="
190
+ () => {
191
+ inputChange(col)
192
+ }
193
+ "
194
+ />
195
+ <BaseDateMonth
196
+ v-if="
197
+ col.controlType === 'datemonth' &&
198
+ (col.isButtonShow == false || col.isButtonShow == undefined)
199
+ "
200
+ :label="col.title"
201
+ v-model="row[col.field]"
202
+ :edit="col.edit"
203
+ :tooltip="col.tooltip"
204
+ :rules="col.rules"
205
+ @change="
206
+ () => {
207
+ inputChange(col)
208
+ }
209
+ "
210
+ />
211
+ <BaseSelect
212
+ v-if="
213
+ col.controlType === 'select' &&
214
+ (col.isButtonShow == false || col.isButtonShow == undefined)
215
+ "
216
+ :label="col.title"
217
+ v-model="row[col.field]"
218
+ :edit="col.edit"
219
+ :rules="col.rules"
220
+ :tooltip="col.tooltip"
221
+ :dataSource="col.dataSource"
222
+ @change="
223
+ (rowInfo) => {
224
+ selectChange(col)
225
+ }
226
+ "
227
+ />
228
+ <BaseSelectMulti
229
+ v-if="
230
+ col.controlType === 'dropmulti' &&
231
+ (col.isButtonShow == false || col.isButtonShow == undefined)
232
+ "
233
+ :label="col.title"
234
+ v-model="row[col.field]"
235
+ :edit="col.edit"
236
+ :tooltip="col.tooltip"
237
+ :rules="col.rules"
238
+ @change="
239
+ (rowInfo) => {
240
+ selectMultiChange(col)
241
+ }
242
+ "
243
+ :dataSource="col.dataSource"
244
+ />
245
+ <BasePulldown
246
+ v-if="
247
+ col.controlType === 'pulldown' &&
248
+ (col.isButtonShow == false || col.isButtonShow == undefined)
249
+ "
250
+ :formRow="formRow"
251
+ :isOld="isOld"
252
+ :edit="col.edit"
253
+ :defaultExpression="col.defaultExpression"
254
+ :row="row"
255
+ :api="col.api"
256
+ :tooltip="col.tooltip"
257
+ :optBtns="col.optBtns"
258
+ :popupAddName="col.popupAddName"
259
+ :popupAddPath="col.popupAddPath"
260
+ @pulldownBtnClick="pulldownBtnClick"
261
+ :label="col.title"
262
+ :rules="col.rules"
263
+ :route="col.route"
264
+ v-model="row[col.field]"
265
+ :field="col.field"
266
+ :columns="col.columns"
267
+ :pageSize="col.pageSize"
268
+ :immediate="col.immediate"
269
+ :allowAutoClear="col.allowAutoClear"
270
+ @preSearch="preSearch"
271
+ @selectChanged="
272
+ (rowInfo) => {
273
+ pullDownChange(col, rowInfo)
274
+ }
275
+ "
276
+ />
277
+ <BaseTreeSelect
278
+ v-if="
279
+ col.controlType === 'treeSelect' &&
280
+ (col.isButtonShow == false || col.isButtonShow == undefined)
281
+ "
282
+ :formRow="formRow"
283
+ :api="col.api"
284
+ :tooltip="col.tooltip"
285
+ :row="row"
286
+ :edit="col.edit"
287
+ :label="col.title"
288
+ :rules="col.rules"
289
+ :route="col.route"
290
+ :field="col.field"
291
+ :columns="col.columns"
292
+ @preSearch="preSearch"
293
+ :replaceFields="col.replaceFields"
294
+ :treeWidth="col.treeWidth"
295
+ :width="col.width"
296
+ :linkedField="col.linkedField"
297
+ :showSearch="col.showSearch"
298
+ :allowClear="col.allowClear"
299
+ :placeholder="col.placeholder"
300
+ :linkedTitle="col.linkedTitle"
301
+ :method="col.method"
302
+ v-model="row[col.field]"
303
+ @change="
304
+ () => {
305
+ inputChange(col)
306
+ }
307
+ "
308
+ />
309
+ </div>
310
+ <div class="d-form-item-ghost"></div>
311
+ <div class="d-form-item-ghost"></div>
312
+ <div class="d-form-item-ghost"></div>
313
+ <div class="d-form-item-ghost"></div>
314
+ </div>
315
+ </template>
316
+
317
+ <script>
318
+ import { sysFormState, sysRowState } from '../../utils/enum'
319
+ import BaseInput from '../../BaseInput/index'
320
+ import BaseCheckbox from '../../BaseCheckbox/index'
321
+ import BaseDate from '../../BaseDate/index'
322
+ import BaseDatetime from '../../BaseDatetime/index'
323
+ import BaseDateWeek from '../../BaseDateWeek/index'
324
+ import BaseTextArea from '../../BaseTextArea/index'
325
+ import BaseButton from '../../BaseButton/index'
326
+ import BaseSelect from '../../BaseSelect/index'
327
+ import BaseSelectMulti from '../../BaseSelectMulti/index'
328
+ import BaseTime from '../../BaseTime/index'
329
+ import BasePulldown from '../../BasePulldown/index'
330
+ import BaseIntervalInput from '../../BaseIntervalInput/index'
331
+ import BaseNumberInput from '../../BaseNumberInput/index'
332
+ import BaseTreeSelect from '../../BaseTreeSelect'
333
+
334
+ import moment from 'moment'
335
+ import BaseDateMonth from '../../BaseDateMonth'
336
+ export default {
337
+ components: {
338
+ BaseInput,
339
+ BaseCheckbox,
340
+ BaseDate,
341
+ BaseDatetime,
342
+ BaseDateWeek,
343
+ BaseDateMonth,
344
+ BaseTextArea,
345
+ BaseButton,
346
+ BaseSelect,
347
+ BaseSelectMulti,
348
+ BaseTime,
349
+ BasePulldown,
350
+ BaseIntervalInput,
351
+ BaseNumberInput,
352
+ BaseTreeSelect,
353
+ },
354
+ name: 'BaseForm',
355
+ props: {
356
+ updateDatas: {
357
+ // 更新的数据
358
+ type: Object,
359
+ default: function () {
360
+ return {}
361
+ },
362
+ },
363
+ showLoading: {
364
+ // 是否显示加载信息
365
+ type: Boolean,
366
+ default: false,
367
+ },
368
+ isOld: {
369
+ // 是否老系统
370
+ type: Boolean,
371
+ default: false,
372
+ },
373
+ valueState: {
374
+ type: Object,
375
+ default: function () {
376
+ return {}
377
+ },
378
+ },
379
+ formState: {
380
+ type: String,
381
+ default: sysFormState.view,
382
+ },
383
+ formRow: {
384
+ // 当前页面数据集
385
+ type: Object,
386
+ default: () => {
387
+ return {}
388
+ },
389
+ },
390
+ row: {
391
+ // 当前行,如果是表单的话当前行和当前页面数据集是一样的
392
+ type: Object,
393
+ default: () => {
394
+ return {}
395
+ },
396
+ },
397
+ columns: {
398
+ // 表格列信息
399
+ type: Array,
400
+ default: function () {
401
+ return []
402
+ },
403
+ },
404
+ dataName: {
405
+ type: String,
406
+ default: function () {
407
+ return ''
408
+ },
409
+ },
410
+ },
411
+ computed: {
412
+ internalComputedHiddenCols: function () {
413
+ let vm = this
414
+ return this.columns.filter((item) => {
415
+ // if (item.isTitle === true) {
416
+ // // vm.titleCol = item
417
+ // return false
418
+ // }
419
+ // if (item.controlType === controlType.image) {
420
+ // vm.logoCol = item
421
+ // return false
422
+ // }
423
+ return item.visible === true
424
+ })
425
+ },
426
+ },
427
+ filters: {},
428
+ data() {
429
+ return {
430
+ hiddenDetail: false,
431
+ moment,
432
+ editFormName: '',
433
+ internalEdit: false,
434
+ internalCols: [],
435
+ internalValueState: {},
436
+ internalFormState: sysFormState.view,
437
+ rules: {},
438
+ titleCols: [],
439
+ logoCol: null,
440
+ isShowEditForm: false,
441
+ ref: '',
442
+ }
443
+ },
444
+ watch: {
445
+ // row: {
446
+ // handler: function (newVal) {
447
+ // },
448
+ // deep: true
449
+ // },
450
+ // cols: {
451
+ // handler: function (newVal) {
452
+ // this.internalCols = newVal
453
+ // },
454
+ // deep: true
455
+ // },
456
+ // valueState: { // 表单值状态,更新,还是插入
457
+ // handler: function (newVal) {
458
+ // this.internalValueState = newVal
459
+ // },
460
+ // deep: true
461
+ // },
462
+ // formState: {
463
+ // handler: function (newVal) {
464
+ // this.internalFormState = newVal
465
+ // this.setColState()
466
+ // },
467
+ // deep: true
468
+ // }
469
+ },
470
+ created() {
471
+ for (let i = 0; i < this.columns.length; i++) {
472
+ // if (this.columns[i].isLogo === true) {
473
+ // this.logoCol = this.columns[i]
474
+ // continue
475
+ // }
476
+ // if (this.columns[i].isTitle === true) {
477
+ // this.titleCols.push(this.columns[i])
478
+ // continue
479
+ // }
480
+ if (this.columns[i].controlType === 'popup') {
481
+ let formUrl =
482
+ process.env[
483
+ 'VUE_APP_' +
484
+ this.columns[i].linkModuleData.objectService.toUpperCase() +
485
+ '_SERVICE_URL'
486
+ ] +
487
+ '/' +
488
+ this.columns[i].linkModuleData.objectApiVersion +
489
+ '/' +
490
+ this.columns[i].linkModuleData.objectName +
491
+ '/'
492
+ this.columns[i]['api'] = this.columns[i].linkModuleData.objectApiRoute
493
+ ? formUrl + this.columns[i].linkModuleData.objectApiRoute
494
+ : formUrl + 'Search'
495
+
496
+ this.columns[i]['columns'] = {}
497
+
498
+ for (
499
+ let x = 0;
500
+ x < this.columns[i].linkModuleData.moduleFields.length;
501
+ x++
502
+ ) {
503
+ let tempField = this.columns[i].linkModuleData.moduleFields[x]
504
+ this.columns[i]['columns'][tempField.field] = {
505
+ title: tempField.caption,
506
+ width: tempField.width,
507
+ visible: tempField.visible,
508
+ linkField: tempField.linkValueField,
509
+ filter: tempField.isFilter,
510
+ }
511
+ if (tempField.field === this.columns[i].linkCaptionField) {
512
+ this.columns[i]['columns'][tempField.field].linkField =
513
+ this.columns[i].field
514
+ this.columns[i]['columns'][tempField.field].filter = true
515
+ }
516
+ }
517
+ }
518
+
519
+ // this.columns[i]['rules'] = {}
520
+ // if (this.columns[i].isRequire === true) {
521
+ // this.columns[i].rules['required'] = true
522
+ // }
523
+ // if (this.columns[i].maxLength) {
524
+ // this.columns[i].rules['length'] = [0, this.columns[i].maxLength]
525
+ // }
526
+ }
527
+ },
528
+
529
+ mounted() {
530
+ //let letterLength = this.$refs.content.value
531
+ //letterLength = this.$refs['content'].innerText.substr(0, 6) + '...'
532
+ window.addEventListener('beforeunload', (e) => this.beforeunloadHandler(e))
533
+ },
534
+ destroyed() {
535
+ window.removeEventListener('beforeunload', (e) =>
536
+ this.beforeunloadHandler(e)
537
+ )
538
+ },
539
+ activated() {},
540
+ methods: {
541
+ preSearch(searchInfo, repeatRowInfo) {
542
+ this.$emit('preSearch', searchInfo, repeatRowInfo)
543
+ },
544
+ beforeunloadHandler(e) {
545
+ if (this.formState !== 'view') {
546
+ e = e || window.event
547
+ e.returnValue = '提示'
548
+ return confirm('确认退出')
549
+ } else {
550
+ return
551
+ }
552
+ },
553
+ pulldownBtnClick(btnInfo) {
554
+ this.$emit('pulldownBtnClick', btnInfo)
555
+ },
556
+ showToolTip() {},
557
+ fieldCaptionClick(col) {
558
+ // 下拉框
559
+ if (
560
+ col.linkModuleData &&
561
+ col.linkModuleData.linkModuleId &&
562
+ col.linkModuleData.linkModuleOperate.indexOf(sysFormState.view) >= 0
563
+ ) {
564
+ // 查找模块信息
565
+ let linkModule = this.$store.getters.addRouters.filter((filterItem) => {
566
+ return (
567
+ filterItem.meta &&
568
+ filterItem.meta.moduleId === col.linkModuleData.linkModuleId
569
+ )
570
+ })
571
+ if (linkModule.length > 0) {
572
+ this.$router.pushRoute({
573
+ name: linkModule[0].name,
574
+ query: { id: this.row[col.field] },
575
+ })
576
+ }
577
+ }
578
+ },
579
+ // selectChange(col) {
580
+ // if (col.field.indexOf('.') < 0) {
581
+ // this.updateDatas[col.field] = this.row[col.field]
582
+ // }
583
+ // if (
584
+ // this.row['sysRowState'] === sysRowState.add ||
585
+ // this.row['sysRowState'] === sysRowState.update
586
+ // ) {
587
+ // return
588
+ // }
589
+ // this.row['sysRowState'] = sysRowState.update
590
+ // },
591
+ pullDownChange(colInfo, row) {
592
+ this.$emit('change', colInfo)
593
+ },
594
+ selectMultiChange(colInfo, row) {
595
+ this.$emit('change', colInfo)
596
+ },
597
+ selectChange(colInfo) {
598
+ this.$emit('change', colInfo)
599
+ },
600
+ checkboxChange(colInfo) {
601
+ this.$emit('change', colInfo)
602
+ },
603
+ checkBoxChange(col) {
604
+ if (col.field.indexOf('.') < 0) {
605
+ this.updateDatas[col.field] = this.row[col.field]
606
+ }
607
+ this.$emit('change', col)
608
+ if (
609
+ this.row['sysRowState'] === sysRowState.add ||
610
+ this.row['sysRowState'] === sysRowState.update
611
+ ) {
612
+ return
613
+ }
614
+ this.row['sysRowState'] = sysRowState.update
615
+ },
616
+ dateChange(col) {
617
+ if (col.field.indexOf('.') < 0) {
618
+ this.updateDatas[col.field] = this.row[col.field]
619
+ }
620
+ this.$emit('change', col)
621
+ if (
622
+ this.row['sysRowState'] === sysRowState.add ||
623
+ this.row['sysRowState'] === sysRowState.update
624
+ ) {
625
+ return
626
+ }
627
+ this.row['sysRowState'] = sysRowState.update
628
+ },
629
+ inputChange(colInfo) {
630
+ // 输入框改变
631
+ this.$emit('change', colInfo)
632
+ },
633
+ // 按钮弹出组件返回输入的值
634
+ buttonHandleOk(colInfo, value) {
635
+ // 按钮弹出确定改变内容改变
636
+ this.$emit('buttonHandleOk', colInfo, value)
637
+ },
638
+ blurChange(colInfo) {
639
+ // 输入框失去焦点
640
+ this.$emit('blur', colInfo)
641
+ },
642
+ numberChange(colInfo) {
643
+ // 输入框改变
644
+ this.$emit('change', colInfo)
645
+ },
646
+ longtimeChange(data, col) {
647
+ this.row[col.field] = data
648
+ this.$emit('change', col)
649
+ if (
650
+ this.row['sysRowState'] === sysRowState.add ||
651
+ this.row['sysRowState'] === sysRowState.update
652
+ ) {
653
+ return
654
+ }
655
+ this.row['sysRowState'] = sysRowState.update
656
+ },
657
+ changeControlType(field, controlType) {
658
+ let col = this.internalComputedHiddenCols.find(
659
+ (col) => col.field === field
660
+ )
661
+ col.controlType = controlType
662
+ },
663
+ },
664
+ }
665
+ </script>
666
+
667
+ <style lang="less" scoped>
668
+ .form-head {
669
+ display: flex;
670
+ flex-flow: row wrap;
671
+ margin-bottom: 10px;
672
+ .form-title {
673
+ margin-left: 10px;
674
+ }
675
+ }
676
+ .input-span {
677
+ // line-height: 33px;
678
+ color: #0b0b0b;
679
+ font-size: 12px;
680
+ font-weight: normal;
681
+ overflow: hidden;
682
+ text-overflow: ellipsis;
683
+ -o-text-overflow: ellipsis;
684
+ display: inline-block;
685
+ width: 100%;
686
+ height: 32.8px;
687
+ white-space: nowrap;
688
+ // font-family: "Arial", "Microsoft YaHei";
689
+ }
690
+ .title-first-input {
691
+ width: 200px;
692
+ height: 25px;
693
+ font-size: 15px;
694
+ margin-left: 10px;
695
+ font-weight: 500;
696
+ }
697
+ .title-second-input {
698
+ width: 200px;
699
+ height: 25px;
700
+ font-size: 15px;
701
+ margin-left: 10px;
702
+ font-weight: 500;
703
+ }
704
+ .title-first-value {
705
+ width: 200px;
706
+ height: 40px;
707
+ font-size: 24px;
708
+ margin-left: 10px;
709
+ font-weight: 700;
710
+ }
711
+ .title-second-value {
712
+ width: 200px;
713
+ height: 26px;
714
+ font-size: 18px;
715
+ margin-left: 10px;
716
+ font-weight: 600;
717
+ }
718
+ .option:hover {
719
+ background-color: #219bff;
720
+ }
721
+ .form {
722
+ margin-left: 30px;
723
+ }
724
+ </style>
725
+ <style lang="less">
726
+ @import '../../styles/default.less';
727
+ </style>