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
845eaf7f
Commit
845eaf7f
authored
Oct 09, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug:hanle、mesplan、userselect
parent
0f2d6281
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
681 additions
and
718 deletions
+681
-718
userSelect.vue
components/page/userSelect.vue
+403
-412
index.vue
pages/handle/index.vue
+277
-306
index.vue
pages/mesPlan/index.vue
+1
-0
No files found.
components/page/userSelect.vue
View file @
845eaf7f
<
template
>
<div>
<div>
<div
v-if=
"theme == 'list'"
class=
"flex fd userSelect"
>
<div
class=
"fg1 users"
>
<dl
v-for=
"(g, i) in group"
:key=
"i"
>
...
...
@@ -12,19 +12,10 @@
<span
class=
"ml20"
>
(
{{
g
.
children
.
length
}}
人)
</span>
</div>
<a
class=
"op"
@
click=
"toggle(i)"
>
<Icon
:type=
"g.opened ? 'ios-arrow-up' : 'ios-arrow-down'"
size=
"24"
/>
<Icon
:type=
"g.opened ? 'ios-arrow-up' : 'ios-arrow-down'"
size=
"24"
/>
</a>
</dt>
<dd
v-show=
"g.opened"
v-for=
"(li, j) in g.children"
:key=
"j"
@
click=
"checkItem(i, j, li)"
:class=
"
{ checked: li.checked }"
>
<dd
v-show=
"g.opened"
v-for=
"(li, j) in g.children"
:key=
"j"
@
click=
"checkItem(i, j, li)"
:class=
"
{ checked: li.checked }">
{{
li
.
userName
}}
</dd>
</dl>
...
...
@@ -48,27 +39,11 @@
</div>
</div>
<Select
v-else
:placeholder=
"placeholder"
v-model=
"name"
@
on-change=
"change"
:multiple=
"multiple"
:departmentId=
"departmentId"
clearable
filterable
>
<Option
v-for=
"item in datas ? datas : dic"
:value=
"item.value"
:key=
"item.value"
:label=
"item.label"
>
<Select
v-else
:placeholder=
"placeholder"
v-model=
"name"
@
on-change=
"change"
:multiple=
"multiple"
:departmentId=
"departmentId"
clearable
filterable
>
<Option
v-for=
"item in datas ? datas : dic"
:value=
"item.value"
:key=
"item.value"
:label=
"item.label"
>
<div>
{{
item
.
label
}}
<span
style=
"color: #c3c3c3"
v-if=
"item.cardNo"
>
(
{{
item
.
cardNo
}}
)
</span
>
<span
style=
"color: #c3c3c3"
v-if=
"item.cardNo"
>
(
{{
item
.
cardNo
}}
)
</span>
<br
/>
<span
style=
"color: #c3c3c3"
v-if=
"item.departmentTitle"
>
{{
item
.
departmentTitle
...
...
@@ -76,8 +51,9 @@
</div>
</Option>
</Select>
</div>
</div>
</
template
>
<
script
>
export
default
{
model
:
{
...
...
@@ -144,22 +120,20 @@ export default {
// 加载人员
getselectuser
(
id
)
{
let
url
=
`
${
systemUrl
}
/user/getselectuser`
;
var
paras
=
{
var
paras
=
{
// pageIndex: 1,
departmentId
:
id
,
type
:
this
.
type
,
roleTitle
:
this
.
roleTitle
,
// pageSize: 0
};
if
(
this
.
type
=
99
){
//开发组
paras
=
{
conditions
:[
{
if
(
this
.
type
==
99
)
{
//开发组
paras
=
{
conditions
:
[{
fieldName
:
"UserType"
,
fieldValue
:
"2"
,
conditionalType
:
"Equal"
,
},
]
},
]
};
}
this
.
$api
...
...
@@ -344,8 +318,10 @@ export default {
},
};
</
script
>
<
style
lang=
"less"
>
@import "../../assets/css/custom.less";
.userSelect {
.users {
width: 100%;
...
...
@@ -354,14 +330,17 @@ export default {
overflow: auto;
font-size: 14px;
}
dl {
width: 100%;
margin-bottom: 2px;
dt,
dd {
list-style: none;
padding: 0 15px;
}
dt {
width: 100%;
background: rgba(38, 128, 235, 0.1);
...
...
@@ -369,6 +348,7 @@ export default {
font-weight: bold;
line-height: 48px;
color: rgba(81, 90, 110, 1);
a.op {
height: 26px;
width: 26px;
...
...
@@ -378,23 +358,28 @@ export default {
line-height: 100%;
margin-top: 12px;
}
a.op:hover {
color: white;
background: rgba(38, 128, 235, 1.5);
border-radius: 4px;
}
}
dt.checked {
background: rgba(38, 128, 235);
color: white;
a.op {
color: white;
}
a.op:hover {
background: white;
color: rgba(38, 128, 235);
}
}
dd {
min-width: 120px;
line-height: 32px;
...
...
@@ -405,6 +390,7 @@ export default {
border: 2px solid transparent;
color: @table-color;
margin: 10px;
a {
display: inline-flex;
width: 20px;
...
...
@@ -415,11 +401,13 @@ export default {
align-items: center;
margin-top: 5px;
}
a:hover {
background: rgb(241, 14, 14);
color: white;
}
}
dd:hover {
// background: rgba(38, 128, 235, 1);
// border:1px solid rgba(38,128,235,0.1);
...
...
@@ -428,13 +416,16 @@ export default {
// color: white;
cursor: pointer;
}
dd.checked {
border: 2px solid rgba(38, 128, 235, 1);
}
}
.footer {
margin-top: 5px;
min-height: 68px;
dl {
background: rgba(245, 246, 250, 1);
border: 1px solid rgba(220, 223, 230, 1);
...
...
pages/handle/index.vue
View file @
845eaf7f
<
template
>
<div
class=
"myBug"
>
<div
class=
"myBug"
>
<Tabs
:animated=
"false"
@
on-click=
"tab"
value=
"3"
>
<TabPane
label=
"我发起的"
name=
"0"
></TabPane>
<TabPane
label=
"待我审批的"
name=
"1"
></TabPane>
...
...
@@ -9,71 +8,31 @@
<Task
v-if=
"tabIndex == 4"
></Task>
</TabPane>
</Tabs>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:conditions=
"easySearch"
:high=
"false"
v-show=
"tabIndex != 4"
:height=
"gridHeight"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:conditions=
"easySearch"
:high=
"false"
v-show=
"tabIndex != 4"
:height=
"gridHeight"
>
<template
slot=
"easySearch"
>
<Row
style=
"line-height: 32px; width: 1000px"
>
<Col
span=
"5"
>
<Select
v-model=
"easySearch.schemaId.value"
style=
"width: 200px"
clearable
placeholder=
"请选择审批类别"
transfer
>
<Select
v-model=
"easySearch.schemaId.value"
style=
"width: 200px"
clearable
placeholder=
"请选择审批类别"
transfer
>
<Option
value
class=
"option-text"
>
请选择审批类别
</Option>
<Option
:value=
"item.id"
:label=
"item.name"
:key=
"index"
v-for=
"(item, index) in schemaList"
></Option>
<Option
:value=
"item.id"
:label=
"item.name"
:key=
"index"
v-for=
"(item, index) in schemaList"
></Option>
</Select>
</Col>
<Col
span=
"10"
>
<DTSearch
v-model=
"easySearch.range.value"
@
on-change=
"setTime"
type=
"date"
></DTSearch>
<DTSearch
v-model=
"easySearch.range.value"
@
on-change=
"setTime"
type=
"date"
></DTSearch>
</Col>
<Col
span=
"9"
>
<Input
search
enter-button
placeholder=
"请输入编号"
@
on-search=
"search"
v-model=
"easySearch.keys.value"
/>
<Input
search
enter-button
placeholder=
"请输入编号"
@
on-search=
"search"
v-model=
"easySearch.keys.value"
/>
</Col>
</Row>
</
template
>
</DataGrid>
<!-- 审批modal -->
<Modal
v-model=
"modalOrderExamine"
:title=
"titleOrderExamine"
footer-hide
fullscreen
@
on-cancel=
"cancelModal"
>
<iframe
width=
"100%"
id=
"mainFrame"
:height=
"iframeHeight"
frameborder=
"0"
:src=
"srcUrl"
></iframe>
<Modal
v-model=
"modalOrderExamine"
:title=
"titleOrderExamine"
footer-hide
fullscreen
@
on-cancel=
"cancelModal"
>
<iframe
width=
"100%"
id=
"mainFrame"
:height=
"iframeHeight"
frameborder=
"0"
:src=
"srcUrl"
></iframe>
</Modal>
</div>
</div>
</template>
<
script
>
import
Api
from
"./api"
;
import
Task
from
"./task"
;
...
...
@@ -87,18 +46,29 @@ export default {
show
:
false
,
action
:
Api
.
index
,
easySearch
:
{
type
:
{
op
:
"Equal"
,
value
:
1
},
// 1我发起的 2待我审批的 3 我已审批的
keys
:
{
op
:
"code"
,
value
:
""
},
schemaId
:
{
op
:
"Equal"
,
value
:
null
},
//审批类别
range
:
{
op
:
"Range"
,
value
:
null
},
type
:
{
op
:
"Equal"
,
value
:
1
},
// 1我发起的 2待我审批的 3 我已审批的
keys
:
{
op
:
"code"
,
value
:
""
},
schemaId
:
{
op
:
"Equal"
,
value
:
null
},
//审批类别
range
:
{
op
:
"Range"
,
value
:
null
},
},
schemaList
:
[],
results
:
[],
footerBar
:
false
,
modalInfo
:
false
,
tabIndex
:
4
,
columns
:
[
{
columns
:
[{
key
:
"id"
,
width
:
80
,
title
:
this
.
l
(
"id"
),
...
...
@@ -122,15 +92,11 @@ export default {
high
:
true
,
code
:
"Handle.todoList.status"
,
},
{
title
:
this
.
l
(
"creatorUserId"
),
key
:
"creatorUserId"
,
hide
:
true
,
},
{
title
:
this
.
l
(
"creator"
),
key
:
"creator
"
,
key
:
"creatorUserId
"
,
align
:
"center"
,
type
:
"user"
},
{
title
:
this
.
l
(
"creationTime"
),
...
...
@@ -174,10 +140,11 @@ export default {
title
:
"操作"
,
align
:
"center"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"action"
},
[
return
h
(
"div"
,
{
class
:
"action"
},
[
h
(
"op"
,
{
"op"
,
{
attrs
:
{
oprate
:
"detail"
,
title
:
this
.
tabIndex
==
2
?
"审核"
:
"查看"
,
...
...
@@ -227,7 +194,10 @@ export default {
this
.
getSchema
();
},
computed
:
{},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
methods
:
{
...
...
@@ -327,6 +297,7 @@ export default {
},
};
</
script
>
<
style
lang=
"less"
>
.ivu-modal-fullscreen-no-footer .ivu-modal-body {
padding: 0px;
...
...
pages/mesPlan/index.vue
View file @
845eaf7f
...
...
@@ -697,6 +697,7 @@ export default {
if
(
res
.
success
)
{
this
.
$Message
.
success
(
"订单送审成功!"
);
this
.
$refs
.
grid
.
load
();
this
.
sendViewModal
=
false
;
}
else
{
this
.
$Message
.
error
(
"订单送审失败!"
);
}
...
...
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