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
996debfa
Commit
996debfa
authored
Oct 23, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of
http://git.mes123.com/zhouyx/mes-ui
into product
parents
6e38d436
59b43946
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
1038 additions
and
98 deletions
+1038
-98
base.less
assets/css/base.less
+1
-2
EditGrid.vue
components/page/treeGrid/EditGrid.vue
+734
-0
userSelect.vue
components/page/userSelect.vue
+1
-1
zh-CN.js
i18n/locale/zh-CN.js
+4
-0
add.vue
pages/project/group/add.vue
+1
-1
index.vue
pages/project/group/index.vue
+2
-2
add.vue
pages/project/groupUser/add.vue
+4
-18
edit.vue
pages/project/groupUser/edit.vue
+18
-6
index.vue
pages/project/groupUser/index.vue
+1
-1
index1.vue
pages/project/groupUser/index1.vue
+257
-65
index.vue
pages/project/task/index.vue
+11
-0
index.vue
pages/test/example/tree/index.vue
+2
-2
iview.js
plugins/iview.js
+2
-0
No files found.
assets/css/base.less
View file @
996debfa
...
@@ -1146,11 +1146,10 @@ html [type=button] {
...
@@ -1146,11 +1146,10 @@ html [type=button] {
width: 28px;
width: 28px;
height: 28px;
height: 28px;
line-height: 28px;
line-height: 28px;
margin: 0px 0 0
-4px
;
margin: 0px 0 0
0
;
border-radius: 50%;
border-radius: 50%;
color: #515A6E;
color: #515A6E;
background: #F5F6FA;
background: #F5F6FA;
.ivu-icon {
.ivu-icon {
font-weight: bold;
font-weight: bold;
font-size: 18px;
font-size: 18px;
...
...
components/page/treeGrid/EditGrid.vue
0 → 100644
View file @
996debfa
This diff is collapsed.
Click to expand it.
components/page/userSelect.vue
View file @
996debfa
...
@@ -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 @
996debfa
...
@@ -1911,5 +1911,9 @@ export default {
...
@@ -1911,5 +1911,9 @@ export default {
status
:
'状态'
,
status
:
'状态'
,
groupName
:
'项目组名称'
,
groupName
:
'项目组名称'
,
groupId
:
'项目组Id'
,
groupId
:
'项目组Id'
,
authority
:
'权限'
,
whour
:
'可用工日'
,
whourpd
:
'可用工时/天'
,
joindate
:
'加入日期'
}
}
}
}
pages/project/group/add.vue
View file @
996debfa
...
@@ -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 @
996debfa
<
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>
...
@@ -125,7 +125,7 @@ export default {
...
@@ -125,7 +125,7 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
console
.
log
(
this
);
//
.log(this);
},
},
async
fetch
({
async
fetch
({
store
,
store
,
...
...
pages/project/groupUser/add.vue
View file @
996debfa
...
@@ -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 @
996debfa
...
@@ -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/index.vue
View file @
996debfa
...
@@ -186,7 +186,7 @@ export default {
...
@@ -186,7 +186,7 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
console
.
log
(
this
);
//
console.log(this);
},
},
async
fetch
({
async
fetch
({
store
,
store
,
...
...
pages/project/groupUser/index1.vue
View file @
996debfa
This diff is collapsed.
Click to expand it.
pages/project/task/index.vue
View file @
996debfa
...
@@ -260,6 +260,17 @@ export default {
...
@@ -260,6 +260,17 @@ export default {
click
:
()
=>
this
.
edit
(
params
.
row
.
id
)
click
:
()
=>
this
.
edit
(
params
.
row
.
id
)
}
}
}),
}),
h
(
'op'
,
{
attrs
:
{
icon
:
"ios-pause"
,
type
:
"icon"
,
title
:
"暂停"
,
color
:
"#19be6b"
,
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
.
id
)
}
}),
h
(
'op'
,
{
h
(
'op'
,
{
attrs
:
{
attrs
:
{
icon
:
"ios-create-outline"
,
icon
:
"ios-create-outline"
,
...
...
pages/test/example/tree/index.vue
View file @
996debfa
<
template
>
<
template
>
<div
class=
"tree"
>
<div
class=
"tree"
>
<
Tree
Grid
:columns=
"columns"
:items=
"treeData"
:drag=
"true"
>
<
Edit
Grid
:columns=
"columns"
:items=
"treeData"
:drag=
"true"
>
<template
slot-scope=
"
{row,column,index}" slot="name">
<template
slot-scope=
"
{row,column,index}" slot="name">
<Icon
type=
"md-folder"
/>
{{
row
.
name
}}
<Icon
type=
"md-folder"
/>
{{
row
.
name
}}
</
template
>
</
template
>
<
template
slot-scope=
"{row,column,index}"
slot=
"action"
>
<
template
slot-scope=
"{row,column,index}"
slot=
"action"
>
<strong>
{{
row
.
action
}}
</strong>
<strong>
{{
row
.
action
}}
</strong>
</
template
>
</
template
>
</
Tree
Grid>
</
Edit
Grid>
<!-- <Input v-model="data" type="textarea" rows="20" placeholder=""></Input> -->
<!-- <Input v-model="data" type="textarea" rows="20" placeholder=""></Input> -->
</div>
</div>
</template>
</template>
...
...
plugins/iview.js
View file @
996debfa
...
@@ -55,6 +55,7 @@ import FilesView from '@/components/page/filesView.vue'
...
@@ -55,6 +55,7 @@ import FilesView from '@/components/page/filesView.vue'
import
DataGrid
from
'@/components/page/dataGrid.vue'
import
DataGrid
from
'@/components/page/dataGrid.vue'
import
TreeGrid
from
'@/components/page/treeGrid/index.vue'
import
TreeGrid
from
'@/components/page/treeGrid/index.vue'
import
EditGrid
from
'@/components/page/treeGrid/EditGrid.vue'
import
Filed
from
'@/components/page/filed.vue'
import
Filed
from
'@/components/page/filed.vue'
import
User
from
'@/components/page/user.vue'
import
User
from
'@/components/page/user.vue'
import
op
from
'@/components/page/opration.vue'
import
op
from
'@/components/page/opration.vue'
...
@@ -118,6 +119,7 @@ Vue.component("FilesList", FilesList)
...
@@ -118,6 +119,7 @@ Vue.component("FilesList", FilesList)
Vue
.
component
(
"FilesView"
,
FilesView
)
Vue
.
component
(
"FilesView"
,
FilesView
)
Vue
.
component
(
"DataGrid"
,
DataGrid
)
Vue
.
component
(
"DataGrid"
,
DataGrid
)
Vue
.
component
(
"TreeGrid"
,
TreeGrid
)
Vue
.
component
(
"TreeGrid"
,
TreeGrid
)
Vue
.
component
(
"EditGrid"
,
EditGrid
)
Vue
.
component
(
"Filed"
,
Filed
)
Vue
.
component
(
"Filed"
,
Filed
)
Vue
.
component
(
"UserSelect"
,
UserSelect
)
Vue
.
component
(
"UserSelect"
,
UserSelect
)
Vue
.
component
(
"Materiel"
,
Materiel
)
Vue
.
component
(
"Materiel"
,
Materiel
)
...
...
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