Commit c6cacdef by ext.wangyuman1

Merge branch 'vue3-master' of https://e.coding.net/linkwechat/linkwechat-front/l…

…inkwechat into bs-dev-wangyuman
2 parents 79cdc416 6c016cb5
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
2023.xx.xx 2023.xx.xx
1. 1. 新增登录框显隐密码功能
2. 2. 新增登录和修改密码使用 RSA 加密传输
3. 3.
### v5.1.0 ### v5.1.0
......
...@@ -105,6 +105,7 @@ export default { ...@@ -105,6 +105,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
name: '', name: '',
noRepeat: true
}, },
customerList: [], customerList: [],
customerTotal: 0, customerTotal: 0,
......
...@@ -146,7 +146,7 @@ export default { ...@@ -146,7 +146,7 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
$selectedColor: #f6f7ff; $selectedColor: var(--color-light-10);
.drawing-item { .drawing-item {
position: relative; position: relative;
...@@ -272,13 +272,13 @@ $selectedColor: #f6f7ff; ...@@ -272,13 +272,13 @@ $selectedColor: #f6f7ff;
margin-right: 10px; margin-right: 10px;
} }
.el-form:not(.el-form--inline) .el-input, // .el-form:not(.el-form--inline) .el-input,
.el-form:not(.el-form--inline) .el-select, // .el-form:not(.el-form--inline) .el-select,
.el-form:not(.el-form--inline) .el-textarea, // .el-form:not(.el-form--inline) .el-textarea,
.el-form:not(.el-form--inline) .el-input-number, // .el-form:not(.el-form--inline) .el-input-number,
.el-form:not(.el-form--inline) .el-cascader, // .el-form:not(.el-form--inline) .el-cascader,
.el-form:not(.el-form--inline) .el-date-editor--daterange, // .el-form:not(.el-form--inline) .el-date-editor--daterange,
.el-form:not(.el-form--inline) .el-date-editor--datetimerange { // .el-form:not(.el-form--inline) .el-date-editor--datetimerange {
max-width: 100%; // max-width: 100%;
} // }
</style> </style>
...@@ -725,10 +725,12 @@ export default { ...@@ -725,10 +725,12 @@ export default {
//单选与多选的转换 //单选与多选的转换
switchChange(newX) { switchChange(newX) {
if (newX) { if (newX) {
this.activeData.label = '多选项'
this.activeData.tag = 'el-checkbox-group' this.activeData.tag = 'el-checkbox-group'
this.activeData.tagIcon = 'checkbox' this.activeData.tagIcon = 'checkbox'
this.activeData.defaultValue = [] this.activeData.defaultValue = []
} else { } else {
this.activeData.label = '单选项'
this.activeData.tag = 'el-radio-group' this.activeData.tag = 'el-radio-group'
this.activeData.tagIcon = 'radio' this.activeData.tagIcon = 'radio'
this.activeData.defaultValue = undefined this.activeData.defaultValue = undefined
......
...@@ -223,7 +223,7 @@ export const inputComponents = [ ...@@ -223,7 +223,7 @@ export const inputComponents = [
}, },
{ {
formCodeId: 8, formCodeId: 8,
label: '选项组', label: '单选项',
tag: 'el-radio-group', tag: 'el-radio-group',
_props: { _props: {
tag: 'div', tag: 'div',
......
...@@ -159,11 +159,11 @@ export default { ...@@ -159,11 +159,11 @@ export default {
} }
}) })
} }
console.log('confClone', confClone.formCodeId) Object.assign(dataObject, confClone)
// console.log('confClone', confClone.formCodeId)
if (confClone.layout != 'rowFormItem') { if (confClone.layout != 'rowFormItem') {
vModel(this, dataObject, confClone.defaultValue) vModel(this, dataObject, confClone.defaultValue)
} }
Object.assign(dataObject, confClone)
for (const key in dataObject._props) { for (const key in dataObject._props) {
if (Object.hasOwnProperty.call(dataObject._props, key)) { if (Object.hasOwnProperty.call(dataObject._props, key)) {
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<div class="companyName">{{ $store.user.companyName }}</div> <div class="companyName">{{ $store.user.companyName }}</div>
<div class="info"> <div class="info">
当前版本: 当前版本:
<span class="fr">{{ lwConfig._version || table.currentEdition }}</span> <span class="fr">{{ table.currentEdition }}</span>
</div> </div>
<div class="info"> <div class="info">
使用人数: 使用人数:
......
...@@ -15,13 +15,20 @@ ...@@ -15,13 +15,20 @@
<el-form-item prop="password"> <el-form-item prop="password">
<el-input <el-input
v-model="loginForm.password" v-model="loginForm.password"
type="password" :type="isPassword ? 'password' : 'text'"
auto-complete="off" auto-complete="off"
placeholder="密码" placeholder="密码"
@keyup.enter="handleLogin"> @keyup.enter="handleLogin">
<template #prefix> <template #prefix>
<svg-icon style="height: 33px" icon="password" class="el-input__icon input-icon" /> <svg-icon style="height: 33px" icon="password" class="el-input__icon input-icon" />
</template> </template>
<template #suffix>
<svg-icon
style="height: 33px"
:icon="isPassword ? 'eye' : 'eye-open'"
class="el-input__icon input-icon cp"
@click="isPassword = !isPassword" />
</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="code"> <el-form-item prop="code">
...@@ -75,6 +82,7 @@ export default { ...@@ -75,6 +82,7 @@ export default {
codeUrl: '', codeUrl: '',
wechatCodeUrl: '', wechatCodeUrl: '',
cookiePassword: '', cookiePassword: '',
isPassword: true,
loginForm: { loginForm: {
username: '', username: '',
password: '', password: '',
...@@ -162,7 +170,7 @@ export default { ...@@ -162,7 +170,7 @@ export default {
Cookies.remove('rememberMe') Cookies.remove('rememberMe')
} }
let loginForm = JSON.parse(JSON.stringify(this.loginForm)) let loginForm = JSON.parse(JSON.stringify(this.loginForm))
loginForm.password = encrypt(this.loginForm.password) // loginForm.password = encrypt(this.loginForm.password)
this.$store this.$store
.Login(loginForm) .Login(loginForm)
.then(() => { .then(() => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!