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('|');