Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-csf-front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yuzhenWang
yd-csf-front
Commits
f28e3b28
Commit
f28e3b28
authored
Apr 07, 2026
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改更新数据的时候第一次默认数据不显示
parent
769a2101
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
src/views/financialCenter/payables.vue
+8
-7
No files found.
src/views/financialCenter/payables.vue
View file @
f28e3b28
...
...
@@ -122,7 +122,7 @@
<
script
setup
name=
"Payables"
>
import
CommonPage
from
'@/components/commonPage'
import
{
ref
,
reactive
}
from
'vue'
import
{
ref
,
reactive
,
nextTick
}
from
'vue'
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
import
{
formatCurrency
}
from
'@/utils/number'
import
{
expectedFortuneList
,
payRecordList
,
addPayRecord
,
updatePayRecord
,
exportPayRecord
,
payableReport
}
from
'@/api/financial/commission'
...
...
@@ -480,12 +480,13 @@ const handleSelect = async (e, row) => {
}
else
if
(
e
===
'updateData'
)
{
editStatus
.
value
=
'edit'
addPayRecordDialogVisible
.
value
=
true
if
(
addPayRecordFormRef
.
value
)
{
addPayRecordFormModel
.
value
=
{
...
selectedRow
.
value
}
}
// 2. 使用 nextTick 等待 DOM 更新
nextTick
(()
=>
{
// 3. 此时 addRecordRef.value 一定存在了
if
(
addPayRecordFormRef
.
value
&&
selectedRow
.
value
)
{
addPayRecordFormModel
.
value
=
{
...
selectedRow
.
value
};
}
});
console
.
log
(
addPayRecordFormModel
.
value
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment