|
@@ -2916,12 +2916,16 @@ $(document).ready(() => {
|
|
|
|
|
|
const uuid = $(this).attr('data-imid');
|
|
|
const file_id = $(this).attr('data-attid');
|
|
|
-
|
|
|
- postData(window.location.pathname + '/im-file/del', { uuid, file_id }, function (result) {
|
|
|
- stageIm.loadUpdateDetailAtt(result);
|
|
|
- SpreadJsObj.reLoadRowData(self.sheet, sels[0].row);
|
|
|
- self.makeAttTable(select);
|
|
|
+ const att = select.attachment.find(x => {
|
|
|
+ return x.file_id === file_id;
|
|
|
});
|
|
|
+ deleteAfterHint(function () {
|
|
|
+ postData(window.location.pathname + '/im-file/del', { uuid, file_id }, function (result) {
|
|
|
+ stageIm.loadUpdateDetailAtt(result);
|
|
|
+ SpreadJsObj.reLoadRowData(self.sheet, sels[0].row);
|
|
|
+ self.makeAttTable(select);
|
|
|
+ });
|
|
|
+ }, `确认删除附件「${att.filename}」?`);
|
|
|
});
|
|
|
// 预览附件
|
|
|
$('body').on('click', '.preview-att', function () {
|