Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-manage-ui
Commits
b8c8a74f
Commit
b8c8a74f
authored
Mar 23, 2023
by
赵伟庚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[feat](配置管理): 首选项配置&访问规则管理列表接口联调
parent
765100c1
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
255 additions
and
232 deletions
+255
-232
src/assets/css/index.css
src/assets/css/index.css
+1
-0
src/page/main/config/accessRule/index.vue
src/page/main/config/accessRule/index.vue
+217
-223
src/page/main/config/preference/index.vue
src/page/main/config/preference/index.vue
+33
-5
src/page/main/home-config/recommend/edit/index.vue
src/page/main/home-config/recommend/edit/index.vue
+3
-3
src/page/main/home-config/recommend/index.vue
src/page/main/home-config/recommend/index.vue
+1
-1
No files found.
src/assets/css/index.css
View file @
b8c8a74f
...
@@ -282,6 +282,7 @@ div {
...
@@ -282,6 +282,7 @@ div {
color
:
#404a62
;
color
:
#404a62
;
text-align
:
center
;
text-align
:
center
;
padding
:
0
16px
;
padding
:
0
16px
;
line-height
:
1
;
}
}
.dialog_box
.el-dialog__body
{
.dialog_box
.el-dialog__body
{
padding
:
24px
;
padding
:
24px
;
...
...
src/page/main/config/accessRule/index.vue
View file @
b8c8a74f
This diff is collapsed.
Click to expand it.
src/page/main/config/preference/index.vue
View file @
b8c8a74f
...
@@ -159,7 +159,7 @@
...
@@ -159,7 +159,7 @@
<el-input
placeholder=
"请输入分钟数"
v-model.number=
"registerFormData.login_lock_time"
></el-input>
<el-input
placeholder=
"请输入分钟数"
v-model.number=
"registerFormData.login_lock_time"
></el-input>
</el-form-item>
</el-form-item>
<span>
分钟
</span>
<span>
分钟
</span>
<el-button
type=
"primary"
>
一键还原受限
</el-button>
<el-button
type=
"primary"
@
click=
"restoreLimited"
>
一键还原受限
</el-button>
</div>
</div>
<bg-form-gap
title=
"注册配置"
></bg-form-gap>
<bg-form-gap
title=
"注册配置"
></bg-form-gap>
<el-form-item
label=
"允许注册"
prop=
"register_config_state"
>
<el-form-item
label=
"允许注册"
prop=
"register_config_state"
>
...
@@ -174,6 +174,19 @@
...
@@ -174,6 +174,19 @@
</div>
</div>
</div>
</div>
</div>
</div>
<el-dialog
class=
"dialog_box"
title=
"提示"
v-model=
"restoreDialog"
width=
"420px"
>
<div>
该操作将还原所有锁定账号和输错次数,是否继续?
</div>
<
template
v-slot:footer
>
<div
class=
"apaas_button"
>
<el-button
type=
"default"
@
click=
"restoreDialog = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"confirm"
>
确 定
</el-button>
</div>
</
template
>
</el-dialog>
</div>
</div>
</template>
</template>
...
@@ -295,8 +308,7 @@ const state = reactive({
...
@@ -295,8 +308,7 @@ const state = reactive({
},
},
//选中项索引
//选中项索引
activeIndex
:
1
,
activeIndex
:
1
,
//首选项配置
restoreDialog
:
false
,
preferenceConfig
:
{},
});
});
const
{
const
{
authorizeFormData
,
authorizeFormData
,
...
@@ -306,7 +318,7 @@ const {
...
@@ -306,7 +318,7 @@ const {
registerFormData
,
registerFormData
,
registerRules
,
registerRules
,
activeIndex
,
activeIndex
,
preferenceConfi
g
,
restoreDialo
g
,
}
=
toRefs
(
state
);
}
=
toRefs
(
state
);
onBeforeMount
(()
=>
{
onBeforeMount
(()
=>
{
getPreferenceConfig
();
getPreferenceConfig
();
...
@@ -329,7 +341,6 @@ const getPreferenceConfig = () => {
...
@@ -329,7 +341,6 @@ const getPreferenceConfig = () => {
Object
.
keys
(
state
.
registerFormData
).
forEach
((
item
)
=>
{
Object
.
keys
(
state
.
registerFormData
).
forEach
((
item
)
=>
{
state
.
registerFormData
[
item
]
=
data
[
item
];
state
.
registerFormData
[
item
]
=
data
[
item
];
});
});
state
.
preferenceConfig
=
res
.
data
.
data
;
}
else
{
}
else
{
ElMessage
.
error
(
res
.
data
.
data
);
ElMessage
.
error
(
res
.
data
.
data
);
}
}
...
@@ -378,6 +389,7 @@ const save = () => {
...
@@ -378,6 +389,7 @@ const save = () => {
});
});
}
}
};
};
// 请求接口发送消息
const
postData
=
(
url
,
params
)
=>
{
const
postData
=
(
url
,
params
)
=>
{
axios
.
post
(
url
,
params
).
then
((
res
)
=>
{
axios
.
post
(
url
,
params
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
...
@@ -388,6 +400,22 @@ const postData = (url, params) => {
...
@@ -388,6 +400,22 @@ const postData = (url, params) => {
}
}
});
});
};
};
// 一键还原受限
const
restoreLimited
=
()
=>
{
state
.
restoreDialog
=
true
}
const
confirm
=
()
=>
{
axios
.
post
(
`/apaas/system/v5/sysOptions/reStartConfig`
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
ElMessage
.
success
(
res
.
data
.
msg
)
state
.
restoreDialog
=
false
}
else
{
ElMessage
.
error
(
res
.
data
.
data
)
}
})
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
src/page/main/home-config/recommend/edit/index.vue
View file @
b8c8a74f
...
@@ -642,12 +642,12 @@ const {
...
@@ -642,12 +642,12 @@ const {
</
style
>
</
style
>
<
style
>
<
style
>
.select_dialog
{
.select_dialog
{
margin-top
:
8
0px
;
margin-top
:
8
vh
;
}
}
.
el-
dialog
.el-dialog__body
{
.
select_
dialog
.el-dialog__body
{
padding
:
0
;
padding
:
0
;
}
}
.
el-
dialog
.el-dialog__footer
{
.
select_
dialog
.el-dialog__footer
{
padding
:
16px
;
padding
:
16px
;
}
}
</
style
>
</
style
>
src/page/main/home-config/recommend/index.vue
View file @
b8c8a74f
<!--
banner
管理 -->
<!--
推荐
管理 -->
<
template
>
<
template
>
<div
class=
"detail_container"
>
<div
class=
"detail_container"
>
<bg-breadcrumb></bg-breadcrumb>
<bg-breadcrumb></bg-breadcrumb>
...
...
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