From 3ffd353a51c0daff3c7cc44ff6d0ad1045cc83c5 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期二, 01 三月 2022 09:22:47 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/issue/issue.js |   74 +++----------------------------------
 1 files changed, 6 insertions(+), 68 deletions(-)

diff --git a/src/main/webapp/static/js/issue/issue.js b/src/main/webapp/static/js/issue/issue.js
index 1c9c320..cea3eea 100644
--- a/src/main/webapp/static/js/issue/issue.js
+++ b/src/main/webapp/static/js/issue/issue.js
@@ -78,6 +78,12 @@
         }
     });
 
+    /* 琛ㄦ牸2鎼滅储 */
+    form.on('submit(issueTbSearch)', function (data) {
+        insTb2.reload({where: data.field, page: {curr: 1}});
+        return false;
+    });
+
     // 鐩戝惉澶村伐鍏锋爮浜嬩欢
     table.on('toolbar(issueTable)', function (obj) {
         var checkStatus = table.checkStatus(obj.config.id).data;
@@ -102,8 +108,6 @@
             case 'detl':
                 top.issueByDetl = data.id;
                 break;
-            case 'edit':
-                showEditModel(data);
                 break;
             case "del":
                 var ids = [data.id];
@@ -111,44 +115,6 @@
                 break;
         }
     });
-
-    /* 寮圭獥 - 鏂板銆佷慨鏀� */
-    function showEditModel(mData) {
-        admin.open({
-            type: 1,
-            area: '600px',
-            title: (mData ? '淇敼' : '娣诲姞') + '璁㈠崟鐘舵��',
-            content: $('#editDialog').html(),
-            success: function (layero, dIndex) {
-                layDateRender();
-                form.val('detail', mData);
-                form.on('submit(editSubmit)', function (data) {
-                    var loadIndex = layer.load(2);
-                    $.ajax({
-                        url: baseUrl+"/issue/"+(mData?'update':'add')+"/auth",
-                        headers: {'token': localStorage.getItem('token')},
-                        data: data.field,
-                        method: 'POST',
-                        success: function (res) {
-                            layer.close(loadIndex);
-                            if (res.code === 200){
-                                layer.close(dIndex);
-                                layer.msg(res.msg, {icon: 1});
-                                tableReload();
-                            } else if (res.code === 403){
-                                top.location.href = baseUrl+"/";
-                            }else {
-                                layer.msg(res.msg, {icon: 2});
-                            }
-                        }
-                    })
-                    return false;
-                });
-                $(layero).children('.layui-layer-content').css('overflow', 'visible');
-                layui.form.render('select');
-            }
-        });
-    }
 
     /* 鍒犻櫎 */
     function del(ids) {
@@ -178,19 +144,6 @@
         });
     }
 
-    // 鎼滅储
-    form.on('submit(search)', function (data) {
-        pageCurr = 1;
-        tableReload(false);
-    });
-
-    // 閲嶇疆
-    form.on('submit(reset)', function (data) {
-        pageCurr = 1;
-        clearFormVal($('#search-box'));
-        tableReload(false);
-    });
-
     // 鏃堕棿閫夋嫨鍣�
     function layDateRender() {
             layDate.render({
@@ -219,18 +172,3 @@
 
 });
 
-// 鍏抽棴鍔ㄤ綔
-$(document).on('click','#data-detail-close', function () {
-    parent.layer.closeAll();
-});
-
-function tableReload(child) {
-    var searchData = {};
-    $.each($('#search-box [name]').serializeArray(), function() {
-        searchData[this.name] = this.value;
-    });
-    tableIns.reload({
-        where: searchData,
-        page: {curr: pageCurr}
-     });
-}

--
Gitblit v1.9.1