Переглянути джерело

feat: GLY-4040 后增需求(以报表为判断是否显示 报表格式 菜单) 后台调整部分

Tony Kang 2 днів тому
батько
коміт
f6f42b2894

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

@@ -222,6 +222,14 @@
                    
                 </select>
             </div>
+            <div class="input-group col-2">
+                <div class="input-group-addon">报表格式</div>
+                <select class="form-control input-sm" id="report_format_adjustable"
+                    onchange="zTreeOprObj.onChangeFlag('rptFormatAdjust', this)">
+                    <option value="F">不可调</option>
+                    <option value="T">可调</option>
+                </select>
+            </div>
         </div>
         <p>
         <div class="form-group col-md-6">

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

@@ -1404,6 +1404,17 @@ let zTreeOprObj = {
               } else {
                 $("#element_costIndexFlags_audit")[0].selectedIndex = 0;
               }
+              if (me.currentNode.flags.hasOwnProperty("rptFormatAdjust")) {
+                let rType = me.currentNode.flags["rptFormatAdjust"];
+                if (rType === "T") {
+                  $("#report_format_adjustable")[0].selectedIndex = 1;
+                } else {
+                  $("#report_format_adjustable")[0].selectedIndex = 0;
+                }
+              } else {
+                $("#report_format_adjustable")[0].selectedIndex = 0;
+              }
+
             } else {
               $("#element_flags_select")[0].selectedIndex = 0;
               $("#element_prjFlags_select")[0].selectedIndex = 0;
@@ -1418,6 +1429,7 @@ let zTreeOprObj = {
               $("#element_Flags_tplType")[0].selectedIndex = 0;
               $("#element_costIndexFlags_audit")[0].selectedIndex = 0;
               $("#select_aid_report_data_select")[0].selectedIndex = 0;
+              $("#report_format_adjustable")[0].selectedIndex = 0;
             }
 
             if (