Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
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
周远喜
mes-ui
Commits
c04868b7
Commit
c04868b7
authored
Apr 21, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模板相关&&op
parent
a2c243e4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
50 deletions
+50
-50
opration.vue
components/page/opration.vue
+48
-49
temp.vue
pages/aps/aps/temp.vue
+2
-1
No files found.
components/page/opration.vue
View file @
c04868b7
...
@@ -16,70 +16,69 @@
...
@@ -16,70 +16,69 @@
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'op'
,
name
:
"op"
,
props
:
{
props
:
{
icon
:{
icon
:
{
type
:
String
type
:
String
},
},
oprate
:
{
oprate
:
{
type
:
String
type
:
String
},
},
type
:
{
type
:
{
type
:
String
,
type
:
String
,
default
:
"text"
default
:
"text"
},
},
title
:{
title
:
{
type
:
String
type
:
String
},
},
msg
:{
msg
:
{
type
:
String
,
type
:
String
,
default
:
"确认要删除吗?"
default
:
"确认要删除吗?"
}
}
},
},
data
(){
data
()
{
return
{
return
{
text
:
""
,
text
:
""
,
css
:
"detail"
css
:
"detail"
}
}
;
},
},
created
(){
created
()
{
var
oprates
=
{
var
oprates
=
{
detail
:
"查看"
,
detail
:
"查看"
,
edit
:
"编辑"
,
edit
:
"编辑"
,
add
:
"添加"
,
add
:
"添加"
,
delete
:
"删除"
delete
:
"删除"
};
};
if
(
oprates
[
this
.
oprate
]){
if
(
oprates
[
this
.
oprate
])
{
this
.
text
=
oprates
[
this
.
oprate
]
this
.
text
=
oprates
[
this
.
oprate
];
this
.
css
=
this
.
oprate
;
this
.
css
=
this
.
oprate
;
}
else
if
(
this
.
oprate
)
{
}
else
if
(
this
.
oprate
)
{
this
.
css
=
this
.
oprate
;
this
.
css
=
this
.
oprate
;
}
else
if
(
this
.
type
==
'icon'
)
{
}
else
if
(
this
.
type
==
"icon"
)
{
this
.
css
=
'icon'
this
.
css
=
"icon"
;
}
}
},
},
methods
:{
methods
:
{
handler
(){
handler
()
{
if
(
this
.
oprate
==
"delete"
)
{
if
(
this
.
oprate
==
"delete"
)
{
this
.
$Modal
.
confirm
({
this
.
$Modal
.
confirm
({
title
:
'确认'
,
title
:
"确认"
,
content
:
'<p>'
+
this
.
msg
+
'</p>'
,
content
:
"<p>"
+
this
.
msg
+
"</p>"
,
onOk
:
()
=>
{
onOk
:
()
=>
{
this
.
$emit
(
"click"
,
event
)
this
.
$emit
(
"click"
,
event
);
}
}
});
});
}
else
{
}
else
{
this
.
$emit
(
"click"
,
event
)
this
.
$emit
(
"click"
,
event
);
}
}
}
}
}
}
}
}
;
</
script
>
</
script
>
<
style
lang=
"less"
>
<
style
lang=
"less"
>
a.op{
a.op
{
display: inline;
display: inline;
margin: 0 3px;
margin: 0 3px;
}
}
</
style
>
</
style
>
\ No newline at end of file
pages/aps/aps/temp.vue
View file @
c04868b7
...
@@ -116,7 +116,8 @@ export default {
...
@@ -116,7 +116,8 @@ export default {
this
.
$emit
(
"on-close"
);
this
.
$emit
(
"on-close"
);
},
},
addData
(
obj
)
{
addData
(
obj
)
{
this
.
data
.
splice
(
0
,
0
,
obj
);
//this.data.splice(0, 0,obj);
this
.
data
.
push
(
obj
)
},
},
cancel
()
{
cancel
()
{
this
.
add
=
null
;
this
.
add
=
null
;
...
...
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