yf_zd 5 лет назад
Родитель
Сommit
c5094ebbe4

+ 1 - 0
templates/backstageNet/infoManage/dormManage.html

@@ -263,6 +263,7 @@
                         // , count: 30
                         // , count: 30
                         , count: $('#totalPage').val()
                         , count: $('#totalPage').val()
                         , theme: '#2ca9f9'
                         , theme: '#2ca9f9'
+                        , curr:page
                         , layout: ['prev', 'page', 'next', 'skip']
                         , layout: ['prev', 'page', 'next', 'skip']
                         , jump: function (obj, first) {
                         , jump: function (obj, first) {
                             if (!first) {
                             if (!first) {

+ 1 - 1
templates/backstageNet/infoManage/dormManageList.html

@@ -25,7 +25,7 @@
 </tr>
 </tr>
 {% endfor %} {% else %}
 {% endfor %} {% else %}
 <tr>
 <tr>
-    <td colspan="10" style="text-align:center;">暂无数据</td>
+    <td colspan="6" style="text-align:center;">暂无数据</td>
 </tr>
 </tr>
 {% endif %}
 {% endif %}
 <input type="hidden" value="{{nums}}" id="totalPage">
 <input type="hidden" value="{{nums}}" id="totalPage">

+ 13 - 9
templates/backstageNet/infoManage/sightseeManage.html

@@ -192,7 +192,7 @@
             });
             });
 
 
             //第一个实例
             //第一个实例
-            getData('news_check_list', 1, 0) //url,page,信息类型
+            getData('sightsee_check_list', 1, 0) //url,page,信息类型
 
 
             //监听提交
             //监听提交
             form.on('submit(formDemo)', function (data) {
             form.on('submit(formDemo)', function (data) {
@@ -219,6 +219,7 @@
                         // , count: 30
                         // , count: 30
                         , count: $('#totalPage').val()
                         , count: $('#totalPage').val()
                         , theme: '#2ca9f9'
                         , theme: '#2ca9f9'
+                        , curr:page
                         , layout: ['prev', 'page', 'next', 'skip']
                         , layout: ['prev', 'page', 'next', 'skip']
                         , jump: function (obj, first) {
                         , jump: function (obj, first) {
                             if (!first) {
                             if (!first) {
@@ -305,7 +306,8 @@
                             layer.close(index);
                             layer.close(index);
                             // parent.layer.msg("操作成功!", {time: 1000}, function () {
                             // parent.layer.msg("操作成功!", {time: 1000}, function () {
                             //重新加载父页面
                             //重新加载父页面
-                            location.reload();
+                            // location.reload();
+                            getData('sightsee_check_list', $('.layui-laypage-curr em').eq(1).html(), $('.permission .active').data('type'))
                         }
                         }
                     }
                     }
                 })
                 })
@@ -327,7 +329,8 @@
                     dataType: 'json',
                     dataType: 'json',
                     success: function (data) {
                     success: function (data) {
                         if (data) {
                         if (data) {
-                            location.reload();
+                            // location.reload();
+                            getData('sightsee_check_list', $('.layui-laypage-curr em').eq(1).html(), $('.permission .active').data('type'))
                         }
                         }
                     }
                     }
                 })
                 })
@@ -348,17 +351,18 @@
                 content: '<div class="table"></div>',
                 content: '<div class="table"></div>',
                 success: function(layero, index) {
                 success: function(layero, index) {
                     $.ajax({
                     $.ajax({
-                        url: 'garden_check',
+                        url: 'sightsee_check_list',
                         type: 'post',
                         type: 'post',
                         async: false,
                         async: false,
                         data: {
                         data: {
-                            ids: id,
+                            id: id,
+                            req: 'edit',
                         },
                         },
                         dataType: 'json',
                         dataType: 'json',
                         success: function (data) {
                         success: function (data) {
-                            window.data = data[0]
-                            var html = '<div><p>景点导览图</p><img src="127.0.0.1:8000/'+window.data.img+'"/></div>'
-                            layero.find('.table').html(window.data.content)
+                            window.data = data
+                            var html = '<div><p style="line-height: 14px;padding-left: 10px;border-left: 3px solid #23a3ee;">景点导览图</p><img src="127.0.0.1:8000/'+window.data.guide_img+'"/></div>'
+                            layero.find('.table').html('<p style="line-height: 14px;padding-left: 10px;border-left: 3px solid #23a3ee;">详细介绍</p>'+window.data.content)
                             layero.find('.table').append(html)
                             layero.find('.table').append(html)
                         }
                         }
                     })
                     })
@@ -406,7 +410,7 @@
                 // alert(type)
                 // alert(type)
                 $('.permission button').removeClass('active');
                 $('.permission button').removeClass('active');
                 $(this).addClass('active');
                 $(this).addClass('active');
-                getData('news_check_list', 1, type)
+                getData('sightsee_check_list', 1, type)
             }
             }
         })
         })
 
 

+ 1 - 1
templates/backstageNet/infoManage/sightseeManageList.html

@@ -32,7 +32,7 @@
 </tr>
 </tr>
 {% endfor %} {% else %}
 {% endfor %} {% else %}
 <tr>
 <tr>
-    <td colspan="5" style="text-align:center;">暂无数据</td>
+    <td colspan="7" style="text-align:center;">暂无数据</td>
 </tr>
 </tr>
 {% endif %}
 {% endif %}
 <input type="hidden" value="{{nums}}" id="totalPage">
 <input type="hidden" value="{{nums}}" id="totalPage">