|
@@ -180,8 +180,8 @@ $(document).ready(() => {
|
|
|
// const cid = $('#changeId').val();
|
|
|
// $('#downloadZip').attr('href', `/tender/${tid}/change/${cid}/download/compresse-file?fileIds=${JSON.stringify(fileIds)}`);
|
|
|
// $('#downloadZip')[0].click();
|
|
|
- if (fileIds.length > 10) {
|
|
|
- return toastr.warning(`最大允许10个文件(当前${fileIds.length}个)`);
|
|
|
+ if (fileIds.length > 20) {
|
|
|
+ return toastr.warning(`最大允许20个文件(当前${fileIds.length}个)`);
|
|
|
}
|
|
|
const tid = $('#tenderId').val();
|
|
|
const cid = $('#changeId').val();
|
|
@@ -297,7 +297,7 @@ function findDecimal(unit) {
|
|
|
// 生成附件列表
|
|
|
function getAllList(currPageNum = 1) {
|
|
|
// 每页最多几个附件
|
|
|
- const pageCount = 15;
|
|
|
+ const pageCount = 20;
|
|
|
// 附件总数
|
|
|
const total = attData.length;
|
|
|
// 总页数
|
|
@@ -312,7 +312,7 @@ function getAllList(currPageNum = 1) {
|
|
|
for(const [index,att] of currPageAttData.entries()) {
|
|
|
html += `<tr>
|
|
|
<td width="25"><input type="checkbox" class="check-file" file-id=${att.id}></td>
|
|
|
- <td>${((currPageNum-1)*15)+index+1}</td>
|
|
|
+ <td>${((currPageNum-1)*pageCount)+index+1}</td>
|
|
|
<td><a href="javascript:void(0)" class="pl-0 col-11 att-file-name" file-id=${att.id}>${att.filename}${att.fileext}</a></td>
|
|
|
<td>${moment(att.in_time * 1000).format('YYYY-MM-DD')}<br>${bytesToSize(att.filesize)}</td>
|
|
|
<td>
|