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>
...@@ -150,9 +150,9 @@ ...@@ -150,9 +150,9 @@
<td> <td>
<el-form-item label="系统菜单" prop="menutype"> <el-form-item label="系统菜单" prop="menutype">
<el-select filterable class='w200' v-model='addMsg.menutype' :placeholder="$t('pub.pleaseSel')"> <el-select filterable class='w200' v-model='addMsg.menutype' :placeholder="$t('pub.pleaseSel')">
<el-option label="ERP菜单" :value="1"></el-option> <el-option label="ERP菜单" :value="1"></el-option>
<el-option label="资产菜单" :value="2"></el-option> <el-option label="资产菜单" :value="2"></el-option>
<el-option label="CRM菜单" :value="3"></el-option> <el-option label="CRM菜单" :value="3"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</td> </td>
...@@ -190,7 +190,6 @@ ...@@ -190,7 +190,6 @@
callback(); callback();
} }
} }
return { return {
dialogTitle: '', dialogTitle: '',
DataList: '', DataList: '',
...@@ -222,7 +221,7 @@ ...@@ -222,7 +221,7 @@
'ParentId': '', 'ParentId': '',
'MenuStatus': '0', 'MenuStatus': '0',
'Tier': '', 'Tier': '',
}, },
addMsg: { addMsg: {
'MenuId': '0', 'MenuId': '0',
...@@ -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,11 +357,11 @@ ...@@ -360,11 +357,11 @@
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
this.addMsg.MenuStyleColor = style.color this.addMsg.MenuStyleColor = style.color
this.currentUpdateIndex = index this.currentUpdateIndex = index
}, err => {}) }, err => {})
this.getChildMenu(); this.getChildMenu();
...@@ -414,4 +411,5 @@ ...@@ -414,4 +411,5 @@
} }
} }
} }
</script>
\ No newline at end of file </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