From 8b3fbce45058894a76aefbf11b3a199f60d487d6 Mon Sep 17 00:00:00 2001 From: xuxj <hugeinfo123> Date: Sun, 26 Apr 2020 09:40:15 +0800 Subject: [PATCH] bug修改 --- SunshineIns/src/page/UnitManage.jsx | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/SunshineIns/src/page/UnitManage.jsx b/SunshineIns/src/page/UnitManage.jsx index 0244220..199affd 100644 --- a/SunshineIns/src/page/UnitManage.jsx +++ b/SunshineIns/src/page/UnitManage.jsx @@ -159,15 +159,17 @@ ConfirmTip = (node) => { let _this = this confirm({ - title: <span style={{ fontSize: 19 }}>确定要删除该资源吗?</span>, - content: <span style={{ fontSize: 18 }}>删除该资源的同时,会删除与该资源的所有关系,也会删除所有的子资源。</span>, + title: <span style={{ fontSize: 19 }}>确定要删除该节点吗?</span>, + content: <span style={{ fontSize: 18 }}>删除该节点的同时,会删除与该节点的所有关系,也会删除所有的发布的信息文章。</span>, onOk() { - Fetch.unitDel(node.id).then(res => { - message.success('节点删除成功') - _this.setState({ - rightShow: false + Fetch.deleteType(node.id) + .then(data => { + if (data.statuscode == 1) { + message.success("删除成功!") + } else { + message.error('删除失败,请联系管理员', 2) + } }) - }); _this.loadData(); _this.setState({ treeKey: Date.now() - 1512523199245 }) }, @@ -206,7 +208,7 @@ <HeadView history={this.props.history} /> <Breadcrumb style={{ padding: '20px' }}> <Breadcrumb.Item><a href="">后台中心</a></Breadcrumb.Item> - <Breadcrumb.Item>扫黑除恶</Breadcrumb.Item> + <Breadcrumb.Item>文章分类管理</Breadcrumb.Item> </Breadcrumb> <div style={{ border: 20, margin: 20, padding: 32, flex: 1, background: '#fff' }} > <Row style={{ height: '95%' }} > -- Gitblit v1.8.0