forked from nsjcy/frontEnd/nsjcy

Mr Ke
2020-05-27 58ae2ba21efcd85df331cf996a94038a77302b51
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%' }} >