Browse Source

fix: 报表配置新增一个特殊标识的属性

lishihao 1 month ago
parent
commit
523a54335a

+ 8 - 0
web/maintain/report/html/rpt_tpl_dtl_info.html

@@ -218,6 +218,14 @@
                    
                 </select>
             </div>
+            <div class="input-group col-3">
+                <div class="input-group-addon">特殊类别</div>
+                <select class="form-control input-sm" id="select_special_type_data_select"
+                    onchange="zTreeOprObj.onChangeFlag('specialType', this)">
+                        <option value="NA">N/A</option>
+                        <option value="changeProject">变更项目</option>
+                </select>
+            </div>
         </div>
         <p>
         <div class="form-group col-md-6">

+ 8 - 0
web/maintain/report/js/rpt_tpl_main.js

@@ -1392,6 +1392,14 @@ let zTreeOprObj = {
               } else {
                 $("#element_costIndexFlags_audit")[0].selectedIndex = 0;
               }
+              if (me.currentNode.flags.hasOwnProperty("specialType")) {
+                let val = me.currentNode.flags["specialType"];
+                if (val === "changeProject") {
+                  $("#select_special_type_data_select")[0].selectedIndex = 1;
+                }
+              } else {
+                $("#select_special_type_data_select")[0].selectedIndex = 0;
+              }
             } else {
               $("#element_flags_select")[0].selectedIndex = 0;
               $("#element_prjFlags_select")[0].selectedIndex = 0;