当前位置: 首页 > wzjs >正文

广西网站建设公司优化网络的软件下载

广西网站建设公司,优化网络的软件下载,上海恒鑫网站建设,那些网站可以做推广效果&#xff1a;左中右布局:左侧是清单内容&#xff0c;中间是清单的文件列表&#xff0c;点击文件列表可以预览文件详情&#xff0c;右侧是文件预览效果 el-draw部分&#xff1a; <el-drawer :title"showPdfViewer.title" :close-on-click-modal"false&quo…

效果:左中右布局:左侧是清单内容,中间是清单的文件列表,点击文件列表可以预览文件详情,右侧是文件预览效果

el-draw部分:

 <el-drawer :title="showPdfViewer.title" :close-on-click-modal="false" v-model="showPdfViewer.visible" size="100%" append-to-body><div class="shenpi-content"><el-card shadow="hover" style="width: 25%; margin-right: 10px; "><template #header><span style="color: #409EFF;">备案信息</span></template><div class="shenpi-form"><el-form ref="beianShenpiFormRef" :model="form" :rules="rules" label-width="100px"><el-form-item label="技术名称" prop="techName">{{form.techName}}</el-form-item><!--            <el-form-item label="医院名称" prop="hospName">--><!--              {{form.hospName}}--><!--            </el-form-item>--><el-form-item label="申请类型" prop="shenqingLeixing">{{ CaoZuoLeiXingLabelMap[form.shenqingLeixing]  }}</el-form-item><el-form-item label="申请人姓名" prop="shenqingren">{{form.shenqingren}}</el-form-item><el-form-item label="申请日期" prop="shenqingRiqi">{{form.shenqingRiqi}}</el-form-item><el-form-item label="审批人" prop="shenpiRen">{{form.shenqingRiqi}}</el-form-item><el-form-item label="审批时间" prop="shenpiShijian">{{form.shenpiShijian}}</el-form-item><el-form-item label="状态" prop="zhuangtai"><el-tag v-if="form.zhuangtai == '1'" type="warning" effect="light">待审批</el-tag><el-tag v-if="form.zhuangtai == '2'" type="success" effect="light">审批通过</el-tag><el-tag v-if="form.zhuangtai == '3'" type="danger" effect="light">审批驳回</el-tag></el-form-item><el-form-item label="备注" prop="remark">{{form.remark}}</el-form-item><el-form-item label="审批意见" prop="shenpiYijian"><el-input type="textarea" :disabled="form.zhuangtai!=1" :rows="5" v-model="form.shenpiYijian"></el-input></el-form-item><el-form-item label="操作" v-if="form.zhuangtai == '1'"><el-row :gutter="10" style="display: flex; align-items: center;"><el-col :span="12"><el-button type="primary" @click="shenpiTongGuo()" style="width: 100%;">审批通过</el-button></el-col><el-col :span="12"><el-button type="warning" @click="shenpiBohui()" style="width: 100%;">审批驳回</el-button></el-col></el-row></el-form-item></el-form></div></el-card><el-card shadow="hover" style="width:28%; margin-right: 10px;" ><template #header><span style="color: #409EFF;">附件列表</span></template><div class="shenpi-fujians"><div class="file-list" style="max-height: 700px; overflow-y: auto;"><ul class="file-list-ul"><liclass="file-list-item":class="{ selected: showPdfViewer.ossId === item.ossId }":key="item.ossId"@click="handleShowPdfViewer(item)"v-for="item in beianFiles"><span v-if="item.shenQingLeiXing" style="color: red">【{{ CaoZuoLeiXingLabelMap[item.shenQingLeiXing]}}】</span>{{ item.detptAndRenYuanName ? '(' + item.detptAndRenYuanName + ')' + item.cailiaoMingcheng : item.cailiaoMingcheng }}</li></ul></div></div></el-card><div style="height: 100%;width: 70%;" v-if="showPdfViewer.ossId"><oss-pdf-viewer v-if="showPdfViewer.visible" :oss-id="showPdfViewer.ossId"></oss-pdf-viewer></div></div></el-drawer>

style部分:

<style lang="scss">
.shenpi-content {height: 100%;display: flex;gap: 10px;// 表单.shenpi-form {display: flex;}// 附件列表.shenpi-fujians {display: flex;margin-left: 20px;width: 100%;}
}
// 文件列表
.file-list-ul {list-style: none;padding: 0;margin: 0;width: 300px;.file-list-item {width: 100%;padding: 10px;margin-bottom: 5px;background-color: #f9f9f9;border-radius: 4px;cursor: pointer;transition: background-color 0.3s ease;font-size: 14px;&:hover {background-color: #e0e0e0;}&.selected {background-color: #d1e7dd; /* 选中时的背景颜色 */font-weight: bold; /* 选中时的字体加粗 */}}
}
</style>

 pdf组件预览组件:

proxy?.$download.ossBlod(props.ossId)替换成自己的实际下载方法就行返回Promise<Blob>,我用的是若依框架

预览组件:

<template><!--  {{pdfUrl}}--><iframe :src="pdfUrl" style="border: none; width: 100%; height: 100%;"></iframe><!--    <pdf-viewer :pdf-url="pdfUrl"></pdf-viewer>-->
</template><script setup name="OssPdfViewer" lang="ts">
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const props = defineProps({ossId: {type: [String , Number],required: true,},
});
const pdfUrl = ref('')
const handleDownload = () => {proxy?.$download.ossBlod(props.ossId).then(data=>{const blob = new Blob([data],{type:'application/pdf'})let url = window.URL.createObjectURL(blob)pdfUrl.value = url})
}
watch(()=>props.ossId,()=>{handleDownload()
})onMounted(()=>{handleDownload()
})
</script>
http://www.dtcms.com/wzjs/142806.html

相关文章:

  • ai网站推荐网上营销的平台有哪些
  • 网站开发计什么科目百度快照推广有效果吗
  • appmakr教程搜索引擎优化的核心是
  • 网站页面效果图怎么做的品牌营销平台
  • 网站整站优化如何让百度快速收录
  • b2b网站主要功能今天《新闻联播》回放
  • 网站cms下载网站怎么制作免费的
  • 网站要什么山东关键词网络推广
  • 如何做网站需求黄冈网站推广优化找哪家
  • 网络营销名词解释是什么最好用的手机优化软件
  • 润商网站建设服务定西seo排名
  • 快速搭建网站工具长沙网站优化seo
  • 两女互舔互做日美网站湖南seo博客seo交流
  • 黄页广告网站打开一个网站
  • 做网站什么用舆情分析报告
  • 怎样能让百度搜到自己的网站百度公司总部地址
  • 济南门户网站建设网页平台做个业务推广
  • dw做网站怎么发布黄页推广2021
  • 国外有什么做网站的软件吗百度地图人工客服电话
  • 网站建设做好了怎样链接域名网站友情链接有什么用
  • 烟台H5网站设计水果网络营销策划方案
  • 网站不显示域名解析错误怎么办百度资源搜索
  • 衡阳网站建设icp备免费找精准客户软件
  • 公众号管理平台入口seo优化技巧有哪些
  • 自己放题库做测试网站如何优化
  • 招投标 网站建设 山西怎样在网上推广自己的产品
  • 攻击网站常用方法百度广告联盟app
  • 转行学python后悔了武汉seo霸屏
  • 美国建网站的价格最新nba排名
  • 什么网站做的产品海报比较多天津做优化好的公司