增加个人绑定配置
This commit is contained in:
parent
196d8cbb91
commit
fc5453019f
@ -223,7 +223,6 @@ export default {
|
||||
template:{
|
||||
url: `${config.API_URL}/company.import.template`,
|
||||
name: "公司资料导入模版",
|
||||
// responseType: 'arraybuffer',
|
||||
post: async function (params) {
|
||||
return await http.get(this.url,params,{responseType: 'arraybuffer'});
|
||||
}
|
||||
@ -446,4 +445,20 @@ export default {
|
||||
},
|
||||
},
|
||||
},
|
||||
sso:{
|
||||
setup:{
|
||||
url: `${config.API_URL}/sys.single.login.config`,
|
||||
name: "单点登录配置",
|
||||
post: async function (params) {
|
||||
return await http.post(this.url, params);
|
||||
}
|
||||
},
|
||||
get:{
|
||||
url: `${config.API_URL}/sys.single.login.config.get`,
|
||||
name: "获取单点登录配置",
|
||||
post: async function (params) {
|
||||
return await http.post(this.url, params);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@ -73,14 +73,14 @@ export default {
|
||||
},
|
||||
},
|
||||
timeoutConfig:{
|
||||
url: `${config.API_URL}/system.login.timeout.config`,
|
||||
url: `${config.API_URL}/sys.login.timeout`,
|
||||
name: "登录超时退出配置",
|
||||
post: async function (params) {
|
||||
return await http.post(this.url, params);
|
||||
},
|
||||
},
|
||||
timeoutGet:{
|
||||
url: `${config.API_URL}/system.login.timeout.get`,
|
||||
url: `${config.API_URL}/sys.login.timeout.config`,
|
||||
name: "获取登录超时时间",
|
||||
post: async function (params) {
|
||||
return await http.post(this.url, params);
|
||||
|
||||
22
src/assets/icons/Fingerprint.vue
Normal file
22
src/assets/icons/Fingerprint.vue
Normal file
File diff suppressed because one or more lines are too long
@ -57,6 +57,9 @@
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.el-tabs__active-bar{
|
||||
bottom: 10px;
|
||||
}
|
||||
.el-tabs__header{
|
||||
.el-tabs__nav{
|
||||
padding: 0 20px;
|
||||
@ -153,6 +156,7 @@
|
||||
|
||||
/** 弹款的头部配置 */
|
||||
.el-dialog .el-dialog__header{margin-right: 0;padding-bottom: 20px;box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.06);}
|
||||
.el-dialog .el-dialog__footer{padding-top: 20px;box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, 0.06);}
|
||||
|
||||
/* 覆盖tinymce样式 */
|
||||
.sceditor .tox-tinymce {border: 1px solid #DCDFE6;border-radius: 0;}
|
||||
|
||||
@ -178,6 +178,7 @@
|
||||
}
|
||||
.viewTitle{
|
||||
flex-basis: 35px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.viewCom{
|
||||
flex: 1;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<el-container class="mainNoBack userBox">
|
||||
<el-aside class="userAside" style="width: 226px;">
|
||||
<el-aside class="userAside" style="width: 220px;">
|
||||
<el-container>
|
||||
<el-main class="nopadding">
|
||||
<el-menu class="menu mainMenu" :default-active="page">
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<el-container class="mainNoBack userBox">
|
||||
<el-aside class="userAside" style="width: 226px;">
|
||||
<el-aside class="userAside" style="width: 220px;">
|
||||
<el-container>
|
||||
<el-header style="height: auto;display: block;">
|
||||
<div class="user-info-top">
|
||||
|
||||
@ -46,11 +46,23 @@
|
||||
</el-radio-group>
|
||||
</div>
|
||||
</div>
|
||||
<div class="boxView boxViewCenter bandTime">
|
||||
<div class="leftBox">系统超时安全自动退出时间</div>
|
||||
<div class="rightBox">
|
||||
<div class="boxInput">
|
||||
<el-input onkeyup="value=value.replace(/[^\d]/g,'')" @change="loginTime" controls-position="right" v-model="timeout" placeholder="请输入时间" style="width: 260px">
|
||||
<template #suffix>分钟</template>
|
||||
</el-input>
|
||||
</div>
|
||||
<div class="tip">光标移出自动更新退出时间。</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="title">OA能力</div>
|
||||
<div class="boxView boxViewCenter">
|
||||
<div class="leftBox">启用阿里企业邮箱功能</div>
|
||||
<div class="rightBox">
|
||||
<el-radio-group v-model="multipleLocation" @change="multipleLocationSet">
|
||||
<!-- v-model="multipleLocation" @change="multipleLocationSet"-->
|
||||
<el-radio-group>
|
||||
<el-radio :label="true">启用</el-radio>
|
||||
<el-radio :label="false">禁用</el-radio>
|
||||
</el-radio-group>
|
||||
@ -59,10 +71,20 @@
|
||||
<div class="title">使用Passkey</div>
|
||||
<div class="boxView boxViewCenter">
|
||||
<div class="nameBox passkeyView">
|
||||
<el-button type="primary" :size="size" @click="createPasskey">添加指纹</el-button>
|
||||
<el-button type="primary" :size="size" @click="createPasskey">添加passKey</el-button>
|
||||
<div class="msg">借助 Passkey,你可以使用自己的指纹、面孔、屏锁设置或实体安全密钥登录你的账号。请仅在你自有的设备上设置 Passkey。</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="boxView boxViewCenter">
|
||||
<div class="itemMain">
|
||||
<div class="boxCom" v-for="item in passKeyList" :key="item">
|
||||
<i class="icon"><sc-icon-Fingerprint /></i>
|
||||
<span class="name">
|
||||
<el-input v-model="item.alias" @change="passKeyAlias(item)" placeholder="请输入"></el-input>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</el-card>
|
||||
<el-dialog
|
||||
@ -112,7 +134,10 @@ export default {
|
||||
bind_wechat_error:'',
|
||||
|
||||
multipleLocation:false,
|
||||
timeout:'10',
|
||||
userInfo:{},
|
||||
|
||||
passKeyList:[],
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@ -124,7 +149,9 @@ export default {
|
||||
this.userInfo = userInfo;
|
||||
|
||||
this.getUserInfo();
|
||||
// this.getSso();
|
||||
this.getSso();
|
||||
this.getTimeOut();
|
||||
this.getPassKeyList();
|
||||
// 获取新消息
|
||||
// this.$socketApi.getSock(this.getWsResult);
|
||||
},
|
||||
@ -135,6 +162,19 @@ export default {
|
||||
|
||||
},
|
||||
methods:{
|
||||
async getTimeOut() {
|
||||
const res = await this.$API.user.timeoutGet.post();
|
||||
if (res.code == 200) {
|
||||
this.timeout = res.data.options && res.data.options.timeout?res.data.options.timeout:this.timeout;
|
||||
}
|
||||
},
|
||||
async loginTime(e) {
|
||||
const res = await this.$API.user.timeoutConfig.post({timeout:e});
|
||||
if (res.code == 200) {
|
||||
this.$message.success('设置成功');
|
||||
}
|
||||
},
|
||||
|
||||
async getSso(){
|
||||
const res = await this.$API.system.sso.get.post();
|
||||
if(res.code == 200){
|
||||
@ -241,6 +281,22 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
// 获取指纹列表
|
||||
async getPassKeyList() {
|
||||
const res = await this.$API.system.user.publishList.post();
|
||||
if(res.code == 200){
|
||||
this.passKeyList = res.data;
|
||||
}
|
||||
},
|
||||
// 修改指纹名称
|
||||
async passKeyAlias(em) {
|
||||
let params = {
|
||||
id:em.id,
|
||||
alias:em.alias
|
||||
}
|
||||
await this.$API.system.user.renameAlias.post(params);
|
||||
},
|
||||
|
||||
// 创建通行秘钥
|
||||
async createPasskey() {
|
||||
try {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user