|
@@ -973,7 +973,6 @@ var projectObj = {
|
|
|
that.mainSpread.bind(GC.Spread.Sheets.Events.CellDoubleClick, that.onCellDoubleClick);
|
|
that.mainSpread.bind(GC.Spread.Sheets.Events.CellDoubleClick, that.onCellDoubleClick);
|
|
|
that.mainSpread.bind(GC.Spread.Sheets.Events.ColumnWidthChanged, that.onColumnWidthChanged);
|
|
that.mainSpread.bind(GC.Spread.Sheets.Events.ColumnWidthChanged, that.onColumnWidthChanged);
|
|
|
that.mainSpread.bind(GC.Spread.Sheets.Events.ClipboardPasting, that.onClipboardPasting);
|
|
that.mainSpread.bind(GC.Spread.Sheets.Events.ClipboardPasting, that.onClipboardPasting);
|
|
|
-
|
|
|
|
|
//let loadOtherStartTime = +new Date();
|
|
//let loadOtherStartTime = +new Date();
|
|
|
if(!projectReadOnly){
|
|
if(!projectReadOnly){
|
|
|
that.loadMainSpreadContextMenu();
|
|
that.loadMainSpreadContextMenu();
|
|
@@ -1157,6 +1156,7 @@ var projectObj = {
|
|
|
selector: '#billsSpread',
|
|
selector: '#billsSpread',
|
|
|
selectableSubMenu: true,
|
|
selectableSubMenu: true,
|
|
|
build: function ($trigger, e) {
|
|
build: function ($trigger, e) {
|
|
|
|
|
+ projectObj.cusRationCombCheck(spread.getActiveSheet());
|
|
|
var target = SheetDataHelper.safeRightClickSelection($trigger, e, spread);
|
|
var target = SheetDataHelper.safeRightClickSelection($trigger, e, spread);
|
|
|
controller.setTreeSelected(controller.tree.items[target.row]);
|
|
controller.setTreeSelected(controller.tree.items[target.row]);
|
|
|
return target.hitTestType === GC.Spread.Sheets.SheetArea.viewport || target.hitTestType === GC.Spread.Sheets.SheetArea.rowHeader;
|
|
return target.hitTestType === GC.Spread.Sheets.SheetArea.viewport || target.hitTestType === GC.Spread.Sheets.SheetArea.rowHeader;
|
|
@@ -1992,6 +1992,12 @@ var projectObj = {
|
|
|
if(field != null) projectObj.mainController.sheet.setSelection(newNode.serialNo(), colSettingObj.getColByField(field), 1, 1); //自动定位到编号单元格
|
|
if(field != null) projectObj.mainController.sheet.setSelection(newNode.serialNo(), colSettingObj.getColByField(field), 1, 1); //自动定位到编号单元格
|
|
|
projectObj.mainSpread.focus();
|
|
projectObj.mainSpread.focus();
|
|
|
}
|
|
}
|
|
|
|
|
+ },
|
|
|
|
|
+ cusRationCombCheck:function (sheet) {//检查自定义定额编号下拉框,右键的时候不自动消失,现手动结束编辑,并删除元素
|
|
|
|
|
+ if(sheet.isEditing()){
|
|
|
|
|
+ sheet.endEdit()
|
|
|
|
|
+ }
|
|
|
|
|
+ if($("#rationCheckBox").is(':visible')) $("#rationCheckBox").parent().parent().remove();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -2155,6 +2161,26 @@ let displayLevel = function(nodes, depth, type){
|
|
|
TREE_SHEET_HELPER.refreshNodesVisible(refreshNodes, projectObj.mainSpread.getActiveSheet(), true)
|
|
TREE_SHEET_HELPER.refreshNodesVisible(refreshNodes, projectObj.mainSpread.getActiveSheet(), true)
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
|
|
+/*let enterDisplayA = false,
|
|
|
|
|
+ enterSubDisplay = false;
|
|
|
|
|
+//鼠标移到显示至,自动弹出子菜单
|
|
|
|
|
+$('#displayA').mouseenter(function () {
|
|
|
|
|
+ enterDisplayA = true;
|
|
|
|
|
+ $('#subDisplay').addClass('show');
|
|
|
|
|
+});
|
|
|
|
|
+$('#subDisplay').mouseenter(function () {
|
|
|
|
|
+ enterSubDisplay = true;
|
|
|
|
|
+});
|
|
|
|
|
+$('#subDisplay').mouseleave(function () {
|
|
|
|
|
+ enterSubDisplay = true;
|
|
|
|
|
+});
|
|
|
|
|
+$('#displayA').mouseleave(function () {
|
|
|
|
|
+ enterDisplayA = false;
|
|
|
|
|
+ if (!enterSubDisplay) {
|
|
|
|
|
+ $('#subDisplay').removeClass('show');
|
|
|
|
|
+ }
|
|
|
|
|
+});*/
|
|
|
|
|
+
|
|
|
$('#displayDXFY').click(function () {
|
|
$('#displayDXFY').click(function () {
|
|
|
displayLevel(projectObj.project.mainTree.items, 0, 'DXFY')
|
|
displayLevel(projectObj.project.mainTree.items, 0, 'DXFY')
|
|
|
});
|
|
});
|
|
@@ -2242,6 +2268,9 @@ $('#recColSetting').click(function () {
|
|
|
$('#property_default').click(function () {
|
|
$('#property_default').click(function () {
|
|
|
let project = projectObj.project,
|
|
let project = projectObj.project,
|
|
|
projectID = project.ID();
|
|
projectID = project.ID();
|
|
|
|
|
+ /*
|
|
|
|
|
+ * 清除窗口比例缓存
|
|
|
|
|
+ * */
|
|
|
//清单精灵/指引窗口比例
|
|
//清单精灵/指引窗口比例
|
|
|
removeLocalCache('stdBillsGuidanceTabmainWidth');
|
|
removeLocalCache('stdBillsGuidanceTabmainWidth');
|
|
|
removeLocalCache('stdBillsGuidanceTabmainSideWidth');
|
|
removeLocalCache('stdBillsGuidanceTabmainSideWidth');
|
|
@@ -2255,12 +2284,22 @@ $('#property_default').click(function () {
|
|
|
removeLocalCache('locateTabmainSideWidth');
|
|
removeLocalCache('locateTabmainSideWidth');
|
|
|
removeLocalCache('locatelocateTopDivHeight');
|
|
removeLocalCache('locatelocateTopDivHeight');
|
|
|
removeLocalCache('locatelocateBottomDivHeight');
|
|
removeLocalCache('locatelocateBottomDivHeight');
|
|
|
|
|
+ //块模板库窗口比例
|
|
|
|
|
+ removeLocalCache('kmbkkmbkTopDivHeight');
|
|
|
|
|
+ removeLocalCache('kmbkkmbkMidDivHeight');
|
|
|
|
|
+ removeLocalCache('kmbkkmbkBottomDivHeight');
|
|
|
//主界面窗口比例
|
|
//主界面窗口比例
|
|
|
removeLocalCache('mainVerticaltop_divHeight');
|
|
removeLocalCache('mainVerticaltop_divHeight');
|
|
|
removeLocalCache('mainVerticalbottom_divHeight');
|
|
removeLocalCache('mainVerticalbottom_divHeight');
|
|
|
- //特征及内容窗口比例
|
|
|
|
|
- removeLocalCache('tzjnrjobDivWidth');
|
|
|
|
|
- removeLocalCache('tzjnritemDivWidth');
|
|
|
|
|
|
|
+ //造价书下方-人材机和项目特征文本
|
|
|
|
|
+ removeLocalCache('subRcjsubSpreadWidth');
|
|
|
|
|
+ removeLocalCache('subRcjitemTextDivWidth');
|
|
|
|
|
+ //造价书下方-子目换算下调整状态和辅助值
|
|
|
|
|
+ removeLocalCache('subRcjitemTextDivWidth');
|
|
|
|
|
+ removeLocalCache('subRcjitemTextDivWidth');
|
|
|
|
|
+ //造价书下方-特征及内容窗口比例
|
|
|
|
|
+ removeLocalCache('subZmhscoeSpreadWidth');
|
|
|
|
|
+ removeLocalCache('subZmhsassDivWidth');
|
|
|
//人材机汇总窗口比例
|
|
//人材机汇总窗口比例
|
|
|
removeLocalCache('projectGljprojectGljTopHeight');
|
|
removeLocalCache('projectGljprojectGljTopHeight');
|
|
|
removeLocalCache('projectGljprojectGljBottomHeight');
|
|
removeLocalCache('projectGljprojectGljBottomHeight');
|
|
@@ -2276,6 +2315,8 @@ $('#property_default').click(function () {
|
|
|
removeLocalCache('compleRationsubContentHeight');
|
|
removeLocalCache('compleRationsubContentHeight');
|
|
|
removeLocalCache('compleRationmainSpreadHeight');
|
|
removeLocalCache('compleRationmainSpreadHeight');
|
|
|
removeLocalCache('compleRationcontentSpreadHeight');
|
|
removeLocalCache('compleRationcontentSpreadHeight');
|
|
|
|
|
+
|
|
|
|
|
+ //在后台恢复一些设置
|
|
|
CommonAjax.post('/pm/api/defaultSettings', {user_id: userID, projectID: projectID}, function (rstData) {
|
|
CommonAjax.post('/pm/api/defaultSettings', {user_id: userID, projectID: projectID}, function (rstData) {
|
|
|
window.location.href = `/main?project=${projectID}`;
|
|
window.location.href = `/main?project=${projectID}`;
|
|
|
});
|
|
});
|