From 55863c1c58199904782aac73e81527b7d30bba4d Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 26 Apr 2024 12:15:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20pcf=E6=96=B0=E5=A2=9E=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=96=B0=E5=A2=9E=E5=9B=9E=E6=98=BE=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/neUser/pcf/index.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/neUser/pcf/index.vue b/src/views/neUser/pcf/index.vue index 2b10ba9e..63389fda 100644 --- a/src/views/neUser/pcf/index.vue +++ b/src/views/neUser/pcf/index.vue @@ -280,7 +280,10 @@ function fnModalVisibleByEdit(row?: Record) { getRule(neID, row.imsi) .then(res => { if (res.code === RESULT_CODE_SUCCESS) { - modalState.from = Object.assign(modalState.from, res.data); + Object.assign(modalState.from, res.data, { + pccRules: res.data.pccRules.split('|'), + sessRules: res.data.sessRules.split('|'), + }); modalState.title = t('views.neUser.pcf.updateTitle', { imsi: row.imsi, }); @@ -303,7 +306,7 @@ function fnModalVisibleByEdit(row?: Record) { * 进行表达规则校验 */ function fnModalOk() { - const from = toRaw(modalState.from); + const from = JSON.parse(JSON.stringify(modalState.from)); from.neId = queryParams.neId || '-'; from.rfsp = Number(from.rfsp) || 0; from.pccRules = modalState.from.pccRules.join('|');