|
@@ -7,7 +7,7 @@
|
|
|
@change="tabChange"
|
|
|
/>
|
|
|
<HcTooltip keys="transfer_initial_expert_btn_preview">
|
|
|
- <el-button hc-btn type="primary">
|
|
|
+ <el-button hc-btn type="primary" @click="previewClick">
|
|
|
<HcIcon name="file-pdf" />
|
|
|
<span>预览</span>
|
|
|
</el-button>
|
|
@@ -48,7 +48,7 @@
|
|
|
is-new :index-style="{ width: 60 }" is-check :check-style="{ width: 29 }"
|
|
|
@selection-change="tableSelection"
|
|
|
/> -->
|
|
|
- <visualTable :table-data="item1.list " :is-check="false" @getTableKeys="getTableKeys" />
|
|
|
+ <visualTable :table-data="item1.list " :is-check="false" @get-table-keys="getTableKeys" />
|
|
|
</div>
|
|
|
</HcCardItem>
|
|
|
</template>
|
|
@@ -303,6 +303,21 @@ const pdfDate = ref(null)
|
|
|
const onSubmitReportDrawerClose = () => {
|
|
|
isSubmitReportDrawer.value = false
|
|
|
}
|
|
|
+
|
|
|
+//预览
|
|
|
+const previewClick = async ()=>{
|
|
|
+ const { error, code, data, msg } = await initialgApi.getAppPreview({
|
|
|
+ projectId: projectId.value,
|
|
|
+ })
|
|
|
+ if (!error && code === 200) {
|
|
|
+ if (data) {
|
|
|
+ window.open(data, '_blank')
|
|
|
+ } else {
|
|
|
+ window.$message?.warning('文件不存在')
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|