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
a4d2c6db
Commit
a4d2c6db
authored
Oct 27, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ok
parent
3488f24a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
521 additions
and
484 deletions
+521
-484
dtSpan.vue
components/page/dtSpan.vue
+1
-1
opration.vue
components/page/opration.vue
+80
-69
index.vue
pages/project/task/index.vue
+440
-414
No files found.
components/page/dtSpan.vue
View file @
a4d2c6db
...
...
@@ -21,7 +21,7 @@ export default {
},
value
:
{
type
:
String
,
default
:
'
2001-01-01 00:00:00
'
default
:
''
},
},
created
()
{
...
...
components/page/opration.vue
View file @
a4d2c6db
<
template
>
<Tooltip
trigger=
"hover"
v-if=
"title"
:content=
"title"
placement=
"top-end"
>
<Tooltip
trigger=
"hover"
v-if=
"title"
:content=
"title"
placement=
"top-end"
>
<a
class=
"op"
:class=
"css"
@
click=
"handler"
>
<slot>
<Icon
v-if=
"type==
'icon'"
:type=
"icon"
:color=
"color"
/>
<span
v-else=
"type==
'text'"
v-text=
"text"
></span>
</slot>
<slot>
<Icon
v-if=
"type ==
'icon'"
:type=
"icon"
:color=
"color"
/>
<span
v-else=
"type ==
'text'"
v-text=
"text"
></span>
</slot>
</a>
</Tooltip>
<a
class=
"op"
v-else
:class=
"css"
@
click=
"handler"
>
</Tooltip>
<a
class=
"op"
v-else
:class=
"css"
@
click=
"handler"
>
<slot>
<Icon
v-if=
"type==
'icon'"
:type=
"icon"
:color=
"color"
/>
<span
v-else=
"type==
'text'"
v-text=
"text"
></span>
<Icon
v-if=
"type ==
'icon'"
:type=
"icon"
:color=
"color"
/>
<span
v-else=
"type ==
'text'"
v-text=
"text"
></span>
</slot>
</a>
</a>
</
template
>
<
script
>
export
default
{
name
:
"op"
,
props
:
{
icon
:
{
type
:
String
},
oprate
:
{
type
:
String
},
type
:
{
type
:
String
,
default
:
"text"
},
title
:
{
type
:
String
,
},
msg
:
{
type
:
String
,
default
:
"确认要删除吗?"
},
color
:
{
type
:
String
}
name
:
"op"
,
props
:
{
icon
:
{
type
:
String
,
},
oprate
:
{
type
:
String
,
},
type
:
{
type
:
String
,
default
:
"text"
,
},
title
:
{
type
:
String
,
},
msg
:
{
type
:
String
,
default
:
"确认要删除吗?"
,
},
data
()
{
return
{
text
:
""
,
css
:
"detail"
};
color
:
{
type
:
String
,
},
created
()
{
var
oprates
=
{
detail
:
"查看"
,
edit
:
"编辑"
,
add
:
"添加"
,
delete
:
"删除"
,
remove
:
"删除"
};
disalbed
:
{
// 0 启用 1 禁用 2权限不足
type
:
Number
,
default
:
0
,
},
},
data
()
{
return
{
text
:
""
,
css
:
"detail"
,
};
},
created
()
{
var
oprates
=
{
detail
:
"查看"
,
edit
:
"编辑"
,
add
:
"添加"
,
delete
:
"删除"
,
remove
:
"删除"
,
};
if
(
oprates
[
this
.
oprate
])
{
this
.
text
=
oprates
[
this
.
oprate
];
this
.
css
=
this
.
oprate
;
}
else
if
(
this
.
oprate
)
{
this
.
css
=
this
.
oprate
;
}
else
if
(
this
.
type
==
"icon"
)
{
this
.
css
=
"icon"
;
if
(
oprates
[
this
.
oprate
])
{
this
.
text
=
oprates
[
this
.
oprate
];
this
.
css
=
this
.
oprate
;
}
else
if
(
this
.
oprate
)
{
this
.
css
=
this
.
oprate
;
}
else
if
(
this
.
type
==
"icon"
)
{
this
.
css
=
"icon"
;
}
},
methods
:
{
handler
()
{
if
(
this
.
disalbed
==
0
)
{
if
(
this
.
oprate
==
"delete"
||
this
.
oprate
==
"remove"
)
{
this
.
$Modal
.
confirm
({
title
:
this
.
title
,
content
:
"<p>"
+
this
.
msg
+
"</p>"
,
onOk
:
()
=>
{
this
.
$emit
(
"click"
,
event
);
},
});
}
else
{
this
.
$emit
(
"click"
,
event
);
}
}
else
if
(
this
.
disabled
==
1
){
this
.
$Message
.
info
(
"不能操作"
)
}
else
{
this
.
$Message
.
info
(
"没有权限"
)
}
},
methods
:
{
handler
()
{
if
(
this
.
oprate
==
"delete"
||
this
.
oprate
==
"remove"
)
{
this
.
$Modal
.
confirm
({
title
:
this
.
title
,
content
:
"<p>"
+
this
.
msg
+
"</p>"
,
onOk
:
()
=>
{
this
.
$emit
(
"click"
,
event
);
}
});
}
else
{
this
.
$emit
(
"click"
,
event
);
}
}
}
},
};
</
script
>
<
style
lang=
"less"
>
a.op {
display: inline;
margin: 0 3px;
display: inline;
margin: 0 3px;
}
</
style
>
pages/project/task/index.vue
View file @
a4d2c6db
This diff is collapsed.
Click to expand it.
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