|
@@ -10,9 +10,10 @@
|
|
|
>
|
|
|
<div class="dialog-box">
|
|
|
<div class="title">
|
|
|
+ <div class="btn" @click="handleExport">导出</div>
|
|
|
<div class="myclose cursor-pointer" @click="closeDialog"></div>
|
|
|
</div>
|
|
|
- <iframe class="my-body" :src="src"></iframe>
|
|
|
+ <iframe class="my-body" :src="src" id="my-pdf"></iframe>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</template>
|
|
@@ -21,31 +22,26 @@
|
|
|
import {onMounted, toRefs, ref,watch} from "vue";
|
|
|
import {base_img_url2} from "../api/config"
|
|
|
import vueshowpdf from 'vueshowpdf'
|
|
|
-const emit = defineEmits(["closeDialog"]);
|
|
|
+import eventBus from "@/api/eventBus";
|
|
|
+
|
|
|
const title = ref(null)
|
|
|
-const props = defineProps({
|
|
|
- showDialog: {
|
|
|
- type: Boolean,
|
|
|
- default: true,
|
|
|
- },
|
|
|
- title:{
|
|
|
- type:String,
|
|
|
- default:""
|
|
|
- },
|
|
|
- src:{
|
|
|
- type:String,
|
|
|
- default:""
|
|
|
- }
|
|
|
-});
|
|
|
-const {rowData, showDialog } = toRefs(props);
|
|
|
-onMounted(async () => {
|
|
|
+const src=ref()
|
|
|
+const showDialog=ref(false);
|
|
|
|
|
|
+
|
|
|
+onMounted(async () => {
|
|
|
})
|
|
|
|
|
|
function closeDialog(){
|
|
|
showDialog.value = false;
|
|
|
- emit("closeDialog")
|
|
|
}
|
|
|
+function gybgListener(e){
|
|
|
+ showDialog.value = true;
|
|
|
+ src.value = e.filename;
|
|
|
+ title.value = e.title;
|
|
|
+}
|
|
|
+eventBus.off("homePage:gybg",gybgListener)
|
|
|
+eventBus.on("homePage:gybg",gybgListener)
|
|
|
|
|
|
</script>
|
|
|
|
|
@@ -58,12 +54,12 @@ $body-height:calc(100% - $title-height);
|
|
|
position: fixed;
|
|
|
left: calc(50% - 700px);
|
|
|
top:0px;
|
|
|
- width: 1400px;
|
|
|
+ width: 80%;
|
|
|
height: calc(100% - 100px);
|
|
|
background: rgba(1,17,22,0.8);
|
|
|
- box-shadow: 0px 0px 20px 0px #00FFF0;
|
|
|
+ box-shadow: 0px 0px 20px 0px #232323;
|
|
|
border-radius: 4px;
|
|
|
- border: 2px solid rgba(81,233,240,0.6);
|
|
|
+ border: 2px solid #232323;
|
|
|
z-index: 99999;
|
|
|
|
|
|
.title{
|
|
@@ -71,9 +67,9 @@ $body-height:calc(100% - $title-height);
|
|
|
width: 100%;
|
|
|
height: $title-height;
|
|
|
box-sizing: border-box;
|
|
|
- background: rgba(0,77,101,0.8);
|
|
|
+ background: #232323;
|
|
|
border-radius: 4px 4px 0px 0px;
|
|
|
- border-bottom: 2px solid rgba(81,233,240,0.3);
|
|
|
+ border-bottom: 2px solid #232323;
|
|
|
.myclose{
|
|
|
position: absolute;
|
|
|
right: 0px;
|