Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
lbw committed Mar 4, 2023
2 parents fd87fd2 + dccf617 commit 37981e6
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 24 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pig-ui",
"version": "3.6.5",
"version": "3.6.6",
"scripts": {
"dev": "vite --host",
"build": "vite build",
Expand Down
4 changes: 2 additions & 2 deletions src/api/admin/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ export function putObj(obj) {
})
}

export function isExsit(params) {
export function isExist(params) {
return request({
url: '/admin/user/check/exsit',
url: '/admin/user/check/exist',
method: 'get',
params: params
})
Expand Down
2 changes: 1 addition & 1 deletion src/config/website.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default {
version: "v3.6.5", // 控制首页显示的版本号
version: "v3.6.6", // 控制首页显示的版本号
logo: "PIG", // 侧边栏搜索的时候顶部展示的文案
key: "pig", //配置主键,目前用于存储
title: "PIG 快速开发框架",
Expand Down
6 changes: 3 additions & 3 deletions src/const/crud/admin/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* this software without specific prior written permission.
* Author: lengleng ([email protected])
*/
import { isExsit } from '@/api/admin/user'
import { isExist } from '@/api/admin/user'

export const validateUsername = (rule, value, callback) => {
if (!value) {
Expand All @@ -24,7 +24,7 @@ export const validateUsername = (rule, value, callback) => {
if (!flag) {
callback(new Error('用户名支持小写英文、数字'))
}
isExsit({ username: value }).then(response => {
isExist({ username: value }).then(response => {
if (window.boxType === 'edit') callback()
const result = response.data.data
if (result) {
Expand Down Expand Up @@ -60,7 +60,7 @@ export const checkPhone = (rule, value, callback) => {
}
}

isExsit({ phone: value }).then(response => {
isExist({ phone: value }).then(response => {
if (window.boxType === 'edit') callback()
const result = response.data.data
if (result) {
Expand Down
17 changes: 4 additions & 13 deletions src/page/login/userRegister.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,13 @@
<el-form-item prop="password">
<el-input
v-model="registerForm.password"
:type="passwordType"
size="small"
type="password"
auto-complete="off"
show-password
placeholder="请输入密码"
@keyup.enter.native="handleRegister"
>
<i
slot="suffix"
class="el-icon-view el-input__icon"
@click="showPassword"
></i>
<template #prefix>
<i class="icon-mima"></i>
</template>
Expand Down Expand Up @@ -87,8 +84,7 @@ export default {
trigger: 'blur'
}
]
},
passwordType: 'password'
}
}
},
created() {
Expand All @@ -100,11 +96,6 @@ export default {
validatePhone(rule, value, callback) {
checkPhone(rule, value, callback)
},
showPassword() {
this.passwordType === ''
? (this.passwordType = 'password')
: (this.passwordType = '')
},
handleRegister() {
this.$refs.registerForm.validate(valid => {
if (valid) {
Expand Down
2 changes: 1 addition & 1 deletion src/views/admin/dict/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
@size-change="sizeChange"
@current-change="currentChange"
@row-del="rowDel">
<template slot="menuLeft">
<template #menu-left>
<el-button
v-if="permissions.sys_dict_del"
class="filter-item"
Expand Down
2 changes: 1 addition & 1 deletion src/views/admin/param/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
@row-update="handleUpdate"
@row-save="handleSave"
@row-del="rowDel">
<template slot="menuLeft">
<template #menu-left>
<el-button
v-if="permissions.sys_publicparam_del"
class="filter-item"
Expand Down

0 comments on commit 37981e6

Please sign in to comment.