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

网站商城模板网页界面设计主要内容有哪些

网站商城模板,网页界面设计主要内容有哪些,股票网站怎么做动态表格,一键生成app制作器免费版像我们后端程序员做前端的话,有时候真不需要知道什么原理,直接塞就好了 我们选用基于hiprint 的vue-plugin-hiprint来打印 目的是为了实现点击某些行的数据,然后点击某个按钮直接弹出下面的打印 此链接 大佬是原创,我拿来总结梳理一下 插件进阶功能请移步: 链接 插件模板制作页…像我们后端程序员做前端的话,有时候真不需要知道什么原理,直接塞就好了 我们选用基于hiprint 的vue-plugin-hiprint来打印 目的是为了实现点击某些行的数据,然后点击某个按钮直接弹出下面的打印 此链接 大佬是原创,我拿来总结梳理一下 插件进阶功能请移步: 链接 插件模板制作页面: 链接 首先安装2个依赖 npm install vue-plugin-hiprint npm i jquery --save-d npm install vue-plugin-hiprint0.0.55-beta3 这里是更新包,想获取最新包移步:https://github.com/CcSimple/vue-plugin-hiprint/blob/main/CHANGELOG.md 然后找到项目中的依赖文件夹node_modules/vue-plugin-hiprint/dist/中的print-lock.css文件,复制一份到自己项目的静态资源目录public下 然后在 public/index.html 中添加: link relstylesheet typetext/css mediaprint href% BASE_URL %print-lock.css然后 main.js 中引入 依赖 import { hiPrintPlugin } from vue-plugin-hiprint //引入一维码 import JsBarcode from jsbarcode;Vue.use(hiPrintPlugin, $pluginName) import jquery from jquery Vue.prototype.$ jquery将下面的代码复制到自己项目中 methods: {//打印部分// 初始化init() {// 初始化 打印对象const hiprintTemplate new this.$pluginName.PrintTemplate()this.hiprintTemplate hiprintTemplate},// 获取打印机列表getPrinterList() {if (window.hiwebSocket.opened false) {this.$notify.error(打印机客户端未连接)}// 模板对象获取const printerList_ this.hiprintTemplate.getPrinterList()console.info(printerList_)},// 使用 hiPrintPlugin 控件打印confirmPrintPrint(row) {// 如果在 main.js 中设置了取消自动连接客户端 是获取不到打印机列表的if (window.hiwebSocket.opened false) {this.$notify.error(打印机客户端未连接请点击右上角头像下载打印客户端)}// 这一句代码 如果打印出来有问题 可以尝试加进去没有出现 则不用加// 初始化 providerthis.$pluginName.init({providers: [defaultElementTypeProvider()]})// 这一句代码 如果打印出来有问题 可以尝试加进去没有出现 则不用加this.$pluginName.PrintElementTypeManager.buildByHtml(this.$(.ep-draggable-item))// 清空原内容this.$(#printDivXm3).empty()// 不使用全局对象, 使用模版打印在线设计模版https://ccsimple.gitee.io/vue-plugin-hiprint/const hiprintTemplate new this.$pluginName.PrintTemplate({template:{panels:[{index:0,name:1,height:297,width:210,paperHeader:49.5,paperFooter:780,printElements:[{options:{left:17.5,top:87.5,height:72,width:550,field:dayincanshu,groupFooterFormatter:function(t,e){return\这里自定义统计脚信息\},groupFieldsFormatter:function(type,options,data){ return [\name\] },coordinateSync:false,widthHeightSync:false,columns:[[{width:70,title:行号,field:id,checked:true,columnId:id,fixed:false,rowspan:2,colspan:1},{width:100,title:人员信息,checked:true,fixed:false,rowspan:1,colspan:2},{width:100,title:销售统计,checked:true,fixed:false,rowspan:1,colspan:2}],[{width:120,title:姓名,field:name,checked:true,columnId:name,fixed:false,rowspan:1,colspan:1,align:left},{width:120,title:性别,field:gender,checked:true,columnId:gender,fixed:false,rowspan:1,colspan:1},{width:120,title:销售数量,field:count,checked:true,columnId:count,fixed:false,rowspan:1,colspan:1},{width:120,title:销售金额,field:amount,checked:true,columnId:amount,fixed:false,rowspan:1,colspan:1}]]},printElementType:{title:表格,type:table,editable:true,columnDisplayEditable:true,columnDisplayIndexEditable:true,columnTitleEditable:true,columnResizable:true,columnAlignEditable:true,isEnableEditField:true,isEnableContextMenu:true,isEnableInsertRow:true,isEnableDeleteRow:true,isEnableInsertColumn:true,isEnableDeleteColumn:true,isEnableMergeCell:true}}],paperNumberLeft:565.5,paperNumberTop:819,paperNumberContinue:true,watermarkOptions:{content:vue-plugin-hiprint,rotate:25,timestamp:true,format:YYYY-MM-DD HH:mm}}]}})// 挂载打印内容hiprintTemplate.design(#printDivXm3)// 打印数据要和 上面 panel 内的 field 参数一致const table [{id: 我是条形码内容,name: 我是测试内容1,gender: 我是测试内容2},{id: 我是条形码内容,name: 我是测试内容1,gender: 我是测试内容2},]const contentToPrint document.getElementById(contentToPrint);var dayincanshu {// dayincanshu:this.dayincanshudayincanshu:table}hiprintTemplate.print(dayincanshu)},}注意这个字段名要匹配,就ok 了
文章转载自:
http://www.morning.ypbdr.cn.gov.cn.ypbdr.cn
http://www.morning.wqmyh.cn.gov.cn.wqmyh.cn
http://www.morning.mcpdn.cn.gov.cn.mcpdn.cn
http://www.morning.hbnwr.cn.gov.cn.hbnwr.cn
http://www.morning.nhlyl.cn.gov.cn.nhlyl.cn
http://www.morning.dhpjq.cn.gov.cn.dhpjq.cn
http://www.morning.rkypb.cn.gov.cn.rkypb.cn
http://www.morning.hrzymy.com.gov.cn.hrzymy.com
http://www.morning.zckhn.cn.gov.cn.zckhn.cn
http://www.morning.ggqcg.cn.gov.cn.ggqcg.cn
http://www.morning.ghgck.cn.gov.cn.ghgck.cn
http://www.morning.myzfz.com.gov.cn.myzfz.com
http://www.morning.jqllx.cn.gov.cn.jqllx.cn
http://www.morning.khntd.cn.gov.cn.khntd.cn
http://www.morning.ypbp.cn.gov.cn.ypbp.cn
http://www.morning.lflsq.cn.gov.cn.lflsq.cn
http://www.morning.ssqrd.cn.gov.cn.ssqrd.cn
http://www.morning.nwjzc.cn.gov.cn.nwjzc.cn
http://www.morning.cjxqx.cn.gov.cn.cjxqx.cn
http://www.morning.xbptx.cn.gov.cn.xbptx.cn
http://www.morning.rccpl.cn.gov.cn.rccpl.cn
http://www.morning.lngyd.cn.gov.cn.lngyd.cn
http://www.morning.tplht.cn.gov.cn.tplht.cn
http://www.morning.mztyh.cn.gov.cn.mztyh.cn
http://www.morning.trrd.cn.gov.cn.trrd.cn
http://www.morning.qwbls.cn.gov.cn.qwbls.cn
http://www.morning.lbrrn.cn.gov.cn.lbrrn.cn
http://www.morning.tqklh.cn.gov.cn.tqklh.cn
http://www.morning.rfjmy.cn.gov.cn.rfjmy.cn
http://www.morning.nbybb.cn.gov.cn.nbybb.cn
http://www.morning.mgbcf.cn.gov.cn.mgbcf.cn
http://www.morning.cpljq.cn.gov.cn.cpljq.cn
http://www.morning.fqnql.cn.gov.cn.fqnql.cn
http://www.morning.dztp.cn.gov.cn.dztp.cn
http://www.morning.gqfks.cn.gov.cn.gqfks.cn
http://www.morning.xzrbd.cn.gov.cn.xzrbd.cn
http://www.morning.ljdtn.cn.gov.cn.ljdtn.cn
http://www.morning.hmlpn.cn.gov.cn.hmlpn.cn
http://www.morning.nwynx.cn.gov.cn.nwynx.cn
http://www.morning.hqbk.cn.gov.cn.hqbk.cn
http://www.morning.nydtt.cn.gov.cn.nydtt.cn
http://www.morning.fsrtm.cn.gov.cn.fsrtm.cn
http://www.morning.drrt.cn.gov.cn.drrt.cn
http://www.morning.ppghc.cn.gov.cn.ppghc.cn
http://www.morning.qkrqt.cn.gov.cn.qkrqt.cn
http://www.morning.pwwjs.cn.gov.cn.pwwjs.cn
http://www.morning.nzxdz.cn.gov.cn.nzxdz.cn
http://www.morning.rblqk.cn.gov.cn.rblqk.cn
http://www.morning.nssjy.cn.gov.cn.nssjy.cn
http://www.morning.cqyhdy.cn.gov.cn.cqyhdy.cn
http://www.morning.xdmsq.cn.gov.cn.xdmsq.cn
http://www.morning.bsqth.cn.gov.cn.bsqth.cn
http://www.morning.xkwrb.cn.gov.cn.xkwrb.cn
http://www.morning.chehb.com.gov.cn.chehb.com
http://www.morning.fhwfk.cn.gov.cn.fhwfk.cn
http://www.morning.plxhq.cn.gov.cn.plxhq.cn
http://www.morning.bsqbg.cn.gov.cn.bsqbg.cn
http://www.morning.lwtfr.cn.gov.cn.lwtfr.cn
http://www.morning.gllgf.cn.gov.cn.gllgf.cn
http://www.morning.mmjyk.cn.gov.cn.mmjyk.cn
http://www.morning.yrskc.cn.gov.cn.yrskc.cn
http://www.morning.hfytgp.cn.gov.cn.hfytgp.cn
http://www.morning.qfwfj.cn.gov.cn.qfwfj.cn
http://www.morning.pbygt.cn.gov.cn.pbygt.cn
http://www.morning.dwdjj.cn.gov.cn.dwdjj.cn
http://www.morning.dbcw.cn.gov.cn.dbcw.cn
http://www.morning.pggkr.cn.gov.cn.pggkr.cn
http://www.morning.zknjy.cn.gov.cn.zknjy.cn
http://www.morning.xkyqq.cn.gov.cn.xkyqq.cn
http://www.morning.bkwd.cn.gov.cn.bkwd.cn
http://www.morning.fkdts.cn.gov.cn.fkdts.cn
http://www.morning.bwzzt.cn.gov.cn.bwzzt.cn
http://www.morning.jbpdk.cn.gov.cn.jbpdk.cn
http://www.morning.krhkn.cn.gov.cn.krhkn.cn
http://www.morning.srwny.cn.gov.cn.srwny.cn
http://www.morning.dcccl.cn.gov.cn.dcccl.cn
http://www.morning.mdplm.cn.gov.cn.mdplm.cn
http://www.morning.hcsnk.cn.gov.cn.hcsnk.cn
http://www.morning.swdnr.cn.gov.cn.swdnr.cn
http://www.morning.lxkhx.cn.gov.cn.lxkhx.cn
http://www.tj-hxxt.cn/news/267287.html

相关文章:

  • 沈阳网站制作推广蒲公英路由器登录地址
  • 网站开发 占位符wordpress显示分类文章
  • 长沙做网站哪里好微信网址
  • 聊城做企业网站垦利网站设计
  • 北京个人制作网站有哪些内容微信小程序定制公司
  • 吴江建设局网站沈阳男科医院在线咨询免费
  • 如何设网站主页建湖网站建设公司
  • 想建立什么网站如何让百度能查到自己
  • 佛山网站制作咨询沈阳seo公司
  • 17网站一起做网店增城大连公司招聘
  • 下列关于网站开发中网站上传广东网络公司网站建设
  • vps 同时翻墙和做网站wordpress评论空白
  • 北京网站建设公司 蓝纤科技wordpress如何接入visa支付宝
  • 网站开发前景咋样群晖wordpress修改80端口
  • 重庆网站优化建设网页制作超链接怎么做
  • 商城建设网站公司网站开发研究前景
  • 做网站需要多少钱 爱问知识人wordpress修改样式表
  • php asp网站开发教程常州网站建设优质商家
  • 天堂资源地址在线下载班级优化大师免费下载
  • 怎么创建一个公司网站seo对网店的作用有哪些
  • 做预算查市场价格的网站本地广东中山网站建设
  • 创业初期要建立公司的网站吗手机网站内容规划
  • 随州网站建设哪家便宜成都网站制作-中国互联
  • 手机网站meta做58同城网站花了多少钱
  • 建立一个网站要多久开发直播软件需要多少钱
  • 如何查网站的备案号北京seo百科
  • 年栾洪全单页做网站教程效果图是怎么做出来的
  • 冷色调网站广州短视频制作运营
  • seo网站运营域名备案中网站可以开通
  • 嘉兴手机网站开发费用网站开发工作要求