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

pdf插件替换

parent a93d5615
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
width="100%" width="100%"
> >
<div v-if="show" style="height: 85vh;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" > <img v-if="['gif','jpg','jpeg','png','bmp'].indexOf(showType)!=-1" :src="url" width="100%" height="100%" border="0" >
</div> </div>
</el-dialog> </el-dialog>
...@@ -80,6 +81,7 @@ ...@@ -80,6 +81,7 @@
</template> </template>
<script> <script>
import {pdf} from 'common'
import { import {
doQuerytree doQuerytree
} from "@/api/basicData/operationDcManagement.js"; } from "@/api/basicData/operationDcManagement.js";
...@@ -108,6 +110,7 @@ ...@@ -108,6 +110,7 @@
components:{ components:{
// MainIndex, // MainIndex,
// LessIndex, // LessIndex,
pdf,
Edit Edit
}, },
data() { data() {
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
width="100%" width="100%"
> >
<div v-if="show" style="height: 85vh;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" > <img v-if="['gif','jpg','jpeg','png','bmp'].indexOf(showType)!=-1" :src="url" width="100%" height="100%" border="0" >
</div> </div>
</el-dialog> </el-dialog>
...@@ -80,6 +81,7 @@ ...@@ -80,6 +81,7 @@
</template> </template>
<script> <script>
import {pdf} from 'common'
import { import {
doQuerytree doQuerytree
} from "@/api/basicData/securityDocumentManagement.js"; } from "@/api/basicData/securityDocumentManagement.js";
...@@ -109,7 +111,8 @@ ...@@ -109,7 +111,8 @@
components:{ components:{
MainIndex, MainIndex,
LessIndex, LessIndex,
Edit Edit,
pdf
}, },
data() { data() {
return{ return{
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
width="100%" width="100%"
> >
<div v-if="show" style="height: 85vh;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" > <img v-if="['gif','jpg','jpeg','png','bmp'].indexOf(showType)!=-1" :src="url" width="100%" height="100%" border="0" >
</div> </div>
</el-dialog> </el-dialog>
...@@ -80,6 +81,7 @@ ...@@ -80,6 +81,7 @@
</template> </template>
<script> <script>
import {pdf} from 'common'
import { import {
doQuery, doQuery,
doDelete, doDelete,
...@@ -106,7 +108,8 @@ ...@@ -106,7 +108,8 @@
components:{ components:{
// MainIndex, // MainIndex,
// LessIndex, // LessIndex,
Edit Edit,
pdf
}, },
data() { data() {
return{ return{
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
width="100%" width="100%"
> >
<div v-if="show" style="height: 85vh;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" > <img v-if="['gif','jpg','jpeg','png','bmp'].indexOf(showType)!=-1" :src="url" width="100%" height="100%" border="0" >
</div> </div>
</el-dialog> </el-dialog>
...@@ -80,6 +81,7 @@ ...@@ -80,6 +81,7 @@
</template> </template>
<script> <script>
import {pdf} from 'common'
import { import {
doQuerytree doQuerytree
} from "@/api/daily/nros.js"; } from "@/api/daily/nros.js";
...@@ -106,6 +108,7 @@ ...@@ -106,6 +108,7 @@
mixins: [tableMixin], mixins: [tableMixin],
name:'securityDocumentManagement', name:'securityDocumentManagement',
components:{ components:{
pdf,
// MainIndex, // MainIndex,
// LessIndex, // LessIndex,
Edit Edit
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
width="100%" width="100%"
> >
<div v-if="show" style="height: 85vh;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" > <img v-if="['gif','jpg','jpeg','png','bmp'].indexOf(showType)!=-1" :src="url" width="100%" height="100%" border="0" >
</div> </div>
</el-dialog> </el-dialog>
...@@ -80,6 +81,7 @@ ...@@ -80,6 +81,7 @@
</template> </template>
<script> <script>
import {pdf} from 'common'
import { import {
doQuerytree doQuerytree
} from "@/api/outsourcingDirector/approve.js"; } from "@/api/outsourcingDirector/approve.js";
...@@ -105,6 +107,7 @@ ...@@ -105,6 +107,7 @@
mixins: [tableMixin], mixins: [tableMixin],
name:'securityDocumentManagement', name:'securityDocumentManagement',
components:{ components:{
pdf,
// MainIndex, // MainIndex,
// LessIndex, // LessIndex,
Edit Edit
......
...@@ -6,8 +6,10 @@ ...@@ -6,8 +6,10 @@
:visible.sync="show" :visible.sync="show"
width="100%" width="100%"
> >
<div v-if="show" style="height: 85vh;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" > <img v-if="['gif','jpg','jpeg','png','bmp'].indexOf(showType)!=-1" :src="url" width="100%" height="100%" border="0" >
</div> </div>
</el-dialog> </el-dialog>
...@@ -80,6 +82,7 @@ ...@@ -80,6 +82,7 @@
</template> </template>
<script> <script>
import {pdf} from 'common'
import { import {
doQuerytree doQuerytree
} from "@/api/outsourcingDirector/declare.js"; } from "@/api/outsourcingDirector/declare.js";
...@@ -108,7 +111,8 @@ ...@@ -108,7 +111,8 @@
components:{ components:{
// MainIndex, // MainIndex,
// LessIndex, // LessIndex,
Edit Edit,
pdf
}, },
data() { data() {
return{ 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