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
85b2ed01
Commit
85b2ed01
authored
Sep 27, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分类选择流程
parent
8c242835
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
84 additions
and
7 deletions
+84
-7
zh-CN.js
i18n/locale/zh-CN.js
+4
-2
add.vue
pages/word/classification/add.vue
+35
-0
api.js
pages/word/classification/api.js
+8
-3
edit.vue
pages/word/classification/edit.vue
+37
-2
No files found.
i18n/locale/zh-CN.js
View file @
85b2ed01
...
...
@@ -1733,10 +1733,12 @@ export default {
englishName
:
'英文简称'
,
status
:
''
,
inheritCategoryId
:
'继承'
,
//继承分类id
url
:
'上传模板'
,
//模板路径
template
:
''
,
//模板路径
//
url:'上传模板', //模板路径
template
:
'
模板Id
'
,
//模板路径
templateId
:
'选择模板'
,
status
:
'状态'
,
workFlows
:
'选择流程'
,
workFlowIds
:
'流程Id'
,
description
:
'备注'
},
document_template
:{
...
...
pages/word/classification/add.vue
View file @
85b2ed01
...
...
@@ -66,6 +66,20 @@
</Select>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('workFlows')"
prop=
"workFlowIds"
>
<Select
v-model=
"entity.workFlowIds"
@
on-change=
"setWorkFlows"
clearable
filterable
>
<Option
v-for=
"(t, i) in workFlows"
:key=
"i"
:value=
"t.id"
>
{{
t
.
name
}}
</Option>
</Select>
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('description')"
prop=
"description"
>
<Input
v-model=
"entity.description"
type=
"textarea"
:rows=
"5"
></Input>
...
...
@@ -174,6 +188,7 @@ export default {
return
{
codeList
:
[],
templates
:
[],
workFlows
:
[],
entity
:
{
creatorUserId
:
this
.
$store
.
state
.
userInfo
.
userId
,
name
:
""
,
...
...
@@ -328,6 +343,7 @@ export default {
mounted
()
{
this
.
tebleSet
();
this
.
loadTemplate
();
this
.
loadWorkFlows
();
},
methods
:
{
tebleSet
()
{
...
...
@@ -356,6 +372,25 @@ export default {
}
});
},
loadWorkFlows
()
{
let
data
=
{
pageIndex
:
1
,
pageSize
:
100
,
conditions
:
[],
};
Api
.
getpaged
(
data
).
then
((
r
)
=>
{
if
(
r
.
result
)
{
this
.
workFlows
=
r
.
result
.
items
;
}
});
},
setWorkFlows
(
a
)
{
this
.
workFlows
.
forEach
((
r
)
=>
{
if
(
a
==
r
.
id
)
{
this
.
entity
.
workFlows
=
r
.
name
;
}
});
},
addNew
()
{
let
maxId
=
0
;
this
.
checkList
.
map
((
u
)
=>
{
...
...
pages/word/classification/api.js
View file @
85b2ed01
...
...
@@ -28,6 +28,11 @@ export default {
return
Api
.
get
(
`
${
systemUrl
}
/Dictionary/getChildren`
,
params
);
//字典
},
filesList
(
params
){
return
Api
.
post
(
`
${
material
}
/documenttemplate/paged`
,
params
);
//模板列表里获取上传列表
},
}
\ No newline at end of file
return
Api
.
post
(
`
${
material
}
/documenttemplate/paged`
,
params
);
//模板列表
},
getpaged
(
params
)
{
return
Api
.
post
(
`
${
workflowUrl
}
/schema/getpaged`
,
params
);
//流程列表
},
}
\ No newline at end of file
pages/word/classification/edit.vue
View file @
85b2ed01
...
...
@@ -67,7 +67,20 @@
</Select>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('workFlows')"
prop=
"workFlowIds"
>
<Select
v-model=
"entity.workFlowIds"
@
on-change=
"setWorkFlows"
clearable
filterable
>
<Option
v-for=
"(t, i) in workFlows"
:key=
"i"
:value=
"t.id"
>
{{
t
.
name
}}
</Option>
</Select>
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('description')"
prop=
"description"
>
<Input
v-model=
"entity.description"
type=
"textarea"
:rows=
"5"
></Input>
...
...
@@ -310,6 +323,7 @@ export default {
mounted
()
{
this
.
tebleSet
();
this
.
loadTemplate
();
this
.
loadWorkFlows
();
if
(
this
.
eid
>
0
)
{
this
.
load
(
this
.
eid
);
}
...
...
@@ -334,6 +348,25 @@ export default {
}
});
},
loadWorkFlows
()
{
let
data
=
{
pageIndex
:
1
,
pageSize
:
100
,
conditions
:
[],
};
Api
.
getpaged
(
data
).
then
((
r
)
=>
{
if
(
r
.
result
)
{
this
.
workFlows
=
r
.
result
.
items
;
}
});
},
setWorkFlows
(
a
)
{
this
.
workFlows
.
forEach
((
r
)
=>
{
if
(
a
==
r
.
id
)
{
this
.
entity
.
workFlows
=
r
.
name
;
}
});
},
tebleSet
()
{
Api
.
getChildren
({
id
:
582
}).
then
((
r
)
=>
{
if
(
r
.
result
)
{
...
...
@@ -341,10 +374,12 @@ export default {
}
});
},
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
((
r
)
=>
{
this
.
entity
=
r
.
result
;
// this.entity.templateId = r.result.template;
this
.
entity
.
templateId
=
parseInt
(
r
.
result
.
templateId
);
this
.
entity
.
workFlowIds
=
r
.
result
.
workFlowIds
;
if
(
r
.
result
.
inheritCategoryId
==
0
)
{
this
.
inherit
=
"0"
;
}
else
{
...
...
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