fix: 估值模型
Showing
2 changed files
with
4 additions
and
4 deletions
| ... | @@ -586,11 +586,11 @@ const visibleChange = (visible, row) => { | ... | @@ -586,11 +586,11 @@ const visibleChange = (visible, row) => { |
| 586 | } | 586 | } |
| 587 | 587 | ||
| 588 | const panelChange = (scope, row) => { | 588 | const panelChange = (scope, row) => { |
| 589 | if (row.field == 'baseDate' || row.field == 'investYear') { | 589 | if (row.field == 'evaluateBaseDate' || row.field == 'baseDate' || row.field == 'investYear') { |
| 590 | const date = new Date(); | 590 | const date = new Date(); |
| 591 | const year = date.getFullYear(); | 591 | const year = date.getFullYear(); |
| 592 | const datePopperNextBtn = document.querySelector('.date-month-popper .d-arrow-right'); | 592 | const datePopperNextBtn = document.querySelector('.date-month-popper .d-arrow-right'); |
| 593 | if (row.field == 'baseDate') { | 593 | if (row.field == 'baseDate' || row.field == 'evaluateBaseDate') { |
| 594 | const currentYear = scope.date.getFullYear(); | 594 | const currentYear = scope.date.getFullYear(); |
| 595 | if (currentYear >= year) { | 595 | if (currentYear >= year) { |
| 596 | datePopperNextBtn.setAttribute("disabled", ''); | 596 | datePopperNextBtn.setAttribute("disabled", ''); |
| ... | @@ -1463,8 +1463,8 @@ const panelChange = (scope, row) => { | ... | @@ -1463,8 +1463,8 @@ const panelChange = (scope, row) => { |
| 1463 | @panel-change="(date, mode) => panelChange({ date, mode }, item)" | 1463 | @panel-change="(date, mode) => panelChange({ date, mode }, item)" |
| 1464 | @visible-change="(vis) => visibleChange(vis, item)" /> | 1464 | @visible-change="(vis) => visibleChange(vis, item)" /> |
| 1465 | <el-date-picker :class="[item.col, { is_block: item.block }]" v-else-if="item.type == 'date-month'" | 1465 | <el-date-picker :class="[item.col, { is_block: item.block }]" v-else-if="item.type == 'date-month'" |
| 1466 | v-model="formInline[item.field]" type="month" format="YYYY-MM" value-format="YYYY-MM" | 1466 | v-model="formInline[item.field]" type="month" :format="item.format ?? 'YYYY-MM'" :value-format="item.valueFormat ?? 'YYYY-MM'" |
| 1467 | :placeholder="item.placeholder" :unlink-panels="item.unlink ?? false" :shortcuts="item.shortcuts ?? []" | 1467 | :placeholder="item.placeholder" :unlink-panels="item.unlink ?? false" :shortcuts="item.shortcuts ?? []" :clearable="item.clearable ?? true" |
| 1468 | :default-value="item.defaultDate" :disabled="item.disabled ?? false" :disabled-date="item.disabledDate" | 1468 | :default-value="item.defaultDate" :disabled="item.disabled ?? false" :disabled-date="item.disabledDate" |
| 1469 | :popper-class="item.popperClass" @change="(val) => inputChange(val, item)" | 1469 | :popper-class="item.popperClass" @change="(val) => inputChange(val, item)" |
| 1470 | @panel-change="(date, mode) => panelChange({ date, mode }, item)" | 1470 | @panel-change="(date, mode) => panelChange({ date, mode }, item)" | ... | ... |
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment