Browse Source

菜单增加隐藏

Loki 2 years ago
parent
commit
c7b0740fa3
  1. 26
      src/store/modules/user.js
  2. 12
      src/views/system/menu/index.vue

26
src/store/modules/user.js

@ -47,18 +47,20 @@ const user = {
setToken(res.token)
commit('SET_TOKEN', res.token)
// 设定进销存参数 尝试同步zsw
let params = {};
params.currentPage = 1;
params.pageSize = 100;
getAction('/erp/materialProperty/list', params).then((mp) => {
console.log(mp);
if(mp && mp.code === 200){
if(mp.data) {
let thisRows = mp.data.rows; //属性列表
Vue.ls.set('materialPropertyList', thisRows);
}
}
})
// let params = {};
// params.currentPage = 1;
// params.pageSize = 100;
// getAction('/erp/materialProperty/list', params).then((mp) => {
// console.log(mp);
// if(mp && mp.code === 200){
// if(mp.data) {
// let thisRows = mp.data.rows; //属性列表
// Vue.ls.set('materialPropertyList', thisRows);
// }
// }
// })
resolve()
}).catch(error => {
reject(error)

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

@ -123,6 +123,15 @@
</el-radio-group>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="是否隐藏">
<el-radio-group v-model="form.hidden">
<el-radio v-for="dict in this.getDictDatas(DICT_TYPE.INFRA_BOOLEAN_STRING)"
:key="dict.value" :label="JSON.parse(dict.value)">{{dict.label}}</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
@ -244,7 +253,8 @@ export default {
icon: undefined,
type: SystemMenuTypeEnum.DIR,
sort: undefined,
status: CommonStatusEnum.ENABLE
status: CommonStatusEnum.ENABLE,
hidden:CommonStatusEnum.DISABLE,
};
this.resetForm("form");
},

Loading…
Cancel
Save