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
e793effb
Commit
e793effb
authored
Apr 21, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部门,人员
parent
afcbf600
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
13 deletions
+28
-13
Addrow.vue
pages/basicData/department/Addrow.vue
+14
-6
add.vue
pages/basicData/department/add.vue
+11
-4
edit.vue
pages/basicData/department/edit.vue
+3
-3
No files found.
pages/basicData/department/Addrow.vue
View file @
e793effb
...
...
@@ -68,7 +68,8 @@ export default {
citys
:
citys
(),
entity
:
{
organization_Id
:
0
,
organization_Type
:
""
organization_Type
:
""
,
property
:
[]
},
rules
:
{
title02
:
[
...
...
@@ -94,10 +95,17 @@ export default {
handleSubmit
()
{
this
.
$refs
[
"form"
].
validate
(
value
=>
{
if
(
value
)
{
if
(
this
.
entity
.
property
[
0
]
==
1
||
this
.
entity
.
property
[
1
]
==
1
)
{
this
.
entity
.
isProduction
=
1
;
let
property
=
""
;
if
(
this
.
entity
.
property
)
{
if
(
this
.
entity
.
property
[
0
]
==
1
||
this
.
entity
.
property
[
1
]
==
1
)
{
this
.
entity
.
isProduction
=
1
;
}
else
{
this
.
entity
.
isProduction
=
0
;
}
property
=
this
.
entity
.
property
.
join
;
}
else
{
this
.
entity
.
isProduction
=
0
;
this
.
entity
.
isProduction
=
''
;
property
=
""
;
}
let
paramsdata
=
{
name
:
this
.
entity
.
title02
,
//部门名称
...
...
@@ -106,8 +114,8 @@ export default {
organization_Id
:
this
.
entity
.
organization_Id
,
//组织类型 [id]
location
:
this
.
entity
.
location
,
//省市县
isProduction
:
this
.
entity
.
isProduction
,
//是否生产班组:1是,0否
property
:
this
.
entity
.
property
.
join
()
,
//属性
parentTitle
:
this
.
entity
.
name
,
//上级名称
property
:
property
,
//属性
parentTitle
:
this
.
entity
.
name
//上级名称
};
Api
.
create
(
paramsdata
)
.
then
(
r
=>
{
...
...
pages/basicData/department/add.vue
View file @
e793effb
...
...
@@ -84,10 +84,17 @@ export default {
handleSubmit
()
{
this
.
$refs
[
"form"
].
validate
(
value
=>
{
if
(
value
)
{
if
(
this
.
entity
.
property
[
0
]
==
1
||
this
.
entity
.
property
[
1
]
==
1
)
{
this
.
entity
.
isProduction
=
1
;
let
property
=
""
;
if
(
this
.
entity
.
property
)
{
if
(
this
.
entity
.
property
[
0
]
==
1
||
this
.
entity
.
property
[
1
]
==
1
)
{
this
.
entity
.
isProduction
=
1
;
}
else
{
this
.
entity
.
isProduction
=
0
;
}
property
=
this
.
entity
.
property
.
join
;
}
else
{
this
.
entity
.
isProduction
=
0
;
this
.
entity
.
isProduction
=
""
;
property
=
""
;
}
let
location
;
if
(
this
.
entity
.
location
)
{
...
...
@@ -102,7 +109,7 @@ export default {
organization_Id
:
this
.
entity
.
organization_Id
,
//组织类型 [id]
location
:
location
,
//省市县
isProduction
:
this
.
entity
.
isProduction
,
//是否生产班组:1是,0否
property
:
this
.
entity
.
property
.
join
()
,
//属性
property
:
property
,
//属性
parentTitle
:
""
};
Api
.
create
(
paramsdata
)
...
...
pages/basicData/department/edit.vue
View file @
e793effb
...
...
@@ -133,7 +133,7 @@ export default {
},
watch
:
{
row
(
v
)
{
console
.
log
(
v
)
this
.
entity
=
this
.
row
;
if
(
v
.
property
==
"1,2"
)
{
this
.
entity
.
property
=
[
"1"
,
"2"
];
...
...
@@ -141,8 +141,8 @@ export default {
this
.
entity
.
property
=
[
"1"
];
}
else
if
(
v
.
property
==
"2"
)
{
this
.
entity
.
property
=
[
"2"
];
}
else
{
this
.
entity
.
property
=
[]
}
else
{
this
.
entity
.
property
=
[];
}
this
.
city_level
=
this
.
row
.
location
.
split
(
","
);
}
...
...
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