Browse Source

二维码非表格卡片

lwx_16
liwenxuan 10 months ago
parent
commit
0071e0140b
  1. 27
      src/components/DesignForm/tableListPage/index.vue

27
src/components/DesignForm/tableListPage/index.vue

@ -626,7 +626,9 @@ const setUpClick = (val: string, id: string) => {
}else if(props.formBasicConfig.qrCodePrintStyle&&props.formBasicConfig.qrCodePrintStyle=="1"){ }else if(props.formBasicConfig.qrCodePrintStyle&&props.formBasicConfig.qrCodePrintStyle=="1"){
//fieldsMap = null //fieldsMap = null
tablesData.value = getDetailQrCodesData
qrCodesPrintDialogFlag.value = true qrCodesPrintDialogFlag.value = true
loadingInstance1.close()
} }
})/* .finally(()=>{ })/* .finally(()=>{
@ -1961,6 +1963,31 @@ const diGuiJilian = (val: any, options: any[]) => {
</table> </table>
</div> </div>
</div> </div>
<div v-if="formBasicConfig.qrCodePrintStyle == '1'" style="display: flex; flex-direction: column; align-items: center; min-height: 50px; max-height: 750px; overflow-y: auto">
<div
v-for="(tableData, tableKey) in tablesData"
:id="tableKey"
:key="tableKey"
:ref="(el: any) => { if (el) tableRefs[tableKey] = el }"
style="margin-bottom: 30px; width: 400px;"
>
<table >
<tr>
<th style="font-weight: bold; font-size:medium;" colspan="1">{{ tableData.groupName }}-{{ tablesData[tableKey].appName }}-{{ tablesData[tableKey].formName }}-{{ tableKey }}</th>
<!-- <th ><img :src="tableData.bufferedImage" alt="二维码" width="auto" height="100%"></th> -->
</tr>
<tr>
<!-- <th style="font-weight: bold; font-size:medium;" colspan="2">{{ tableData.groupName }}-{{ tablesData[tableKey].appName }}-{{ tablesData[tableKey].formName }}-{{ tableKey }}</th> -->
<th ><img :src="tableData.bufferedImage" alt="二维码" width="auto" height="100%"></th>
</tr>
<!-- <tr v-for="(item, fIndex) in tableData.fieldsMap" :key="fIndex">
<th>{{ item.key }}</th>
<td>{{ item.value }}</td>
</tr> -->
</table>
</div>
</div>
<template #footer> <template #footer>
<div class="dialog-footer"> <div class="dialog-footer">
<el-button :disabled="isButton1Disabled" type="primary" plain @click="downloadTables">下载</el-button> <el-button :disabled="isButton1Disabled" type="primary" plain @click="downloadTables">下载</el-button>

Loading…
Cancel
Save