修复添加打印模板时json数据处理
This commit is contained in:
parent
86f8356ef4
commit
5aeae0d556
@ -112,8 +112,10 @@ onMounted(async () => {});
|
||||
// 打开弹窗
|
||||
const openDialog = (row: any) => {
|
||||
state.ruleForm = JSON.parse(JSON.stringify(row));
|
||||
let templateJson = JSON.parse(state.ruleForm.template);
|
||||
mode.value = templateJson.panels[0].index;
|
||||
if (JSON.stringify(state.ruleForm) !== '{}') {
|
||||
let templateJson = JSON.parse(state.ruleForm.template);
|
||||
mode.value = templateJson.panels[0].index;
|
||||
}
|
||||
state.isShowDialog = true;
|
||||
ruleFormRef.value?.resetFields();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user