|
|
@ -152,7 +152,8 @@ layui.use(['layer', 'listPage', 'globalTree', 'gtable', 'form', 'element', 'drop |
|
|
|
field: 'dataSource', |
|
|
|
field: 'dataSource', |
|
|
|
title: '数据来源', |
|
|
|
title: '数据来源', |
|
|
|
width: 160, |
|
|
|
width: 160, |
|
|
|
templet: (data) => DICT.getText("data_source", data.dataSource) || data.dataSource || '',sort: true |
|
|
|
templet: (data) => DICT.getText("data_source", data.dataSource) || data.dataSource || '', |
|
|
|
|
|
|
|
sort: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
{field: 'taskTime', title: '任务时间', width: 180, align: 'center', sort: true}, |
|
|
|
{field: 'taskTime', title: '任务时间', width: 180, align: 'center', sort: true}, |
|
|
|
{field: 'modifyTime', title: '注册时间', width: 160, align: 'center', hide: true}, |
|
|
|
{field: 'modifyTime', title: '注册时间', width: 160, align: 'center', hide: true}, |
|
|
@ -229,32 +230,39 @@ layui.use(['layer', 'listPage', 'globalTree', 'gtable', 'form', 'element', 'drop |
|
|
|
url: `${ctx}/search/full/file?metaId=${id}`, |
|
|
|
url: `${ctx}/search/full/file?metaId=${id}`, |
|
|
|
height: 'full-110', |
|
|
|
height: 'full-110', |
|
|
|
request: {pageName: 'page', limitName: 'size'}, |
|
|
|
request: {pageName: 'page', limitName: 'size'}, |
|
|
|
|
|
|
|
autoSort: false, |
|
|
|
limit: 30, |
|
|
|
limit: 30, |
|
|
|
method: 'get', |
|
|
|
method: 'get', |
|
|
|
cols: [[ |
|
|
|
cols: [[ |
|
|
|
{field: 'id', title: 'ID', hide: true}, |
|
|
|
{field: 'id', title: 'ID', hide: true}, |
|
|
|
{field: 'fileName', title: '文件名称', minWidth: 300, fixed: 'left'}, |
|
|
|
{field: 'fileName', title: '文件名称', minWidth: 300, fixed: 'left'}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
field: 'source', |
|
|
|
title: '文件来源', |
|
|
|
title: '文件来源', |
|
|
|
minWidth: 160, |
|
|
|
minWidth: 160, |
|
|
|
|
|
|
|
sort: true, |
|
|
|
templet: data => DICT.getText('data_source', data.source) || data.source || '' |
|
|
|
templet: data => DICT.getText('data_source', data.source) || data.source || '' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{field: 'taskCode', title: '任务代号', minWidth: 160}, |
|
|
|
{field: 'taskCode', title: '任务代号', sort: true, minWidth: 160}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
field: 'taskNature', |
|
|
|
title: '任务性质', |
|
|
|
title: '任务性质', |
|
|
|
minWidth: 160, |
|
|
|
minWidth: 160, |
|
|
|
|
|
|
|
sort: true, |
|
|
|
templet: data => DICT.getText('task_nature', data.taskNature) || data.taskNature || '' |
|
|
|
templet: data => DICT.getText('task_nature', data.taskNature) || data.taskNature || '' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{field: 'troopCode', title: '部队代号', minWidth: 160}, |
|
|
|
{field: 'troopCode', title: '部队代号', sort: true, minWidth: 160}, |
|
|
|
{field: 'missileNumber', title: '导弹编号', minWidth: 160}, |
|
|
|
{field: 'missileNumber', title: '导弹编号', sort: true, minWidth: 160}, |
|
|
|
{field: 'equipmentModel', title: '装备型号', minWidth: 160}, |
|
|
|
{field: 'equipmentModel', title: '装备型号', sort: true, minWidth: 160}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
field: 'targetNumber', |
|
|
|
title: '目标/靶标类型', |
|
|
|
title: '目标/靶标类型', |
|
|
|
minWidth: 160, |
|
|
|
minWidth: 160, |
|
|
|
|
|
|
|
sort: true, |
|
|
|
templet: data => DICT.getText('target_type', data.targetNumber) || data.targetNumber || '' |
|
|
|
templet: data => DICT.getText('target_type', data.targetNumber) || data.targetNumber || '' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{field: 'entryStaff', title: '录入人员', minWidth: 160}, |
|
|
|
{field: 'entryStaff', title: '录入人员', sort: true, minWidth: 160}, |
|
|
|
{field: 'inputDate', title: '收文时间', width: 160, align: 'center'}, |
|
|
|
{field: 'inputDate', title: '收文时间', sort: true, width: 160, align: 'center'}, |
|
|
|
{field: 'remark', title: '文件描述', width: 300}, |
|
|
|
{field: 'remark', title: '文件描述', width: 300}, |
|
|
|
{field: 'text', title: '文件内容', width: 300}, |
|
|
|
{field: 'text', title: '文件内容', width: 300}, |
|
|
|
{fixed: 'right', title: '操作', toolbar: '#fileRowToolBar', width: 100, align: 'center'} |
|
|
|
{fixed: 'right', title: '操作', toolbar: '#fileRowToolBar', width: 100, align: 'center'} |
|
|
@ -262,6 +270,17 @@ layui.use(['layer', 'listPage', 'globalTree', 'gtable', 'form', 'element', 'drop |
|
|
|
}, |
|
|
|
}, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dirFileTable.gtable.on('sort', function (data) { |
|
|
|
|
|
|
|
const {field, type} = data; |
|
|
|
|
|
|
|
let sort = type; |
|
|
|
|
|
|
|
if (!sort || sort === 'null') { |
|
|
|
|
|
|
|
sort = undefined; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
dirFileTable.table.where.field = field.trim(); |
|
|
|
|
|
|
|
dirFileTable.table.where.sort = sort; |
|
|
|
|
|
|
|
dirFileTable.reloadTable({table: dirFileTable.table}) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
// 查看按钮监听
|
|
|
|
// 查看按钮监听
|
|
|
|
dirFileTable.addTableRowEvent('details-file', function (obj) { |
|
|
|
dirFileTable.addTableRowEvent('details-file', function (obj) { |
|
|
|
openMaxLayerWithURL(`${ctx}/sys/file/view?fileId=${obj.id}`) |
|
|
|
openMaxLayerWithURL(`${ctx}/sys/file/view?fileId=${obj.id}`) |
|
|
|