Commit 3c995732 authored by Your Name's avatar Your Name

权限节点样式调整

parent 68462395
...@@ -33,32 +33,11 @@ ...@@ -33,32 +33,11 @@
childrenColumnName ="son" childrenColumnName ="son"
:columns="columns" :columns="columns"
:data="loadData" :data="loadData"
:scroll="{ x: 1200, y: 300 }"
:showPagination="pagination" :showPagination="pagination"
:rowSelection="rowSelection" :rowSelection="rowSelection"
> >
<!-- <span slot="TITLE" slot-scope=""> <!-- :scroll="{ x: 1200, y: 300 }" -->
<template>
<div> -->
<!-- <a-input-search style="margin-bottom: 8px" placeholder="Search" @change="onChange" /> -->
<!-- <a-tree
@expand="onExpand"
:expandedKeys="expandedKeys"
:autoExpandParent="autoExpandParent"
:treeData="gData"
>
<template slot="title" slot-scope="{ title }">
<span v-if="title.indexOf(searchValue) > -1">
{{ title.substr(0, title.indexOf(searchValue)) }}
<span style="color: #f50">{{ searchValue }}</span>
{{ title.substr(title.indexOf(searchValue) + searchValue.length) }}
</span>
<span v-else>{{ title }}</span>
</template>
</a-tree>
</div>
</template>
</span> -->
<span slot="action" slot-scope="text, record"> <span slot="action" slot-scope="text, record">
<template> <template>
<a @click="handleEdit(record)">编辑</a> <a @click="handleEdit(record)">编辑</a>
...@@ -249,8 +228,9 @@ export default { ...@@ -249,8 +228,9 @@ export default {
{ {
title: '菜单名称', title: '菜单名称',
dataIndex: 'TITLE', dataIndex: 'TITLE',
fixed: 'left', // fixed: 'left',
width: 200, // width: 200,
width: '20%',
scopedSlots: { customRender: 'TITLE' } scopedSlots: { customRender: 'TITLE' }
}, },
// { // {
...@@ -263,9 +243,10 @@ export default { ...@@ -263,9 +243,10 @@ export default {
{ {
title: '节点id', title: '节点id',
dataIndex: 'ID', dataIndex: 'ID',
width: 90, width: '8%',
// width: 90,
key: 'ID', key: 'ID',
fixed: 'left' // fixed: 'left'
// customRender: (value, row, index) => { // customRender: (value, row, index) => {
// var ret = [] // var ret = []
// // 添加icon // // 添加icon
...@@ -285,32 +266,38 @@ export default { ...@@ -285,32 +266,38 @@ export default {
{ {
title: '菜单地址', title: '菜单地址',
dataIndex: 'NAME', dataIndex: 'NAME',
width: 200 width: '15%',
// width: 200
}, },
{ {
title: '菜单状态', title: '菜单状态',
width: '6%',
dataIndex: 'STATUS', dataIndex: 'STATUS',
width: 150 // width: 150
}, },
{ {
title: '是否为菜单', title: '是否为菜单',
width: '6%',
dataIndex: 'IS_MENU', dataIndex: 'IS_MENU',
width: 100 // width: 100
}, },
{ {
title: '是否顶部菜单', title: '是否顶部菜单',
width: '6%',
dataIndex: 'IS_TOP_MENU', dataIndex: 'IS_TOP_MENU',
width: 100 // width: 100
}, },
{ {
title: '是否默认显示', title: '是否默认显示',
width: '6%',
dataIndex: 'IS_DEFAULT_SHOW', dataIndex: 'IS_DEFAULT_SHOW',
width: 150 // width: 150
}, },
{ {
title: '描述', title: '描述',
width: '12%',
dataIndex: 'REMARK', dataIndex: 'REMARK',
width: 90 // width: 90
}, },
// { // {
// title: '类型', // title: '类型',
...@@ -331,13 +318,15 @@ export default { ...@@ -331,13 +318,15 @@ export default {
// }, // },
{ {
title: '排序', title: '排序',
width: '5%',
dataIndex: 'SORT', dataIndex: 'SORT',
width: 100 // width: 100
}, },
{ {
title: '类型', title: '类型',
dataIndex: 'LEVEL', dataIndex: 'LEVEL',
width: 100 width: '5%',
// width: 100
// customRender: (state, row, index) => { // customRender: (state, row, index) => {
// return <div>{state === 0 ? <a-tag color="cyan">显示</a-tag> : <a-tag color="red">隐藏</a-tag>}</div> // return <div>{state === 0 ? <a-tag color="cyan">显示</a-tag> : <a-tag color="red">隐藏</a-tag>}</div>
// } // }
...@@ -346,8 +335,8 @@ export default { ...@@ -346,8 +335,8 @@ export default {
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
fixed: 'right', // fixed: 'right',
width: 100, width:'15%',
scopedSlots: { customRender: 'action' } scopedSlots: { customRender: 'action' }
} }
], ],
......
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