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

网站开发 保修期24小时最新国际新闻

网站开发 保修期,24小时最新国际新闻,学院网站建设流程,优惠券网站怎么做的项目场景&#xff1a; 1&#xff1a;非懒加载的情况 1&#xff1a;效果展示 2&#xff1a;问题描述以及解决 1&#xff1a;图片展示 2&#xff1a;html <-- default-expand-all 代表默认展开 如果不展开删除就行 --> <el-tableref"refsTable"v-loadin…

项目场景:

1:非懒加载的情况

1:效果展示


2:问题描述以及解决

1:图片展示

2:html 
<-- default-expand-all  代表默认展开 如果不展开删除就行 -->
<el-tableref="refsTable"v-loading="loading":border="true":data="tableData"style="width: 100%"row-key="billId":header-cell-class-name="tableHeadStyle":tree-props="{children: 'childList',hasChildren: 'undefined',}":cell-class-name="cellStyle":cell-style="{ textAlign: 'center' }":header-cell-style="{ textAlign: 'center' }"default-expand-all><el-table-column label="序号" width="120" prop="index"></el-table-column><el-table-column label="项目编码" width="120" prop=""><template slot-scope="scope"><div class="" v-if="scope.row.parentId==null||scope.row.parentId==''"><el-input v-model="scope.row.projectCode" placeholder="请输入项目编码" /></div></template></el-table-column><el-table-column label="项目名称" prop="billName"  min-width="140"></el-table-column><el-table-columnlabel="合同价"width="120"style="background: #b4de7a"><el-table-column label="工程量"><el-table-column label="单位" prop="unitQuantities"></el-table-column><el-table-column label="数量" prop="quantities"></el-table-column><el-table-column label="单价" prop="billQuantities" fixed="right"></el-table-column></el-table-column><el-table-column label="工作量(万元)" prop="amountWork"></el-table-column></el-table-column>
</el-table>
3:获取数据函数
// 获取表格基本数据getTableData(){this.loading=true;getBillWorks({lineName: this.$route.query.lineName,segmentName: this.$route.query.segmentName,lineId: this.$route.query.lineId,segmentId: this.$route.query.segmentId,segmentBillName: this.$route.query.segmentBillName,lineSegmentName: this.$route.query.lineSegmentName}) .then((res) => {this.loading=false;this.tableData=res.data.data;}).catch(err=>{console.log(err)})},

2:懒加载的情况

1:效果展示:


2:问题描述以及解决

1:图片展示

2:html 
<el-tableref="refsTable"v-loading="loading":border="true":data="tableData"style="width: 100%"row-key="billId":header-cell-class-name="tableHeadStyle":tree-props="{children: 'childList',hasChildren: 'hasChildren',}":cell-class-name="cellStyle":cell-style="{ textAlign: 'center' }":header-cell-style="{ textAlign: 'center' }"lazy:load="loadChildData"><el-table-column label="序号" width="120" prop="index"></el-table-column><el-table-column label="项目编码" width="120" prop=""><template slot-scope="scope"><div class="" v-if="scope.row.parentId==null||scope.row.parentId==''"><el-input v-model="scope.row.projectCode" placeholder="请输入项目编码" /></div></template></el-table-column><el-table-column label="项目名称" prop="billName"  min-width="140"></el-table-column><el-table-columnlabel="合同价"width="120"style="background: #b4de7a"><el-table-column label="工程量"><el-table-column label="单位" prop="unitQuantities"></el-table-column><el-table-column label="数量" prop="quantities"></el-table-column><el-table-column label="单价" prop="billQuantities" fixed="right"></el-table-column></el-table-column><el-table-column label="工作量(万元)" prop="amountWork"></el-table-column></el-table-column>
</el-table>
3:获取数据与子项数据函数
// 获取表格基本数据getTableData(){this.loading=true;getBillWorks({lineName: this.$route.query.lineName,segmentName: this.$route.query.segmentName,lineId: this.$route.query.lineId,segmentId: this.$route.query.segmentId,segmentBillName: this.$route.query.segmentBillName,lineSegmentName: this.$route.query.lineSegmentName}) .then((res) => {this.loading=false;this.tableData=res.data.data;}).catch(err=>{console.log(err)})},// 表格子项数据loadChildData(row, treeNode, resolve) {getBillWorks({segmentId: this.$route.query.segmentId,idPath:row.idPath}).then((res) => {resolve(res.data.data)}).catch(err => {console.log(err)})},

http://www.shuangfujiaoyu.com/news/56040.html

相关文章:

  • 网站开发技术入股协议网络营销的方法
  • 哪个网站可以做片头网络推广有哪些途径
  • 南昌做网站哪家好seo推广网络
  • 大连外经贸网站黑帽seo教程
  • 网站建设方案书互联网推广方式有哪些
  • 房地产销售平台网站建设seo sem是什么意思
  • 网站设计怎么做视频百度关键词首页排名
  • 中山做网站公司哪家好长春网站制作公司
  • 集团企业网站设计方案种子搜索引擎
  • 站长工具5118广告推广软文案例
  • 自己建网站做外贸广告联盟哪个比较好
  • 简单网站页面设计抖音关键词排名优化软件
  • 中信国际建设公司网站线下宣传渠道和宣传方式
  • 网购网站有哪些海南百度推广公司电话
  • 郑州豆芽网站建设谷歌seo快速排名软件首页
  • 成都网站制作公司报价怎么做互联网推广
  • wordpress网站回调域适合口碑营销的产品
  • 丰宁县有做网站的吗?今日热点头条新闻
  • 网站页面制作国内手机搜索引擎十大排行
  • 龙岗注册公司站长之家 seo查询
  • 兰州网站制作cheng什么软件可以弄排名
  • 设计基础网站推荐长沙seo行者seo09
  • 寻找郑州网站建设公司域名注册服务商
  • 个人做分类信息网站seo去哪里培训
  • 石家庄 科技 公司 网站建设长沙网络优化产品
  • 自己做网站seo优化软件制作
  • 做网站公司北京培训推广 seo
  • 沈阳大东区做网站公司希爱力跟万艾可哪个猛
  • 专业机票网站建设seo综合查询中的具体内容有哪些
  • 公司网站建设有哪些免费的网页模板网站