Parcourir la source

七个数据隔离 水源,救援设备,起降点,气象站,放火站,防火队,森林管理 经纬度 用户不验证Email Unique
非必填 APP 七个基础数据 修改用户登录状态判断 用户邮箱保存 Excel 上传

wangzhe il y a 4 ans
Parent
commit
d8cfb9187f

+ 8 - 9
mybusiness/src/main/resources/templates/business/manager/forestdevicemanager/index.html

@@ -89,8 +89,9 @@
                 <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:forestdevice:remove">
                     <i class="fa fa-remove"></i> 删除
                 </a>
-                <a class="btn btn-warning" shiro:hasPermission="system:forestdevice:export">
-                    <input type="file" name="file" id="fileField" onchange="importExcel(document.getElementById('fileField').value)"> 导入
+                    <input style="display: none" type="file" name="file" id="fileField" onchange="importExcel(document.getElementById('fileField').value)">
+                <a class="btn btn-warning" shiro:hasPermission="system:forestdevice:export" onclick="fileField.click()">
+                    导入
                 </a>
                 <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:forestdevice:export">
                     <i class="fa fa-download"></i> 导出
@@ -238,16 +239,14 @@
                 method : 'post',
                 data : obj,
                 success : function (e) {
-                    console.log(e,"=e")
+                    //console.log(e,"=e")
                     if(e.code == 0){
-                        alert("success")
+                        //alert("success")
+                        $.modal.alert(e.msg)
                         // parent.$.modal.open("新增【气象火险等级】", url);
-                        // window.location.reload();
+                        setTimeout("window.location.reload()",1000);
                     }else {
-
-                        alert(e.msg)
-
-
+                        $.modal.alert(e.msg)
                     }
                 }
             });