From 2bd1b48b49a5ea5846d08d87505773d92b6960b0 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Tue, 13 Aug 2019 16:12:34 +0800 Subject: [PATCH] edit --- public/react/src/modules/paths/PathDetail/DetailCards.js | 4 +++- public/react/src/modules/paths/PathDetail/PathDetailIndex.js | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/public/react/src/modules/paths/PathDetail/DetailCards.js b/public/react/src/modules/paths/PathDetail/DetailCards.js index 1dd93daa8..e34666294 100644 --- a/public/react/src/modules/paths/PathDetail/DetailCards.js +++ b/public/react/src/modules/paths/PathDetail/DetailCards.js @@ -171,7 +171,9 @@ class DetailCards extends Component{ delecttype:false, editdelectid:undefined }) - this.getPathCardsList(); + // this.getPathCardsList(); + + this.updatapathCardsedit() } }).catch((error) => { console.log(error) diff --git a/public/react/src/modules/paths/PathDetail/PathDetailIndex.js b/public/react/src/modules/paths/PathDetail/PathDetailIndex.js index 69be22f81..3c17a98f1 100644 --- a/public/react/src/modules/paths/PathDetail/PathDetailIndex.js +++ b/public/react/src/modules/paths/PathDetail/PathDetailIndex.js @@ -484,9 +484,10 @@ class PathDetailIndex extends Component{
{item.name} - {/* 新增allow_delete 判断是否能删除 */} + {/* 新增role 判断是否能删除 1 管理员 2 合作者 */} + { - item.allow_delete===true? + detailInfoList===undefined?"":detailInfoList.allow_add_member===true && item.role == 2? this.shanchuallow(item.id)}>:"" }