Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
cb10e6c7
authored
2025-03-31 15:15:10 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 估值模型
1 parent
ae4f2308
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
src/components/Form/index.vue
src/views/data_transaction/valuationModelCreate.vue
src/components/Form/index.vue
View file @
cb10e6c
...
...
@@ -586,11 +586,11 @@ const visibleChange = (visible, row) => {
}
const panelChange = (scope, row) => {
if (row.field == 'baseDate' || row.field == 'investYear') {
if (row.field == '
evaluateBaseDate' || row.field == '
baseDate' || row.field == 'investYear') {
const date = new Date();
const year = date.getFullYear();
const datePopperNextBtn = document.querySelector('.date-month-popper .d-arrow-right');
if (row.field == 'baseDate') {
if (row.field == 'baseDate'
|| row.field == 'evaluateBaseDate'
) {
const currentYear = scope.date.getFullYear();
if (currentYear >= year) {
datePopperNextBtn.setAttribute("disabled", '');
...
...
@@ -1463,8 +1463,8 @@ const panelChange = (scope, row) => {
@panel-change="(date, mode) => panelChange({ date, mode }, item)"
@visible-change="(vis) => visibleChange(vis, item)" />
<el-date-picker
:class=
"[item.col,
{ is_block: item.block }]" v-else-if="item.type == 'date-month'"
v-model="formInline[item.field]" type="month"
format="YYYY-MM" value-format="YYYY-MM
"
:placeholder="item.placeholder" :unlink-panels="item.unlink ?? false" :shortcuts="item.shortcuts ?? []"
v-model="formInline[item.field]" type="month"
:format="item.format ?? 'YYYY-MM'" :value-format="item.valueFormat ?? 'YYYY-MM'
"
:placeholder="item.placeholder" :unlink-panels="item.unlink ?? false" :shortcuts="item.shortcuts ?? []"
:clearable="item.clearable ?? true"
:default-value="item.defaultDate" :disabled="item.disabled ?? false" :disabled-date="item.disabledDate"
:popper-class="item.popperClass" @change="(val) => inputChange(val, item)"
@panel-change="(date, mode) => panelChange({ date, mode }, item)"
...
...
src/views/data_transaction/valuationModelCreate.vue
View file @
cb10e6c
This diff is collapsed.
Click to expand it.
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment