...
|
...
|
@@ -132,7 +132,7 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat |
|
|
limit: common.limit,
|
|
|
limits: common.limits,
|
|
|
even: true,
|
|
|
cols: [[{
|
|
|
cols: [[{type: 'checkbox'},{
|
|
|
type: 'numbers', title: '序号'
|
|
|
}, {
|
|
|
field: 'title', title: '预案版本', align: 'center',
|
...
|
...
|
@@ -203,7 +203,8 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat |
|
|
limit: common.limit,
|
|
|
limits: common.limits,
|
|
|
even: true,
|
|
|
cols: [[{
|
|
|
cols: [[{type: 'checkbox'},
|
|
|
{
|
|
|
type: 'numbers', title: '序号'
|
|
|
}, {
|
|
|
field: 'title', title: '预案版本', align: 'center',
|
...
|
...
|
@@ -261,14 +262,30 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts', 'laydat |
|
|
})
|
|
|
//下载
|
|
|
$('#emergency_download').on('click', function (){
|
|
|
let id ='';
|
|
|
var data = [];
|
|
|
var attachmentId ="";
|
|
|
var docType = "";
|
|
|
if (currSelect == 0) {
|
|
|
id = '62a341e759dd46d5b12b4c17ddb9db';
|
|
|
}else{
|
|
|
id = '09f4988f2fc8a785700040c49cfe5d19';
|
|
|
data = table.checkStatus('emergencyPlan_table_id').data;
|
|
|
attachmentId = '62a341e759dd46d5b12b4c17ddb9db';
|
|
|
docType = '1';
|
|
|
}else if (currSelect == 1) {
|
|
|
data = table.checkStatus('emergencyReport-table').data;
|
|
|
attachmentId = '09f4988f2fc8a785700040c49cfe5d19';
|
|
|
docType = '2';
|
|
|
}
|
|
|
var ids = '';
|
|
|
if(data.length<=0){
|
|
|
layer.msg("请至少选择一条下载", { offset: '15px' , icon: 7 , time: 1500 });
|
|
|
}else if(data.length>=1){
|
|
|
var arr = [];
|
|
|
$.each(data,function (i,e) {
|
|
|
arr.push(e.id)
|
|
|
})
|
|
|
ids = arr.toString();
|
|
|
var url = domainName + `/api-web/emergency/downloadWordZipforEmergency?accessToken=` + accessToken+"&ids="+ids+"&attachmentId="+ attachmentId+"&docType="+docType;
|
|
|
window.open(url);
|
|
|
}
|
|
|
var url = domainName + `/api-web/openoffice/download/${id}?accessToken=` + accessToken;
|
|
|
window.open(url);
|
|
|
})
|
|
|
//新增/编辑表单
|
|
|
function openemergencyForm(id) {
|
...
|
...
|
|