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
8c242835
Commit
8c242835
authored
Sep 27, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文档保存,状态判断
parent
03245e5d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
32 deletions
+35
-32
add.vue
pages/word/classification/add.vue
+14
-22
edit.vue
pages/word/classification/edit.vue
+13
-7
add.vue
pages/word/document/add.vue
+5
-2
edit.vue
pages/word/document/edit.vue
+2
-0
word.vue
pages/word/document/word.vue
+1
-1
No files found.
pages/word/classification/add.vue
View file @
8c242835
...
...
@@ -52,11 +52,6 @@
</RadioGroup>
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('description')"
prop=
"description"
>
<Input
v-model=
"entity.description"
type=
"textarea"
:rows=
"5"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('templateId')"
prop=
"templateId"
>
<Select
...
...
@@ -71,6 +66,12 @@
</Select>
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('description')"
prop=
"description"
>
<Input
v-model=
"entity.description"
type=
"textarea"
:rows=
"5"
></Input>
</FormItem>
</Col>
<!--
<Col
:span=
"24"
>
<FormItem
:label=
"l('templateId')"
prop=
"templateId"
>
<Input
v-model=
"entity.templateId"
></Input>
...
...
@@ -327,7 +328,6 @@ export default {
mounted
()
{
this
.
tebleSet
();
this
.
loadTemplate
();
},
methods
:
{
tebleSet
()
{
...
...
@@ -396,18 +396,6 @@ export default {
handleSubmit
()
{
this
.
$refs
.
form
.
validate
((
v
)
=>
{
if
(
v
)
{
// if (this.$refs.refFile.nameList.length > 0) {
// let nameList = this.$refs.refFile.nameList;
// let names = [];
// nameList.forEach((e) => {
// names.push(e.fileName);
// });
// this.entity.templateId = this.parms.eid;
// this.entity.template = names.join(",");
// } else {
// // this.entity.filePath = "";
// this.entity.templateId = "";
// }
if
(
this
.
row
.
id
)
{
this
.
entity
.
upId
=
this
.
row
.
id
;
this
.
entity
.
level
=
this
.
row
.
level
;
...
...
@@ -417,9 +405,15 @@ export default {
this
.
entity
.
level
=
1
;
this
.
entity
.
inheritCategoryId
=
0
;
}
let
pros
=
[];
if
(
this
.
inherit
==
1
)
{
pros
=
[];
}
else
{
pros
=
this
.
checkList
;
}
let
data
=
{
cat
:
this
.
entity
,
pros
:
this
.
checkList
,
pros
:
pros
,
};
Api
.
create
(
data
)
.
then
((
r
)
=>
{
...
...
@@ -452,8 +446,6 @@ export default {
return
this
.
$t
(
key
);
},
},
watch
:
{
},
watch
:
{},
};
</
script
>
\ No newline at end of file
pages/word/classification/edit.vue
View file @
8c242835
...
...
@@ -53,11 +53,6 @@
</RadioGroup>
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('description')"
prop=
"description"
>
<Input
v-model=
"entity.description"
type=
"textarea"
:rows=
"5"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('templateId')"
prop=
"templateId"
>
<Select
...
...
@@ -73,6 +68,12 @@
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('description')"
prop=
"description"
>
<Input
v-model=
"entity.description"
type=
"textarea"
:rows=
"5"
></Input>
</FormItem>
</Col>
<!--
<Col
:span=
"24"
>
<FormItem
:label=
"l('templateId')"
prop=
"templateId"
>
<Input
v-model=
"entity.templateId"
></Input>
...
...
@@ -414,10 +415,15 @@ export default {
}
else
{
this
.
entity
.
inheritCategoryId
=
this
.
entity
.
upId
;
}
let
pros
=
[];
if
(
this
.
inherit
==
1
)
{
pros
=
[];
}
else
{
pros
=
this
.
checkList
;
}
let
data
=
{
cat
:
this
.
entity
,
pros
:
this
.
checkList
,
pros
:
pros
,
};
Api
.
update
(
data
)
...
...
pages/word/document/add.vue
View file @
8c242835
...
...
@@ -172,6 +172,7 @@
<Col
:span=
"12"
>
<FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
disabled
code=
"word.document.status"
v-model=
"entity.status"
></Dictionary>
...
...
@@ -239,7 +240,7 @@ export default {
fileds
:
[],
//扩展属性
entity
:
{
creatorUserId
:
this
.
$store
.
state
.
userInfo
.
userId
,
status
:
""
,
status
:
0
,
categoryId
:
this
.
treeId
,
img
:
""
,
// title: "",
...
...
@@ -279,7 +280,7 @@ export default {
props
:
{
v
:
Object
,
treeId
:
Number
,
eid
:
String
,
eid
:
Number
,
},
created
()
{},
mounted
()
{
...
...
@@ -330,8 +331,10 @@ export default {
}
if
(
this
.
$refs
.
refFile
.
nameList
.
length
>
0
)
{
this
.
entity
.
filePath
=
this
.
parms
.
eid
;
this
.
entity
.
status
=
1
;
}
else
{
this
.
entity
.
filePath
=
""
;
this
.
entity
.
status
=
0
;
}
Api
.
create
(
this
.
entity
)
.
then
((
r
)
=>
{
...
...
pages/word/document/edit.vue
View file @
8c242835
...
...
@@ -304,8 +304,10 @@ export default {
if
(
v
)
{
if
(
this
.
$refs
.
refFile
.
nameList
.
length
>
0
)
{
this
.
entity
.
filePath
=
this
.
parms
.
eid
;
this
.
entity
.
status
=
1
;
//上传文件后状态变为工作中
}
else
{
this
.
entity
.
filePath
=
""
;
this
.
entity
.
status
=
0
;
//默认私有
}
Api
.
update
(
this
.
entity
)
.
then
((
r
)
=>
{
...
...
pages/word/document/word.vue
View file @
8c242835
...
...
@@ -361,7 +361,7 @@ export default {
.c {
padding-left: 8px;
div {
height:
18
px;
height:
25
px;
}
}
.shuo-ming {
...
...
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