Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
precision-effect
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
precision-effect
Commits
55090f06
Commit
55090f06
authored
Jun 20, 2023
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详情按钮问题修改
parent
c7ab9608
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
18 deletions
+6
-18
OperatorButton.vue
...fect-web/src/views/purchase/components/OperatorButton.vue
+3
-9
OperatorButton.vue
...-effect-web/src/views/trade/components/OperatorButton.vue
+3
-9
No files found.
precision-effect-web/src/views/purchase/components/OperatorButton.vue
View file @
55090f06
<
template
>
<div
style=
"display: inline-block;width: 50px"
>
<el-button
type=
"text"
@
click=
"open
=true
"
size=
"mini"
>
{{
getOperatorName
()
}}
</el-button>
<el-button
type=
"text"
@
click=
"open
PurchaseDialog
"
size=
"mini"
>
{{
getOperatorName
()
}}
</el-button>
<el-dialog
:title=
"getOperatorName()"
:visible
.
sync=
"open"
width=
"800px"
append-to-body
:close-on-click-modal=
"false"
destroy-on-close
>
<component
:is=
"currentTabComponent"
:purchaseData=
"purchaseData"
ref=
"currentCom"
v-if=
"open"
></component>
<div
slot=
"footer"
class=
"dialog-footer"
style=
"text-align: center"
v-if=
"operatorName != 'purchaseDetail'"
>
...
...
@@ -34,13 +34,6 @@
created
(){
this
.
currentTabComponent
=
this
.
operatorName
;
},
watch
:
{
open
(
newVal
,
oldVal
){
if
(
newVal
){
this
.
getPurchaseInfo
();
}
}
},
data
(){
return
{
open
:
false
,
...
...
@@ -61,10 +54,11 @@
return
""
;
}
},
getPurchaseInfo
(){
openPurchaseDialog
(){
getPurchase
(
this
.
purchaseInfo
.
purchaseId
).
then
(
res
=>
{
if
(
res
.
code
==
200
){
this
.
purchaseData
=
res
.
data
;
this
.
open
=
true
;
}
})
},
...
...
precision-effect-web/src/views/trade/components/OperatorButton.vue
View file @
55090f06
<
template
>
<div
style=
"display: inline-block;width: 50px"
>
<el-button
type=
"text"
@
click=
"open
=true
"
size=
"mini"
>
{{
getOperatorName
()
}}
</el-button>
<el-button
type=
"text"
@
click=
"open
Dialog
"
size=
"mini"
>
{{
getOperatorName
()
}}
</el-button>
<el-dialog
:title=
"getOperatorName()"
:visible
.
sync=
"open"
width=
"800px"
append-to-body
:close-on-click-modal=
"false"
destroy-on-close
>
<component
:is=
"currentTabComponent"
:tradeData=
"tradeData"
ref=
"currentCom"
v-if=
"open"
></component>
<div
slot=
"footer"
class=
"dialog-footer"
style=
"text-align: center"
v-if=
"operatorName != 'tradeDetail'"
>
...
...
@@ -36,13 +36,6 @@
created
(){
this
.
currentTabComponent
=
this
.
operatorName
;
},
watch
:
{
open
(
newVal
,
oldVal
){
if
(
newVal
){
this
.
getTradeInfo
();
}
}
},
data
(){
return
{
open
:
false
,
...
...
@@ -65,10 +58,11 @@
return
""
;
}
},
getTradeInfo
(){
openDialog
(){
getProject
(
this
.
tradeInfo
.
tradeId
).
then
(
res
=>
{
if
(
res
.
code
==
200
){
this
.
tradeData
=
res
.
data
;
this
.
open
=
true
;
}
})
},
...
...
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