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
43b62683
Commit
43b62683
authored
Nov 03, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of
http://git.mes123.com/zhouyx/mes-ui
into product
parents
b9611122
cb03fc46
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
249 additions
and
224 deletions
+249
-224
projectTaskTree.vue
components/page/projectTaskTree.vue
+22
-16
EditGrid.vue
components/page/treeGrid/EditGrid.vue
+1
-3
user.vue
components/page/user.vue
+2
-2
userGroup.vue
components/page/userGroup.vue
+3
-6
api.js
pages/project/project/api.js
+3
-0
detail.vue
pages/project/project/detail.vue
+213
-192
index.vue
pages/project/task/index.vue
+5
-5
No files found.
components/page/projectTaskTree.vue
View file @
43b62683
...
...
@@ -66,7 +66,6 @@ export default {
props
:
{
curId
:
{
type
:
String
,
default
:
""
,
},
},
created
()
{
...
...
@@ -93,9 +92,18 @@ export default {
this
.
$api
.
post
(
`
${
material
}
/projectmain/list`
,
data
).
then
((
r
)
=>
{
if
(
r
.
result
)
{
this
.
projectList
=
r
.
result
;
this
.
downName
=
this
.
projectList
[
0
].
title
;
this
.
curdId
=
this
.
projectList
[
0
].
id
;
this
.
loadTree
(
this
.
projectList
[
0
].
id
);
if
(
this
.
curId
)
{
this
.
projectList
.
map
(
u
=>
{
if
(
u
.
id
==
this
.
curId
){
this
.
downName
=
u
.
title
;
}
})
}
else
{
this
.
downName
=
this
.
projectList
[
0
].
title
;
this
.
curdId
=
this
.
projectList
[
0
].
id
;
}
this
.
loadTree
(
this
.
curId
);
}
});
},
...
...
@@ -221,17 +229,15 @@ export default {
</
script
>
<
style
lang=
"less"
>
.tree-menu{
border: 1px solid #ddd;
.p-list {
position: relative;
}
.icon-d {
position: absolute
;
top
: 0;
right: 0;
.tree-menu
{
border: 1px solid #ddd;
.p-list {
position: relative;
}
.icon-d {
position: absolute;
top: 0
;
right
: 0;
}
}
}
</
style
>
components/page/treeGrid/EditGrid.vue
View file @
43b62683
...
...
@@ -104,9 +104,7 @@
<span
class=
"ib"
v-width=
"spaceWidth * item._level"
></span>
<a
v-if=
"item._count > 0"
class=
"expand"
><Icon
:type=
"!item._expanded ? 'ios-add' : 'ios-remove'"
/>
</a
><i
v-else
class=
"ms-tree-space"
></i>
{{
item
.
_level
}}
v
{{
item
.
_count
}}
:
{{
show
(
item
)
}}
><i
v-else
class=
"ms-tree-space"
></i>
</span>
<!-- 菜单名称、排序、请求地址 -->
<label
...
...
components/page/user.vue
View file @
43b62683
<
template
>
<Poptip
placement=
"bottom-start"
trigger=
"hover"
width=
"240"
transfer
>
<label
v-if=
"mode=='text'"
:class=
"css"
>
{{
user
.
name
}}
</label>
<Avatar
v-else
:style=
"
{background:user.gender=='男'?'#1479D7':'
red
'}"
:icon="user.gender=='男'?'md-person':'md-woman'" shape="square"
:src="img">
{{
user
.
name
}}
</Avatar>
<Avatar
v-else
:style=
"
{background:user.gender=='男'?'#1479D7':'
#f56a00
'}"
:src="img">
{{
user
.
name
}}
</Avatar>
<div
slot=
"content"
>
<Avatar
v-if=
"user.face"
size=
"large"
:src=
"img"
></Avatar>
<Avatar
...
...
components/page/userGroup.vue
View file @
43b62683
...
...
@@ -17,12 +17,9 @@
:disabled=
"item.status == 0"
>
<div
class=
"user"
>
<State
code=
"project.group.authority"
:value=
"item.authority"
class=
"mr10"
type=
"tag"
/>
<Icon
v-if=
"item.authority==1"
type=
"md-person"
size=
"18"
color=
"gold"
/>
<Icon
v-if=
"item.authority==2"
type=
"md-person"
size=
"18"
color=
"green"
/>
<Icon
v-if=
"item.authority==0"
type=
"md-person"
size=
"18"
/>
{{
item
.
note
}}
<State
code=
"project.group.role"
...
...
pages/project/project/api.js
View file @
43b62683
...
...
@@ -4,6 +4,9 @@ export default {
paged
(
params
){
return
Api
.
post
(
`
${
material
}
/projectmain/paged`
,
params
);
},
users
(
params
){
return
Api
.
post
(
`
${
material
}
/projectgroupuser/list`
,
params
);
},
get
(
params
){
return
Api
.
get
(
`
${
material
}
/projectmain/get`
,
params
);
},
...
...
pages/project/project/detail.vue
View file @
43b62683
This diff is collapsed.
Click to expand it.
pages/project/task/index.vue
View file @
43b62683
...
...
@@ -14,21 +14,21 @@
<Form
ref=
"formInline"
inline
>
<FormItem>
<div
class=
"taskMenu"
>
<Menu
mode=
"horizontal"
active-name=
"
2
"
@
on-select=
"onSelect"
>
<Menu
mode=
"horizontal"
active-name=
"
1
"
@
on-select=
"onSelect"
>
<MenuItem
name=
"1"
>
所有
</MenuItem>
<MenuItem
name=
"2"
>
未关闭
待确认
</MenuItem>
<MenuItem
name=
"3"
>
指派给我
工作中
</MenuItem>
<MenuItem
name=
"4"
>
由我参与
已完成
</MenuItem>
<MenuItem
name=
"5"
>
已
延期
已
冻结
</MenuItem>
<!--
<Submenu
name=
"6"
>
...
...
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