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

如何替换网站上的动画网站制作模板软件

如何替换网站上的动画,网站制作模板软件,公司装修费分几年摊销,易语言做网站一、插件 通过xlsx插件解析excel数据#xff0c;对解析后的html组件进行渲染展示。 npm install xlsx 二、完整代码 template!-- excel文件预览 --divelement-loading-text拼命加载中element-loading-spinnerel-icon-loading对解析后的html组件进行渲染展示。 npm install xlsx 二、完整代码  template!-- excel文件预览 --divelement-loading-text拼命加载中element-loading-spinnerel-icon-loadingelement-loading-backgroundrgba(0, 0, 0, 0.8)classpanel-box pd-15div classfile-preel-tabs v-modelactiveName typeborder-card styleoverflow:autoel-tab-pane v-for(item,index) in excelSheet :keyindex :labelitem.name :nameitem.name styleoverflow:autodiv classtable v-htmlitem.innerHTML/div/el-tab-pane/el-tabs/divdiv classtc mgt-20button classbtn-submit clickclose()关闭/button/div/div /templatescript import { read, utils } from xlsx;export default {name:excelFilePreview,data() {return {activeName:,excelSheet:[],};},created() {const params this.$commonUtil.decodeQuery(this.$route.query.info);this.previewFile(params);},methods: {previewFile(docId){this.excelSheet [];const inParam {DOC_ID: docId,STAFF_NAME: this.$store.getters.staffName,SYS_USER_CODE: this.$store.getters.systemUserCode};const loading this.$commonUtil.loading.open();this.$downloadBuffer(this.mciApi.common.file.previewFile, {...inParam}).then(r {loading.close();const data new Uint8Array(r);const workbook read(data, {type: array});// 删除掉没有数据的sheetObject.values(workbook.Sheets).forEach((sheet, index) {if (Object.keys(sheet).indexOf(!ref) -1) {delete workbook.Sheets[workbook.SheetNames[index]];}});this.tableToHtml(workbook);}).catch((e) {loading.close()})},tableToHtml(workbook) {const sheetList workbook.SheetNames.filter((v) v.indexOf(数据源) -1);this.activeName sheetList[0];sheetList.forEach((sheet) {const worksheet workbook.Sheets[sheet];if (worksheet) {const innerHTML utils.sheet_to_html(worksheet);this.excelSheet.push({name: sheet,innerHTML: innerHTML});} else {this.excelSheet.push({name: sheet,innerHTML: 暂无数据,});}});},close(){this.$commonUtil.closeCurrentTagBackLast(this.$route,false);},} }; /scriptstyle langscss scope .file-pre {padding: 20px;.table-html-wrap /deep/ table {border-right: 1px solid #e8eaec;border-bottom: 1px solid #e8eaec;border-collapse: collapse;margin: auto;}.table-html-wrap /deep/ table td {border-left: 1px solid #e8eaec;border-top: 1px solid #e8eaec;white-space: wrap;text-align: left;min-width: 100px;padding: 4px;}table {border-top: 1px solid #EBEEF5;border-left: 1px solid #EBEEF5;width: 100%;overflow: auto;tr {height: 44px;}tr:first-child{background: #f2f8ff;}td {min-width: 200px;max-width: 400px;padding: 4px 8px;border-right: 1px solid #EBEEF5;border-bottom: 1px solid #EBEEF5;}} } /style 注意 $downloadBuffer封装的post请求请求中的 responseType 需要设置为  arraybuffer 三、预览效果
http://www.w-s-a.com/news/428094/

相关文章:

  • 小说网站建站程序企业邮箱地址
  • 福州市住房和城乡建设网站网站开发方案论文
  • 在线教育网站开发网站推广常用方法包括
  • 东莞高端品牌网站建设软件开发模型及特点
  • 个人网站的设计与实现的主要内容网站开发公司架构
  • 浏览器收录网站什么是新媒体营销
  • 上海营销网站建设公司下面哪个不是网页制作工具
  • 有哪些网站可以做设计比赛苏州设计公司排名前十
  • 公益网站建设需求车陂手机网站开发
  • 高端网站建设专业营销团队宁德网站建设51yunsou
  • 网站如何做cdn购物网站建设app开发
  • 简单的手机网站模板好看大方的企业网站源码.net
  • 沈阳住房和城乡建设厅网站网站个人备案做论坛
  • 企业建网站的目的开家网站建设培训班
  • 做怎么网站网站优化和推广
  • 建站工具 风铃网站每年空间域名费用及维护费
  • 网站开发工具 知乎工业软件开发技术就业前景
  • 永济微网站建设费用新手如何自学编程
  • 在本地怎么做网站深圳保障房申请条件2022
  • 广州天河区网站建设公司东莞网络游戏制作开发
  • 哪个网站做免费小程序rio门户网站的制作
  • 短网站生成查询网站所有关键词排名
  • 阿里云购买网站登录技术服务外包公司
  • 淘宝单页面网站手机制作游戏的软件
  • 汉中市网站建设wordpress编辑器好麻烦
  • 织梦做的网站快照被攻击在线看crm系统
  • 青岛物流公司网站建设网站建设提议
  • 企业网站建设高端品牌宿州注册公司多少钱
  • 个人微信公众号怎么做微网站吗湛江网站制作方案
  • 学校网站改版南京展厅设计装修