修改demo

This commit is contained in:
jonyshi 2018-07-09 11:26:48 +08:00
parent d58a2cabc1
commit 928512af31
1 changed files with 31 additions and 81 deletions

View File

@ -106,84 +106,6 @@ function getCloumns(){
]; ];
return column; return column;
} }
//Cloumns2
function getCloumns25(){
const column = [
{
title: "序号",
dataIndex: "index",
key: "index",
},
{
title: "订单编号",
dataIndex: "orderCode",
key: "orderCode",
},
{
title: "供应商名称",
dataIndex: "supplierName",
key: "supplierName",
},
{
title: "类型",
dataIndex: "type_name",
key: "type_name",
},
{
title: "采购组织",
dataIndex: "purchasing",
key: "purchasing",
},
{
title: "采购组",
dataIndex: "purchasingGroup",
key: "purchasingGroup",
},
{
title: "凭证日期",
dataIndex: "voucherDate",
key: "voucherDate",
},
{
title: "审批状态",
dataIndex: "approvalState_name",
key: "approvalState_name",
},
{
title: "确认状态",
dataIndex: "confirmState_name",
key: "confirmState_name",
},
{
title: "关闭状态",
dataIndex: "closeState_name",
key: "closeState_name",
},
{
title: "操作",
dataIndex: "d",
key: "d",
width:100,
fixed: "right",
render(text, record, index) {
return (
<div className='operation-btn'>
<a href="#"
tooltip={text}
onClick={() => {
alert('这是第'+index+'列,内容为:'+text);
}}
>
一些操作
</a>
</div>
)
}
}
];
return column;
}
const dataList = [ const dataList = [
{ {
@ -213,7 +135,35 @@ const dataList = [
closeState_name:"2vnnnnn", closeState_name:"2vnnnnn",
d:"2操作", d:"2操作",
key: "2" key: "2"
}, },
{
index: 3,
orderCode:"222",
supplierName: "22xxx",
type_name: "1223",
purchasing:'内行2',
purchasingGroup:"3223",
voucherDate:"222kk",
approvalState_name:"22vvvv",
confirmState_name:"2aaaa",
closeState_name:"2vnnnnn",
d:"3操作",
key: "3"
},
{
index: 4,
orderCode:"222",
supplierName: "22xxx",
type_name: "1223",
purchasing:'内行2',
purchasingGroup:"3223",
voucherDate:"222kk",
approvalState_name:"22vvvv",
confirmState_name:"2aaaa",
closeState_name:"2vnnnnn",
d:"4操作",
key: "4"
},
] ]
const DragColumnTable = filterColumn(dragColumn(multiSelect(Table, Checkbox)),Popover); const DragColumnTable = filterColumn(dragColumn(multiSelect(Table, Checkbox)),Popover);
@ -251,7 +201,7 @@ class Demo25 extends Component {
checkMinSize={7} checkMinSize={7}
draggable={true} draggable={true}
multiSelect={{type: "checkbox"}} multiSelect={{type: "checkbox"}}
scroll={{x:"130%", y: 150}} scroll={{x:"130%", y: 100}}
// scroll={{x:this.getCloumnsScroll(columns), y: 150}} // scroll={{x:this.getCloumnsScroll(columns), y: 150}}
/></div> /></div>
} }