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
af893514
Commit
af893514
authored
Dec 23, 2020
by
罗超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/confucius
into master
parents
e5a31bf8
0a3b5a8e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
70 additions
and
19 deletions
+70
-19
index.js
src/api/system/index.js
+19
-9
process-form.vue
src/components/system/process-form.vue
+24
-5
processSet.vue
src/pages/system/processSet.vue
+27
-5
No files found.
src/api/system/index.js
View file @
af893514
...
...
@@ -378,12 +378,22 @@ export function GetClassTypeList(data) {
/**
* 获取退课流程设置
*/
export
function
queryBackClassFlow
(
data
)
{
return
request
({
url
:
'/Flow/GetBackClassFlow'
,
method
:
'post'
,
data
});
}
\ No newline at end of file
*/
export
function
queryBackClassFlow
(
data
)
{
return
request
({
url
:
'/Flow/GetBackClassFlow'
,
method
:
'post'
,
data
});
}
/**
* 保存退课流程设置
*/
export
function
saveBackClassFlow
(
data
)
{
return
request
({
url
:
'/Flow/SetBackClassFlow'
,
method
:
'post'
,
data
});
}
src/components/system/process-form.vue
View file @
af893514
...
...
@@ -151,7 +151,8 @@
<div
style=
"margin:10px 0;"
>
<q-select
class=
"col-6 q-pb"
v-if=
"aItem.AuditType==2"
clearable
filled
stack-label
use-input
option-value=
"Id"
option-label=
"EmployeeName"
v-model=
"aItem.UserId"
ref=
"ManagerId"
:options=
"EmployeeList"
label=
"指定人员名称"
:dense=
"false"
emit-value
map-options
@
filter=
"filterFn"
>
:options=
"EmployeeList"
label=
"指定人员名称"
:dense=
"false"
emit-value
map-options
@
filter=
"filterFn"
@
input=
"changeType(aItem)"
>
<template
v-slot:no-option
>
<q-item>
<q-item-section
class=
"text-grey"
>
...
...
@@ -162,7 +163,7 @@
</q-select>
<q-select
class=
"col-6 q-pb"
v-if=
"aItem.AuditType==3"
clearable
filled
stack-label
use-input
option-value=
"Id"
option-label=
"Name"
v-model=
"aItem.PostType"
ref=
"ManagerId"
:options=
"roleList"
label=
"选择角色"
:dense=
"false"
emit-value
map-options
>
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"
...
...
@@ -245,9 +246,28 @@
this
.
getEmployee
();
},
mounted
()
{
console
.
log
(
"saveObj"
,
this
.
saveObj
);
},
methods
:
{
//选择切换
changeType
(
item
)
{
//指定人员
if
(
item
.
AuditType
==
2
)
{
var
chooseUser
=
this
.
AllemployeeList
.
filter
(
v
=>
v
.
Id
==
item
.
UserId
);
if
(
chooseUser
&&
chooseUser
.
length
>
0
)
{
item
.
AduitName
=
chooseUser
[
0
].
EmployeeName
;
item
.
PostType
=
0
;
}
}
//内置角色
else
if
(
item
.
AuditType
==
3
)
{
var
chooseRole
=
this
.
roleList
.
filter
(
v
=>
v
.
Id
==
item
.
PostType
);
if
(
chooseRole
&&
chooseRole
.
length
>
0
)
{
item
.
AduitName
=
chooseRole
[
0
].
Name
;
item
.
UserId
=
0
;
}
}
},
//新增审核人
AddAduitInfo
()
{
this
.
saveObj
.
FlowAduitList
.
push
({
...
...
@@ -299,5 +319,4 @@
},
}
}
</
script
>
</
script
>
\ No newline at end of file
src/pages/system/processSet.vue
View file @
af893514
...
...
@@ -128,8 +128,9 @@
</div>
<template
v-for=
"(item,index) in flowObj.FlowNodeList"
>
<div
class=
"processList"
@
click=
"getItem(item)"
>
<a
@
click=
"DeleteNode(index)"
>
删除
</a>
<template
v-if=
"item.FlowAduitList&&item.FlowAduitList.length==1"
>
<div
class=
"processTop otherList"
>
{{
item
.
Node
Name
}}
</div>
<div
class=
"processTop otherList"
>
{{
item
.
FlowAduitList
[
0
].
Aduit
Name
}}
</div>
<div
class=
"processLine"
v-if=
"index!=flowObj.FlowNodeList.length-1"
>
<i
class=
"iconfont icon-down"
></i>
</div>
...
...
@@ -161,7 +162,7 @@
<div
class=
"addProcessBtn"
>
新增节点
</div>
<div
class=
"process_BtnList"
>
<div
class=
"process_BtnOne"
>
日志信息
</div>
<q-btn
label=
"保存"
color=
"accent q-px-md"
style=
"font-weight:400 !important"
/>
<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"
>
...
...
@@ -171,7 +172,8 @@
<
script
>
import
processForm
from
'../../components/system/process-form'
;
import
{
queryBackClassFlow
queryBackClassFlow
,
saveBackClassFlow
}
from
'../../api/system/index'
export
default
{
components
:
{
...
...
@@ -189,8 +191,8 @@
flowObj
:
{
FlowId
:
1
,
FlowName
:
"退课流程"
,
FlowNodeList
:
[],
},
//流程列表
FlowNodeList
:
[],
//审核节点列表
},
}
},
created
()
{},
...
...
@@ -198,6 +200,10 @@
this
.
getBackClassFlow
();
},
methods
:
{
//删除节点
DeleteNode
(
index
)
{
this
.
flowObj
.
FlowNodeList
.
splice
(
index
,
1
);
},
getBackClassFlow
()
{
queryBackClassFlow
(
this
.
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
...
...
@@ -217,7 +223,23 @@
//成功刷新
refreshPage
()
{
this
.
isShowProcess
=
false
;
this
.
processObj
=
{};
this
.
getBackClassFlow
();
},
//保存退课流程
setBackClassFlow
()
{
saveBackClassFlow
(
this
.
flowObj
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'操作成功'
,
position
:
'top'
})
this
.
refreshPage
();
}
})
}
}
}
...
...
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