Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_backend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhang Xiaojie
fns_backend
Commits
e7802e2a
Commit
e7802e2a
authored
Sep 26, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复新增管理员时的bug
parent
f32f5f61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
13 deletions
+17
-13
addNormalManagerModal.vue
src/components/UserManage/addNormalManagerModal.vue
+17
-13
No files found.
src/components/UserManage/addNormalManagerModal.vue
View file @
e7802e2a
...
...
@@ -215,13 +215,12 @@ export default Vue.extend({
};
if
(
this
.
modalMode
===
eAddManagerModalMode
.
create
)
{
}
else
if
(
this
.
modalMode
===
eAddManagerModalMode
.
edit
)
{
delete
rules
.
name
delete
rules
.
tel
delete
rules
.
name
;
delete
rules
.
tel
;
}
console
.
log
(
rules
);
return
rules
;
},
levelOptions
()
{
...
...
@@ -488,6 +487,18 @@ export default Vue.extend({
}
});
},
async
handleOutLetName
(
newV
:
string
)
{
if
(
newV
!==
""
)
{
const
ret
=
await
AddressService
.
getInstance
().
getOutlet
({
outlet_name
:
newV
,
});
if
(
ret
.
code
===
200
)
{
this
.
form
.
location
=
ret
.
data
.
location
;
}
}
else
{
this
.
form
.
location
=
""
;
}
},
},
watch
:
{
show
(
newV
)
{
...
...
@@ -505,16 +516,9 @@ export default Vue.extend({
if
(
newV
[
3
].
value
!==
undefined
)
{
this
.
outletName
=
newV
[
3
].
options
.
find
((
i
)
=>
i
.
ID
===
newV
[
3
].
value
)?.
Name
||
""
;
this
.
handleOutLetName
(
this
.
outletName
);
}
else
{
this
.
form
.
location
=
""
;
}
},
async
outletName
(
newV
,
oldV
)
{
const
ret
=
await
AddressService
.
getInstance
().
getOutlet
({
outlet_name
:
newV
,
});
if
(
ret
.
code
===
200
)
{
this
.
form
.
location
=
ret
.
data
.
location
;
this
.
outletName
=
""
;
}
},
},
...
...
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