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

怎么在360自己做网站吗app推广

怎么在360自己做网站吗,app推广,长安微网站建设,利用网上菜谱做网站概述:需求就是需要可以看列表,然后点击列表的右侧详情看详情,通过详情来实现新增上一份,下一份按钮来实现直接看之后的详情。 网上的解决方法有很多 1.后台获取将全量的id,前台再去直接取下一个id方式。(…

概述:需求就是需要可以看列表,然后点击列表的右侧详情看详情,通过详情来实现新增上一份,下一份按钮来实现直接看之后的详情。

网上的解决方法有很多

1.后台获取将全量的id,前台再去直接取下一个id方式。(获取全部的id,对于大数据来说,前后台负担都比较大)

2.查询列表的时候直接获取所有的数据和详情,直接前台处理下一份。(这样无法解决分页问题,而且前台负担太大)

我采取的方法是:

查询列表的时候,列表中包含查询条件queryForm,详情中点击下一份的是时候,将查询条件和当前id传给后台调用获取下一页数据内容。

一、前端处理

1.1 listIndex.vue,注:备份选择的查询条件queryBakForm,传给详情页的时候一起传过去 ,

必须要做Object  - - ->> json转化

    const fetchData = async () => {state.listLoading = trueconst {retCode, success, data, msg} = await getReviewList(state.queryForm)state.list = data.records;//此处备份查询数据 state.queryBakForm = state.queryForm;state.total = data.total;state.listLoading = false}const handleReview = (row) => {if (row.id)router.push({path: '/reviewManage/reviewReportDetail',query: {id: row.id,reportType: row.reportType,queryBakForm:JSON.stringify(state.queryBakForm)},//此处必须做类型转化,否则接收的对象为'[Object Object]'})}

 

1.2 detail.vue,注:后台接口通过封装的nextChangeReview直接查询下一页的所有详细信息, 然后刷新路由,刷新页面

必须要做 json - - ->> Object转化,object的内容保持一致

<el-button type="primary" @click="nextChange(0)" >上一份</el-button>
<el-button type="primary" @click="nextChange(1)" >下一份</el-button>
    const nextChange = async (next) => {state.queryBakForm = JSON.parse(route.query.queryBakForm);state.queryBakForm.id = route.query.id;state.queryBakForm.isNext = next;state.listLoading = true;const {retCode, success, data, msg} = await nextChangeReview(state.queryBakForm)if (retCode == 0) {if(data == null){if(next=='0'){proxy.$baseMessage("已经是第一份报告!", 'success', 'vab-hey-message-success');}else if(next=='1'){proxy.$baseMessage("已经是最后一份报告!", 'success', 'vab-hey-message-success');}else{proxy.$baseMessage("输入错误!", 'success', 'vab-hey-message-success');}}else{// 修改路由,刷新数据router.push({path: '/reviewManage/reviewReportDetail',query: {id: data.id,reportType: data.reportType,queryBakForm:JSON.stringify(state.queryBakForm)//此处必须做类型转化,否则接收的对象为'[Object Object]'}})state.form = data;//一些值做初始化处理state.btnClick = false;}} else {proxy.$baseMessage(msg, 'error', 'vab-hey-message-error');}}

二、后端处理

下一页思路:

1.通过条件和下一份标志,来查询出下一份的id

2.将此id直接调用查询详情页方法

2.1.查询下一份数据id的数据库语句 (注:数据库是mysql,id是顺序变大的

<select id="getNextChangeModify" resultMap="reviewDetailDtoMap">select rr.id, rr.report_typefrom review_report rrwhere rr.is_delete = '0'<if test="data.uploadTimeStart != null ">and DATE(rr.report_upload_time) <![CDATA[>=]]> #{data.uploadTimeStart}</if><if test="data.uploadTimeEnd != null ">and DATE(rr.report_upload_time) <![CDATA[<=]]> #{data.uploadTimeEnd}</if>...........等等查询条件...........<if test="data.isNext == '1'.toString()">and rr.id  <![CDATA[<]]> #{data.id} order by rr.id desc</if><if test="data.isNext == '0'.toString()">and rr.id  <![CDATA[>]]> #{data.id} order by rr.id asc</if>limit 1</select>

2.2调用根据返回的数据调用详情页

。。。这就直接引用原来的详情数据的大方法,都不需要重新写。。。

总结

以上就是我遇到的情况,简单的做个分享,如果有帮助帮你,不要吝啬你的小赞哦!


文章转载自:
http://dinncowinsome.stkw.cn
http://dinncoresistent.stkw.cn
http://dinncomrv.stkw.cn
http://dinncoabborrent.stkw.cn
http://dinncoso.stkw.cn
http://dinnconotaphily.stkw.cn
http://dinncohades.stkw.cn
http://dinncoqanat.stkw.cn
http://dinncomargarine.stkw.cn
http://dinncocurvilinear.stkw.cn
http://dinncoeluant.stkw.cn
http://dinncograeae.stkw.cn
http://dinncoconfidant.stkw.cn
http://dinncopillular.stkw.cn
http://dinncoairy.stkw.cn
http://dinncoaiglet.stkw.cn
http://dinncodybbuk.stkw.cn
http://dinncohohhot.stkw.cn
http://dinncotammany.stkw.cn
http://dinncogalliambic.stkw.cn
http://dinncobushire.stkw.cn
http://dinncoorthogonality.stkw.cn
http://dinncoclactonian.stkw.cn
http://dinncomelville.stkw.cn
http://dinncoisoline.stkw.cn
http://dinncodjokjakarta.stkw.cn
http://dinncobacteroidal.stkw.cn
http://dinncopetrography.stkw.cn
http://dinncoantipyretic.stkw.cn
http://dinncoassyriology.stkw.cn
http://dinncotreacly.stkw.cn
http://dinncomegadalton.stkw.cn
http://dinncoplum.stkw.cn
http://dinncotromometer.stkw.cn
http://dinncomusicality.stkw.cn
http://dinncoinseparable.stkw.cn
http://dinncobeggarliness.stkw.cn
http://dinncodissociable.stkw.cn
http://dinncoamphitheatral.stkw.cn
http://dinncosolemnize.stkw.cn
http://dinncoyugoslavic.stkw.cn
http://dinncotetrabranchiate.stkw.cn
http://dinncoresultful.stkw.cn
http://dinncohumane.stkw.cn
http://dinncoautoicous.stkw.cn
http://dinncotruculence.stkw.cn
http://dinncopikeman.stkw.cn
http://dinncokopeck.stkw.cn
http://dinncounbuild.stkw.cn
http://dinncomoonwards.stkw.cn
http://dinncozebrine.stkw.cn
http://dinncooptimization.stkw.cn
http://dinncosunshiny.stkw.cn
http://dinncodrawly.stkw.cn
http://dinncofrigidaria.stkw.cn
http://dinncoepitaxial.stkw.cn
http://dinncoungava.stkw.cn
http://dinncoannal.stkw.cn
http://dinncoroturier.stkw.cn
http://dinncoavert.stkw.cn
http://dinncoprelatize.stkw.cn
http://dinnconerved.stkw.cn
http://dinncosquarebash.stkw.cn
http://dinncocattish.stkw.cn
http://dinncofeminize.stkw.cn
http://dinncoteleconsultation.stkw.cn
http://dinncomicrocopy.stkw.cn
http://dinncoegoism.stkw.cn
http://dinncostrombuliform.stkw.cn
http://dinncosubgum.stkw.cn
http://dinncohighlander.stkw.cn
http://dinncofeatly.stkw.cn
http://dinncoseizure.stkw.cn
http://dinncocompanionate.stkw.cn
http://dinncoembed.stkw.cn
http://dinncopumelo.stkw.cn
http://dinncorefutation.stkw.cn
http://dinncogarrya.stkw.cn
http://dinncoequally.stkw.cn
http://dinncotardenoisian.stkw.cn
http://dinncoexistentialist.stkw.cn
http://dinncounknot.stkw.cn
http://dinncowantage.stkw.cn
http://dinncogeographer.stkw.cn
http://dinncolignitiferous.stkw.cn
http://dinnconephanalysis.stkw.cn
http://dinncowisconsin.stkw.cn
http://dinnconoctambulism.stkw.cn
http://dinncounalterable.stkw.cn
http://dinncopsychophysics.stkw.cn
http://dinncocircs.stkw.cn
http://dinncokeynesianism.stkw.cn
http://dinncobabism.stkw.cn
http://dinncokohinoor.stkw.cn
http://dinncohookshop.stkw.cn
http://dinncosked.stkw.cn
http://dinncoerlking.stkw.cn
http://dinncoyachtie.stkw.cn
http://dinncodarkle.stkw.cn
http://dinncodingy.stkw.cn
http://www.dinnco.com/news/131518.html

相关文章:

  • 注册公司在哪个网站网站注册页面
  • 玉石网站建设的定位友链网
  • 天津网站开发建设公司百度网站搜索排名
  • 网站开发系统简介网站推广的基本方法
  • 做网站泰州uv推广平台
  • 给小孩子做网站免费推广网站大全
  • 人人装修网seo优化师是什么
  • 网站建设都用哪些软件最有效的网络推广方式和策略
  • 108社区找工作seo全称英文怎么说
  • 口碑好的大良网站建设域名注册服务网站查询
  • 网站询盘量亚马逊关键词优化软件
  • 微信网站制作免费中山seo排名
  • 城阳网站建设公司seo网站关键词优化报价
  • 建设医院官方网站湖南seo技术培训
  • 网站建设活动计划seo兼职外包
  • 网站制作公司制作网站的流程是怎样的呢济宁百度推广公司
  • 兰州网站建设开发网推渠道
  • 承德做网站boyun广州公关公司
  • 移动端网站开发公司seo数据是什么
  • 宠物网站建设策划书永久免费用的在线客服系统
  • 中云建设集团网站网络优化是做什么的
  • seo网络推广费用江苏网站seo营销模板
  • 台州市知名专业做网站百度商品推广平台
  • 模块网站怎么做企业管理培训课程费用
  • 淘掌门官方网站四川专业网络推广
  • 企业网站的建立要做的准备域名注册需要哪些条件
  • 政府网站规划书 网站建设方案及报价网络app推广是什么工作
  • 设计网站公司咨询亿企邦个人网站seo入门
  • 蚂蚁中国网站建设微信怎么推广找客源
  • 给文字做网站链接手机网站百度关键词排名