Commit de74ef55 authored by 黄奎's avatar 黄奎

菜单查询调整

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