增加用户授权、公司授权 以及优化部门、角色、用户接口
This commit is contained in:
@@ -33,19 +33,19 @@
|
||||
},
|
||||
methods: {
|
||||
strength(v){
|
||||
var _level = 0
|
||||
let _level = 0;
|
||||
//长度
|
||||
var has_length = v.length >= 6
|
||||
const has_length = v.length >= 6;
|
||||
//包含数字
|
||||
var has_number = /\d/.test(v)
|
||||
const has_number = /\d/.test(v);
|
||||
//包含小写英文
|
||||
var has_lovercase = /[a-z]/.test(v)
|
||||
const has_lovercase = /[a-z]/.test(v);
|
||||
//包含大写英文
|
||||
var has_uppercase = /[A-Z]/.test(v)
|
||||
const has_uppercase = /[A-Z]/.test(v);
|
||||
//没有连续的字符3位
|
||||
var no_continuity = !/(\w)\1{2}/.test(v)
|
||||
const no_continuity = !/(\w)\1{2}/.test(v);
|
||||
//包含特殊字符
|
||||
var has_special = /[`~!@#$%^&*()_+<>?:"{},./;'[\]]/.test(v)
|
||||
const has_special = /[`~!@#$%^&*()_+<>?:"{},./;'[\]]/.test(v);
|
||||
|
||||
if(v.length <= 0){
|
||||
_level = 0
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<el-image :src="item.url?item.url:item" :zoom-rate="1.2" :max-scale="7" :min-scale="0.2" :hide-on-click-modal="true" :preview-teleported="true" :initial-index="index" :preview-src-list="imageList" class="avatar" fit="cover" />
|
||||
<div class="deleteIcon" @click.stop="imgDelete(index)">
|
||||
<div class="iconBox">
|
||||
<div class="iconBtn"><sc-icon-Delete /></div>
|
||||
<el-icon class="iconBtn"><sc-icon-Delete /></el-icon>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -175,6 +175,7 @@ export default {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user