|
@@ -807,20 +807,20 @@ $('#property_ok').click(function () {
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
|
|
- console.log(mixDatas);
|
|
|
|
|
|
+ //console.log(mixDatas);
|
|
// return; // for test.
|
|
// return; // for test.
|
|
function hasMixData() {
|
|
function hasMixData() {
|
|
return Object.keys(mixDatas.properties).length > 0 ||
|
|
return Object.keys(mixDatas.properties).length > 0 ||
|
|
mixDatas.labourCoes.updateData || mixDatas.rations.length > 0 || mixDatas.bills.length > 0;
|
|
mixDatas.labourCoes.updateData || mixDatas.rations.length > 0 || mixDatas.bills.length > 0;
|
|
}
|
|
}
|
|
|
|
|
|
-/* if(hasMixData()){
|
|
|
|
|
|
+ if(hasMixData()){
|
|
CommonAjax.post('/pm/api/updateMixDatas', {user_id: userID, mixDataArr: mixDatas}, function (rstData) {
|
|
CommonAjax.post('/pm/api/updateMixDatas', {user_id: userID, mixDataArr: mixDatas}, function (rstData) {
|
|
-/!* if (changedNodes.length > 0) {
|
|
|
|
|
|
+/* if (changedNodes.length > 0) {
|
|
for (let node of changedNodes){delete node.changed};
|
|
for (let node of changedNodes){delete node.changed};
|
|
};
|
|
};
|
|
- if (mixDatas.labourCoes.updateData) labourCoeView.refresh();*!/
|
|
|
|
|
|
+ if (mixDatas.labourCoes.updateData) labourCoeView.refresh();*/
|
|
window.location.href = '/main?project=' + projectID;
|
|
window.location.href = '/main?project=' + projectID;
|
|
});
|
|
});
|
|
- }*/
|
|
|
|
|
|
+ }
|
|
});
|
|
});
|