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
dccec6a9
Commit
dccec6a9
authored
May 09, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部门编辑bug
parent
26b1a15a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
5 deletions
+23
-5
edit.vue
pages/basicData/department/edit.vue
+23
-5
No files found.
pages/basicData/department/edit.vue
View file @
dccec6a9
...
...
@@ -98,21 +98,38 @@ export default {
this
.
entity
.
property
[
1
]
==
1
||
this
.
entity
.
property
[
2
]
==
1
)
{
location
;
isProduction
=
1
;
}
else
{
isProduction
=
0
;
}
let
location
=
this
.
city_level
;
let
property
=
this
.
propertyList
.
join
(
","
);
let
property
=
this
.
propertyList
;
if
(
location
)
{
location
=
location
.
join
(
","
);
}
else
{
location
=
""
;
}
if
(
property
)
{
property
=
property
.
join
(
","
);
}
else
{
property
=
""
;
}
let
parentTitle
=
""
;
if
(
this
.
row
.
parent
)
{
parentTitle
=
this
.
row
.
parent
.
name
;
}
else
{
parentTitle
=
""
;
}
let
paramsdata
=
{
parentTitle
:
this
.
row
.
parent
.
nam
e
,
parentTitle
:
parentTitl
e
,
id
:
this
.
entity
.
id
,
name
:
this
.
entity
.
name
,
//部门名称
parent_Id
:
this
.
entity
.
parent_Id
,
//上级部门 [id]
code
:
this
.
entity
.
code
,
//部门编号
organization_Id
:
this
.
entity
.
organization_Id
,
//组织类型 [id]
location
:
location
.
join
(
","
)
,
//省市县
location
:
location
,
//省市县
isProduction
:
isProduction
,
//是否生产班组:1是,0否
property
:
property
//属性
};
...
...
@@ -144,6 +161,7 @@ export default {
},
watch
:
{
"row.id"
(
v
)
{
console
.
log
(
this
.
row
);
this
.
city_level
=
[];
let
model
=
{
name
:
this
.
row
.
name
,
...
...
@@ -154,7 +172,7 @@ export default {
property
:
this
.
row
.
property
,
id
:
this
.
row
.
id
,
organization_Id
:
this
.
row
.
organization_Id
,
organizationType
:
this
.
row
.
organizationType
,
organizationType
:
this
.
row
.
organizationType
};
if
(
!
model
.
property
)
{
model
.
property
=
""
;
...
...
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