Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
cca788a9
authored
Aug 09, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
关闭优化
parent
b035589d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
4 deletions
src/views/Info/subAccountAdd.vue
src/views/Info/subAccountEdit.vue
src/views/Info/subAccountAdd.vue
View file @
cca788a9
...
...
@@ -41,7 +41,7 @@
</ul>
</section>
<el-row>
<el-button
@
click=
"
$router.push('/subAccount'
)"
>
取消
</el-button>
<el-button
@
click=
"
canel(
)"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm('ruleForm')"
>
确 定
</el-button>
</el-row>
</el-form>
...
...
@@ -137,6 +137,45 @@ export default {
}
},
/**
* 取消
*/
canel
()
{
this
.
closetab
(
'/subAccountadd'
)
},
/**
* 关闭当前页面
* @param path
*/
closetab
(
path
)
{
let
tab_arr
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'tabs'
))
for
(
var
i
=
0
;
i
<
tab_arr
.
length
;
i
++
)
{
if
(
tab_arr
[
i
].
path
==
path
)
{
tab_arr
.
splice
(
i
,
1
);
sessionStorage
.
setItem
(
'tabs'
,
JSON
.
stringify
(
tab_arr
));
if
(
path
==
this
.
$route
.
path
)
{
if
(
i
==
0
)
{
this
.
$router
.
push
({
path
:
"/"
})
}
else
{
if
(
tab_arr
[
i
-
1
].
query
)
{
this
.
$router
.
push
({
path
:
tab_arr
[
i
-
1
].
path
,
query
:
tab_arr
[
i
-
1
].
query
})
}
else
{
this
.
$router
.
push
({
path
:
tab_arr
[
i
-
1
].
path
,
})
}
}
}
break
;
}
}
this
.
$router
.
push
(
'/subAccount'
);
},
/**
* 获取当前用户的权限菜单
*/
getMenu
()
{
...
...
@@ -228,7 +267,7 @@ export default {
type
:
'success'
});
setTimeout
(()
=>
{
this
.
$router
.
push
(
'/subAccount
'
)
this
.
closetab
(
'/subAccountadd
'
)
},
2000
)
}
else
{
this
.
formParam
.
user_rule
=
JSON
.
parse
(
this
.
formParam
.
user_rule
);
...
...
src/views/Info/subAccountEdit.vue
View file @
cca788a9
...
...
@@ -41,7 +41,7 @@
</ul>
</section>
<el-row>
<el-button
@
click=
"
$router.push('/subAccount'
)"
>
取消
</el-button>
<el-button
@
click=
"
canel(
)"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm('ruleForm')"
>
确 定
</el-button>
</el-row>
</el-form>
...
...
@@ -107,6 +107,45 @@ export default {
this
.
getMessageMenu
();
},
methods
:
{
/**
* 取消
*/
canel
()
{
this
.
closetab
(
'/subAccountEdit'
)
},
/**
* 关闭当前页面
* @param path
*/
closetab
(
path
)
{
let
tab_arr
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'tabs'
))
for
(
var
i
=
0
;
i
<
tab_arr
.
length
;
i
++
)
{
if
(
tab_arr
[
i
].
path
==
path
)
{
tab_arr
.
splice
(
i
,
1
);
sessionStorage
.
setItem
(
'tabs'
,
JSON
.
stringify
(
tab_arr
));
if
(
path
==
this
.
$route
.
path
)
{
if
(
i
==
0
)
{
this
.
$router
.
push
({
path
:
"/"
})
}
else
{
if
(
tab_arr
[
i
-
1
].
query
)
{
this
.
$router
.
push
({
path
:
tab_arr
[
i
-
1
].
path
,
query
:
tab_arr
[
i
-
1
].
query
})
}
else
{
this
.
$router
.
push
({
path
:
tab_arr
[
i
-
1
].
path
,
})
}
}
}
break
;
}
}
this
.
$router
.
push
(
'/subAccount'
);
},
getData
()
{
this
.
$http
(
'GET'
,
"/api/subAccount/getSubAccountInfo"
,
{
sbat_id
:
this
.
formParam
.
sbat_id
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
...
...
@@ -276,7 +315,7 @@ export default {
type
:
'success'
});
setTimeout
(()
=>
{
this
.
$router
.
push
(
'/subAccoun
t'
)
this
.
closetab
(
'/subAccountEdi
t'
)
},
2000
)
}
else
{
this
.
$message
({
...
...
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