From da8970a861d4ca9a06b24088f6f40baa3472c342 Mon Sep 17 00:00:00 2001 From: dxfeng Date: Thu, 10 Apr 2025 10:50:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B9=E6=B3=95=E6=95=B4=E5=90=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- JS/test.js | 67 + data.json | 2490 +++++++++++++++++ file.json | 60 + .../secret/service/UnpackZipService.java | 22 +- .../impl/OfflineZipUnpackServiceImpl.java | 653 ++++- .../QualificationApplicationServiceImpl.java | 614 +--- 6 files changed, 3300 insertions(+), 606 deletions(-) create mode 100644 JS/test.js create mode 100644 data.json create mode 100644 file.json diff --git a/JS/test.js b/JS/test.js new file mode 100644 index 0000000..ab66f9d --- /dev/null +++ b/JS/test.js @@ -0,0 +1,67 @@ +let enable = true; +let isRun = false; + +const config = { + 58: {} +} + + +const viewSwitch = () => { + var ids = ModeList.getCheckedID(); + var customId = ModeList.getCustomID(); + if (!ids || ids.length === 0) { + ModeForm.showMessage("请至少选择一条数据"); + } else { + const idArrays = ids.split(','); + const count = idArrays.length; + const msg = `是否将${count}条申请更改为省级事权?`; + + ModeList.showConfirm(msg, function () { + + $.ajax({ + url: '/api/secret/authority/change/delegateToProvincialAuthority', + type: 'POST', + headers: { + 'Content-Type': 'application/x-www-form-urlencoded' + }, + data: { + "ids": ids, + "customId": customId + }, + async: false, + success: function (res) { + if (res.api_status && res.data) { + ModeForm.showModalMsg("系统提示", "操作完成", 3); + } else { + ModeForm.showModalMsg("系统提示", res.errormsg, 2); + } + }, + error: function (error) { + ModeForm.showModalMsg("系统提示", "接口请求异常,请联系管理员处理", 2); + } + }); + + }); + + } +} + + +ecodeSDK.overwritePropsFnQueueMapSet('WeaTop', { + fn: (newProps) => { + if (!enable) return; + const {hash} = window.location; + if (!hash.startsWith('#/main/cube/search')) return; + if (!ModeForm) return; + const customId = ModeList.getCustomID(); + ; + if (!config[customId]) return; + const {Button} = antd; + if (newProps.buttons.length >= 1) newProps.buttons[0] = ( +