Commit cf025967 authored by 高宇's avatar 高宇

删除菜单

parent 93f60f85
...@@ -377,6 +377,7 @@ ...@@ -377,6 +377,7 @@
<el-form ref="form" :model="loginform" label-width="80px"> <el-form ref="form" :model="loginform" label-width="80px">
<el-form-item label="密码"> <el-form-item label="密码">
<el-input v-model="loginform.password" type="password" placeholder="请输入密码" /> <el-input v-model="loginform.password" type="password" placeholder="请输入密码" />
<span v-if="twoerrorPassword" style="font-size: 14px;color: red">密码错误,请重试</span>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="handleConfirm">确定</el-button> <el-button type="primary" @click="handleConfirm">确定</el-button>
...@@ -400,6 +401,7 @@ export default { ...@@ -400,6 +401,7 @@ export default {
name: 'Draw', name: 'Draw',
data() { data() {
return { return {
twoerrorPassword: false,
// 字典数据 // 字典数据
dictList: [], dictList: [],
number: '', number: '',
...@@ -534,6 +536,7 @@ export default { ...@@ -534,6 +536,7 @@ export default {
handleClose() { handleClose() {
this.openLogin = false this.openLogin = false
this.openHandle = true this.openHandle = true
this.twoerrorPassword = false
this.loadingDetail = false this.loadingDetail = false
}, },
// 判断时间范围 是否是一个月以内的的时间 // 判断时间范围 是否是一个月以内的的时间
...@@ -580,6 +583,7 @@ export default { ...@@ -580,6 +583,7 @@ export default {
}, },
// 菜单权限验证确定 // 菜单权限验证确定
handleConfirm() { handleConfirm() {
this.twoerrorPassword = false
const obj = { const obj = {
passWord: this.loginform.password passWord: this.loginform.password
} }
...@@ -588,6 +592,7 @@ export default { ...@@ -588,6 +592,7 @@ export default {
this.openLogin = false this.openLogin = false
batchAddition(this.canceList).then(res => { batchAddition(this.canceList).then(res => {
if (res.code === 200) { if (res.code === 200) {
this.twoerrorPassword = false
this.loadingDetail = false this.loadingDetail = false
this.openHandle = false this.openHandle = false
this.isCheck = false this.isCheck = false
...@@ -598,10 +603,7 @@ export default { ...@@ -598,10 +603,7 @@ export default {
} }
}) })
} else if (res.code === null) { } else if (res.code === null) {
this.$message.warning(res.message) this.twoerrorPassword = true
this.loginform.password = ''
this.openHandle = true
this.openLogin = false
} }
}) })
}, },
......
...@@ -585,6 +585,7 @@ export default { ...@@ -585,6 +585,7 @@ export default {
this.menu = false this.menu = false
this.loadingDetail = false this.loadingDetail = false
this.openHandle = true this.openHandle = true
this.twoerrorPassword = false
this.menuform.passWord = '' this.menuform.passWord = ''
}, },
handleClose() { handleClose() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment