From d1cd5af5adb53e91efdd278328e1b6f8ad834fb5 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 06 二月 2025 21:11:56 +0800 Subject: [PATCH] Merge branch 'positec' into dms --- src/menu/components/card/double-data-card/index.jsx | 25 +++++++++++++++++-------- 1 files changed, 17 insertions(+), 8 deletions(-) diff --git a/src/menu/components/card/double-data-card/index.jsx b/src/menu/components/card/double-data-card/index.jsx index 62a639f..ca1be3d 100644 --- a/src/menu/components/card/double-data-card/index.jsx +++ b/src/menu/components/card/double-data-card/index.jsx @@ -201,7 +201,7 @@ this.updateComponent(_card) } - addSearch = (copy) => { + addSearch = (copy, type = '') => { const { card } = this.state let newcard = {} @@ -222,7 +222,7 @@ } // 娉ㄥ唽浜嬩欢-娣诲姞鎼滅储 - MKEmitter.emit('addSearch', card.uuid, newcard) + MKEmitter.emit('addSearch', card.uuid, newcard, type) } addButton = (copy) => { @@ -466,13 +466,22 @@ } if (res.field && keys.includes(res.field.toLowerCase())) { - resolve({status: false, message: '鎼滅储瀛楁宸插瓨鍦紒'}) - return + resolve({status: false}) + const that = this + confirm({ + title: '鎼滅储瀛楁宸插瓨鍦紒', + okText: '鐭ラ亾浜�', + cancelText: '鏇挎崲', + onOk() {}, + onCancel() { + that.addSearch(res, 'replace') + } + }) + } else { + resolve({status: true}) + + this.addSearch(res) } - - resolve({status: true}) - - this.addSearch(res) } } else if (type === 'action') { if (appType === 'mob' && !['pop', 'prompt', 'exec', 'innerpage'].includes(res.OpenType)) { -- Gitblit v1.8.0