0ea195c7 by 田浩浩
2 parents e3fcf551 787da56b
<template>
<el-menu router :default-active="activeMenu" menu-trigger="click" mode="horizontal">
<el-menu router :default-active="activeMenu" mode="horizontal">
<!-- 权限菜单 -->
<sidebar-item v-for="route in permission_routes.slice(1, 4)" :key="route.path" :item="route"
:base-path="route.path" />
......
......@@ -132,19 +132,19 @@ export default {
// )
// }
// },
{
prop: 'isenable',
width: '160',
label: '是否禁用',
render: (h, scope) => {
return (
<el-radio-group disabled={this.details.isenable == 2} v-model={scope.row.isenable}>
<el-radio label="1">启用</el-radio>
<el-radio label="0">禁用</el-radio>
</el-radio-group>
)
}
},
// {
// prop: 'isenable',
// width: '160',
// label: '是否禁用',
// render: (h, scope) => {
// return (
// <el-radio-group disabled={this.details.isenable == 2} v-model={scope.row.isenable}>
// <el-radio label="1">启用</el-radio>
// <el-radio label="0">禁用</el-radio>
// </el-radio-group>
// )
// }
// },
{
width: '130',
label: '移动',
......
......@@ -30,21 +30,21 @@ class data extends filter {
prop: "DNAME",
label: "字典类型名称",
},
{
label: "是否允许修改",
width: '150',
render: (h, scope) => {
return (
<div>
{
scope.row.ISENABLE == '1' ?
<div class='allow'>允许</div> :
<div class='prohibit'>禁止</div>
}
</div>
)
}
}
// {
// label: "是否允许修改",
// width: '150',
// render: (h, scope) => {
// return (
// <div>
// {
// scope.row.ISENABLE == '1' ?
// <div class='allow'>允许</div> :
// <div class='prohibit'>禁止</div>
// }
// </div>
// )
// }
// }
]
}
......