|
@ -20,6 +20,8 @@ |
|
|
:currenButtonData="currenButtonData" |
|
|
:currenButtonData="currenButtonData" |
|
|
:tableData="tableData" |
|
|
:tableData="tableData" |
|
|
:tableLoading="Loading.tableLoading" |
|
|
:tableLoading="Loading.tableLoading" |
|
|
|
|
|
@rowDrop="rowDropForDetail" |
|
|
|
|
|
:rowSource="'detailPage_api'" |
|
|
:tableColumns="listColumns" |
|
|
:tableColumns="listColumns" |
|
|
:totalCount="totalCount" |
|
|
:totalCount="totalCount" |
|
|
:multipleSelection="multipleSelection" |
|
|
:multipleSelection="multipleSelection" |
|
@ -46,7 +48,7 @@ |
|
|
label="操作" |
|
|
label="操作" |
|
|
:align="'center'" |
|
|
:align="'center'" |
|
|
width="150" |
|
|
width="150" |
|
|
fixed="right" |
|
|
fixed="left" |
|
|
> |
|
|
> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-for="item in operaButtons" style="margin: 0 10px;"> |
|
|
<span v-for="item in operaButtons" style="margin: 0 10px;"> |
|
@ -181,7 +183,9 @@ props: { |
|
|
showHandleButtons:{ |
|
|
showHandleButtons:{ |
|
|
type:Array, |
|
|
type:Array, |
|
|
default:() => { |
|
|
default:() => { |
|
|
return ['showParent','fresh','filter'];//'add','edit'暂未处理操作 'delete'暂时隐藏 |
|
|
//'add','edit'暂未处理操作 'delete'暂时隐藏 |
|
|
|
|
|
// showParent查看主表信息,fresh刷新,filter筛选,field字段设置 |
|
|
|
|
|
return ['showParent','fresh','filter','field']; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// 父级展现列数,默认为2列展现 |
|
|
// 父级展现列数,默认为2列展现 |
|
@ -215,6 +219,9 @@ mounted(){ |
|
|
this.initHandleButtons() |
|
|
this.initHandleButtons() |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
rowDropForDetail(data,type){ |
|
|
|
|
|
this.$emit("rowDropForDetail", data,type) |
|
|
|
|
|
}, |
|
|
// 初始化显示按钮 |
|
|
// 初始化显示按钮 |
|
|
initHandleButtons(){ |
|
|
initHandleButtons(){ |
|
|
// 头部按钮 |
|
|
// 头部按钮 |
|
@ -222,6 +229,7 @@ methods: { |
|
|
if(this.showHandleButtons.indexOf('add') >= 0){_arr_header.push(this.defaultAddBtn())} |
|
|
if(this.showHandleButtons.indexOf('add') >= 0){_arr_header.push(this.defaultAddBtn())} |
|
|
if(this.showHandleButtons.indexOf('fresh') >= 0){_arr_header.push(this.defaultFreshBtn())} |
|
|
if(this.showHandleButtons.indexOf('fresh') >= 0){_arr_header.push(this.defaultFreshBtn())} |
|
|
if(this.showHandleButtons.indexOf('filter') >= 0){_arr_header.push(this.defaultFilterBtn())} |
|
|
if(this.showHandleButtons.indexOf('filter') >= 0){_arr_header.push(this.defaultFilterBtn())} |
|
|
|
|
|
if(this.showHandleButtons.indexOf('field') >= 0){_arr_header.push(this.defaultFieldSettingBtn())} |
|
|
this.currenButtonData = _arr_header |
|
|
this.currenButtonData = _arr_header |
|
|
|
|
|
|
|
|
// 操作列按钮 |
|
|
// 操作列按钮 |
|
|