From 6e2b929cf381e2320ba6e7dec56c0371124d2b51 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期六, 27 八月 2022 15:03:00 +0800
Subject: [PATCH] 提交

---
 zhengcaioa/zhengcaioa/Views/Signin/AttendanceRule.cshtml |   34 +++++++++++++++++++++++-----------
 1 files changed, 23 insertions(+), 11 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/Signin/AttendanceRule.cshtml b/zhengcaioa/zhengcaioa/Views/Signin/AttendanceRule.cshtml
index f066608..f83425e 100644
--- a/zhengcaioa/zhengcaioa/Views/Signin/AttendanceRule.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/Signin/AttendanceRule.cshtml
@@ -11,6 +11,9 @@
 
     var jiabanri = admAttendanceRulesDtlDTOs.Where(x => x.Name == "jiabanri").ToList();
 
+    List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
+
+    string Creater = ViewData["Creater"] as string;
 
 }
 <!DOCTYPE html>
@@ -429,7 +432,7 @@
         <div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px ">
             <div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="鍔熻兘鎸夐挳锛氣�滀繚瀛樷�濓紝鈥滃垹闄も��">
 
-                <a class="btn btn-success" href="javascript:void(0)" onclick="SaveAttendanceRule();" style="margin-left:4px; border-radius:4px;">
+                <a class="btn btn-success Update"  href="javascript:void(0)" onclick="SaveAttendanceRule();" style="margin-left:4px; border-radius:4px;display:none;">
                     <i class="glyphicon glyphicon-ok"></i>&nbsp;&nbsp;<span class="bold">鎻愪氦</span>
                 </a>
             </div>
@@ -539,7 +542,7 @@
 
         //鎻愪氦璇锋眰
         var SaveAttendanceRule =    function () {
-            
+
 
             $.ajax({
                 type: "POST",
@@ -580,7 +583,7 @@
         } ;
         //鏈湀鑺傚亣鏃ヨ缃�
         function addBtn(obj) {
-          
+
             var int = $('.holiday_s').length - 1;
             var id = $('.holiday_s').eq(int).attr('id');
             var holiday_ss = parseInt(id.replace("holiday_s", "")) + 1;
@@ -588,7 +591,7 @@
             var int1 = $('.holiday_e').length - 1
             var id1 = $('.holiday_e').eq(int1).attr('id');
             var holiday_es = parseInt(id1.replace("holiday_e", "")) + 1;
-            
+
             var html = ' <div class="setSelect">\n' +
                 '                <span></span>\n' +
                 '                <input type="text" value="" class="layui-input  layer-date  ldate form-control   holiday_s" id="holiday_s' + holiday_ss + '" name="holiday_s"  style="width:150px;"   onfocus=\'laydate({elem:"#holiday_s' + holiday_ss + '",format:"YYYY-MM-DD",theme:"#fdd5004"})\'  /> -\n' +
@@ -598,13 +601,13 @@
 
             $(obj).parent('div').parent('div').append(html);
 
-            
-           
 
-           
-             
 
-           
+
+
+
+
+
         };
         function addRestBtn(obj) {
             var int = $('.rest_s').length - 1;
@@ -624,7 +627,7 @@
 
             $(obj).parent('div').parent('div').append(html);
 
-           
+
         };
 
 
@@ -648,7 +651,7 @@
 
 
         };
-        
+
         function delBtn(obj, id, tb) {
             //if (id > 0) {
             //    var url = "/index.php/home/white/del.html"
@@ -662,8 +665,17 @@
             //}
             $(obj).parent().remove();
         }
+         var ActionInfo22 = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ActionInfo2))';
 
 
+
+        $(function () {
+            var data = JSON.parse(ActionInfo22);
+            for (var o in data) {
+                $("." + data[o].PageShortcut).show();
+
+            }
+        });
     </script>
 </body>
 </html>
\ No newline at end of file

--
Gitblit v1.9.1