| | |
| | | > |
| | | <template #code="{ row }"> |
| | | <el-button |
| | | v-if="row.status === EnumContractTemplateStatus.Completed" |
| | | v-if="row.status === EnumContractTemplateStatus.Completed && !!row.code" |
| | | link |
| | | type="primary" |
| | | @click="handlePreviewQrcode(row)" |
| | |
| | | </ProTableV2> |
| | | </AppContainer> |
| | | <TemplateAddDialog v-bind="dialogProps"></TemplateAddDialog> |
| | | <QrcodeDialog v-bind="dialogQrcodeProps"></QrcodeDialog> |
| | | <QrcodeDialog v-bind="dialogQrcodeProps" :useQrcode="false"></QrcodeDialog> |
| | | </LoadingLayout> |
| | | </template> |
| | | |
| | |
| | | function handlePreviewQrcode(row: API.GetEnterpriseContractTemplatesQueryResultItem) { |
| | | handleEdit({ |
| | | // qrcodeUrl: setOSSLink(row.file), |
| | | qrcodeUrl: 'https://www.baidu.com', |
| | | qrcodeUrl: setOSSLink(row.wxmpQrCode), |
| | | }); |
| | | } |
| | | </script> |