From 0ecde1c329ef1136f8f2a261c856ea405b327914 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 24 一月 2025 20:22:25 +0800 Subject: [PATCH] 2025-01-24 --- src/menu/components/card/data-card/index.jsx | 25 +++++++++++++++++-------- 1 files changed, 17 insertions(+), 8 deletions(-) diff --git a/src/menu/components/card/data-card/index.jsx b/src/menu/components/card/data-card/index.jsx index 6e8d9fd..6723bb4 100644 --- a/src/menu/components/card/data-card/index.jsx +++ b/src/menu/components/card/data-card/index.jsx @@ -207,7 +207,7 @@ this.updateComponent(_card) } - addSearch = (copy) => { + addSearch = (copy, type = '') => { const { card } = this.state let newcard = {} @@ -228,7 +228,7 @@ } // 娉ㄥ唽浜嬩欢-娣诲姞鎼滅储 - MKEmitter.emit('addSearch', card.uuid, newcard) + MKEmitter.emit('addSearch', card.uuid, newcard, type) } addButton = (copy) => { @@ -501,13 +501,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 (res.style) { -- Gitblit v1.8.0