|
@@ -1472,6 +1472,40 @@ let zTreeOprObj = {
|
|
} else {
|
|
} else {
|
|
$("#element_sumLv_flags")[0].selectedIndex = 0;
|
|
$("#element_sumLv_flags")[0].selectedIndex = 0;
|
|
}
|
|
}
|
|
|
|
+ if (me.currentNode.flags.hasOwnProperty("contrastType")) {
|
|
|
|
+ let contrastType = me.currentNode.flags["contrastType"];
|
|
|
|
+ if (contrastType === "chapter")
|
|
|
|
+ $("#element_contrastType_select")[0].selectedIndex = 1;
|
|
|
|
+ else if (contrastType === "bill")
|
|
|
|
+ $("#element_contrastType_select")[0].selectedIndex = 2;
|
|
|
|
+ else if (contrastType === "quantities")
|
|
|
|
+ $("#element_contrastType_select")[0].selectedIndex = 3;
|
|
|
|
+ else $("#element_contrastType_select")[0].selectedIndex = 0;
|
|
|
|
+ }
|
|
|
|
+ if (me.currentNode.flags.hasOwnProperty("existLevel")) {
|
|
|
|
+ let existLevel = me.currentNode.flags["existLevel"];
|
|
|
|
+ if (existLevel === "true") {
|
|
|
|
+ $("#element_existLevel_select")[0].selectedIndex = 1;
|
|
|
|
+ } else if (existLevel === "false") {
|
|
|
|
+ $("#element_existLevel_select")[0].selectedIndex = 2;
|
|
|
|
+ } else {
|
|
|
|
+ $("#element_existLevel_select")[0].selectedIndex = 0;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ $("#element_existLevel_select")[0].selectedIndex = 0;
|
|
|
|
+ }
|
|
|
|
+ if (me.currentNode.flags.hasOwnProperty("existSummaryRule")) {
|
|
|
|
+ let existSummaryRule = me.currentNode.flags["existSummaryRule"];
|
|
|
|
+ if (existSummaryRule === "true") {
|
|
|
|
+ $("#element_summaryRule_select")[0].selectedIndex = 1;
|
|
|
|
+ } else if (existSummaryRule === "false") {
|
|
|
|
+ $("#element_summaryRule_select")[0].selectedIndex = 2;
|
|
|
|
+ } else {
|
|
|
|
+ $("#element_summaryRule_select")[0].selectedIndex = 0;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ $("#element_summaryRule_select")[0].selectedIndex = 0;
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
$("#element_flags_select")[0].selectedIndex = 0;
|
|
$("#element_flags_select")[0].selectedIndex = 0;
|
|
$("#element_constructSumFlags_select")[0].selectedIndex = 0;
|
|
$("#element_constructSumFlags_select")[0].selectedIndex = 0;
|
|
@@ -1481,6 +1515,9 @@ let zTreeOprObj = {
|
|
$("#element_Flags_budgetCalcType")[0].selectedIndex = 0;
|
|
$("#element_Flags_budgetCalcType")[0].selectedIndex = 0;
|
|
$("#element_Flags_tplType")[0].selectedIndex = 0;
|
|
$("#element_Flags_tplType")[0].selectedIndex = 0;
|
|
$("#element_prjFlags_select")[0].selectedIndex = 0;
|
|
$("#element_prjFlags_select")[0].selectedIndex = 0;
|
|
|
|
+ $("#element_contrastType_select")[0].selectedIndex = 0;
|
|
|
|
+ $("#element_existLevel_select")[0].selectedIndex = 0;
|
|
|
|
+ $("#element_summaryRule_select")[0].selectedIndex = 0;
|
|
// 清空工程类型
|
|
// 清空工程类型
|
|
$("#valuationSelector").hide();
|
|
$("#valuationSelector").hide();
|
|
$("#element_prjFlags_select")[0].value = "";
|
|
$("#element_prjFlags_select")[0].value = "";
|