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
45d6199a
Commit
45d6199a
authored
Oct 29, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ok
parent
e166fc1a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
10 deletions
+20
-10
base.less
assets/css/base.less
+2
-2
opration.vue
components/page/opration.vue
+11
-4
index.vue
pages/project/plan/index.vue
+7
-4
No files found.
assets/css/base.less
View file @
45d6199a
...
...
@@ -1138,9 +1138,9 @@ html [type=button] {
}
a.disable {
color: #CAD1D9;
cursor:
help
;
cursor:
not-allowed
;
i:hover {
background:
#CAD1D9
;
background:
transparent
;
}
}
...
...
components/page/opration.vue
View file @
45d6199a
<
template
>
<Tooltip
trigger=
"hover"
v-if=
"!disable&&title"
:content=
"titles"
placement=
"top-end"
>
<a
v-if=
"disable"
class=
"disable"
>
<slot>
<Icon
v-if=
"type=='icon'"
:type=
"icon"
:color=
"colors"
/>
<span
v-else=
"type=='text'"
v-text=
"text"
></span>
</slot>
</a>
<Tooltip
trigger=
"hover"
v-else-if=
"title"
:content=
"titles"
placement=
"top-end"
>
<a
class=
"op"
:class=
"css"
@
click=
"handler"
>
<slot>
<Icon
v-if=
"type=='icon'"
:type=
"icon"
:color=
"colors"
/>
...
...
@@ -40,8 +46,8 @@ export default {
type
:
String
},
disable
:
{
type
:
Number
,
default
:
0
type
:
Boolean
,
default
:
false
},
},
...
...
@@ -50,7 +56,8 @@ export default {
text
:
""
,
css
:
"detail"
,
colors
:
this
.
color
,
titles
:
this
.
title
titles
:
this
.
title
,
disabled
:
false
,
};
},
created
()
{
...
...
pages/project/plan/index.vue
View file @
45d6199a
<
template
>
<div>
<Card>
<EditGrid
:columns=
"columns"
ref=
"grid"
:items=
"list"
>
<EditGrid
:columns=
"columns"
ref=
"grid"
:items=
"list"
>
<template
slot=
"easySearch"
><Form
ref=
"formInline"
:model=
"easySearch"
inline
><FormItem
prop=
"keys"
><Input
placeholder=
"请输入关键字标题"
v-model=
"easySearch.keys.value"
/>
</FormItem>
<FormItem><Button
type=
"primary"
@
click=
"search"
>
查询
</Button>
</FormItem>
...
...
@@ -100,7 +99,7 @@ export default {
type
:
"icon"
,
title
:
"派发"
,
oprate
:
"edit"
,
disable
:
params
.
row
.
status
disable
:
params
.
row
.
status
!=
0
},
on
:
{
click
:
()
=>
this
.
send
(
params
.
row
)
},
},
...
...
@@ -111,6 +110,7 @@ export default {
attrs
:
{
icon
:
"md-add"
,
type
:
"icon"
,
title
:
"新增子任务"
,
disable
:
params
.
row
.
status
>
1
,
oprate
:
"edit"
,},
on
:
{
click
:
()
=>
this
.
add
(
params
.
row
)
},
}
...
...
@@ -121,7 +121,9 @@ export default {
attrs
:
{
icon
:
"md-create"
,
type
:
"icon"
,
title
:
"编辑"
,
oprate
:
"edit"
,
},
oprate
:
"edit"
,
disable
:
params
.
row
.
status
!==
0
,
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
.
id
)
},
}
),
...
...
@@ -132,6 +134,7 @@ export default {
type
:
"icon"
,
title
:
"删除"
,
oprate
:
"delete"
,
disable
:
params
.
row
.
status
!==
0
,
msg
:
"确认要删除吗?"
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
.
id
)
},
}
...
...
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