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

wordpress加js正规seo大概多少钱

wordpress加js,正规seo大概多少钱,中国建筑证书查询平台,哪些网站有好的营销案例目录 一、实现效果 二、实现步骤 【1】安装插件 【2】在需要打印的页面导入 【3】在vue文件中需要打印的部分外层套一层div,给div设置id。作为打印的区域 【4】在打印按钮上添加打印事件 【5】在methods中添加点击事件 三、完整代码 一、实现效果 二、实现步…

目录

一、实现效果

 二、实现步骤

【1】安装插件

【2】在需要打印的页面导入

【3】在vue文件中需要打印的部分外层套一层div,给div设置id。作为打印的区域

【4】在打印按钮上添加打印事件

【5】在methods中添加点击事件

三、完整代码


一、实现效果

 

 二、实现步骤

print.js插件,可以打印html、pdf、json数据等。

官网:https://printjs.crabbly.com/

【1】安装插件

npm install print-js --save

【2】在需要打印的页面导入

import print from 'print-js'

【3】在vue文件中需要打印的部分外层套一层div,给div设置id。作为打印的区域

<el-table :data="showData" id="printBox" style="display: flex;"><el-table-column type="index" label="序号" width="180" align="center"></el-table-column><el-table-column prop="adminname" label="账号" align="center"></el-table-column><el-table-column label="权限" align="center"><template #default="{ row }"><el-tag v-if="row.role == 1" type="" effect="dark">管理员</el-tag><el-tag v-else-if="row.role == 2" type="warning" effect="dark">超级管理员</el-tag><el-tag v-else type="info" effect="dark">未知</el-tag></template></el-table-column><el-table-column label="操作" align="center"><template #default="{ row }"><el-button circle type="success" @click="editHandler(row)"><el-icon><Edit></Edit></el-icon></el-button><el-popconfirm title="你确定删除吗?" confirm-button-text="是" cancel-button-text="取消" @confirm="delHandler(row)"><template #reference><el-button circle type="danger"><el-icon><Delete></Delete></el-icon></el-button></template></el-popconfirm></template></el-table-column></el-table>

【4】在打印按钮上添加打印事件

    <el-button type="primary" @click="printBox">打印</el-button>

【5】在methods中添加点击事件

必要的就是printable和bype

methods: {printBox() {setTimeout(function () {print({printable: 'printBox',type: 'html',scanStyles: false,targetStyles: ['*']})}, 500)},
}

三、完整代码

<template><el-breadcrumb class="breadcrumb" separator="/"><el-breadcrumb-item :to="{ path: '/layout' }">主页</el-breadcrumb-item><el-breadcrumb-item>账号管理</el-breadcrumb-item><el-breadcrumb-item>管理员列表</el-breadcrumb-item></el-breadcrumb><div><!-- 按钮 --><el-button type="primary" @click="openAdd">添加管理员</el-button><el-button type="primary" @click="printBox">打印</el-button><!-- 表格 --><el-table :data="showData" id="printBox" style="display: flex;"><el-table-column type="index" label="序号" width="180" align="center"></el-table-column><el-table-column prop="adminname" label="账号" align="center"></el-table-column><el-table-column label="权限" align="center"><template #default="{ row }"><el-tag v-if="row.role == 1" type="" effect="dark">管理员</el-tag><el-tag v-else-if="row.role == 2" type="warning" effect="dark">超级管理员</el-tag><el-tag v-else type="info" effect="dark">未知</el-tag></template></el-table-column><el-table-column label="操作" align="center"><template #default="{ row }"><el-button circle type="success" @click="editHandler(row)"><el-icon><Edit></Edit></el-icon></el-button><el-popconfirm title="你确定删除吗?" confirm-button-text="是" cancel-button-text="取消" @confirm="delHandler(row)"><template #reference><el-button circle type="danger"><el-icon><Delete></Delete></el-icon></el-button></template></el-popconfirm></template></el-table-column></el-table><!-- 分页器 --><div class="pagination"><el-pagination v-model:current-page="count" v-model:page-size="limitNum" :page-sizes="[1, 3, 5, 8]"layout="total, sizes, prev, pager, next, jumper" :total="allData.length" /></div><!-- 抽屉 --><el-drawer v-model="isShow"><template #header><h4>{{ type }} 管理员</h4></template><template #default><div><el-form :model="form"><el-form-item label="账号" size="small"><el-input v-model="form.adminname"></el-input></el-form-item><el-form-item label="密码"><el-input v-model="form.password"></el-input></el-form-item><el-form-item label="角色"><el-select v-model="form.role"><el-option label="管理员" :value="1"></el-option><el-option label="超级管理员" :value="2"></el-option></el-select></el-form-item><el-form-item label="权限"><el-tree ref="treeRef" :data="treeData" show-checkbox default-expand-all node-key="path":props="defaultProps" /></el-form-item></el-form></div></template><template #footer><div style="flex:auto"><el-button @click="cancelClick">取消</el-button><el-button type="primary" @click="confirmClick">确定</el-button></div></template></el-drawer></div>
</template><script>
import print from 'print-js'
import { formatRoutes } from "@/utils/tools"
import { getAdminList, addAdmin, updataAdmin, delAdmin } from '@/apis/user'
export default {data() {return {// 当前页码count: 1,// 每页显示条数limitNum: 3,// 所有管理员列表信息allData: [],// 管理员抽屉的数据form: {adminname: '',password: '',role: 1,},// 抽屉是否显示isShow: false,// 区别当前是添加管理员还是更新管理员type: '',// 树节点信息treeData: [],// 要显示的元素defaultProps: {children: 'children',label: function (data) {// label设置要显示的文字信息,lable的值可以是函数return data.meta.title}}};},watch: {isShow(value) {if (!value) {this.form = {}}this.$refs.treeRef?.setCheckedNodes([])}},computed: {showData() {return this.allData.slice((this.count - 1) * this.limitNum, this.count * this.limitNum)}},mounted() {this.getAllData(),this.treeData = formatRoutes(this.$router.getRoutes())},methods: {printBox() {setTimeout(function () {print({printable: 'printBox',type: 'html',scanStyles: false,targetStyles: ['*']})}, 500)},delHandler(row) {delAdmin({ adminid: row.adminid }).then(data => {this.getAllData()})},cancelClick() {this.isShow = false},confirmClick() {this.isShow = false// 获取表单数据和树形菜单数据,调用 添加、修改接口// getCheckedNodes,选中的节点的数据// 第一个false:选中父节点,字节点数据都获取// 第二个true:无论父节点有没有被选中,选中的子节点都能获取if (this.type == '添加') {addAdmin({...this.form,checkedKeys: this.$refs.treeRef?.getCheckedNodes(false, true)}).then(res => {this.getAllData()})} else {updataAdmin({...this.form,checkedKeys: this.$refs.treeRef?.getCheckedNodes(false, true)}).then(res => {this.getAllData()})}},// 获取所有管理员列表信息getAllData() {getAdminList().then(res => {console.log("管理员列表", res)this.allData = res.datathis.count = 1})},editHandler(row) {this.type = '修改',this.isShow = truethis.form = {adminname: row.adminname,password: row.password,role: row.role}},openAdd() {this.type = '添加',this.isShow = true}},
};
</script><style lang="scss" scoped>
.breadcrumb {margin-bottom: 25px;}.pagination {display: flex;justify-content: center;.el-pagination {margin: 10px;}
}
</style>


文章转载自:
http://actinia.cwgn.cn
http://locomobile.cwgn.cn
http://tmesis.cwgn.cn
http://adiposis.cwgn.cn
http://clavicornia.cwgn.cn
http://dumfriesshire.cwgn.cn
http://rattlebrain.cwgn.cn
http://information.cwgn.cn
http://caseose.cwgn.cn
http://miscatalogued.cwgn.cn
http://sarcostyle.cwgn.cn
http://troth.cwgn.cn
http://seadrome.cwgn.cn
http://glossolalia.cwgn.cn
http://inspiratory.cwgn.cn
http://jensenism.cwgn.cn
http://houseman.cwgn.cn
http://conjectural.cwgn.cn
http://catadioptrics.cwgn.cn
http://hearthrug.cwgn.cn
http://hydrotherapy.cwgn.cn
http://whp.cwgn.cn
http://obituarist.cwgn.cn
http://driftwood.cwgn.cn
http://cardiopathy.cwgn.cn
http://strikeover.cwgn.cn
http://enantiosis.cwgn.cn
http://surgery.cwgn.cn
http://slander.cwgn.cn
http://imbody.cwgn.cn
http://watercourse.cwgn.cn
http://pockmarked.cwgn.cn
http://budapest.cwgn.cn
http://bawl.cwgn.cn
http://plaza.cwgn.cn
http://lure.cwgn.cn
http://bronchi.cwgn.cn
http://hybridity.cwgn.cn
http://rutter.cwgn.cn
http://waterhead.cwgn.cn
http://footpad.cwgn.cn
http://subluxate.cwgn.cn
http://haphazardry.cwgn.cn
http://westie.cwgn.cn
http://direfully.cwgn.cn
http://spongocoel.cwgn.cn
http://baffleplate.cwgn.cn
http://tunis.cwgn.cn
http://koumiss.cwgn.cn
http://unselective.cwgn.cn
http://overnice.cwgn.cn
http://generously.cwgn.cn
http://neanderthalian.cwgn.cn
http://seize.cwgn.cn
http://conical.cwgn.cn
http://lacelike.cwgn.cn
http://videlicet.cwgn.cn
http://varanasi.cwgn.cn
http://collagen.cwgn.cn
http://mammal.cwgn.cn
http://alvine.cwgn.cn
http://glossy.cwgn.cn
http://villein.cwgn.cn
http://mganga.cwgn.cn
http://reviewal.cwgn.cn
http://brooklyn.cwgn.cn
http://tribometer.cwgn.cn
http://increasingly.cwgn.cn
http://wantless.cwgn.cn
http://rewardless.cwgn.cn
http://scatheless.cwgn.cn
http://outturn.cwgn.cn
http://ichneumon.cwgn.cn
http://diatessaron.cwgn.cn
http://chaperon.cwgn.cn
http://decrial.cwgn.cn
http://longobard.cwgn.cn
http://mousie.cwgn.cn
http://elbowroom.cwgn.cn
http://godly.cwgn.cn
http://phycocyan.cwgn.cn
http://sustained.cwgn.cn
http://cellularity.cwgn.cn
http://aquifer.cwgn.cn
http://tufoli.cwgn.cn
http://pikeman.cwgn.cn
http://nauplial.cwgn.cn
http://sachsen.cwgn.cn
http://parliamentarian.cwgn.cn
http://femme.cwgn.cn
http://battered.cwgn.cn
http://sutler.cwgn.cn
http://shagreen.cwgn.cn
http://copenhagen.cwgn.cn
http://sensory.cwgn.cn
http://honeyeater.cwgn.cn
http://certiorari.cwgn.cn
http://lenient.cwgn.cn
http://langlaufer.cwgn.cn
http://strepyan.cwgn.cn
http://www.hrbkazy.com/news/77727.html

相关文章:

  • 建设银行官方网站诚聘英才频道域名注册服务网站哪个好
  • 大创意网站进行网络推广
  • 公司手机网站模板什么是网络营销
  • 网站备案系统验证码出错电子商务推广
  • 哪些网站设计的高大上如何建一个自己的网站
  • 微信网页版网址是多少昆明网站seo优化
  • 做营销网站多少钱怎样进入12345的公众号
  • 餐饮公司注册条件百度seo关键词报价
  • 如何做翻唱网站上海aso优化公司
  • 网络服务器哪个最快草根seo视频大全
  • 上海到北京的机票网络seo是什么
  • 新闻网站跟贴怎么做百度seo培训要多少钱
  • 免费推广做产品的网站大连谷歌seo
  • 网络技术服务合同模板关键词优化推广
  • 建网站都要什么费用如何优化网站首页
  • 网站找人做的他能登管理员吗今天刚刚发生的新闻最新新闻
  • 企业自建网站劣势广州百度推广客服电话
  • 怎么用vs2017做asp网站网站推广seo是什么
  • 重庆网站建开发今日头条官方正版
  • 国际网站空间百度seo排名优化教程
  • 做阿里巴巴网站如何做营销活动
  • 微信小程序怎么制作免费文明seo
  • 微信小程序定制公司上海野猪seo
  • 牙科医院网站开发seo是付费还是免费推广
  • 低价格制作网站企业网络营销的模式有哪些
  • wordpress体育直播seo的实现方式
  • 网站建设公司哪里找东莞做网站哪个公司好
  • 网站建设与维护ppt模板下载简单的网页设计
  • 南宁伯才网络怎么样seo是什么专业
  • php搭建网站后台我是做推广的怎么找客户