Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-purchase
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a18de181
authored
Dec 12, 2025
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(SignDialog): 修复按钮加载状态和禁用状态的逻辑
添加loading状态变量并与btnLoading共同控制按钮状态 确保按钮在加载或禁用状态下正确显示
1 parent
9b7ec5a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
src/views/DeliverList/SignDialog.vue
src/views/DeliverList/SignDialog.vue
View file @
a18de18
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<span>
{{
dayjs
(
detailInfo
.
deliveryDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}}
</span>
<span>
{{
dayjs
(
detailInfo
.
deliveryDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}}
</span>
</div>
</div>
</div>
</div>
<div
v-loading=
"btnLoading"
>
<div
v-loading=
"
loading ||
btnLoading"
>
<div
class=
"table-wrap"
>
<div
class=
"table-wrap"
>
<el-form
ref=
"addForm"
:model=
"detailInfo"
size=
"small"
>
<el-form
ref=
"addForm"
:model=
"detailInfo"
size=
"small"
>
<GLTable
:tableData=
"detailInfo.deliveryDetailList"
:noDataImg=
"url"
:tableParams=
"tableParams"
:hasPage=
"false"
>
<GLTable
:tableData=
"detailInfo.deliveryDetailList"
:noDataImg=
"url"
:tableParams=
"tableParams"
:hasPage=
"false"
>
...
@@ -48,9 +48,9 @@
...
@@ -48,9 +48,9 @@
</div>
</div>
<template
slot=
"footer"
>
<template
slot=
"footer"
>
<span
class=
"dialog-footer"
>
<span
class=
"dialog-footer"
>
<el-button
plain
size=
"small"
class=
"btn-three"
@
click=
"clear"
v-loading=
"
btnLoading"
>
重写
</el-button>
<el-button
plain
size=
"small"
class=
"btn-three"
@
click=
"clear"
:disabled=
"loading ||
btnLoading"
>
重写
</el-button>
<el-button
v-show=
"activeSignIdx == -1"
plain
size=
"small"
class=
"btn-three"
style=
"margin-left: 10px;"
@
click=
"undo"
v-loading=
"
btnLoading"
>
撤销
</el-button>
<el-button
v-show=
"activeSignIdx == -1"
plain
size=
"small"
class=
"btn-three"
style=
"margin-left: 10px;"
@
click=
"undo"
:disabled=
"loading ||
btnLoading"
>
撤销
</el-button>
<el-button
type=
"primary"
size=
"small"
style=
"margin-left: 10px;"
@
click=
"save"
v-loading=
"btnLoading"
>
确定
</el-button>
<el-button
type=
"primary"
size=
"small"
style=
"margin-left: 10px;"
@
click=
"save"
v-loading=
"
loading ||
btnLoading"
>
确定
</el-button>
</span>
</span>
</
template
>
</
template
>
</GLDialog>
</GLDialog>
...
@@ -94,6 +94,7 @@ export default {
...
@@ -94,6 +94,7 @@ export default {
velocityFilterWeight
:
0.7
,
velocityFilterWeight
:
0.7
,
backgroundColor
:
'rgba(255, 255, 255, 0.0)'
backgroundColor
:
'rgba(255, 255, 255, 0.0)'
},
},
loading
:
false
,
btnLoading
:
false
,
btnLoading
:
false
,
activeSignIdx
:
-
1
,
activeSignIdx
:
-
1
,
signList
:
[],
signList
:
[],
...
...
Write
Preview
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