Browse Source

菜单权限修正

master
hupeng 5 years ago
parent
commit
e269614bd5
  1. 2
      src/views/dashboard/YshopInfo.vue
  2. 8
      src/views/shop/cate/index.vue
  3. 2
      src/views/system/menu/index.vue

2
src/views/dashboard/YshopInfo.vue

@ -70,7 +70,7 @@
<div class="text item">
1小程序是mpvue2.0框架开发<br />
2价格100只是单独的小程序购买小程序请务必要购买上面VIP套餐<br />
3购买淘宝地址https://item.taobao.com/item.htm?id=608056803568<br />
3购买淘宝地址https://item.taobao.com/item.htm?id=612007949053<br />
4群里面获取私服git<br />
</div>
</el-card>

8
src/views/shop/cate/index.vue

@ -4,7 +4,7 @@
<div class="head-container">
<div v-if="crud.props.searchToggle">
<!-- 搜索 -->
<el-input v-model="query.cateName" clearable size="small" placeholder="输入部门名称搜索" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<el-input v-model="query.cateName" clearable size="small" placeholder="输入分类名称搜索" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
<rrOperation :crud="crud" />
</div>
<crudOperation :permission="permission" />
@ -88,9 +88,9 @@ export default {
]
},
permission: {
add: ['admin', 'cate:add'],
edit: ['admin', 'cate:edit'],
del: ['admin', 'cate:del']
add: ['admin', 'YXSTORECATEGORY_CREATE'],
edit: ['admin', 'YXSTORECATEGORY_EDIT'],
del: ['admin', 'YXSTORECATEGORY_DELETE']
},
enabledTypeOptions: [
{ key: 'true', display_name: '正常' },

2
src/views/system/menu/index.vue

@ -157,7 +157,7 @@ import udOperation from '@crud/UD.operation'
// crudpresenter
const defaultCrud = CRUD({ title: '菜单', url: 'api/menus', crudMethod: { ...crudMenu }})
const defaultForm = { name: null, sort: 999, path: null, component: null, componentName: null, iframe: false, roles: [], pid: 0, icon: null, cache: false, hidden: false, type: 0, permission: null }
const defaultForm = { id: null, name: null, sort: 999, path: null, component: null, componentName: null, iframe: false, roles: [], pid: 0, icon: null, cache: false, hidden: false, type: 0, permission: null }
export default {
name: 'Menu',
components: { Treeselect, IconSelect, crudOperation, rrOperation, udOperation },

Loading…
Cancel
Save