This commit is contained in:
郑茂强 2018-10-18 09:26:28 +08:00
parent 2885175a7c
commit bf81c0d140
2 changed files with 25 additions and 17 deletions

View File

@ -13,15 +13,23 @@ class Table {
this.selectedCell;
}
render() {}
addRowElement() {}
}
// 行类
class Row {
createRowElement() {
const rowElement = document.createElement("tr");
return rowElement;
}
deleteCurrentRow() {}
deleteCurrenCol() {}
insertColToLeft() {}
insertColToRight() {}
insertRowToTop() {}
insertRowToBottom() {}
mergeRightCell() {}
mergeBottomCell() {}
addTemplate() {}
addFormHeader() {}
addSplitedGroupHeader() {}
addBanCaiDetails() {}
addSplitedGroupFooter() {}
addFormFooter() {}
}
// 单元类
class Cell {
cellId: string;

View File

@ -32,28 +32,28 @@ class DataResource {
}
getOrderNo() {
return this.data.orderNo;
return [this.data.orderNo];
}
getClientName() {
return this.data.clientName;
return [this.data.clientName];
}
getSoldDate() {
return this.data.soldDate;
return [this.data.soldDate];
}
getContactName() {
return this.data.contactName;
return [this.data.contactName];
}
getContactNo() {
return this.data.contactNo;
return [this.data.contactNo];
}
getDeliveryAddress() {
return this.data.deliveryAddress;
return [this.data.deliveryAddress];
}
getAddOn() {
return this.data.addOn;
return [this.data.addOn];
}
getBoards() {
return this.data.boards;
return [this.data.boards];
}
getBoardMaterial() {
const BoardMaterial = [];
@ -83,7 +83,7 @@ class DataResource {
}
houseName.push(tem);
}
return houseName; // 返回数据结构hosueName=[['string||number''string||number'],[]]
return houseName; // 返回数据结构hosueName=[['string||number''string||number',....],[]]
}
getEachBanCaiToTal(boardKey: string) {
const banCaiTotalArray = [];