|
@@ -1,10 +1,16 @@
|
|
|
<template>
|
|
|
<div class="Box">
|
|
|
<div class="centerBox">
|
|
|
- <el-form :model="FormData" :rules="rules" ref="systemForm" label-width="0" class="demo-ruleForm">
|
|
|
+ <el-form
|
|
|
+ :model="FormData"
|
|
|
+ :rules="rules"
|
|
|
+ ref="systemForm"
|
|
|
+ label-width="0"
|
|
|
+ class="demo-ruleForm"
|
|
|
+ >
|
|
|
<div class="centerTitle">
|
|
|
<span class="TitleStyle">系统基础设置</span>
|
|
|
- <el-button v-is="['system_btn_save']" v-show="isShow" @click="save()">保存</el-button>
|
|
|
+ <el-button v-is="['system_btn_save']" @click="save()">保存</el-button>
|
|
|
</div>
|
|
|
<div class="boxList">
|
|
|
<span class="ListName">是否开启{{ accountGroupType }}</span>
|
|
@@ -17,8 +23,12 @@
|
|
|
<div class="boxList">
|
|
|
<span class="ListName">是否允许职员关联多账号</span>
|
|
|
<div class="riaStyle">
|
|
|
- <el-radio disabled v-model="FormData.UserOfficerMulti" :label="1">是</el-radio>
|
|
|
- <el-radio disabled v-model="FormData.UserOfficerMulti" :label="0">否</el-radio>
|
|
|
+ <el-radio disabled v-model="FormData.UserOfficerMulti" :label="1"
|
|
|
+ >是</el-radio
|
|
|
+ >
|
|
|
+ <el-radio disabled v-model="FormData.UserOfficerMulti" :label="0"
|
|
|
+ >否</el-radio
|
|
|
+ >
|
|
|
</div>
|
|
|
<div class="lineStyle"></div>
|
|
|
</div>
|
|
@@ -33,8 +43,12 @@
|
|
|
<div class="boxList">
|
|
|
<span class="ListName">是否开启严格数据权限</span>
|
|
|
<div class="riaStyle">
|
|
|
- <el-radio v-model="FormData.OpenAuthData" :label="1" disabled>是</el-radio>
|
|
|
- <el-radio v-model="FormData.OpenAuthData" :label="0" disabled>否</el-radio>
|
|
|
+ <el-radio v-model="FormData.OpenAuthData" :label="1" disabled
|
|
|
+ >是</el-radio
|
|
|
+ >
|
|
|
+ <el-radio v-model="FormData.OpenAuthData" :label="0" disabled
|
|
|
+ >否</el-radio
|
|
|
+ >
|
|
|
</div>
|
|
|
<div class="lineStyle"></div>
|
|
|
</div>
|
|
@@ -42,7 +56,10 @@
|
|
|
<span class="ListName">账号变更为闲置状态的不登录时间(天)</span>
|
|
|
<div class="riaStyle">
|
|
|
<el-form-item prop="UserIdledays">
|
|
|
- <el-input v-model="FormData.UserIdledays" placeholder="请输入"></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="FormData.UserIdledays"
|
|
|
+ placeholder="请输入"
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<div class="lineStyle"></div>
|
|
@@ -51,7 +68,10 @@
|
|
|
<span class="ListName">登录后锁定系统的不操作时间(分钟)</span>
|
|
|
<div class="riaStyle">
|
|
|
<el-form-item prop="LockMins">
|
|
|
- <el-input v-model="FormData.LockMins" placeholder="请输入"></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="FormData.LockMins"
|
|
|
+ placeholder="请输入"
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<div class="lineStyle"></div>
|
|
@@ -61,7 +81,11 @@
|
|
|
<div class="riaStyle1">
|
|
|
<div>
|
|
|
<el-form-item prop="PwdLengthBegin">
|
|
|
- <el-input class="ipt1" v-model="FormData.PwdLengthBegin" placeholder="最少位数"></el-input>
|
|
|
+ <el-input
|
|
|
+ class="ipt1"
|
|
|
+ v-model="FormData.PwdLengthBegin"
|
|
|
+ placeholder="最少位数"
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
<div class="lineStyle1"></div>
|
|
|
</div>
|
|
@@ -69,7 +93,11 @@
|
|
|
<span class="zhi">至</span>
|
|
|
<div>
|
|
|
<el-form-item prop="PwdLengthEnd">
|
|
|
- <el-input class="ipt2" v-model="FormData.PwdLengthEnd" placeholder="最多位数"></el-input>
|
|
|
+ <el-input
|
|
|
+ class="ipt2"
|
|
|
+ v-model="FormData.PwdLengthEnd"
|
|
|
+ placeholder="最多位数"
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
<div class="lineStyle2"></div>
|
|
|
</div>
|
|
@@ -79,7 +107,14 @@
|
|
|
<span class="ListName">密码组成结构</span>
|
|
|
<div class="riaStyle">
|
|
|
<el-checkbox-group v-model="checkedList" @change="PwdStrucChange">
|
|
|
- <el-checkbox v-for="(item, index) in PwdStrucList" :label="item.id" :key="index" :checked="item.isChecked">{{ item.name }}</el-checkbox>
|
|
|
+ <el-checkbox
|
|
|
+ v-for="(item, index) in PwdStrucList"
|
|
|
+ :label="item.id"
|
|
|
+ :key="index"
|
|
|
+ :min="1"
|
|
|
+ :checked="item.isChecked"
|
|
|
+ >{{ item.name }}</el-checkbox
|
|
|
+ >
|
|
|
</el-checkbox-group>
|
|
|
</div>
|
|
|
<div class="lineStyle"></div>
|
|
@@ -96,7 +131,10 @@
|
|
|
<span class="ListName">密码有效时长(天)</span>
|
|
|
<div class="riaStyle">
|
|
|
<el-form-item prop="PwdValidtime">
|
|
|
- <el-input v-model="FormData.PwdValidtime" placeholder="请输入"></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="FormData.PwdValidtime"
|
|
|
+ placeholder="请输入"
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<div class="lineStyle"></div>
|
|
@@ -105,7 +143,10 @@
|
|
|
<span class="ListName">允许试错次数(次数)</span>
|
|
|
<div class="riaStyle">
|
|
|
<el-form-item prop="PwdValidtime">
|
|
|
- <el-input v-model="FormData.LoginError" placeholder="请输入"></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="FormData.LoginError"
|
|
|
+ placeholder="请输入"
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<div class="lineStyle"></div>
|
|
@@ -114,7 +155,10 @@
|
|
|
<span class="ListName">密码找回联系方式</span>
|
|
|
<div class="riaStyle">
|
|
|
<el-form-item prop="PwdValidtime">
|
|
|
- <el-input v-model="FormData.PwdMessage" placeholder="请输入"></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="FormData.PwdMessage"
|
|
|
+ placeholder="请输入"
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<div class="lineStyle"></div>
|
|
@@ -122,16 +166,24 @@
|
|
|
<div class="boxList">
|
|
|
<span class="ListName">是否启用简易验证码</span>
|
|
|
<div class="riaStyle">
|
|
|
- <el-radio v-model="FormData.SimpleValidCodeMode" :label="1">是</el-radio>
|
|
|
- <el-radio v-model="FormData.SimpleValidCodeMode" :label="0">否</el-radio>
|
|
|
+ <el-radio v-model="FormData.SimpleValidCodeMode" :label="1"
|
|
|
+ >是</el-radio
|
|
|
+ >
|
|
|
+ <el-radio v-model="FormData.SimpleValidCodeMode" :label="0"
|
|
|
+ >否</el-radio
|
|
|
+ >
|
|
|
</div>
|
|
|
<div class="lineStyle" style="margin-bottom: 70px"></div>
|
|
|
</div>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
<div class="asideBox">
|
|
|
- <el-button v-is="['system_basic_page']" type="primary">系统基础设置</el-button>
|
|
|
- <el-button v-is="['system_logintac_page']" @click="gotoLogin">登陆策略</el-button>
|
|
|
+ <el-button v-is="['system_basic_page']" type="primary"
|
|
|
+ >系统基础设置</el-button
|
|
|
+ >
|
|
|
+ <el-button v-is="['system_logintac_page']" @click="gotoLogin"
|
|
|
+ >登陆策略</el-button
|
|
|
+ >
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -139,7 +191,7 @@
|
|
|
<script>
|
|
|
import { GetSystemSet, SaveSystemSet } from "@/api/systemConfiguration";
|
|
|
export default {
|
|
|
- data () {
|
|
|
+ data() {
|
|
|
return {
|
|
|
isShow: false,
|
|
|
FormData: {
|
|
@@ -156,7 +208,7 @@ export default {
|
|
|
PwdValidtime: 0,
|
|
|
LoginError: 0,
|
|
|
PwdMessage: "",
|
|
|
- SimpleValidCodeMode: 0
|
|
|
+ SimpleValidCodeMode: 0,
|
|
|
},
|
|
|
rules: {
|
|
|
UserIdledays: [
|
|
@@ -221,7 +273,7 @@ export default {
|
|
|
},
|
|
|
watch: {
|
|
|
FormData: {
|
|
|
- handler (val) {
|
|
|
+ handler(val) {
|
|
|
if (
|
|
|
JSON.stringify(val) != this.oldFormData &&
|
|
|
this.oldFormData != null
|
|
@@ -234,7 +286,7 @@ export default {
|
|
|
deep: true,
|
|
|
},
|
|
|
},
|
|
|
- created () {
|
|
|
+ created() {
|
|
|
this.getSystemSet();
|
|
|
// let SystemSetInfo = JSON.parse(this.$store.state.app.systemSet);
|
|
|
// if (SystemSetInfo) {
|
|
@@ -247,10 +299,10 @@ export default {
|
|
|
// }
|
|
|
},
|
|
|
methods: {
|
|
|
- gotoLogin () {
|
|
|
+ gotoLogin() {
|
|
|
this.$router.push("/LoginPolicy");
|
|
|
},
|
|
|
- getSystemSet () {
|
|
|
+ getSystemSet() {
|
|
|
GetSystemSet({})
|
|
|
.then((response) => {
|
|
|
const { returnData } = response;
|
|
@@ -264,7 +316,7 @@ export default {
|
|
|
reject(error);
|
|
|
});
|
|
|
},
|
|
|
- PwdStrucChange (data) {
|
|
|
+ PwdStrucChange(data) {
|
|
|
let count = 0;
|
|
|
for (let i = 0; i < data.length; i++) {
|
|
|
count = count + Number(data[i]);
|
|
@@ -272,7 +324,7 @@ export default {
|
|
|
}
|
|
|
console.log(this.FormData);
|
|
|
},
|
|
|
- getPwdStruc (data) {
|
|
|
+ getPwdStruc(data) {
|
|
|
let dataList = data.split("");
|
|
|
if (dataList[0] == 1) {
|
|
|
this.checkedList.push("1000");
|
|
@@ -287,28 +339,21 @@ export default {
|
|
|
this.checkedList.push("0001");
|
|
|
}
|
|
|
},
|
|
|
- save () {
|
|
|
- console.log(this.FormData.PwdStruc)
|
|
|
+ save() {
|
|
|
if (this.FormData.PwdStruc == 11) {
|
|
|
- this.FormData.PwdStruc = "0011"
|
|
|
- }
|
|
|
- else if (this.FormData.PwdStruc == 101) {
|
|
|
- this.FormData.PwdStruc = "0101"
|
|
|
- }
|
|
|
- else if (this.FormData.PwdStruc == 111) {
|
|
|
- this.FormData.PwdStruc = "0111"
|
|
|
- }
|
|
|
- else if (this.FormData.PwdStruc == 1) {
|
|
|
- this.FormData.PwdStruc = "0001"
|
|
|
- }
|
|
|
- else if (this.FormData.PwdStruc == 100) {
|
|
|
- this.FormData.PwdStruc = "0100"
|
|
|
- }
|
|
|
- else if (this.FormData.PwdStruc == 0) {
|
|
|
- this.FormData.PwdStruc = "0000"
|
|
|
- }
|
|
|
- else if (this.FormData.PwdStruc == 10) {
|
|
|
- this.FormData.PwdStruc = "0010"
|
|
|
+ this.FormData.PwdStruc = "0011";
|
|
|
+ } else if (this.FormData.PwdStruc == 101) {
|
|
|
+ this.FormData.PwdStruc = "0101";
|
|
|
+ } else if (this.FormData.PwdStruc == 111) {
|
|
|
+ this.FormData.PwdStruc = "0111";
|
|
|
+ } else if (this.FormData.PwdStruc == 1) {
|
|
|
+ this.FormData.PwdStruc = "0001";
|
|
|
+ } else if (this.FormData.PwdStruc == 100) {
|
|
|
+ this.FormData.PwdStruc = "0100";
|
|
|
+ } else if (this.FormData.PwdStruc == 0) {
|
|
|
+ this.FormData.PwdStruc = "0000";
|
|
|
+ } else if (this.FormData.PwdStruc == 10) {
|
|
|
+ this.FormData.PwdStruc = "0010";
|
|
|
}
|
|
|
this.$refs["systemForm"].validate((valid) => {
|
|
|
if (valid) {
|
|
@@ -325,7 +370,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
.catch((error) => {
|
|
|
- console.log(error)
|
|
|
+ console.log(error);
|
|
|
});
|
|
|
} else {
|
|
|
return false;
|