From d7004986135c0885c1b9a92fb48919179732c00d Mon Sep 17 00:00:00 2001 From: xuxj <hugeinfo123> Date: Sat, 09 May 2020 09:20:13 +0800 Subject: [PATCH] BUG修改 --- SunshineIns/src/page/ApplyFor.jsx | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/SunshineIns/src/page/ApplyFor.jsx b/SunshineIns/src/page/ApplyFor.jsx index 7047bb8..cb266ae 100644 --- a/SunshineIns/src/page/ApplyFor.jsx +++ b/SunshineIns/src/page/ApplyFor.jsx @@ -123,10 +123,9 @@ } confirm = (e) => { - console.log(e); this.setState({ loading: true }) - Fetch.socialDelete(e).then(res => { - if (res.code == 0) { + Fetch.entryDelete(e).then(res => { + if (res.statuscode == 1) { console.log(res) this.setState({ loading: false }) message.success('删除成功'); @@ -173,7 +172,7 @@ <React.Fragment> <Divider type="vertical" /> <Popconfirm - title="确认删除任务吗?" + title="确认删除申请吗?" id={record.id} onConfirm={e => this.confirm(record.id)} okText="确定" -- Gitblit v1.8.0