|
@@ -1,8 +1,8 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div>
|
|
<div>
|
|
|
- <el-button type="text" @click="dialogVisible = true">点击打开 Dialog</el-button>
|
|
|
|
|
|
|
+ <!-- <el-button type="text" @click="dialogVisible = true">点击打开 Dialog</el-button> -->
|
|
|
|
|
|
|
|
- <el-dialog title="提示" :visible.sync="dialogVisible" width="80%" height="1080px;" :before-close="handleClose" append-to-body >
|
|
|
|
|
|
|
+ <!-- <el-dialog :visible.sync="dialogVisible" width="80%" height="1080px;" :before-close="handleClose" append-to-body > -->
|
|
|
<el-tabs v-model="activeName" type="card">
|
|
<el-tabs v-model="activeName" type="card">
|
|
|
<el-tab-pane v-for="item in pdfFileList" :key="item.value" label="合同信息" name="first" style="height:780px;">
|
|
<el-tab-pane v-for="item in pdfFileList" :key="item.value" label="合同信息" name="first" style="height:780px;">
|
|
|
<embed :src="'data:application/pdf;base64,' + item.base64" type="application/pdf" title="Embedded PDF" style="overflow: auto; width: 100%; height: 100%;"/>
|
|
<embed :src="'data:application/pdf;base64,' + item.base64" type="application/pdf" title="Embedded PDF" style="overflow: auto; width: 100%; height: 100%;"/>
|
|
@@ -45,9 +45,9 @@
|
|
|
</el-tabs>
|
|
</el-tabs>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="selectChildType">确 定</el-button>
|
|
|
|
|
|
|
+ <!-- <el-button type="primary" @click="selectChildType">确 定</el-button> -->
|
|
|
</span>
|
|
</span>
|
|
|
- </el-dialog>
|
|
|
|
|
|
|
+ <!-- </el-dialog> -->
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -76,6 +76,7 @@ export default {
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
|
|
+ this.dialogVisible = true;
|
|
|
for(var i = 0 ; i < this.pdfFileList.length; i++){
|
|
for(var i = 0 ; i < this.pdfFileList.length; i++){
|
|
|
var base64 = this.pdfFileList[i].base64;
|
|
var base64 = this.pdfFileList[i].base64;
|
|
|
<embed src="data:application/pdf;base64," type="application/pdf" title="Embedded PDF" style="overflow: auto; width: 100%; height: 100%;"/>
|
|
<embed src="data:application/pdf;base64," type="application/pdf" title="Embedded PDF" style="overflow: auto; width: 100%; height: 100%;"/>
|