|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<a-card>
|
|
|
- <a-row :gutter="[8,0]" style="margin-bottom: 10px" >
|
|
|
+ <a-row :gutter="[8,0]" style="margin-bottom: 10px">
|
|
|
<a-col :span="2" v-if="1==2">
|
|
|
<!-- 模板选择 -->
|
|
|
<a-select v-if="1==2" v-model='mode' showSearch @change="changeMode" :defaultValue="0"
|
|
|
@@ -16,14 +16,19 @@
|
|
|
<a-space style="display: flex;justify-content: space-between;">
|
|
|
|
|
|
<div>
|
|
|
- <ZoomInOutlined style="font-size: 18px;padding: 4px;border: 1px solid #ddd; border-radius: 4px; box-shadow: 1px 1px 0 0 rgba(0,0,0,.15);margin-right: 10px;" @click="changeScale(true)"/>
|
|
|
+ <ZoomInOutlined
|
|
|
+ style="font-size: 18px;padding: 4px;border: 1px solid #ddd; border-radius: 4px; box-shadow: 1px 1px 0 0 rgba(0,0,0,.15);margin-right: 10px;"
|
|
|
+ @click="changeScale(true)"/>
|
|
|
<a-input style="width: 50px;" v-model:value="scaleValue" placeholder="default size" disabled/>
|
|
|
- <ZoomOutOutlined style="font-size: 18px;padding: 4px;border: 1px solid #ddd; border-radius: 4px; box-shadow: 1px 1px 0 0 rgba(0,0,0,.15);margin-left: 10px;" @click="changeScale(false)"/>
|
|
|
+ <ZoomOutOutlined
|
|
|
+ style="font-size: 18px;padding: 4px;border: 1px solid #ddd; border-radius: 4px; box-shadow: 1px 1px 0 0 rgba(0,0,0,.15);margin-left: 10px;"
|
|
|
+ @click="changeScale(false)"/>
|
|
|
|
|
|
</div>
|
|
|
- <div class="hiprint-printPagination" style="display: flex;margin: 0;align-items: center;height: auto !important;"></div>
|
|
|
+ <div class="hiprint-printPagination"
|
|
|
+ style="display: flex;margin: 0;align-items: center;height: auto !important;"></div>
|
|
|
<!-- 预览/打印 -->
|
|
|
- <div>
|
|
|
+ <div>
|
|
|
<a-button-group>
|
|
|
<a-button type="primary" @click="preView" style="margin-right: 12px;">
|
|
|
预览
|
|
|
@@ -35,7 +40,7 @@
|
|
|
保存
|
|
|
</a-button>
|
|
|
</a-button-group>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
|
|
|
</a-space>
|
|
|
<!-- 多面板的容器 -->
|
|
|
@@ -269,8 +274,8 @@ export default {
|
|
|
if (this.fieldData[index].type != 'CHILDREN') {
|
|
|
let data = ''
|
|
|
let type = 'text'
|
|
|
- if (this.fieldData[index].type=="TEXT"){
|
|
|
- type='longText'
|
|
|
+ if (this.fieldData[index].type == "TEXT") {
|
|
|
+ type = 'longText'
|
|
|
}
|
|
|
mainFieldData.push({
|
|
|
tid: 'panelsProvider1.' + this.fieldData[index].code, title: title, data: data, type: type,
|
|
|
@@ -300,7 +305,7 @@ export default {
|
|
|
tid: 'panelsProvider1.' + this.fieldData[index].code, title: title,
|
|
|
type: 'table',
|
|
|
options: {
|
|
|
- field: this.fieldData[index].code,
|
|
|
+ field: this.fieldData[index].code,
|
|
|
tableHeaderRepeat: 'first',
|
|
|
tableFooterRepeat: 'last',
|
|
|
fields: fields,
|
|
|
@@ -404,7 +409,10 @@ export default {
|
|
|
type: 'text'
|
|
|
},
|
|
|
{
|
|
|
- tid: 'panelsProvider1.longText', title: '长文本', type: 'longText', options: {
|
|
|
+ tid: 'panelsProvider1.longText',
|
|
|
+ title: '长文本',
|
|
|
+ type: 'longText',
|
|
|
+ options: {
|
|
|
field: 'test.longText',
|
|
|
width: 200,
|
|
|
testData: '长文本分页/不分页'
|
|
|
@@ -429,7 +437,12 @@ export default {
|
|
|
tid: 'panelsProvider1.oval',
|
|
|
title: '椭圆',
|
|
|
type: 'oval'
|
|
|
- }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ tid: 'panelsProvider1.html',
|
|
|
+ title: 'html',
|
|
|
+ type: 'html'
|
|
|
+ },
|
|
|
])
|
|
|
]
|
|
|
);
|
|
|
@@ -458,10 +471,12 @@ export default {
|
|
|
img {
|
|
|
}
|
|
|
}
|
|
|
-:deep(.hiprint-pagination){
|
|
|
+
|
|
|
+:deep(.hiprint-pagination) {
|
|
|
margin: 0;
|
|
|
}
|
|
|
-:deep(.ant-row){
|
|
|
+
|
|
|
+:deep(.ant-row) {
|
|
|
justify-content: space-around;
|
|
|
}
|
|
|
|