fix: pcf新增表单数据新增回显问题
This commit is contained in:
@@ -280,7 +280,10 @@ function fnModalVisibleByEdit(row?: Record<string, any>) {
|
|||||||
getRule(neID, row.imsi)
|
getRule(neID, row.imsi)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
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', {
|
modalState.title = t('views.neUser.pcf.updateTitle', {
|
||||||
imsi: row.imsi,
|
imsi: row.imsi,
|
||||||
});
|
});
|
||||||
@@ -303,7 +306,7 @@ function fnModalVisibleByEdit(row?: Record<string, any>) {
|
|||||||
* 进行表达规则校验
|
* 进行表达规则校验
|
||||||
*/
|
*/
|
||||||
function fnModalOk() {
|
function fnModalOk() {
|
||||||
const from = toRaw(modalState.from);
|
const from = JSON.parse(JSON.stringify(modalState.from));
|
||||||
from.neId = queryParams.neId || '-';
|
from.neId = queryParams.neId || '-';
|
||||||
from.rfsp = Number(from.rfsp) || 0;
|
from.rfsp = Number(from.rfsp) || 0;
|
||||||
from.pccRules = modalState.from.pccRules.join('|');
|
from.pccRules = modalState.from.pccRules.join('|');
|
||||||
|
|||||||
Reference in New Issue
Block a user