|  |  |  | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <template #code="{ row }"> | 
|---|
|  |  |  | <el-button | 
|---|
|  |  |  | v-if="row.status === EnumContractTemplateStatus.Completed" | 
|---|
|  |  |  | v-if="row.status === EnumContractTemplateStatus.Completed && !!row.wxmpQrCode" | 
|---|
|  |  |  | 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> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | createdTime: { type: 'date' }, | 
|---|
|  |  |  | completedTime: { type: 'date' }, | 
|---|
|  |  |  | status: { type: 'enum', valueEnum: EnumContractTemplateStatusText }, | 
|---|
|  |  |  | isAutoSign: { | 
|---|
|  |  |  | formatter: (row: API.GetEnterpriseContractTemplatesQueryResultItem) => | 
|---|
|  |  |  | row.isAutoSign ? '是' : '否', | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | 
|---|
|  |  |  | function handlePreviewQrcode(row: API.GetEnterpriseContractTemplatesQueryResultItem) { | 
|---|
|  |  |  | handleEdit({ | 
|---|
|  |  |  | // qrcodeUrl: setOSSLink(row.file), | 
|---|
|  |  |  | qrcodeUrl: 'https://www.baidu.com', | 
|---|
|  |  |  | qrcodeUrl: setOSSLink(row.wxmpQrCode), | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | </script> | 
|---|