Commit 93f60f85 authored by 高宇's avatar 高宇

删除菜单

parent e7654826
...@@ -388,6 +388,7 @@ ...@@ -388,6 +388,7 @@
<el-form ref="form" :model="menuform" label-width="80px"> <el-form ref="form" :model="menuform" label-width="80px">
<el-form-item label="密码"> <el-form-item label="密码">
<el-input v-model="menuform.passWord" type="password" placeholder="请输入密码" /> <el-input v-model="menuform.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="handlemenuConfirm">确定</el-button> <el-button type="primary" @click="handlemenuConfirm">确定</el-button>
...@@ -419,6 +420,7 @@ export default { ...@@ -419,6 +420,7 @@ export default {
name: 'Draw', name: 'Draw',
data() { data() {
return { return {
twoerrorPassword: false,
errorPassword: false, errorPassword: false,
// 数据字典列表 // 数据字典列表
dictList: [], dictList: [],
...@@ -603,6 +605,7 @@ export default { ...@@ -603,6 +605,7 @@ export default {
} }
checkPermission(obj).then(res => { checkPermission(obj).then(res => {
if (res.code === 200) { if (res.code === 200) {
this.twoerrorPassword = false
batchAddition(this.canceList).then(res => { batchAddition(this.canceList).then(res => {
if (res.code === 200) { if (res.code === 200) {
this.loadingDetail = false this.loadingDetail = false
...@@ -615,12 +618,7 @@ export default { ...@@ -615,12 +618,7 @@ export default {
}) })
this.menuform.password = '' this.menuform.password = ''
} else if (res.code === null) { } else if (res.code === null) {
this.$message.warning(res.message) this.twoerrorPassword = true
this.loadingDetail = false
this.multipleSelection = false
this.monthDate = false
this.menu = false
this.menuform.password = ''
} }
}) })
}, },
...@@ -748,6 +746,7 @@ export default { ...@@ -748,6 +746,7 @@ export default {
console.log('canceList', this.canceList) console.log('canceList', this.canceList)
console.log('monthDate', this.monthDate) console.log('monthDate', this.monthDate)
if (this.monthDate) { if (this.monthDate) {
this.twoerrorPassword = false
this.menu = true this.menu = true
} }
if (!this.monthDate) { if (!this.monthDate) {
......
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