|
@@ -2,19 +2,19 @@
|
|
|
* Created by Zhong on 2017/8/31.
|
|
|
* 特征及内容
|
|
|
*/
|
|
|
-//todo:清单库相关联的操作
|
|
|
let contentOprObj = {
|
|
|
workBook: null,
|
|
|
currentCache: [],//按照serialNo排序
|
|
|
setting: {
|
|
|
header: [
|
|
|
- {headerName:"工作内容",headerWidth:160,dataCode:"content", dataType: "String", hAlign: "center", vAlign: "center"},
|
|
|
+ {headerName:"工作内容",headerWidth:160,dataCode:"content", dataType: "String", hAlign: "left", vAlign: "center"},
|
|
|
{headerName:"输出",headerWidth:80,dataCode:"isChecked", cellType:"checkBox", hAlign: "center", vAlign: "center"}
|
|
|
]
|
|
|
},
|
|
|
buildSheet: function(container) {
|
|
|
let me = contentOprObj;
|
|
|
me.workBook = sheetCommonObj.buildSheet(container, me.setting, 30);
|
|
|
+ me.workBook.options.allowUserDragDrop = false;
|
|
|
me.workBook.getSheet(0).setColumnWidth(0, 20, GC.Spread.Sheets.SheetArea.rowHeader);
|
|
|
me.workBook.options.allowCopyPasteExcelStyle = false;
|
|
|
me.onContextmenuOpr();//右键菜单
|
|
@@ -268,14 +268,15 @@ let characterOprObj = {
|
|
|
currentCache: [],
|
|
|
setting: {
|
|
|
header: [
|
|
|
- {headerName:"项目特征",headerWidth:160,dataCode:"character", dataType: "String", hAlign: "center", vAlign: "center"},
|
|
|
- {headerName:"特征值",headerWidth:160,dataCode:"eigenvalue", dataType: "String", cellType: "comboBox", hAlign: "center", vAlign: "center"},
|
|
|
+ {headerName:"项目特征",headerWidth:160,dataCode:"character", dataType: "String", hAlign: "left", vAlign: "center"},
|
|
|
+ {headerName:"特征值",headerWidth:160,dataCode:"eigenvalue", dataType: "String", cellType: "comboBox", hAlign: "left", vAlign: "center"},
|
|
|
{headerName:"输出",headerWidth:80,dataCode:"isChecked", cellType:"checkBox", hAlign: "center", vAlign: "center"}
|
|
|
]
|
|
|
},
|
|
|
buildSheet: function(container) {
|
|
|
let me = characterOprObj;
|
|
|
me.workBook = sheetCommonObj.buildSheet(container, me.setting, 30);
|
|
|
+ me.workBook.options.allowUserDragDrop = false;
|
|
|
me.workBook.getSheet(0).setColumnWidth(0, 20, GC.Spread.Sheets.SheetArea.rowHeader);
|
|
|
me.workBook.options.allowCopyPasteExcelStyle = false;
|
|
|
me.onContextmenuOpr();
|
|
@@ -701,12 +702,14 @@ let pageCCOprObj = {
|
|
|
}
|
|
|
else if(setting.header[col].cellType === 'comboBox'){
|
|
|
let comboObj = characterOprObj.getComboBox(data[row]);
|
|
|
- comboObj.combo.editable(true);//不可编辑
|
|
|
+ comboObj.combo.editable(true);//可编辑
|
|
|
sheet.getCell(row, 1).cellType(comboObj.combo).value(typeof comboObj.selectedValue !== 'undefined' ? comboObj.selectedValue : '');
|
|
|
}
|
|
|
else{
|
|
|
sheet.setValue(row, col, val, ch);
|
|
|
}
|
|
|
+ sheet.getCell(row, col).wordWrap(true);
|
|
|
+ sheet.autoFitRow(row);
|
|
|
}
|
|
|
}
|
|
|
sheet.resumeEvent();
|