Commit 46ff296a by cwq0219

表格-固定操作栏

1 parent 0ead99fb
...@@ -76,8 +76,9 @@ ...@@ -76,8 +76,9 @@
<el-table-column <el-table-column
v-if="tableParams.tableOption" v-if="tableParams.tableOption"
label="操作" label="操作"
fixed="right"
:align="tableParams.tableOption.align||'center'" :align="tableParams.tableOption.align||'center'"
:width="tableParams.tableOption.width||'200'" :width="tableParams.tableOption.width||'auto'"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<slot <slot
......
...@@ -501,7 +501,6 @@ export const resources = { ...@@ -501,7 +501,6 @@ export const resources = {
authId: '9060301', authId: '9060301',
parentId: '90603', parentId: '90603',
label: '财务', label: '财务',
type: 'primary',
handle: 'handleDetail' handle: 'handleDetail'
}], }],
component: _import('systemConfig/merchantManage') component: _import('systemConfig/merchantManage')
......
...@@ -290,7 +290,8 @@ ...@@ -290,7 +290,8 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
align="center" align="center"
label="操作"> label="操作"
fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<auth-button <auth-button
:data="scope" :data="scope"
......
...@@ -73,7 +73,9 @@ ...@@ -73,7 +73,9 @@
style="margin-right: 10px;" style="margin-right: 10px;"
@click="handleCommodityDetail(scope.scope)" @click="handleCommodityDetail(scope.scope)"
>查看</el-button> >查看</el-button>
<auth-button :data="scope.scope"></auth-button> <auth-button
:data="scope.scope"
></auth-button>
</template> </template>
</d2-table> </d2-table>
</div> </div>
...@@ -172,7 +174,9 @@ export default { ...@@ -172,7 +174,9 @@ export default {
mutiSelectUniqueKey: 'uniqueVal', mutiSelectUniqueKey: 'uniqueVal',
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list', listName: 'list',
tableOption: true, tableOption: {
width: '170'
},
tableColumns: [{ tableColumns: [{
label: '序号', label: '序号',
prop: 'index' prop: 'index'
......
...@@ -138,7 +138,8 @@ ...@@ -138,7 +138,8 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="操作" label="操作"
align="center"> align="center"
fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<auth-button <auth-button
:data="scope" :data="scope"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!