Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
64db92f1
Commit
64db92f1
authored
Dec 23, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
0a3b5a8e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
87 additions
and
20 deletions
+87
-20
process-form.vue
src/components/system/process-form.vue
+56
-14
processSet.vue
src/pages/system/processSet.vue
+31
-6
No files found.
src/components/system/process-form.vue
View file @
64db92f1
...
...
@@ -140,7 +140,7 @@
<
template
>
<q-dialog
v-model=
"persistent"
maximized
full-height
seamless
position=
"right"
@
hide=
"closeProcess"
>
<q-card
style=
"margin-top:61px;width:500px"
class=
"no-border-radius classinfo_Dialog"
>
<div
class=
"processMain"
v-for=
"(aItem,aIndex) in saveObj.FlowAduitList"
>
<div
class=
"processMain"
v-for=
"(aItem,aIndex) in saveObj.Flow
NodeList[NodeIndex].Flow
AduitList"
>
<div
class=
"processShenPi"
>
<div
class=
"processPerson"
>
审批人
{{
aIndex
+
1
}}
</div>
<div
class=
"processInner"
>
...
...
@@ -166,30 +166,36 @@
label=
"选择角色"
:dense=
"false"
emit-value
map-options
@
input=
"changeType(aItem)"
>
</q-select>
</div>
<q-toggle
v-if=
"saveObj.FlowAduitList&&saveObj.FlowAduitList.length>0 && aIndex==0"
v-model=
"saveObj.FlowAduitList[0].IsSpecNode"
label=
"设定收损"
left-label
:true-value=
"1"
:false-value=
"0"
/>
<div
class=
"process_Warm"
>
<q-toggle
v-if=
"saveObj.FlowNodeList[NodeIndex].FlowAduitList&&saveObj.FlowNodeList[NodeIndex].FlowAduitList.length>0 && aIndex==0"
v-model=
"saveObj.FlowNodeList[NodeIndex].FlowAduitList[0].IsSpecNode"
label=
"设定收损"
left-label
:true-value=
"1"
:false-value=
"0"
@
input=
"changeSpecNode(saveObj.FlowNodeList[NodeIndex].FlowAduitList[0])"
/>
<div
class=
"process_Warm"
v-if=
"saveObj.FlowNodeList[NodeIndex].FlowAduitList&&saveObj.FlowNodeList[NodeIndex].FlowAduitList.length>0 && aIndex==0"
>
<i
class=
"iconfont icon-jinggao"
></i>
只能由一个人开启,一旦开启其他关闭
</div>
</div>
</div>
<div
class=
"process_LineTwo"
v-if=
"saveObj.FlowAduitList&&saveObj.FlowAduitList.length>0"
v-show=
"aIndex!=saveObj.FlowAduitList.length-1"
>
<div
class=
"process_LineTwo"
v-if=
"saveObj.FlowNodeList[NodeIndex].FlowAduitList&&saveObj.FlowNodeList[NodeIndex].FlowAduitList.length>0"
v-show=
"aIndex!=saveObj.FlowNodeList[NodeIndex].FlowAduitList.length-1"
>
<div
class=
"process_InnerLine"
></div>
<div
style=
"width:100px;margin:10px 0"
>
<q-select
class=
"col=3 q-pb"
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"saveObj.Flow
AduitList[0].AuditWay"
:options=
"auditWayList"
label=
""
:dense=
"false"
emit-value
map-options
>
v-model=
"saveObj.Flow
NodeList[NodeIndex].FlowAduitList[0].AuditWay"
:options=
"auditWayList"
label=
""
:dense=
"false"
emit-value
map-options
>
</q-select>
</div>
</div>
<a
v-if=
"saveObj.FlowAduitList&&saveObj.FlowAduitList.length>0 && aIndex>0"
@
click=
"DelAduitInfo(index)"
>
删除
</a>
<a
v-if=
"saveObj.FlowNodeList[NodeIndex].FlowAduitList&&saveObj.FlowNodeList[NodeIndex].FlowAduitList.length>0 && aIndex>0"
@
click=
"DelAduitInfo(index)"
>
删除
</a>
</div>
<div
class=
"processAddzhai"
@
click=
"AddAduitInfo"
>
新增审核人
</div>
<div
class=
"process_Btn_List"
>
<div
class=
"processBtn_Cancel"
>
关闭
</div>
<div
class=
"processBtn_Save"
>
保存
</div>
<div
class=
"processBtn_Cancel"
@
click=
"closeProcess"
>
关闭
</div>
<div
class=
"processBtn_Save"
@
click=
"setBackClassFlow"
>
保存
</div>
</div>
</q-card>
<div
class=
"dialog-out-close"
@
click=
"closeProcess"
...
...
@@ -203,11 +209,19 @@
import
{
queryEmployee
}
from
'../../api/users/user'
import
{
saveBackClassFlow
}
from
'../../api/system/index'
export
default
{
props
:
{
saveObj
:
{
type
:
Object
,
default
:
null
},
//当前选中的节点
NodeIndex
:
{
type
:
Number
,
default
:
0
,
}
},
components
:
{},
...
...
@@ -249,6 +263,18 @@
},
methods
:
{
changeSpecNode
(
item
)
{
if
(
item
.
IsSpecNode
==
1
)
{
this
.
saveObj
.
FlowNodeList
.
forEach
(
item
=>
{
if
(
item
.
FlowAduitList
&&
item
.
FlowAduitList
.
length
)
{
item
.
FlowAduitList
.
forEach
(
subItem
=>
{
subItem
.
IsSpecNode
=
0
;
})
}
})
item
.
IsSpecNode
=
1
;
}
},
//选择切换
changeType
(
item
)
{
//指定人员
...
...
@@ -270,7 +296,7 @@
},
//新增审核人
AddAduitInfo
()
{
this
.
saveObj
.
FlowAduitList
.
push
({
this
.
saveObj
.
Flow
NodeList
[
NodeIndex
].
Flow
AduitList
.
push
({
CheckId
:
0
,
FlowId
:
0
,
AuditWay
:
2
,
...
...
@@ -284,7 +310,7 @@
},
//删除审核人
DelAduitInfo
(
index
)
{
this
.
saveObj
.
FlowAduitList
.
splice
(
index
,
1
);
this
.
saveObj
.
Flow
NodeList
[
NodeIndex
].
Flow
AduitList
.
splice
(
index
,
1
);
},
//关闭流程设置
closeProcess
()
{
...
...
@@ -317,6 +343,22 @@
}
})
},
//保存退课流程
setBackClassFlow
()
{
saveBackClassFlow
(
this
.
saveObj
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'操作成功'
,
position
:
'top'
})
this
.
$emit
(
'success'
);
}
})
}
}
}
</
script
>
\ No newline at end of file
</
script
>
src/pages/system/processSet.vue
View file @
64db92f1
...
...
@@ -127,8 +127,11 @@
</div>
</div>
<template
v-for=
"(item,index) in flowObj.FlowNodeList"
>
<div
class=
"processList"
@
click=
"getItem(i
tem
)"
>
<div
class=
"processList"
@
click=
"getItem(i
ndex
)"
>
<a
@
click=
"DeleteNode(index)"
>
删除
</a>
<template
v-if=
"item.FlowAduitList&&item.FlowAduitList.length>0 && item.FlowAduitList[0].IsSpecNode==1"
>
<span>
设定收损
</span>
</
template
>
<
template
v-if=
"item.FlowAduitList&&item.FlowAduitList.length==1"
>
<div
class=
"processTop otherList"
>
{{
item
.
FlowAduitList
[
0
].
AduitName
}}
</div>
<div
class=
"processLine"
v-if=
"index!=flowObj.FlowNodeList.length-1"
>
...
...
@@ -159,13 +162,14 @@
</div>
</template>
<br
/>
<div
class=
"addProcessBtn"
>
新增节点
</div>
<div
class=
"addProcessBtn"
@
click=
"AddNode"
>
新增节点
</div>
<div
class=
"process_BtnList"
>
<div
class=
"process_BtnOne"
>
日志信息
</div>
<q-btn
label=
"保存"
color=
"accent q-px-md"
style=
"font-weight:400 !important"
@
click=
"setBackClassFlow"
/>
</div>
</div>
<process-form
v-if=
"isShowProcess"
:save-obj=
"processObj"
@
close=
"closeProcessForm"
@
success=
"refreshPage"
>
<process-form
v-if=
"isShowProcess"
:save-obj=
"processObj"
:NodeIndex=
"ChooseNodeIndex"
@
close=
"closeProcessForm"
@
success=
"refreshPage"
>
</process-form>
</div>
</template>
...
...
@@ -193,6 +197,7 @@
FlowName
:
"退课流程"
,
FlowNodeList
:
[],
//审核节点列表
},
ChooseNodeIndex
:
0
,
}
},
created
()
{},
...
...
@@ -200,6 +205,26 @@
this
.
getBackClassFlow
();
},
methods
:
{
//新增节点
AddNode
()
{
this
.
flowObj
.
FlowNodeList
.
push
({
FlowId
:
0
,
NodeId
:
0
,
NodeName
:
"新增节点"
,
SortNum
:
0
,
FlowAduitList
:
[{
AduitName
:
"新增节点"
,
AuditType
:
2
,
AuditWay
:
2
,
CheckId
:
0
,
FlowId
:
0
,
IsSpecNode
:
0
,
NodeId
:
8
,
PostType
:
0
,
UserId
:
0
,
}]
});
},
//删除节点
DeleteNode
(
index
)
{
this
.
flowObj
.
FlowNodeList
.
splice
(
index
,
1
);
...
...
@@ -212,8 +237,9 @@
})
},
//点开旁边
getItem
(
item
)
{
this
.
processObj
=
item
;
getItem
(
nodeIndex
)
{
this
.
processObj
=
this
.
flowObj
;
this
.
ChooseNodeIndex
=
nodeIndex
;
this
.
isShowProcess
=
true
;
},
//关闭
...
...
@@ -223,7 +249,6 @@
//成功刷新
refreshPage
()
{
this
.
isShowProcess
=
false
;
this
.
processObj
=
{};
this
.
getBackClassFlow
();
},
//保存退课流程
...
...
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