Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
work-order-web
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
张圳龙
work-order-web
Commits
476bd6e2
Commit
476bd6e2
authored
Jul 25, 2020
by
Mr. Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加邮件通知。
parent
8ec90f5f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
60 additions
and
48 deletions
+60
-48
classify.vue
src/views/process/admin/classify.vue
+1
-1
process-manager.vue
src/views/process/admin/process-manager.vue
+56
-44
task-manager.vue
src/views/process/admin/task-manager.vue
+1
-1
template-manager.vue
src/views/process/admin/template-manager.vue
+1
-1
all.vue
src/views/process/list/all.vue
+1
-1
No files found.
src/views/process/admin/classify.vue
View file @
476bd6e2
...
...
@@ -173,10 +173,10 @@ export default {
this
.
open
=
true
},
handleEdit
(
row
)
{
this
.
dialogFormVisibleName
=
2
this
.
ruleForm
.
id
=
row
.
id
this
.
ruleForm
.
name
=
row
.
name
this
.
open
=
true
this
.
dialogFormVisibleName
=
2
},
submitForm
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
...
...
src/views/process/admin/process-manager.vue
View file @
476bd6e2
...
...
@@ -84,12 +84,14 @@
@
pagination=
"getList"
/>
<el-dialog
:title=
"dialog
FormVisibleName===1?'新建模版':'编辑模版
'"
:visible
.
sync=
"open"
:fullscreen=
"true"
style=
"margin-top: 0"
>
<el-dialog
:title=
"dialog
ProcessVisibleName===1?'新建流程':'编辑流程
'"
:visible
.
sync=
"open"
:fullscreen=
"true"
style=
"margin-top: 0"
>
<div
class=
"tpl-create-content"
>
<el-form
ref=
"ruleForm"
:model=
"ruleForm"
:rules=
"rules"
label-width=
"100px"
>
<el-form-item
label=
"名称"
prop=
"name"
>
<el-input
v-model=
"ruleForm.name"
placeholder=
"请输入流程名称"
style=
"width: 100%"
/>
</el-form-item>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"分类"
prop=
"classify"
>
<el-select
v-model=
"ruleForm.classify"
filterable
placeholder=
"请选择流程分类"
style=
"width: 100%"
>
<el-option
...
...
@@ -100,6 +102,8 @@
/>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"模版"
prop=
"tpls"
>
<el-select
v-model=
"ruleForm.tpls"
filterable
multiple
placeholder=
"请选择模版"
style=
"width: 100%"
>
<el-option
...
...
@@ -110,8 +114,19 @@
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"通知"
>
<el-select
v-model=
"ruleForm.notice"
multiple
filterable
clearable
placeholder=
"请选择流程任务"
style=
"width: 100%"
>
<el-option
label=
"邮件"
:value=
"1"
/>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"任务"
>
<el-select
v-model=
"ruleForm.task"
multiple
filte
rable
placeholder=
"请选择流程任务"
style=
"width: 100%"
>
<el-select
v-model=
"ruleForm.task"
multiple
filterable
clea
rable
placeholder=
"请选择流程任务"
style=
"width: 100%"
>
<el-option
v-for=
"(item, index) in taskListData"
:key=
"index"
...
...
@@ -120,6 +135,8 @@
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-form-item
label=
"流程"
prop=
"structure"
>
<div
style=
"border-radius: 4px; overflow:hidden"
>
<div>
...
...
@@ -168,7 +185,6 @@ export default {
},
data
()
{
return
{
dialogFormVisibleName
:
1
,
queryParams
:
{},
// 遮罩层
loading
:
true
,
...
...
@@ -197,14 +213,7 @@ export default {
per_page
:
10
},
lang
:
'zh'
,
ruleForm
:
{
id
:
undefined
,
name
:
''
,
structure
:
''
,
tpls
:
[],
classify
:
''
,
task
:
[]
},
ruleForm
:
{},
rules
:
{
name
:
[
{
required
:
true
,
message
:
'请输入流程名称'
,
trigger
:
'blur'
}
...
...
@@ -296,7 +305,8 @@ export default {
tpls
:
[],
structure
:
{
'edges'
:
[],
'nodes'
:
[],
'groups'
:
[]
},
classify
:
''
,
task
:
[]
task
:
[],
notice
:
[
1
]
}
this
.
dialogProcessVisibleName
=
1
this
.
open
=
true
...
...
@@ -306,6 +316,7 @@ export default {
})
},
handleEdit
(
row
)
{
this
.
dialogProcessVisibleName
=
2
this
.
getProcessInitData
()
this
.
wfdDesignRefresh
=
false
processDetails
({
...
...
@@ -317,9 +328,9 @@ export default {
tpls
:
response
.
data
.
tpls
,
structure
:
response
.
data
.
structure
,
classify
:
response
.
data
.
classify
,
task
:
response
.
data
.
task
task
:
response
.
data
.
task
,
notice
:
response
.
data
.
notice
}
this
.
dialogProcessVisibleName
=
2
this
.
open
=
true
this
.
wfdDesignRefresh
=
false
this
.
$nextTick
(()
=>
{
...
...
@@ -389,7 +400,8 @@ export default {
tpls
:
this
.
ruleForm
.
tpls
,
structure
:
this
.
$refs
.
wfd
.
graph
.
save
(),
classify
:
this
.
ruleForm
.
classify
,
task
:
this
.
ruleForm
.
task
task
:
this
.
ruleForm
.
task
,
notice
:
this
.
ruleForm
.
notice
}).
then
(
response
=>
{
this
.
getList
()
this
.
open
=
false
...
...
src/views/process/admin/task-manager.vue
View file @
476bd6e2
...
...
@@ -246,6 +246,7 @@ export default {
this
.
open
=
true
},
handleEdit
(
row
)
{
this
.
dialogFormVisibleName
=
2
taskDetails
({
file_name
:
row
.
full_name
}).
then
(
response
=>
{
...
...
@@ -255,7 +256,6 @@ export default {
classify
:
row
.
classify
,
content
:
response
.
data
}
this
.
dialogFormVisibleName
=
2
this
.
open
=
true
})
},
...
...
src/views/process/admin/template-manager.vue
View file @
476bd6e2
...
...
@@ -215,6 +215,7 @@ export default {
})
},
handleEdit
(
row
)
{
this
.
dialogFormVisibleName
=
2
templateDetails
({
template_id
:
row
.
id
}).
then
(
response
=>
{
...
...
@@ -224,7 +225,6 @@ export default {
remarks
:
response
.
data
.
remarks
,
form_structure
:
response
.
data
.
remarks
}
this
.
dialogFormVisibleName
=
2
this
.
open
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
makingform
.
setJSON
(
response
.
data
.
form_structure
)
...
...
src/views/process/list/all.vue
View file @
476bd6e2
...
...
@@ -31,7 +31,7 @@
<span
v-if=
"scope.row.is_end===0"
>
{{
scope
.
row
.
principals
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"优先级"
:show-overflow-tooltip=
"true"
width=
"120"
align=
"
center
"
>
<el-table-column
label=
"优先级"
:show-overflow-tooltip=
"true"
width=
"120"
align=
"
left
"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.priority===2"
>
<el-tag
type=
"warning"
>
紧急
</el-tag>
...
...
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