ソースを参照

保存测试数据完成

yzp 1 年間 前
コミット
7260f703f1

+ 2 - 2
Web/src/views/system/print/component/editPrint.vue

@@ -156,8 +156,8 @@ const templateSubmit = async () => {
 	let templateJson=hiprintDesignRef.value?.hiprintTemplate.getJson();
 	templateJson.panels[0].index=hiprintDesignRef.value?.mode;
 	state.ruleForm.template = JSON.stringify(templateJson);
-	const printDataDemo = hiprintTemplate.value?.printDataDemo.value;
-	state.ruleForm.printData = printDataDemo;
+	const printDataDemo = hiprintDesignRef.value?.printDataDemo;
+	state.ruleForm.printDataDemo = printDataDemo;
 	if (state.ruleForm.id != undefined && state.ruleForm.id > 0) {
 		await getAPI(SysPrintApi).apiSysPrintUpdatePost(state.ruleForm);
 	} else {

+ 1 - 1
Web/src/views/system/print/component/hiprint/index.vue

@@ -357,7 +357,7 @@ const initPaper = () => {
 };
 
 // 导出对象
-defineExpose({ hiprintTemplate, initPaper, mode });
+defineExpose({ hiprintTemplate, printDataDemo, initPaper, mode });
 </script>
 
 <style lang="scss" scoped>