|  | @@ -34,7 +34,7 @@ $(document).ready(function () {
 | 
	
		
			
				|  |  |                          <td><a href="/${fileInfo.filepath}">${fileInfo.file_name}</a></td>
 | 
	
		
			
				|  |  |                          <td>${fileInfo.file_size}</td>
 | 
	
		
			
				|  |  |                          <td>${fileInfo.upload_time}</td>`
 | 
	
		
			
				|  |  | -                    if (user_id == fileInfo.user_id && !checked) {
 | 
	
		
			
				|  |  | +                    if (user_id == fileInfo.user_id && checked) {
 | 
	
		
			
				|  |  |                          html += `<td>
 | 
	
		
			
				|  |  |                          <a class="btn btn-light btn-sm delete-file" data-attid="${fileInfo.id}" title="删除附件">
 | 
	
		
			
				|  |  |                          <span class="fa fa-trash text-danger"></span>
 | 
	
	
		
			
				|  | @@ -64,15 +64,30 @@ $(document).ready(function () {
 | 
	
		
			
				|  |  |                  <td><a href="/${fileInfo.filepath}">${fileInfo.file_name}</a></td>
 | 
	
		
			
				|  |  |                  <td>${fileInfo.file_size}</td>
 | 
	
		
			
				|  |  |                  <td>${fileInfo.upload_time}</td>`
 | 
	
		
			
				|  |  | -                if (user_id == fileInfo.user_id && !checked) {
 | 
	
		
			
				|  |  | -                    html += `<td>
 | 
	
		
			
				|  |  | -                    <a class="btn btn-light btn-sm delete-file" data-attid="${fileInfo.id}" title="删除附件">
 | 
	
		
			
				|  |  | -                    <span class="fa fa-trash text-danger"></span>
 | 
	
		
			
				|  |  | -                    </a>
 | 
	
		
			
				|  |  | -                    </td></tr>`
 | 
	
		
			
				|  |  | +                if (isCheck) {
 | 
	
		
			
				|  |  | +                    // 所有期
 | 
	
		
			
				|  |  | +                    if (fileInfo.pre_delete && user_id == fileInfo.user_id) {
 | 
	
		
			
				|  |  | +                        html += `<td>
 | 
	
		
			
				|  |  | +                        <a class="btn btn-light btn-sm delete-file" data-attid="${fileInfo.id}" title="删除附件">
 | 
	
		
			
				|  |  | +                        <span class="fa fa-trash text-danger"></span>
 | 
	
		
			
				|  |  | +                        </a>
 | 
	
		
			
				|  |  | +                        </td></tr>`
 | 
	
		
			
				|  |  | +                    } else {
 | 
	
		
			
				|  |  | +                        html += `<td></td></tr>`
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  |                  } else {
 | 
	
		
			
				|  |  | -                    html += `<td></td></tr>`
 | 
	
		
			
				|  |  | +                    // 当前期
 | 
	
		
			
				|  |  | +                    if (user_id == fileInfo.user_id && checked) {
 | 
	
		
			
				|  |  | +                        html += `<td>
 | 
	
		
			
				|  |  | +                        <a class="btn btn-light btn-sm delete-file" data-attid="${fileInfo.id}" title="删除附件">
 | 
	
		
			
				|  |  | +                        <span class="fa fa-trash text-danger"></span>
 | 
	
		
			
				|  |  | +                        </a>
 | 
	
		
			
				|  |  | +                        </td></tr>`
 | 
	
		
			
				|  |  | +                    } else {
 | 
	
		
			
				|  |  | +                        html += `<td></td></tr>`
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |              })
 | 
	
		
			
				|  |  |              $('#file-list').empty();
 | 
	
		
			
				|  |  |              $('#file-list').append(html);
 |