|
@@ -184,7 +184,6 @@ const projTreeObj = {
|
|
|
this.bindEvent(newWorkBook);
|
|
this.bindEvent(newWorkBook);
|
|
|
this.loadContextMenu();
|
|
this.loadContextMenu();
|
|
|
this.loadStartMenu();
|
|
this.loadStartMenu();
|
|
|
- this.loadBtn();
|
|
|
|
|
}
|
|
}
|
|
|
return newWorkBook;
|
|
return newWorkBook;
|
|
|
},
|
|
},
|
|
@@ -1125,7 +1124,6 @@ const projTreeObj = {
|
|
|
$("#mr_title").text(title);
|
|
$("#mr_title").text(title);
|
|
|
this.initHtmlByFromRadio();
|
|
this.initHtmlByFromRadio();
|
|
|
let result = from == "unitPriceFile"?await this.setUnitFileChangeFileData():await this.setFeeRateChangeFileData();
|
|
let result = from == "unitPriceFile"?await this.setUnitFileChangeFileData():await this.setFeeRateChangeFileData();
|
|
|
- console.log(result);
|
|
|
|
|
this.changeInfo = result;
|
|
this.changeInfo = result;
|
|
|
this.loadFileOptions(this.changeInfo,from);
|
|
this.loadFileOptions(this.changeInfo,from);
|
|
|
|
|
|
|
@@ -1332,8 +1330,6 @@ const projTreeObj = {
|
|
|
//发送文件改变消息
|
|
//发送文件改变消息
|
|
|
data.oldFileIDs = _.uniq(oldFileIDs);
|
|
data.oldFileIDs = _.uniq(oldFileIDs);
|
|
|
socket.emit('multiFileChangeNotify', data);
|
|
socket.emit('multiFileChangeNotify', data);
|
|
|
-
|
|
|
|
|
- console.log(result);
|
|
|
|
|
},
|
|
},
|
|
|
checkFileName:async function (fileID,name,type) {
|
|
checkFileName:async function (fileID,name,type) {
|
|
|
let node = this.tree.selected;
|
|
let node = this.tree.selected;
|
|
@@ -1392,7 +1388,7 @@ const projTreeObj = {
|
|
|
}
|
|
}
|
|
|
// projTreeObj.remove(sheet, fromRow, rCout);
|
|
// projTreeObj.remove(sheet, fromRow, rCout);
|
|
|
|
|
|
|
|
- me.renderSheetFuc(sheet, function () {
|
|
|
|
|
|
|
+ // me.renderSheetFuc(sheet, function () {
|
|
|
sheet.deleteRows(fromRow, rCout);
|
|
sheet.deleteRows(fromRow, rCout);
|
|
|
sheet.addRows(newNode.serialNo(),rCout);
|
|
sheet.addRows(newNode.serialNo(),rCout);
|
|
|
let oldSelection = sheet.getSelections()[0];
|
|
let oldSelection = sheet.getSelections()[0];
|
|
@@ -1406,7 +1402,7 @@ const projTreeObj = {
|
|
|
}
|
|
}
|
|
|
refreshNodes = refreshNodes.concat(children);
|
|
refreshNodes = refreshNodes.concat(children);
|
|
|
me.refreshNodeData(refreshNodes);
|
|
me.refreshNodeData(refreshNodes);
|
|
|
- });
|
|
|
|
|
|
|
+ // });
|
|
|
|
|
|
|
|
function addNewNodes(node,parent,next) {
|
|
function addNewNodes(node,parent,next) {
|
|
|
let newNode = me.tree.addNodeData(node.data, parent, next);
|
|
let newNode = me.tree.addNodeData(node.data, parent, next);
|
|
@@ -1445,6 +1441,8 @@ const projTreeObj = {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
$(document).ready(function() {
|
|
|
|
|
+ //绑定项目管理的升降级、上下移按钮事件
|
|
|
|
|
+ projTreeObj.loadBtn();
|
|
|
$('#sideTab').find('li').click(function () {
|
|
$('#sideTab').find('li').click(function () {
|
|
|
//消除tooltip
|
|
//消除tooltip
|
|
|
$('[data-toggle="tooltip"]').tooltip('hide');
|
|
$('[data-toggle="tooltip"]').tooltip('hide');
|
|
@@ -1537,7 +1535,6 @@ $(document).ready(function() {
|
|
|
//选择计价规则
|
|
//选择计价规则
|
|
|
$("#valuation").change(function () {
|
|
$("#valuation").change(function () {
|
|
|
let engineeringList = getEngineeringList();
|
|
let engineeringList = getEngineeringList();
|
|
|
- console.log(engineeringList);
|
|
|
|
|
let engineeringHtml = getEngineeringHtml(engineeringList);
|
|
let engineeringHtml = getEngineeringHtml(engineeringList);
|
|
|
$("#tender-engineering").html(engineeringHtml);
|
|
$("#tender-engineering").html(engineeringHtml);
|
|
|
$('#valuation-info').hide();
|
|
$('#valuation-info').hide();
|
|
@@ -1816,7 +1813,6 @@ $(document).ready(function() {
|
|
|
$("#copy-to-dialog").modal('hide');
|
|
$("#copy-to-dialog").modal('hide');
|
|
|
$.bootstrapLoading.start();
|
|
$.bootstrapLoading.start();
|
|
|
CommonAjax.post('/pm/api/copyProjects',{projectMap:projectMap,user_id: userID},function (result) {
|
|
CommonAjax.post('/pm/api/copyProjects',{projectMap:projectMap,user_id: userID},function (result) {
|
|
|
- console.log(result);
|
|
|
|
|
let newNode = projTreeObj.insert(result['copy'].document,parent,next);
|
|
let newNode = projTreeObj.insert(result['copy'].document,parent,next);
|
|
|
let refreshNodes = projTreeObj.calEngineeringCost(newNode);
|
|
let refreshNodes = projTreeObj.calEngineeringCost(newNode);
|
|
|
projTreeObj.refreshNodeData(refreshNodes);
|
|
projTreeObj.refreshNodeData(refreshNodes);
|