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