Browse Source

params改为param

xiatian 5 years ago
parent
commit
a1c6232e8b

+ 8 - 8
examcloud-core-questions-base/src/main/resources/export_template/origin_paper/doc_section.ftl

@@ -4,18 +4,18 @@
 <w:p w:rsidR="00F62967" w:rsidRPr="003A4B1C"
 	w:rsidRDefault="00F62967" w:rsidP="00F62967">
 	<#list section.elements as element>
-	<#if element.type="image">
+	<#if element.type=="image">
 	<w:r>
 		<w:rPr>
 			<w:noProof />
 		</w:rPr>
 		<w:drawing>
 			<wp:inline distT="0" distB="0" distL="0" distR="0">
-				<wp:extent cx="${element.params.width}"
-					cy="${element.params.height}" />
+				<wp:extent cx="${element.param.width}"
+					cy="${element.param.height}" />
 				<wp:effectExtent l="0" t="0" r="0" b="0" />
-				<wp:docPr id="${element.params.index}"
-					name="图片 ${element.params.index}" />
+				<wp:docPr id="${element.param.index}"
+					name="图片 ${element.param.index}" />
 				<wp:cNvGraphicFramePr>
 					<a:graphicFrameLocks
 						xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"
@@ -32,7 +32,7 @@
 								<pic:cNvPicPr />
 							</pic:nvPicPr>
 							<pic:blipFill>
-								<a:blip r:embed="${element.params.rid}" />
+								<a:blip r:embed="${element.param.rid}" />
 								<a:stretch>
 									<a:fillRect />
 								</a:stretch>
@@ -40,8 +40,8 @@
 							<pic:spPr>
 								<a:xfrm>
 									<a:off x="0" y="0" />
-									<a:ext cx="${element.params.width}"
-										cy="${element.params.height}" />
+									<a:ext cx="${element.param.width}"
+										cy="${element.param.height}" />
 								</a:xfrm>
 								<a:prstGeom prst="rect">
 									<a:avLst />

+ 2 - 2
examcloud-core-questions-base/src/main/resources/export_template/origin_paper/document_rel.ftl

@@ -4,9 +4,9 @@
 	xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
 	<#if images?exists>
 	<#list images as image>
-	<Relationship Id="${image.params.rid}"
+	<Relationship Id="${image.param.rid}"
 		Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"
-		Target="media/image${image.params.index}.${image.params.type}" />
+		Target="media/image${image.param.index}.${image.param.type}" />
 	</#list>
 	</#if>
 	<Relationship Id="rId5"

+ 8 - 8
examcloud-core-questions-base/src/main/resources/export_template/origin_paper/exam_reamark_document.ftl

@@ -40,18 +40,18 @@
 <w:p w:rsidR="00F62967" w:rsidRPr="003A4B1C"
 	w:rsidRDefault="00F62967" w:rsidP="00F62967">
 	<#list section.elements as element>
-	<#if element.type="image">
+	<#if element.type=="image">
 	<w:r>
 		<w:rPr>
 			<w:noProof />
 		</w:rPr>
 		<w:drawing>
 			<wp:inline distT="0" distB="0" distL="0" distR="0">
-				<wp:extent cx="${element.params.width}"
-					cy="${element.params.height}" />
+				<wp:extent cx="${element.param.width}"
+					cy="${element.param.height}" />
 				<wp:effectExtent l="0" t="0" r="0" b="0" />
-				<wp:docPr id="${element.params.index}"
-					name="图片 ${element.params.index}" />
+				<wp:docPr id="${element.param.index}"
+					name="图片 ${element.param.index}" />
 				<wp:cNvGraphicFramePr>
 					<a:graphicFrameLocks
 						xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"
@@ -68,7 +68,7 @@
 								<pic:cNvPicPr />
 							</pic:nvPicPr>
 							<pic:blipFill>
-								<a:blip r:embed="${element.params.rid}" />
+								<a:blip r:embed="${element.param.rid}" />
 								<a:stretch>
 									<a:fillRect />
 								</a:stretch>
@@ -76,8 +76,8 @@
 							<pic:spPr>
 								<a:xfrm>
 									<a:off x="0" y="0" />
-									<a:ext cx="${element.params.width}"
-										cy="${element.params.height}" />
+									<a:ext cx="${element.param.width}"
+										cy="${element.param.height}" />
 								</a:xfrm>
 								<a:prstGeom prst="rect">
 									<a:avLst />

+ 9 - 9
examcloud-core-questions-base/src/main/resources/export_template/origin_paper/question_options.ftl

@@ -29,18 +29,18 @@
 	</w:pPr>
 	</#if>
 	<#list section.elements as element>
-	<#if element.type="image">
+	<#if element.type=="image">
 	<w:r>
 		<w:rPr>
 			<w:noProof />
 		</w:rPr>
 		<w:drawing>
 			<wp:inline distT="0" distB="0" distL="0" distR="0">
-				<wp:extent cx="${element.params.width}"
-					cy="${element.params.height}" />
+				<wp:extent cx="${element.param.width}"
+					cy="${element.param.height}" />
 				<wp:effectExtent l="0" t="0" r="0" b="0" />
-				<wp:docPr id="${element.params.index}"
-					name="图片 ${element.params.index}" />
+				<wp:docPr id="${element.param.index}"
+					name="图片 ${element.param.index}" />
 				<wp:cNvGraphicFramePr>
 					<a:graphicFrameLocks
 						xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"
@@ -57,7 +57,7 @@
 								<pic:cNvPicPr />
 							</pic:nvPicPr>
 							<pic:blipFill>
-								<a:blip r:embed="${element.params.rid}" />
+								<a:blip r:embed="${element.param.rid}" />
 								<a:stretch>
 									<a:fillRect />
 								</a:stretch>
@@ -65,8 +65,8 @@
 							<pic:spPr>
 								<a:xfrm>
 									<a:off x="0" y="0" />
-									<a:ext cx="${element.params.width}"
-										cy="${element.params.height}" />
+									<a:ext cx="${element.param.width}"
+										cy="${element.param.height}" />
 								</a:xfrm>
 								<a:prstGeom prst="rect">
 									<a:avLst />
@@ -79,7 +79,7 @@
 		</w:drawing>
 	</w:r>
 	<#else>
-	<#if element.params?exists&&element.params.tab>
+	<#if element.param?exists&&element.param.tab>
 	<w:r>
         <w:tab/>
     </w:r>

+ 8 - 8
examcloud-core-questions-base/src/main/resources/export_template/origin_paper/question_section.ftl

@@ -13,18 +13,18 @@
 	</w:pPr>
 	</#if>
 	<#list section.elements as element>
-	<#if element.type="image">
+	<#if element.type=="image">
 	<w:r>
 		<w:rPr>
 			<w:noProof />
 		</w:rPr>
 		<w:drawing>
 			<wp:inline distT="0" distB="0" distL="0" distR="0">
-				<wp:extent cx="${element.params.width}"
-					cy="${element.params.height}" />
+				<wp:extent cx="${element.param.width}"
+					cy="${element.param.height}" />
 				<wp:effectExtent l="0" t="0" r="0" b="0" />
-				<wp:docPr id="${element.params.index}"
-					name="图片 ${element.params.index}" />
+				<wp:docPr id="${element.param.index}"
+					name="图片 ${element.param.index}" />
 				<wp:cNvGraphicFramePr>
 					<a:graphicFrameLocks
 						xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"
@@ -41,7 +41,7 @@
 								<pic:cNvPicPr />
 							</pic:nvPicPr>
 							<pic:blipFill>
-								<a:blip r:embed="${element.params.rid}" />
+								<a:blip r:embed="${element.param.rid}" />
 								<a:stretch>
 									<a:fillRect />
 								</a:stretch>
@@ -49,8 +49,8 @@
 							<pic:spPr>
 								<a:xfrm>
 									<a:off x="0" y="0" />
-									<a:ext cx="${element.params.width}"
-										cy="${element.params.height}" />
+									<a:ext cx="${element.param.width}"
+										cy="${element.param.height}" />
 								</a:xfrm>
 								<a:prstGeom prst="rect">
 									<a:avLst />

+ 2 - 2
examcloud-core-questions-base/src/main/resources/import_template/question_html.ftl

@@ -2,8 +2,8 @@
 	<p>
 		<#list pList as ele>
 			<#if ele.type=="image">
-		        <#if ele.params??>
-					<img src="${ele.value}" height="${ele.params.height}" width="${ele.params.width}"></img>
+		        <#if ele.param??>
+					<img src="${ele.value}" height="${ele.param.height}" width="${ele.param.width}"></img>
 				<#else>
 					<img src="${ele.value}"></img>
 				</#if>