From 871d7a57ac27c2833a720a008cf52106ed2b38e0 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Thu, 15 Aug 2019 09:25:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6=E6=9C=89?= =?UTF-8?q?=E4=BD=9C=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/courses/busyWork/CommonWorkPost.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/public/react/src/modules/courses/busyWork/CommonWorkPost.js b/public/react/src/modules/courses/busyWork/CommonWorkPost.js index a4da49d4b..c248c554c 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkPost.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkPost.js @@ -504,6 +504,23 @@ class CommonWorkPost extends Component{ } delecttask_status=(id)=>{ if (this.isEdit) { + let deleteOldMemberIndex = -1; + + if (this._edit_init_memebers && this._edit_init_memebers.length) { + this._edit_init_memebers.some((item, index) => { + if (item.user_id == id) { + deleteOldMemberIndex = index; + return true + } + }) + if (deleteOldMemberIndex == -1) { + this.doDelete(id) + return; + } else { + + } + } + this.props.confirm({ content: