瀏覽代碼

设置冻结列线颜色

zhangweicheng 5 年之前
父節點
當前提交
85b95e59ba

+ 2 - 1
web/building_saas/main/js/views/project_glj_view.js

@@ -75,12 +75,13 @@ let projectGljObject={
     },
     initProjectGljSheet:function () {
         this.projectGljSheet = this.projectGljSpread .getSheet(0);
-
         this.initSheet(this.projectGljSheet,this.projectGljSetting);
         this.projectGljSheet.bind(GC.Spread.Sheets.Events.SelectionChanged,this.onProjectGljSelectionChange);
         this.projectGljSheet.bind(GC.Spread.Sheets.Events.EditStarting,this.onProjectGljEditStarting);
         this.projectGljSheet.name('projectGljSheet');
         //this.projectGljSheet.setRowHeight(0, 36, 1);
+        this.projectGljSheet.options.frozenlineColor = '#ababab';
+        this.projectGljSheet.frozenColumnCount(this.projectGljSetting.frozenCols);
     },
     initMixRatio:function () {
         let me = projectGljObject;

+ 1 - 0
web/building_saas/main/js/views/project_view.js

@@ -893,6 +893,7 @@ var projectObj = {
             this.mainSpread.getActiveSheet().selectionPolicy(GC.Spread.Sheets.SelectionPolicy.muliRange);
             this.mainSpread.getActiveSheet().name('mainSheet');
             this.mainSpread.getActiveSheet().options.isProtected = true;
+            this.mainSpread.getActiveSheet().options.frozenlineColor = '#ababab';
         }
     },
     refreshMainSpread: function () {

+ 1 - 0
web/building_saas/pm/js/pm_newMain.js

@@ -2944,6 +2944,7 @@ function initProjects(callback) {
             projTreeObj.tree.selected = projTreeObj.tree.items[0];
             projTreeObj.workBook = projTreeObj.buildSheet(projTreeObj.workBook,'projSpread',projTreeObj.setting);
             const sheet = projTreeObj.workBook.getSheet(0);
+            sheet.options.frozenlineColor = '#ababab';
             sheet.frozenColumnCount(2);
             sheet.name('projectSheet');
             sheetCommonObj.spreadDefaultStyle(projTreeObj.workBook);

+ 1 - 0
web/building_saas/pm/js/pm_share.js

@@ -56,6 +56,7 @@ const pmShare = (function () {
         },
         sheet: {
             isProtected: true,
+            frozenlineColor : '#ababab',
             protectionOptions: {allowResizeRows: true, allowResizeColumns: true},
             clipBoardOptions: GC.Spread.Sheets.ClipboardPasteOptions.values
         }