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
a74751f2
Commit
a74751f2
authored
Oct 22, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
groupUser
parent
d2663a62
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
209 additions
and
73 deletions
+209
-73
userSelect.vue
components/page/userSelect.vue
+1
-1
zh-CN.js
i18n/locale/zh-CN.js
+3
-0
add.vue
pages/project/group/add.vue
+1
-1
index.vue
pages/project/group/index.vue
+1
-1
add.vue
pages/project/groupUser/add.vue
+4
-18
edit.vue
pages/project/groupUser/edit.vue
+18
-6
index1.vue
pages/project/groupUser/index1.vue
+181
-46
No files found.
components/page/userSelect.vue
View file @
a74751f2
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
</div>
</div>
</div>
</div>
<Select
v-else
:placeholder=
"placeholder"
v-model=
"name"
@
on-change=
"change"
:multiple=
"multiple"
:departmentId=
"departmentId"
clearable
filterable
>
<Select
v-else
:placeholder=
"placeholder"
v-model=
"name"
@
on-change=
"change"
:multiple=
"multiple"
:departmentId=
"departmentId"
clearable
filterable
transfer
>
<Option
v-for=
"item in datas ? datas : dic"
:value=
"item.value"
:key=
"item.value"
:label=
"item.label"
>
<Option
v-for=
"item in datas ? datas : dic"
:value=
"item.value"
:key=
"item.value"
:label=
"item.label"
>
<div>
<div>
{{
item
.
label
}}
{{
item
.
label
}}
...
...
i18n/locale/zh-CN.js
View file @
a74751f2
...
@@ -1911,5 +1911,8 @@ export default {
...
@@ -1911,5 +1911,8 @@ export default {
status
:
'状态'
,
status
:
'状态'
,
groupName
:
'项目组名称'
,
groupName
:
'项目组名称'
,
groupId
:
'项目组Id'
,
groupId
:
'项目组Id'
,
authority
:
'权限'
,
wHour
:
'可用工日'
,
wHourPD
:
'可用工时/天'
}
}
}
}
pages/project/group/add.vue
View file @
a74751f2
...
@@ -97,7 +97,7 @@ export default {
...
@@ -97,7 +97,7 @@ export default {
this
.
entity
=
this
.
$u
.
clone
(
this
.
v
)
this
.
entity
=
this
.
$u
.
clone
(
this
.
v
)
},
},
eid
(
v
)
{
eid
(
v
)
{
if
(
v
!=
''
)
{
if
(
v
!=
''
&&
v
!=
null
)
{
this
.
load
(
v
);
this
.
load
(
v
);
}
}
}
}
...
...
pages/project/group/index.vue
View file @
a74751f2
<
template
>
<
template
>
<div
class=
"full"
>
<div>
<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>
...
...
pages/project/groupUser/add.vue
View file @
a74751f2
...
@@ -8,30 +8,16 @@
...
@@ -8,30 +8,16 @@
</Col>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
<FormItem
:label=
"l('role')"
prop=
"role"
>
<FormItem
:label=
"l('role')"
prop=
"role"
>
<Dictionary
code=
"mes.project_group_user.Role"
v-model=
"entity.role"
></Dictionary>
<Dictionary
code=
"project.group.role"
v-model=
"entity.role"
></Dictionary>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('projectId')"
prop=
"projectId"
>
<InputNumber
v-model=
"entity.projectId"
></InputNumber>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('planId')"
prop=
"planId"
>
<InputNumber
v-model=
"entity.planId"
></InputNumber>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('note')"
prop=
"note"
>
<Input
v-model=
"entity.note"
>
</Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
<FormItem
:label=
"l('status')"
prop=
"status"
>
<FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"
mes.project_group_user.S
tatus"
v-model=
"entity.status"
></Dictionary>
<Dictionary
code=
"
project.group.s
tatus"
v-model=
"entity.status"
></Dictionary>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
<FormItem
:label=
"l('
groupName')"
prop=
"groupName"
>
<Input
v-model=
"entity.groupNam
e"
>
</Input>
<FormItem
:label=
"l('
note')"
prop=
"note"
>
<Input
v-model=
"entity.not
e"
>
</Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
...
@@ -130,7 +116,7 @@ export default {
...
@@ -130,7 +116,7 @@ export default {
this
.
entity
=
this
.
$u
.
clone
(
this
.
v
)
this
.
entity
=
this
.
$u
.
clone
(
this
.
v
)
},
},
eid
(
v
)
{
eid
(
v
)
{
if
(
v
>
0
)
{
if
(
v
!=
''
&&
v
!=
null
)
{
this
.
load
(
v
);
this
.
load
(
v
);
}
}
}
}
...
...
pages/project/groupUser/edit.vue
View file @
a74751f2
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<Row>
<Row>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
<FormItem
:label=
"l('userId')"
prop=
"userId"
>
<FormItem
:label=
"l('userId')"
prop=
"userId"
>
<
InputNumber
v-model=
"entity.userId"
></InputNumber
>
<
UserSelect
ref=
"userSelected"
v-model=
"entity.userId"
/
>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
...
@@ -12,14 +12,14 @@
...
@@ -12,14 +12,14 @@
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
<FormItem
:label=
"l('note')"
prop=
"note"
>
<Input
v-model=
"entity.note"
>
</Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('status')"
prop=
"status"
>
<FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"project.group.status"
v-model=
"entity.status"
></Dictionary>
<Dictionary
code=
"project.group.status"
v-model=
"entity.status"
></Dictionary>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('note')"
prop=
"note"
>
<Input
v-model=
"entity.note"
>
</Input>
</FormItem>
</Col>
</Row>
</Row>
<FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
...
@@ -41,7 +41,19 @@ export default {
...
@@ -41,7 +41,19 @@ export default {
required
:
true
,
required
:
true
,
message
:
'必填'
,
message
:
'必填'
,
trigger
:
'blur'
trigger
:
'blur'
}]
}],
userId
:
[{
required
:
true
,
message
:
"请选择人员"
,
trigger
:
"change"
,
type
:
"number"
}],
role
:
[{
required
:
true
,
message
:
"请选择角色"
,
trigger
:
"change"
,
type
:
"number"
}],
}
}
}
}
},
},
...
...
pages/project/groupUser/index1.vue
View file @
a74751f2
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