From 1af91a055d0de9b2ac3fc94ad68bb7670939410c Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 19 一月 2021 19:21:00 +0800 Subject: [PATCH] 2021-01-19 --- src/tabviews/zshare/actionList/excelInbutton/index.jsx | 31 +++++++++++++++++-------------- 1 files changed, 17 insertions(+), 14 deletions(-) diff --git a/src/tabviews/zshare/actionList/excelInbutton/index.jsx b/src/tabviews/zshare/actionList/excelInbutton/index.jsx index 33ecd5d..0ffe673 100644 --- a/src/tabviews/zshare/actionList/excelInbutton/index.jsx +++ b/src/tabviews/zshare/actionList/excelInbutton/index.jsx @@ -93,25 +93,28 @@ duration: 5 }) return - } - - if (btn.verify && btn.verify.sheet && btn.verify.columns && btn.verify.columns.length > 0) { - let primaryId = '' // 瀵煎叆鏃惰Id - if (btn.Ot === 'requiredSgl') { - primaryId = data[0][setting.primaryKey] || '' - } - - this.setState({ - primaryId: primaryId - }, () => { - this.refs.excelIn.exceltrigger() - }) - } else { + } else if (!btn.verify || !btn.verify.sheet || !btn.verify.columns || btn.verify.columns.length === 0) { notification.warning({ top: 92, message: 'excel瀵煎叆楠岃瘉淇℃伅鏈缃紒', duration: 5 }) + return + } + + let primaryId = '' // 瀵煎叆鏃惰Id + if (btn.Ot === 'requiredSgl') { + primaryId = data[0][setting.primaryKey] || '' + } + + this.setState({ + primaryId: primaryId + }, () => { + this.refs.excelIn.exceltrigger() + }) + + if (window.GLOB.systemType === 'production') { + MKEmitter.emit('queryTrigger', {menuId: btn.uuid, name: '瀵煎叆Excel'}) } } -- Gitblit v1.8.0