Commit d4ef302e authored by 李苏's avatar 李苏 💬

pdf插件替换

parent a93d5615
......@@ -7,7 +7,8 @@
width="100%"
>
<div v-if="show" style="height: 85vh;width: 100%">
<iframe v-if="showType=='pdf'" :src="url" width="100%" height="100%" border="0"></iframe>
<pdf v-if="showType=='pdf'" :src="url" ></pdf>
<!-- <iframe v-if="showType=='pdf'" :src="url" width="100%" height="100%" border="0"></iframe> -->
<img v-if="['gif','jpg','jpeg','png','bmp'].indexOf(showType)!=-1" :src="url" width="100%" height="100%" border="0" >
</div>
</el-dialog>
......@@ -80,6 +81,7 @@
</template>
<script>
import {pdf} from 'common'
import {
doQuerytree
} from "@/api/basicData/operationDcManagement.js";
......@@ -108,6 +110,7 @@
components:{
// MainIndex,
// LessIndex,
pdf,
Edit
},
data() {
......
......@@ -7,7 +7,8 @@
width="100%"
>
<div v-if="show" style="height: 85vh;width: 100%">
<iframe v-if="showType=='pdf'" :src="url" width="100%" height="100%" border="0"></iframe>
<pdf v-if="showType=='pdf'" :src="url" ></pdf>
<!-- <iframe v-if="showType=='pdf'" :src="url" width="100%" height="100%" border="0"></iframe> -->
<img v-if="['gif','jpg','jpeg','png','bmp'].indexOf(showType)!=-1" :src="url" width="100%" height="100%" border="0" >
</div>
</el-dialog>
......@@ -80,6 +81,7 @@
</template>
<script>
import {pdf} from 'common'
import {
doQuerytree
} from "@/api/basicData/securityDocumentManagement.js";
......@@ -109,7 +111,8 @@
components:{
MainIndex,
LessIndex,
Edit
Edit,
pdf
},
data() {
return{
......
......@@ -7,7 +7,8 @@
width="100%"
>
<div v-if="show" style="height: 85vh;width: 100%">
<iframe v-if="showType=='pdf'" :src="url" width="100%" height="100%" border="0"></iframe>
<!-- <iframe v-if="showType=='pdf'" :src="url" width="100%" height="100%" border="0"></iframe> -->
<pdf v-if="showType=='pdf'" :src="url" ></pdf>
<img v-if="['gif','jpg','jpeg','png','bmp'].indexOf(showType)!=-1" :src="url" width="100%" height="100%" border="0" >
</div>
</el-dialog>
......@@ -80,6 +81,7 @@
</template>
<script>
import {pdf} from 'common'
import {
doQuery,
doDelete,
......@@ -106,7 +108,8 @@
components:{
// MainIndex,
// LessIndex,
Edit
Edit,
pdf
},
data() {
return{
......
......@@ -7,7 +7,8 @@
width="100%"
>
<div v-if="show" style="height: 85vh;width: 100%">
<iframe v-if="showType=='pdf'" :src="url" width="100%" height="100%" border="0"></iframe>
<pdf v-if="showType=='pdf'" :src="url" ></pdf>
<!-- <iframe v-if="showType=='pdf'" :src="url" width="100%" height="100%" border="0"></iframe> -->
<img v-if="['gif','jpg','jpeg','png','bmp'].indexOf(showType)!=-1" :src="url" width="100%" height="100%" border="0" >
</div>
</el-dialog>
......@@ -80,6 +81,7 @@
</template>
<script>
import {pdf} from 'common'
import {
doQuerytree
} from "@/api/daily/nros.js";
......@@ -106,6 +108,7 @@
mixins: [tableMixin],
name:'securityDocumentManagement',
components:{
pdf,
// MainIndex,
// LessIndex,
Edit
......
......@@ -7,7 +7,8 @@
width="100%"
>
<div v-if="show" style="height: 85vh;width: 100%">
<iframe v-if="showType=='pdf'" :src="url" width="100%" height="100%" border="0"></iframe>
<pdf v-if="showType=='pdf'" :src="url" ></pdf>
<!-- <iframe v-if="showType=='pdf'" :src="url" width="100%" height="100%" border="0"></iframe> -->
<img v-if="['gif','jpg','jpeg','png','bmp'].indexOf(showType)!=-1" :src="url" width="100%" height="100%" border="0" >
</div>
</el-dialog>
......@@ -80,6 +81,7 @@
</template>
<script>
import {pdf} from 'common'
import {
doQuerytree
} from "@/api/outsourcingDirector/approve.js";
......@@ -105,6 +107,7 @@
mixins: [tableMixin],
name:'securityDocumentManagement',
components:{
pdf,
// MainIndex,
// LessIndex,
Edit
......
......@@ -6,8 +6,10 @@
:visible.sync="show"
width="100%"
>
<div v-if="show" style="height: 85vh;width: 100%">
<iframe v-if="showType=='pdf'" :src="url" width="100%" height="100%" border="0"></iframe>
<!-- <iframe v-if="showType=='pdf'" :src="url" width="100%" height="100%" border="0"></iframe> -->
<pdf v-if="showType=='pdf'" :src="url" ></pdf>
<img v-if="['gif','jpg','jpeg','png','bmp'].indexOf(showType)!=-1" :src="url" width="100%" height="100%" border="0" >
</div>
</el-dialog>
......@@ -80,6 +82,7 @@
</template>
<script>
import {pdf} from 'common'
import {
doQuerytree
} from "@/api/outsourcingDirector/declare.js";
......@@ -108,7 +111,8 @@
components:{
// MainIndex,
// LessIndex,
Edit
Edit,
pdf
},
data() {
return{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment