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
ec01d980
Commit
ec01d980
authored
Sep 30, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文档分类
parent
e1f72a3b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
64 deletions
+57
-64
add.vue
pages/word/classification/add.vue
+30
-34
edit.vue
pages/word/classification/edit.vue
+23
-28
index.vue
pages/word/classification/index.vue
+4
-2
No files found.
pages/word/classification/add.vue
View file @
ec01d980
...
@@ -30,28 +30,7 @@
...
@@ -30,28 +30,7 @@
<Input
v-model=
"entity.englishName"
></Input>
<Input
v-model=
"entity.englishName"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"word_classification_status"
v-model=
"entity.status"
></Dictionary>
<!--
<InputNumber
v-model=
"entity.status"
></InputNumber>
-->
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('inheritCategoryId')"
prop=
"inheritCategoryId"
v-if=
"row.id"
>
<!--
<Checkbox
v-model=
"entity.inheritCategoryId"
></Checkbox>
-->
<RadioGroup
v-model=
"inherit"
>
<Radio
label=
"1"
>
是
</Radio>
<Radio
label=
"0"
>
否
</Radio>
</RadioGroup>
</FormItem>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
<FormItem
:label=
"l('templateId')"
prop=
"templateId"
>
<FormItem
:label=
"l('templateId')"
prop=
"templateId"
>
<Select
<Select
...
@@ -80,18 +59,33 @@
...
@@ -80,18 +59,33 @@
</Select>
</Select>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"word_classification_status"
v-model=
"entity.status"
type=
"radio"
></Dictionary>
<!--
<InputNumber
v-model=
"entity.status"
></InputNumber>
-->
</FormItem>
</Col>
<Col
:span=
"24"
>
<Col
:span=
"24"
>
<FormItem
:label=
"l('description')"
prop=
"description"
>
<FormItem
:label=
"l('description')"
prop=
"description"
>
<Input
v-model=
"entity.description"
type=
"textarea"
:rows=
"5"
></Input>
<Input
v-model=
"entity.description"
type=
"textarea"
:rows=
"5"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<!--
<Col
:span=
"24"
>
<Col
:span=
"12"
v-if=
"eid != 0"
>
<FormItem
:label=
"l('templateId')"
prop=
"templateId"
>
<FormItem
label=
"扩展属性"
prop=
"inheritCategoryId"
>
<Input
v-model=
"entity.templateId"
></Input>
<!--
<Checkbox
v-model=
"entity.inheritCategoryId"
></Checkbox>
-->
<RadioGroup
v-model=
"inherit"
>
<Radio
label=
"1"
>
继承
</Radio>
<Radio
label=
"0"
>
自定义
</Radio>
</RadioGroup>
</FormItem>
</FormItem>
</Col>
-->
</Col>
<Col
:span=
"24"
v-if=
"inherit ==
0
"
>
<Col
:span=
"24"
v-if=
"inherit ==
'0'
"
>
<Divider
orientation=
"left"
>
扩展属性
</Divider>
<Divider
orientation=
"left"
>
扩展属性
</Divider>
<Table
:columns=
"columns"
:data=
"checkList"
border
>
<Table
:columns=
"columns"
:data=
"checkList"
border
>
<template
slot-scope=
"
{ row, index }" slot="title">
<template
slot-scope=
"
{ row, index }" slot="title">
...
@@ -198,16 +192,15 @@ export default {
...
@@ -198,16 +192,15 @@ export default {
type
:
0
,
type
:
0
,
englishFullName
:
""
,
englishFullName
:
""
,
englishName
:
""
,
englishName
:
""
,
status
:
0
,
status
:
1
,
description
:
""
,
description
:
""
,
inheritCategoryId
:
"0"
,
//0否,是,row的id值
inheritCategoryId
:
"0"
,
//0否,是,row的id值
template
:
""
,
template
:
""
,
templateId
:
""
,
templateId
:
""
,
},
},
inherit
:
"0"
,
inherit
:
this
.
eid
?
"1"
:
"0"
,
rules
:
{
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}],
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}],
workFlowIds
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"change"
}],
},
},
checkList
:
[
checkList
:
[
{
{
...
@@ -341,6 +334,10 @@ export default {
...
@@ -341,6 +334,10 @@ export default {
row
:
Object
,
row
:
Object
,
eid
:
Number
,
eid
:
Number
,
},
},
created
()
{
// console.log(this.row.id);
console
.
log
(
this
.
eid
);
},
mounted
()
{
mounted
()
{
this
.
tebleSet
();
this
.
tebleSet
();
this
.
loadTemplate
();
this
.
loadTemplate
();
...
@@ -435,10 +432,10 @@ export default {
...
@@ -435,10 +432,10 @@ export default {
handleSubmit
()
{
handleSubmit
()
{
this
.
$refs
.
form
.
validate
((
v
)
=>
{
this
.
$refs
.
form
.
validate
((
v
)
=>
{
if
(
v
)
{
if
(
v
)
{
if
(
this
.
row
.
id
)
{
if
(
this
.
e
id
)
{
this
.
entity
.
upId
=
this
.
row
.
id
;
this
.
entity
.
upId
=
this
.
e
id
;
this
.
entity
.
level
=
this
.
row
.
level
;
this
.
entity
.
level
=
this
.
row
.
level
;
this
.
entity
.
inheritCategoryId
=
this
.
row
.
id
;
this
.
entity
.
inheritCategoryId
=
this
.
e
id
;
}
else
{
}
else
{
this
.
entity
.
upId
=
0
;
this
.
entity
.
upId
=
0
;
this
.
entity
.
level
=
1
;
this
.
entity
.
level
=
1
;
...
@@ -485,6 +482,5 @@ export default {
...
@@ -485,6 +482,5 @@ export default {
return
this
.
$t
(
key
);
return
this
.
$t
(
key
);
},
},
},
},
watch
:
{},
};
};
</
script
>
</
script
>
\ No newline at end of file
pages/word/classification/edit.vue
View file @
ec01d980
...
@@ -31,28 +31,7 @@
...
@@ -31,28 +31,7 @@
<Input
v-model=
"entity.englishName"
></Input>
<Input
v-model=
"entity.englishName"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"word_classification_status"
v-model=
"entity.status"
></Dictionary>
<!--
<InputNumber
v-model=
"entity.status"
></InputNumber>
-->
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('inheritCategoryId')"
prop=
"inheritCategoryId"
v-if=
"entity.upId != 0"
>
<!--
<Checkbox
v-model=
"entity.inheritCategoryId"
></Checkbox>
-->
<RadioGroup
v-model=
"inherit"
>
<Radio
label=
"1"
>
是
</Radio>
<Radio
label=
"0"
>
否
</Radio>
</RadioGroup>
</FormItem>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
<FormItem
:label=
"l('templateId')"
prop=
"templateId"
>
<FormItem
:label=
"l('templateId')"
prop=
"templateId"
>
<Select
<Select
...
@@ -81,17 +60,32 @@
...
@@ -81,17 +60,32 @@
</Select>
</Select>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"word_classification_status"
v-model=
"entity.status"
type=
"radio"
></Dictionary>
<!--
<InputNumber
v-model=
"entity.status"
></InputNumber>
-->
</FormItem>
</Col>
<Col
:span=
"24"
>
<Col
:span=
"24"
>
<FormItem
:label=
"l('description')"
prop=
"description"
>
<FormItem
:label=
"l('description')"
prop=
"description"
>
<Input
v-model=
"entity.description"
type=
"textarea"
:rows=
"5"
></Input>
<Input
v-model=
"entity.description"
type=
"textarea"
:rows=
"5"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<!--
<Col
:span=
"24"
>
<Col
:span=
"12"
v-if=
"eid != 0"
>
<FormItem
:label=
"l('templateId')"
prop=
"templateId"
>
<FormItem
label=
"扩展属性"
prop=
"inheritCategoryId"
>
<Input
v-model=
"entity.templateId"
></Input>
<!--
<Checkbox
v-model=
"entity.inheritCategoryId"
></Checkbox>
-->
<RadioGroup
v-model=
"inherit"
>
<Radio
label=
"1"
>
继承
</Radio>
<Radio
label=
"0"
>
自定义
</Radio>
</RadioGroup>
</FormItem>
</FormItem>
</Col>
-->
</Col>
<Col
:span=
"24"
v-if=
"inherit == 0"
>
<Col
:span=
"24"
v-if=
"inherit == 0"
>
<Divider
orientation=
"left"
>
扩展属性
</Divider>
<Divider
orientation=
"left"
>
扩展属性
</Divider>
<Table
:columns=
"columns"
:data=
"checkList"
border
>
<Table
:columns=
"columns"
:data=
"checkList"
border
>
...
@@ -189,10 +183,11 @@ export default {
...
@@ -189,10 +183,11 @@ export default {
return
{
return
{
parmsName
:
"app=material&eid=1&name=documentTemplate"
,
parmsName
:
"app=material&eid=1&name=documentTemplate"
,
codeList
:
[],
codeList
:
[],
entity
:
{},
entity
:
{
status
:
'1'
},
rules
:
{
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}],
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}],
workFlowIds
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"change"
}],
},
},
templates
:
[],
templates
:
[],
workFlows
:
[],
workFlows
:
[],
...
...
pages/word/classification/index.vue
View file @
ec01d980
...
@@ -223,13 +223,15 @@ export default {
...
@@ -223,13 +223,15 @@ export default {
res
,
res
,
0
,
0
,
(
u
)
=>
{
(
u
)
=>
{
u
.
expand
=
true
;
// console.log(u);
u
.
expanded
=
false
;
u
.
selected
=
false
;
u
.
selected
=
false
;
u
.
checked
=
false
;
u
.
checked
=
false
;
},
},
"upId"
"upId"
);
);
this
.
treeData
=
this
.
$u
.
clone
(
data
);
this
.
treeData
=
this
.
$u
.
clone
(
data
);
console
.
log
(
this
.
treeData
);
});
});
},
},
//查询
//查询
...
@@ -253,7 +255,7 @@ export default {
...
@@ -253,7 +255,7 @@ export default {
this
.
modal
=
true
;
this
.
modal
=
true
;
},
},
addrow
(
row
)
{
addrow
(
row
)
{
this
.
curId
=
0
;
this
.
curId
=
row
.
id
;
this
.
row
=
row
;
this
.
row
=
row
;
this
.
detail
=
()
=>
import
(
"./add"
);
this
.
detail
=
()
=>
import
(
"./add"
);
this
.
modal
=
true
;
this
.
modal
=
true
;
...
...
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