From a710334a378d83c9614cd72c91f3915637eff965 Mon Sep 17 00:00:00 2001 From: Chengliang <1546584672@qq.com> Date: Fri, 15 Sep 2023 17:15:19 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pc4mobx/organization/stores/staff.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pc4mobx/organization/stores/staff.js b/pc4mobx/organization/stores/staff.js index 41441da..21b1b82 100644 --- a/pc4mobx/organization/stores/staff.js +++ b/pc4mobx/organization/stores/staff.js @@ -195,7 +195,11 @@ export class StaffStore { value: '' } }); - const type = data.planId.valueObj[0].control_dimensions; + let title = data.planId.valueObj[0].title; + if(title != undefined) { + title = title.replace(/ /g, "").split("|")[3]; + } + const type = data.planId.valueObj[0].control_dimensions || title; this.condition = this.fcondition; switch(type) { case '分部':