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
bd6fdb83
Commit
bd6fdb83
authored
Nov 25, 2020
by
luo ying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项目管理权限及生命周期
parent
f920be43
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
5 deletions
+62
-5
life.vue
components/page/life.vue
+61
-4
add.vue
pages/project/project/add.vue
+1
-1
No files found.
components/page/life.vue
View file @
bd6fdb83
<
template
>
<div
class=
"datalife
"
>
<div
class=
"bigBing"
:style=
"
{width:220*bigNum+'px'}" v-if="mode">
<div
class=
"datalife
"
>
<div
class=
"bigBing"
:style=
"
{width:220*bigNum+
100+
'px'}" v-if="mode">
<div
v-for=
"(item, index) in data"
:key=
"index"
class=
"linebox"
>
<div
class=
"box"
:class=
"curIndex == index ? 'boxBorder1':curIndex
<index
?
'
boxBorder2
'
:
'
boxBorder
'
"
>
<Tag
type=
"dot"
:color=
"item.color?item.color:tagColor"
>
{{
item
.
name
}}
</Tag>
...
...
@@ -9,8 +9,21 @@
<span
class=
"item arrow-right"
:class=
"[curIndex==index? 'boxBorder1' :curIndex
<index
?
'
boxBorder2
'
:
'
boxBorder
']"
></span>
</div>
</div>
<div
class=
'rightCode '
>
<Poptip
:content=
"code"
placement=
'left-start'
>
<a
data-clipboard-action=
"copy"
:data-clipboard-text=
"code"
@
click=
"copy"
id=
"code"
class=
"tag-read"
><Icon
type=
"ios-more"
/></a
>
</Poptip>
</div>
</div>
<div
class=
"bigBing"
:style=
"
{width:240*bigNum+'px'}" v-else>
<div
class=
"bigBing"
:style=
"
{width:240*bigNum+
100+
'px'}" v-else>
<div
class=
"lifeBox"
v-for=
"(item, index) in data"
:key=
"index"
>
<div
class=
"arrow-left"
>
<b
class=
"right"
v-if=
"index != 0"
>
...
...
@@ -26,11 +39,26 @@
></b>
</div>
</div>
<div
class=
'rightCode'
>
<Poptip
:content=
"code"
placement=
'left-start'
>
<a
data-clipboard-action=
"copy"
:data-clipboard-text=
"code"
@
click=
"copy"
id=
"code"
class=
"tag-read"
><Icon
type=
"ios-more"
/></a
>
</Poptip>
</div>
</div>
</div>
</
template
>
<
script
>
import
Clipboard
from
"clipboard"
;
export
default
{
name
:
"life"
,
data
()
{
...
...
@@ -60,6 +88,9 @@ export default {
type
:
String
,
default
:
""
}
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
created
()
{
this
.
data
=
this
.
$store
.
getters
.
dictionaryByKey
(
this
.
code
)
||
[];
...
...
@@ -71,13 +102,35 @@ export default {
})
},
methods
:
{
copy
()
{
var
clipboard
=
new
Clipboard
(
".tag-read"
);
clipboard
.
on
(
"success"
,
(
e
)
=>
{
this
.
$Message
.
success
(
"复制成功:"
+
this
.
code
);
clipboard
.
destroy
();
});
clipboard
.
on
(
"error"
,
(
e
)
=>
{
// 不支持复制
console
.
log
(
"该浏览器不支持自动复制"
);
// 释放内存
clipboard
.
destroy
();
});
},
},
};
</
script
>
<
style
lang=
"less"
>
.datalife {
overflow-x: auto;
width: auto;
.bigBing{
position: relative;
.rightCode{
position: absolute;
right: 0;
top: 0;
}
}
.linebox {
display: inline-flex;
.box {
...
...
@@ -270,5 +323,9 @@ export default {
}
}
}
// .ivu-poptip-popper{
// top: 27px;
// right:0
// }
}
</
style
>
\ No newline at end of file
pages/project/project/add.vue
View file @
bd6fdb83
...
...
@@ -199,7 +199,7 @@ export default {
}
Api
.
create
(
this
.
entity
)
.
then
((
r
)
=>
{
debugger
;
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"保存成功"
);
//添加当前登陆人为项目经理
...
...
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