|
@@ -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)
|
|
|
}
|
|
|
}
|
|
|
});
|