|
@@ -95,7 +95,7 @@ const billsGuidance = (function () {
|
|
{name: '项目名称', dataCode: 'name', width: 190, vAlign: 'center', hAlign: 'left', formatter: '@'},
|
|
{name: '项目名称', dataCode: 'name', width: 190, vAlign: 'center', hAlign: 'left', formatter: '@'},
|
|
{name: '单位', dataCode: 'unit', width: 45, vAlign: 'center', hAlign: 'center', formatter: '@'},
|
|
{name: '单位', dataCode: 'unit', width: 45, vAlign: 'center', hAlign: 'center', formatter: '@'},
|
|
],
|
|
],
|
|
- rowHeaderWidth:25,
|
|
|
|
|
|
+ rowHeaderWidth:1,
|
|
events: {
|
|
events: {
|
|
CellDoubleClick: function (sender, args) {
|
|
CellDoubleClick: function (sender, args) {
|
|
if(!bills.tree){
|
|
if(!bills.tree){
|
|
@@ -334,7 +334,7 @@ const billsGuidance = (function () {
|
|
let fuc = function () {
|
|
let fuc = function () {
|
|
sheet.setColumnCount(headers.length);
|
|
sheet.setColumnCount(headers.length);
|
|
sheet.setRowHeight(0, 30, GC.Spread.Sheets.SheetArea.colHeader);
|
|
sheet.setRowHeight(0, 30, GC.Spread.Sheets.SheetArea.colHeader);
|
|
- sheet.setColumnWidth(0, sheet.getParent() === bills.workBook ? 15 : 25, GC.Spread.Sheets.SheetArea.rowHeader);
|
|
|
|
|
|
+ //sheet.setColumnWidth(0, sheet.getParent() === bills.workBook ? 15 : 25, GC.Spread.Sheets.SheetArea.rowHeader);
|
|
if(sheet.getParent() === elfItem.workBook || sheet.getParent() === guideItem.workBook){
|
|
if(sheet.getParent() === elfItem.workBook || sheet.getParent() === guideItem.workBook){
|
|
sheet.setRowHeight(0, 20, GC.Spread.Sheets.SheetArea.colHeader);
|
|
sheet.setRowHeight(0, 20, GC.Spread.Sheets.SheetArea.colHeader);
|
|
}
|
|
}
|
|
@@ -396,6 +396,7 @@ const billsGuidance = (function () {
|
|
let sheet = module.workBook.getActiveSheet();
|
|
let sheet = module.workBook.getActiveSheet();
|
|
if(module === bills){
|
|
if(module === bills){
|
|
//默认初始可控制焦点在清单表中
|
|
//默认初始可控制焦点在清单表中
|
|
|
|
+ sheet.options.rowHeaderVisible = false;
|
|
module.workBook.focus();
|
|
module.workBook.focus();
|
|
sheet.options.isProtected = true;
|
|
sheet.options.isProtected = true;
|
|
sheet.name('stdBillsGuidance_bills');
|
|
sheet.name('stdBillsGuidance_bills');
|
|
@@ -412,7 +413,9 @@ const billsGuidance = (function () {
|
|
sheet.getRange(-1, 0, -1, 1).locked(true);
|
|
sheet.getRange(-1, 0, -1, 1).locked(true);
|
|
sheet.getRange(-1, 1, -1, 1).locked(false);
|
|
sheet.getRange(-1, 1, -1, 1).locked(false);
|
|
}
|
|
}
|
|
- if(module.rowHeaderWidth) sheet.setColumnWidth(0, module.rowHeaderWidth, GC.Spread.Sheets.SheetArea.rowHeader);
|
|
|
|
|
|
+ if(module.rowHeaderWidth) {
|
|
|
|
+ sheet.setColumnWidth(0, module.rowHeaderWidth, GC.Spread.Sheets.SheetArea.rowHeader);
|
|
|
|
+ }
|
|
setOptions(module.workBook, options);
|
|
setOptions(module.workBook, options);
|
|
buildHeader(module.workBook.getActiveSheet(), module.headers);
|
|
buildHeader(module.workBook.getActiveSheet(), module.headers);
|
|
if(module === elfItem){
|
|
if(module === elfItem){
|
|
@@ -484,6 +487,7 @@ const billsGuidance = (function () {
|
|
}
|
|
}
|
|
module.controller.showTreeData();
|
|
module.controller.showTreeData();
|
|
if(module === bills){
|
|
if(module === bills){
|
|
|
|
+ module.workBook.getSheet(0).options.rowHeaderVisible = true;
|
|
setBillsHint(bills.tree.items, stdBillsJobData, stdBillsFeatureData);
|
|
setBillsHint(bills.tree.items, stdBillsJobData, stdBillsFeatureData);
|
|
renderSheetFunc(sheet, function () {
|
|
renderSheetFunc(sheet, function () {
|
|
for(let i = 0; i < bills.tree.items.length; i++){
|
|
for(let i = 0; i < bills.tree.items.length; i++){
|