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
42b2d005
Commit
42b2d005
authored
Oct 09, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of git.mes123.com:zhouyx/mes-ui into product-rjt
parents
52b4aa2a
3346016b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
7 deletions
+25
-7
add.vue
pages/word/document/add.vue
+7
-1
edit.vue
pages/word/document/edit.vue
+7
-3
index.vue
pages/word/document/index.vue
+3
-0
word.vue
pages/word/document/word.vue
+8
-3
No files found.
pages/word/document/add.vue
View file @
42b2d005
...
...
@@ -170,7 +170,9 @@
<!--
<Input
v-model=
"entity.template"
type=
"textarea"
:rows=
"5"
></Input>
-->
<files
ref=
"refFile"
:parms=
"parms"
files
/>
</FormItem>
<a
href=
"#"
@
click=
"template"
class=
"a-xiazai"
>
下载模板
</a>
<a
href=
"#"
@
click=
"template"
class=
"a-xiazai"
v-if=
"templateId"
>
下载模板
</a
>
</div>
</Col>
<!--
<Col
:span=
"12"
>
...
...
@@ -238,6 +240,7 @@ export default {
categoryId
:
this
.
treeId
,
img
:
""
,
code
:
""
,
workFlowIds
:
this
.
workFlowIds
,
// title: "",
// field: "",
// dataType: null,
...
...
@@ -277,6 +280,8 @@ export default {
v
:
Object
,
treeId
:
Number
,
eid
:
Number
,
workFlowIds
:
String
,
templateId
:
String
,
},
created
()
{},
mounted
()
{
...
...
@@ -367,6 +372,7 @@ export default {
Api
.
get
({
id
:
v
}).
then
((
r
)
=>
{
this
.
entity
=
r
.
result
;
this
.
avatorPath
=
fileUrlDown
+
r
.
result
.
img
;
this
.
imgName
=
r
.
result
.
img
;
this
.
entity
.
status
=
r
.
result
.
status
;
if
(
r
.
result
.
filePath
&&
r
.
result
.
filePath
!=
""
)
{
...
...
pages/word/document/edit.vue
View file @
42b2d005
...
...
@@ -170,7 +170,9 @@
<!--
<Input
v-model=
"entity.template"
type=
"textarea"
:rows=
"5"
></Input>
-->
<files
ref=
"refFile"
:parms=
"parms"
files
/>
</FormItem>
<a
href=
"#"
@
click=
"template"
class=
"a-xiazai"
>
下载模板
</a>
<a
href=
"#"
@
click=
"template"
class=
"a-xiazai"
v-if=
"templateId"
>
下载模板
</a
>
</div>
</Col>
<!--
<Col
:span=
"12"
>
...
...
@@ -228,7 +230,9 @@ export default {
return
{
imgName
:
""
,
avatorPath
:
""
,
entity
:
{},
entity
:
{
workFlowIds
:
this
.
workFlowIds
,
},
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}],
},
...
...
@@ -242,7 +246,7 @@ export default {
},
};
},
props
:
[
"eid"
,
"treeId"
],
props
:
[
"eid"
,
"treeId"
,
"workFlowIds"
,
"templateId"
],
mounted
()
{
this
.
initFiled
();
this
.
parms
.
eid
=
this
.
$u
.
guid
();
...
...
pages/word/document/index.vue
View file @
42b2d005
...
...
@@ -16,6 +16,7 @@
:addShow=
"addShow"
:ids=
"ids"
:workFlowIds=
"workFlowIds"
:templateId=
"templateId"
/>
</Content>
</Layout>
...
...
@@ -42,6 +43,7 @@ export default {
addShow
:
false
,
ids
:
[],
workFlowIds
:
""
,
templateId
:
""
,
};
},
mounted
()
{},
...
...
@@ -53,6 +55,7 @@ export default {
change
(
item
,
ids
)
{
this
.
treeId
=
item
.
id
;
this
.
workFlowIds
=
item
.
workFlowIds
;
this
.
templateId
=
item
.
templateId
;
this
.
ids
=
ids
;
},
hide
()
{
...
...
pages/word/document/word.vue
View file @
42b2d005
...
...
@@ -88,7 +88,10 @@
>
<a
@
click=
"view(row.id)"
>
<Icon
type=
"md-document"
/>
详情
</a>
<a
@
click=
"sub(row.id)"
v-if=
"row.status == 1"
>
<a
@
click=
"sub(row.id)"
v-if=
"row.status == 1 && row.workFlowIds"
>
<Icon
type=
"md-color-wand"
/>
送审
</a>
</div>
...
...
@@ -112,6 +115,7 @@
:treeId=
"treeId"
:rowsTable=
"rowsTable"
:workFlowIds=
"workFlowIds"
:templateId=
"templateId"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
...
...
@@ -136,7 +140,7 @@ export default {
title
:
"新增"
,
detail
:
null
,
curId
:
0
,
columns
:
[
{
type
:
"selection"
,
...
...
@@ -226,7 +230,7 @@ export default {
attrs
:
{
oprate
:
"detail"
},
on
:
{
click
:
()
=>
this
.
sub
(
params
.
row
.
id
)
},
},
params
.
row
.
status
==
1
?
"送审"
:
""
params
.
row
.
status
==
1
&&
params
.
row
.
workFlowIds
?
"送审"
:
""
),
]);
},
...
...
@@ -246,6 +250,7 @@ export default {
addShow
:
Boolean
,
ids
:
Array
,
workFlowIds
:
String
,
templateId
:
String
,
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
...
...
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