Commit de74ef55 authored by 黄奎's avatar 黄奎

菜单查询调整

parent 84869cfa
......@@ -6,7 +6,7 @@
<ul>
<li>
<span><em>名称</em>
<el-input v-model='msg.MenuName' class="permiss-input" placeholder="请输入内容"></el-input>
<el-input v-model='msg.MenuName' class="permiss-input" placeholder="请输入内容" @keyup.native="resetPageIndex(),getList()"></el-input>
</span>
</li>
<li>
......@@ -190,7 +190,6 @@
callback();
}
}
return {
dialogTitle: '',
DataList: '',
......@@ -235,8 +234,8 @@
MenuStyleIcon: '',
MenuStyleColor: '',
Sort: 0,
menutype:1,
GroupingCode:''
menutype: 1,
GroupingCode: ''
},
rules: {
Sort: [{
......@@ -258,7 +257,7 @@
validator: validateParent,
trigger: 'change'
}],
menutype:[{
menutype: [{
required: true,
message: '请选择系统菜单',
trigger: 'change'
......@@ -303,7 +302,6 @@
}
}, err => {})
},
getList() { //列表查询
this.apipost('admin_get_SysMenuGetPageList', this.msg, res => {
if (res.data.resultCode == 1) {
......@@ -346,7 +344,6 @@
this.$message.error(res.data.message);
}
}, err => {})
},
updateData(index, id) { //修改
this.apipost('admin_get_SysMenuGet', {
......@@ -360,7 +357,7 @@
this.addMsg.Sort = updateList.Sort
this.addMsg.GroupingCode = updateList.GroupingCode
this.addMsg.MenuUrl = updateList.MenuUrl
this.addMsg.menutype = updateList.MenuType?updateList.MenuType:1
this.addMsg.menutype = updateList.MenuType ? updateList.MenuType : 1
this.addMsg.MenuStatus = updateList.MenuStatus.toString()
let style = JSON.parse(updateList.MenuStyle)
this.addMsg.MenuStyleIcon = style.icon
......@@ -414,4 +411,5 @@
}
}
}
</script>
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