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

商城网站建站系统源码西安网站建设网络推广

商城网站建站系统源码,西安网站建设网络推广,做个网站需要多久网站设计费用多少,北京通网站建设价格低[本文出自天外归云的博客园] 需求图示如下&#xff0c;多级纵向动态表头表格&#xff1a; 我的思路是用element-ui的layout实现&#xff0c;做出一个仿造表格&#xff0c;能够支持动态的、多级的、纵向的表头&#xff1a; <template><div><!--按设备系统统计--&…

[本文出自天外归云的博客园]

需求图示如下,多级纵向动态表头表格:

我的思路是用element-ui的layout实现,做出一个仿造表格,能够支持动态的、多级的、纵向的表头:

<template><div><!--按设备系统统计--><div style="text-align:left"><h1>{{tableName}}</h1></div><!--纵向表格设计--><el-row><!--纵向表头设计--><el-col :span="6"><el-row><div :style="projectDivStyle"><p>项目名</p></div></el-row><el-row v-if="ifAndroid"><el-col :span="12"><div :style="wordOfMouthAndroidDivStyle"><p>Android口碑指数</p></div></el-col><el-col :span="12"><el-row v-for="(chl, i) in tableData.ratingChls":key="i"><div :style="ratingSubDivStyle"><p>{{chl}}</p></div></el-row></el-col></el-row><el-row v-else><div :style="wordOfMouthIOSDivStyle"><p>AppStore口碑指数</p></div></el-row><el-row><el-col :span="12"><div :style="ratingDivStyle"><p>评分</p></div></el-col><el-col :span="12"><el-row v-for="(chl, i) in tableData.ratingChls":key="i"><div :style="ratingSubDivStyle"><p>{{chl}}</p></div></el-row></el-col></el-row><el-row><el-col :span="12"><div :style="rankDivStyle"><p>排名</p></div></el-col><el-col :span="12"><el-row v-for="(chl,i) in tableData.rankChls":key="i"><div :style="rankSubDivStyle"><p>{{chl}}</p></div></el-row></el-col></el-row><el-row><div :style="topModuleDivStyle"><p>TOP3好评关键词</p></div></el-row><el-row><div :style="topModuleDivStyle"><p>TOP3差评关键词</p></div></el-row></el-col><!--纵列数据遍历--><el-col :span="colSpan"v-for="(col,i) in tableData.cols":key="i"><!--项目名数据--><el-row><div :style="projectDivStyle"><p>{{col.name}}</p></div></el-row><!--口碑数据 区分Android和iOS视图显示逻辑--><el-row v-if="ifAndroid"><el-col :span="24"><el-row v-for="(each, i) in col.wordOfMouth":key="i"><div :style="ratingSubDivStyle"><p>{{each}}</p></div></el-row></el-col></el-row><el-row v-else><div :style="wordOfMouthIOSDivStyle"><p>{{col.wordOfMouth[0]}}</p></div></el-row><!--评分数据--><el-row><el-col :span="24"><el-row v-for="(each, i) in col.ratingInfo":key="i"><div :style="ratingSubDivStyle"><p>{{each.info}}</p><el-rate :value='Number(each.rating)'disabledshow-scoretext-color="#ff9900"score-template="{value}"></el-rate></div></el-row></el-col></el-row><!--排名数据--><el-row><el-col :span="24"><el-row v-for="(each,i) in col.rankInfo":key="i"><div :style="rankSubDivStyle"><p>{{each.rank}} {{each.info}}</p></div></el-row></el-col></el-row><el-row><div :style="topModuleDivStyle"><p v-for="(_module,i) in modules(col.topGoodModule)":key="i">{{_module}}</p></div></el-row><el-row><div :style="topModuleDivStyle"><p v-for="(_module,i) in modules(col.topBadModule)":key="i">{{_module}}</p></div></el-row></el-col></el-row></div>
</template>
<style scoped>
/*
通过布局el-row来完成表格边界样式替代式设计
*/
.el-row {margin-bottom: 0px; /*去除el-row之间的间距*/border: 1px solid #e6e6e6;margin: -1px -1px -1px -1px; /*解决相邻边框重叠问题就靠这行代码*/&:last-child {margin-bottom: 0px;}
}
.bg-purple {
}
.bg-purple-light {background: #121927;
}
.grid-content {border: 0px solid rgb(0, 0, 0);min-height: 50px;
}
.grid-content-sub {border: 0px solid rgb(0, 0, 0);padding: 20px;
}
.grid-content-large {border: 0px solid rgb(0, 0, 0);padding: 70px;height: 60px;
}
.grid-content-large-sub {border: 0px solid rgb(0, 0, 0);padding: 20px;height: 57.5px;
}
</style>
<script>
import { getFeedbackCompetitorData } from '@/api/feedbacks'
import { EventBus } from '@/bus.js'
export default {data () {return {myProjectId: this.$route.query.feedbackProject,largeDivHeight: 120,smallDivHeight: 80,miniDivHeight: 50,ratingSubDivHeight: 80,rankSubDivHeight: 80,tableName: '',tableData: [],shadowCss: 'border-radius: 15px;box-shadow: 5px 5px 2px #888888',borderStyle: ''}},methods: {getFbCompetitorData () {getFeedbackCompetitorData(this.myProjectId).then(fbCpInfo => {this.tableName = fbCpInfo.competitorTable.tableNamethis.tableData = fbCpInfo.competitorTable.tableData})},modules (someArray) {var newArray = []for (var i = 0; i < someArray.length; i++) {var count = someArray[i]['cou']var word = someArray[i]['word']newArray.push(word + ':' + count)}return newArray}},computed: {ifAndroid: function () {if (this.tableData.wordOfMouthChls[0] === 'AppStore') {return false} else {return true}},colSpan: function () {var count = this.tableData.cols.lengthif (count > 5) {return 18 / count} else if (count < 4) {return 6}},commonDivStyle: function () {var height = this.smallDivHeightreturn `padding: 20px;height: ${height}px`},projectDivStyle: function () {var height = this.miniDivHeightreturn `background: #E8F8F5;padding: 20px;height: ${height}px`},wordOfMouthAndroidDivStyle: function () {var height = this.miniDivHeightreturn `margin-top:50%;padding: 20px;height: ${height}px`},wordOfMouthIOSDivStyle: function () {var height = this.miniDivHeightreturn `padding: 20px;height: ${height}px`},topModuleDivStyle: function () {var height = this.largeDivHeightreturn `padding: 20px;height: ${height}px`},ratingDivStyle: function () {var height = this.ratingSubDivHeight// 区分Android和iOS样式if (this.ifAndroid) {var margin = 'margin-top:50%'}return `${margin};padding: 20px;height: ${height}px`},ratingSubDivStyle: function () {var height = this.ratingSubDivHeightreturn `padding: 20px;height: ${height}px`},rankDivStyle: function () {var height = this.rankSubDivHeightreturn `margin-top:30%;padding: 20px;height: ${height}px`},rankSubDivStyle: function () {var height = this.rankSubDivHeightreturn `padding: 20px;height: ${height}px`}},created () {let _this = thisEventBus.$on('projectId', projectId => {_this.myProjectId = projectId})},mounted () {this.getFbCompetitorData()},watch: {myProjectId: {immediate: false,handler: function (val) {this.getFbCompetitorData()}}}
}
</script>

实现图如下:

 

转载于:https://www.cnblogs.com/LanTianYou/p/10622710.html

http://www.lbrq.cn/news/2563057.html

相关文章:

  • 做食品网站有哪些内容百度应用市场下载安装
  • 后期网站建设及维护推广百度seo排名技术必不可少
  • 赣州做网站的公司有哪家好网络营销讲师
  • wordpress 自动别名seo优化思路
  • 网站制作中企动力公司域名注册需要多少钱
  • 外贸商城网站开发百度推广效果不好怎么办
  • 石家庄网页设计工资seo点击排名源码
  • 网站开发语言phpsem竞价教程
  • 餐饮网站建设方案书惠州抖音seo
  • 天津网站设计建设口碑营销的优缺点
  • 贵阳国家经济技术开发区门户网站宁波seo快速优化课程
  • 织梦网站需要优化360搜索优化
  • 网站标题会影响吗谷歌google play下载
  • wordpress装饰公司主题福建seo顾问
  • 四大门户网站创始人企业营销型网站建设
  • 金阊做网站价格营销推广活动策划书模板
  • 淘宝网站建设属于什么类目seo运营做什么
  • 做网站坂田关键词是什么
  • 哪有专做注册小网站的百度推广平台登录入口
  • 公司做网站之前要准备什么软件产品推广计划怎么写
  • 做网站开发考什么研网络营销的优势
  • 手表回收网网站seo推广公司
  • 自己做了个网站合肥百度快照优化排名
  • 做软件的网站建设百度网址安全中心怎么关闭
  • 如何做独立网站他达拉非的副作用和危害
  • 权大师的网站是哪个公司做的优化营商环境 提升服务效能
  • 辽宁网站建站系统平台百度推广工资多少钱一个月
  • 投资网站建设优化排名推广关键词
  • 男做暧免费视频网站好的seo平台
  • 已有网站怎么修改网站seo优化外包顾问
  • 梦幻花瓣雨
  • SpringCloud(一)微服务基础认识
  • 大模型开发框架LangChain之构建知识库
  • 理解HTTP协议
  • 新手向:国内外大模型体验与评测
  • 安装 docker compose v2版 笔记250731