当前位置: 首页 > 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/117506.html

相关文章:

  • 北京建设网网站一键建站
  • 厦门网站开发网络公司乐陵seo外包公司
  • erlang做网站优势google关键词
  • 长沙市房产交易中心官网优化关键词排名公司
  • 海宁做网站北京网络营销招聘
  • 日本做a视频网站市场营销方案范文
  • 小程序登录不上北京seo服务行者
  • 查询网站是否过期武汉seo服务外包
  • 贵阳网站建设企业无代码网站开发平台
  • 手机用什么软件做网站各大网站提交入口网址
  • 怎样建俄文网站关键词优化排名软件
  • 长春建网站一般要多少钱网站优化排名怎么做
  • 大企业网站建设公司排名爱站网为什么不能用了
  • 做网页跳转网站线上推广的方式有哪些
  • 重庆规模最大的建网站公司肇庆seo
  • 计算机培训班价格北京seo优化多少钱
  • 中阔浩潮建设工程有限公司网站中国搜索引擎排行榜
  • 哪里网站建设专业建设网页
  • 怎么利用wordpress做网站百度极速版客服电话
  • 如何让百度收录自己的网站seo的主要工作是什么
  • 潍坊网站建设 世纪环球16楼网页模板代码
  • 做微信小程序是不是不用做网站百度游戏客服在线咨询
  • 忻州免费建网站360关键词指数查询
  • 北海网站制作公司营销心得体会感悟300字
  • 网站htm建设大数据营销系统软件
  • 怎么学习做网站西安seo培训机构
  • 做外链一般都用网站首页吗seo诊断分析在线工具
  • 成都建好的网站出租免费网站的软件
  • 深圳专业做网站服务大数据网络营销
  • 英文网站导航 源码企业全网推广