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
ce60b8bf
Commit
ce60b8bf
authored
Oct 21, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
groupUser
parent
6c715b6b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
210 additions
and
45 deletions
+210
-45
zh-CN.js
i18n/locale/zh-CN.js
+3
-3
index.vue
pages/project/group/index.vue
+29
-6
add.vue
pages/project/groupUser/add.vue
+0
-36
index1.vue
pages/project/groupUser/index1.vue
+178
-0
No files found.
i18n/locale/zh-CN.js
View file @
ce60b8bf
...
@@ -1903,13 +1903,13 @@ export default {
...
@@ -1903,13 +1903,13 @@ export default {
isDeleted
:
'删除人'
,
isDeleted
:
'删除人'
,
deletionTime
:
'删除时间'
,
deletionTime
:
'删除时间'
,
deleterUserId
:
'删除人'
,
deleterUserId
:
'删除人'
,
userId
:
'用户
id
'
,
userId
:
'用户'
,
role
:
'角色'
,
role
:
'角色'
,
projectId
:
'项目id'
,
projectId
:
'项目id'
,
planId
:
'计划id'
,
planId
:
'计划id'
,
note
:
'备注'
,
note
:
'备注'
,
status
:
'状态'
,
status
:
'状态'
,
groupName
:
''
,
groupName
:
'
项目组名称
'
,
groupId
:
''
,
groupId
:
'
项目组Id
'
,
}
}
}
}
pages/project/group/index.vue
View file @
ce60b8bf
<
template
>
<
template
>
<div>
<div
class=
"full"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
><template
slot=
"easySearch"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
><template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
><Input
placeholder=
"请输入关键字名称"
v-model=
"easySearch.keys.value"
/>
</FormItem>
<FormItem
prop=
"keys"
><Input
placeholder=
"请输入关键字名称"
v-model=
"easySearch.keys.value"
/>
</FormItem>
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<Button
type=
"primary"
@
click=
"add"
>
新增
</Button>
<Button
type=
"primary"
@
click=
"add"
>
新增
</Button>
</
template
>
</
template
>
</DataGrid>
</DataGrid>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1200"
footer-hide
>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1200"
footer-hide
:fullscreen=
"fullscreen"
>
<component
:is=
"detail"
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
<component
:is=
"detail"
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
</Modal>
</Modal>
</div>
</div>
...
@@ -42,6 +42,7 @@ export default {
...
@@ -42,6 +42,7 @@ export default {
}
}
},
},
modal
:
false
,
modal
:
false
,
fullscreen
:
false
,
title
:
"新增"
,
title
:
"新增"
,
detail
:
null
,
detail
:
null
,
curId
:
0
,
curId
:
0
,
...
@@ -63,19 +64,22 @@ export default {
...
@@ -63,19 +64,22 @@ export default {
key
:
"creationTime"
,
key
:
"creationTime"
,
title
:
this
.
l
(
"creationTime"
),
title
:
this
.
l
(
"creationTime"
),
align
:
"center"
,
align
:
"center"
,
high
:
true
high
:
true
,
type
:
'date'
,
width
:
180
},
},
{
{
key
:
"creatorUserId"
,
key
:
"creatorUserId"
,
title
:
this
.
l
(
"creatorUserId"
),
title
:
this
.
l
(
"creatorUserId"
),
align
:
"left"
,
align
:
"left"
,
high
:
true
,
high
:
true
,
type
:
'user'
type
:
'user'
,
width
:
180
},
},
{
{
title
:
'操作'
,
title
:
'操作'
,
key
:
'action'
,
key
:
'action'
,
width
:
14
0
,
width
:
22
0
,
align
:
'center'
,
align
:
'center'
,
render
:
(
h
,
params
)
=>
{
render
:
(
h
,
params
)
=>
{
return
h
(
'div'
,
{
return
h
(
'div'
,
{
...
@@ -105,7 +109,15 @@ export default {
...
@@ -105,7 +109,15 @@ export default {
on
:
{
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
.
id
)
click
:
()
=>
this
.
remove
(
params
.
row
.
id
)
}
}
},
'删除'
)
},
'删除'
),
h
(
'op'
,
{
attrs
:
{
oprate
:
'edit'
},
on
:
{
click
:
()
=>
this
.
openGroupUser
(
params
.
row
.
id
)
}
},
'项目团队'
),
])
])
}
}
},
},
...
@@ -133,24 +145,28 @@ export default {
...
@@ -133,24 +145,28 @@ export default {
add
()
{
add
()
{
this
.
curId
=
0
;
this
.
curId
=
0
;
this
.
title
=
"新增"
;
this
.
title
=
"新增"
;
this
.
fullscreen
=
false
;
this
.
detail
=
()
=>
import
(
'./add'
)
this
.
detail
=
()
=>
import
(
'./add'
)
this
.
modal
=
true
;
this
.
modal
=
true
;
},
},
copy
(
id
)
{
copy
(
id
)
{
this
.
curId
=
id
;
this
.
curId
=
id
;
this
.
title
=
"克隆"
;
this
.
title
=
"克隆"
;
this
.
fullscreen
=
false
;
this
.
detail
=
()
=>
import
(
'./add'
)
this
.
detail
=
()
=>
import
(
'./add'
)
this
.
modal
=
true
;
this
.
modal
=
true
;
},
},
view
(
id
)
{
view
(
id
)
{
this
.
curId
=
id
;
this
.
curId
=
id
;
this
.
title
=
"详情"
;
this
.
title
=
"详情"
;
this
.
fullscreen
=
false
;
this
.
detail
=
()
=>
import
(
'./detail'
)
this
.
detail
=
()
=>
import
(
'./detail'
)
this
.
modal
=
true
;
this
.
modal
=
true
;
},
},
edit
(
id
)
{
edit
(
id
)
{
this
.
curId
=
id
;
this
.
curId
=
id
;
this
.
title
=
"编辑"
;
this
.
title
=
"编辑"
;
this
.
fullscreen
=
false
;
this
.
detail
=
()
=>
import
(
'./edit'
)
this
.
detail
=
()
=>
import
(
'./edit'
)
this
.
modal
=
true
;
this
.
modal
=
true
;
},
},
...
@@ -162,6 +178,13 @@ export default {
...
@@ -162,6 +178,13 @@ export default {
}
}
})
})
},
},
openGroupUser
(
id
)
{
this
.
curId
=
id
;
this
.
title
=
"项目团队"
;
this
.
fullscreen
=
true
;
this
.
detail
=
()
=>
import
(
'../groupUser/index1'
)
this
.
modal
=
true
;
},
cancel
()
{
cancel
()
{
this
.
curId
=
0
;
this
.
curId
=
0
;
this
.
modal
=
false
this
.
modal
=
false
...
...
pages/project/groupUser/add.vue
View file @
ce60b8bf
<
template
>
<
template
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"90"
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"90"
>
<Row>
<Row>
<Col
:span=
"12"
>
<FormItem
:label=
"l('creationTime')"
prop=
"creationTime"
>
<DatePicker
type=
"date"
v-model=
"entity.creationTime"
></DatePicker>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('creatorUserId')"
prop=
"creatorUserId"
>
<InputNumber
v-model=
"entity.creatorUserId"
></InputNumber>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('lastModificationTime')"
prop=
"lastModificationTime"
>
<DatePicker
type=
"date"
v-model=
"entity.lastModificationTime"
></DatePicker>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('lastModifierUserId')"
prop=
"lastModifierUserId"
>
<InputNumber
v-model=
"entity.lastModifierUserId"
></InputNumber>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('isDeleted')"
prop=
"isDeleted"
>
<InputNumber
v-model=
"entity.isDeleted"
></InputNumber>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('deletionTime')"
prop=
"deletionTime"
>
<DatePicker
type=
"date"
v-model=
"entity.deletionTime"
></DatePicker>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('deleterUserId')"
prop=
"deleterUserId"
>
<InputNumber
v-model=
"entity.deleterUserId"
></InputNumber>
</FormItem>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
<FormItem
:label=
"l('userId')"
prop=
"userId"
>
<FormItem
:label=
"l('userId')"
prop=
"userId"
>
<InputNumber
v-model=
"entity.userId"
></InputNumber>
<InputNumber
v-model=
"entity.userId"
></InputNumber>
...
@@ -81,7 +46,6 @@
...
@@ -81,7 +46,6 @@
</Form>
</Form>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
'./api'
import
Api
from
'./api'
export
default
{
export
default
{
...
...
pages/project/groupUser/index1.vue
0 → 100644
View file @
ce60b8bf
<
template
>
<div>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:easy=
"false"
:set=
"false"
:height=
"300"
>
<template
slot=
"buttons"
>
<Button
type=
"primary"
@
click=
"add"
>
团队管理
</Button>
</
template
>
</DataGrid>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1200"
footer-hide
>
<component
:is=
"detail"
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
</Modal>
</div>
</template>
<
script
>
import
Api
from
'./api'
import
Search
from
'./search'
export
default
{
name
:
'list'
,
components
:
{
Search
},
head
:
{
title
:
"项目成员人"
,
author
:
"henq"
,
description
:
"project_group_user 10/21/2020 11:46:56 AM"
,
},
data
()
{
return
{
action
:
Api
.
index
,
easySearch
:
{
keys
:
{
op
:
"groupName"
,
value
:
null
}
},
modal
:
false
,
title
:
"新增"
,
detail
:
null
,
curId
:
0
,
columns
:
[{
key
:
"userId"
,
title
:
this
.
l
(
"userId"
),
align
:
"left"
,
high
:
true
,
type
:
'user'
},
{
key
:
"role"
,
title
:
this
.
l
(
"role"
),
align
:
"left"
,
high
:
true
,
code
:
'mes.project_group_user.Role'
},
{
key
:
"note"
,
title
:
this
.
l
(
"note"
),
align
:
"left"
,
high
:
true
},
{
key
:
"status"
,
title
:
this
.
l
(
"status"
),
align
:
"left"
,
high
:
true
,
code
:
'mes.project_group_user.Status'
},
{
key
:
"groupName"
,
title
:
this
.
l
(
"groupName"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
title
:
'操作'
,
key
:
'action'
,
width
:
140
,
align
:
'center'
,
render
:
(
h
,
params
)
=>
{
return
h
(
'div'
,
{
class
:
"action"
},
[
h
(
'op'
,
{
attrs
:
{
oprate
:
'detail'
},
on
:
{
click
:
()
=>
this
.
view
(
params
.
row
.
id
)
}
},
'查看'
),
//h('op', { attrs: { oprate: 'copy' }, on: { click: () => this.copy(params.row.id) } }, '克隆'),
h
(
'op'
,
{
attrs
:
{
oprate
:
'edit'
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
.
id
)
}
},
'编辑'
),
h
(
'op'
,
{
attrs
:
{
oprate
:
'delete'
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
.
id
)
}
},
'删除'
)
])
}
},
]
}
},
mounted
()
{
console
.
log
(
this
);
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
},
methods
:
{
ok
()
{
this
.
$refs
.
grid
.
load
()
this
.
modal
=
false
this
.
curId
=
0
;
},
search
()
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
)
},
add
()
{
this
.
curId
=
0
;
this
.
title
=
"新增"
;
this
.
detail
=
()
=>
import
(
'./add'
)
this
.
modal
=
true
;
},
copy
(
id
)
{
this
.
curId
=
id
;
this
.
title
=
"克隆"
;
this
.
detail
=
()
=>
import
(
'./add'
)
this
.
modal
=
true
;
},
view
(
id
)
{
this
.
curId
=
id
;
this
.
title
=
"详情"
;
this
.
detail
=
()
=>
import
(
'./detail'
)
this
.
modal
=
true
;
},
edit
(
id
)
{
this
.
curId
=
id
;
this
.
title
=
"编辑"
;
this
.
detail
=
()
=>
import
(
'./edit'
)
this
.
modal
=
true
;
},
remove
(
id
)
{
Api
.
delete
(
id
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
this
.
$refs
.
grid
.
load
();
this
.
$Message
.
success
(
'删除成功'
)
}
})
},
cancel
()
{
this
.
curId
=
0
;
this
.
modal
=
false
},
l
(
key
)
{
let
vkey
=
"project_group_user"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
}
}
}
</
script
>
<
style
lang=
"less"
>
</
style
>
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