From e14558faa2153c19970853cd8ca77500b52b923e Mon Sep 17 00:00:00 2001 From: kgdxpr Date: Mon, 25 Dec 2023 09:12:29 +0800 Subject: [PATCH] 'commit' --- WebRoot/view/tb/org/fields_set.html | 19 +++++++++++++------ WebRoot/view/tb/org/task_list.html | 16 ---------------- 2 files changed, 13 insertions(+), 22 deletions(-) diff --git a/WebRoot/view/tb/org/fields_set.html b/WebRoot/view/tb/org/fields_set.html index 6dff2928..8329c640 100644 --- a/WebRoot/view/tb/org/fields_set.html +++ b/WebRoot/view/tb/org/fields_set.html @@ -221,12 +221,19 @@ "sheet_index": initSheetIndex }, success: function (result) { - layer.msg('成功!', { - icon: 1, - time: 1000, - }); - - $('#ico' + initSheetIndex).removeClass('dh_ico'); + if (result.success) { + layer.msg("上传成功!", { + icon: 1, + time: 1500 + }, function () { + $('#ico' + initSheetIndex).removeClass('dh_ico'); + }); + } else { + layer.msg(result.message, { + icon: 2, + time: 1500 + }); + } } }); }, diff --git a/WebRoot/view/tb/org/task_list.html b/WebRoot/view/tb/org/task_list.html index f356c0a1..272e17ed 100644 --- a/WebRoot/view/tb/org/task_list.html +++ b/WebRoot/view/tb/org/task_list.html @@ -111,22 +111,6 @@ tableRender(); }); - form.on('submit(copyAK)', function (data) { - var text = data.elem.id; - var input = document.createElement('input'); - input.setAttribute('value', text); - document.body.appendChild(input); - input.select(); - document.execCommand('copy'); - document.body.removeChild(input); - layer.msg('已复制到剪贴板!', { - icon: 1, - time: 1000 - }); - return false; // 阻止默认 form 跳转 - }); - - function tableRender() { table.render({ elem: '#data-table',