COLUMN-TOTAL/ROW-TOTAL关键词:

本文详细展示了如何通过表格数据进行垂直汇总(COLUMN-TOTAL)和水平汇总(ROW-TOTAL),包括不同国家和座位数量的成本总结。

竖合计COLUMN-TOTAL/横合计ROW-TOTAL关键词:

 

COLUMN-TOTAL结果:

PAGE 1
COUNTRY DEALER_COST
ENGLAND 37,853
FRANCE 4,631
ITALY 41,235
JAPAN 5,512
W GERMANY 54,563
TOTAL 143,794

 

ROW-TOTAL结果:

PAGE 1
  SEATS
  2 4 5 TOTAL
COUNTRY
ENGLAND 11,719 14,940 11,194 37,853
FRANCE . . 4,631 4,631
ITALY 36,320 4,915 . 41,235
JAPAN . 5,512 . 5,512
W GERMANY . 6,000 48,563 54,563
<div> <!-- 条件查询 --> <div> <el-form> <!-- 第一行 --> <el-row> <el-col :span="8"> <div>查询条件:</div> </el-col> </el-row> <!-- 第二行 --> <el-row> <el-col :span="6"> <el-form-item label="卡号:"> <el-input style="width: 180px;"></el-input> </el-form-item> </el-col> <el-col :span="6"> <el-form-item label="至"> <el-input style="width: 180px;"></el-input> </el-form-item> </el-col> <el-col :span="12"> <el-form-item label="卡状态"> <el-select value="1" style="width: 240px;"> <el-option label="状态一" value="keshiyi"></el-option> <el-option label="状态二" value="keshier"></el-option> </el-select> </el-form-item> </el-col> </el-row> <!-- 第三行 --> <el-row> <el-col :span="6"> <el-form-item label="导入日期:"> <el-input style="width: 180px;"></el-input> </el-form-item> </el-col> <el-col :span="6"> <el-form-item label="至"> <el-input style="width: 180px;"></el-input> </el-form-item> </el-col> <el-col :span="2"> <el-button type="primaty">查询</el-button> </el-col> <el-col :span="2"> <el-button type="primaty">卡入库</el-button> </el-col> </el-row> </el-form> </div> <!-- 表单 --> <div> <el-table :data="tableData" style="width: 100%"> <el-table-column prop="date" label="序号" width="50"></el-table-column> <el-table-column prop="name" label="卡号" width="100"></el-table-column> <el-table-column prop="address" label="导入日期"></el-table-column> <el-table-column prop="address" label="卡状态"></el-table-column> <el-table-column prop="address" label="操作"></el-table-column> </el-table> </div> <!-- 分页 --> <div> <el-pagination :current-page="1" :page-sizes="[100, 200, 300, 400]" :page-size="100" layout="total, sizes, prev, pager, next, jumper" :total="400"> </el-pagination> </div>放在一个表格区域中
最新发布
08-20
<xsl:template match="w:tbl"> <xsl:variable name="colCount" select="count(w:tblGrid/w:gridCol)"/> <fo:table table-layout="fixed" width="100%" border-collapse="collapse"> <xsl:for-each select="w:tblGrid/w:gridCol"> <fo:table-column column-width="{@w:w div 20}pt"/> </xsl:for-each> <fo:table-body> <xsl:if test="count(w:tr[1]/w:tc) > $colCount"> <fo:table-row> <fo:table-cell number-columns-spanned="{$colCount}"> <fo:block color="red">表格列数溢出警告</fo:block> </fo:table-cell> </fo:table-row> </xsl:if> <xsl:apply-templates select="w:tr"/> </fo:table-body> </fo:table> </xsl:template> <xsl:template match="w:tr"> <fo:table-row> <xsl:apply-templates select="w:tc"/> </fo:table-row> </xsl:template> <xsl:template match="w:tc"> <fo:table-cell border="1pt solid black" padding="2pt" display-align="center"> <xsl:variable name="currentGridSpan" select="w:tcPr/w:gridSpan/@w:val"/> <xsl:if test="$currentGridSpan"> <xsl:attribute name="number-columns-spanned"> <xsl:value-of select="$currentGridSpan"/> </xsl:attribute> </xsl:if> <xsl:variable name="precedingSpanSum"> <xsl:choose> <xsl:when test="preceding-sibling::w:tc"> <xsl:value-of select="sum(preceding-sibling::w:tc/w:tcPr/w:gridSpan/@w:val) + count(preceding-sibling::w:tc[not(w:tcPr/w:gridSpan)])"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="w:tcPr/w:vMerge[@w:val='restart']"> <xsl:variable name="currentRow" select="ancestor::w:tr"/> <xsl:variable name="currentPos" select="$precedingSpanSum + 1"/> <xsl:variable name="rowSpan"> <xsl:call-template name="calculateRowSpan"> <xsl:with-param name="remainingRows" select="$currentRow/following-sibling::w:tr"/> <xsl:with-param name="targetColumn" select="$currentPos"/> <xsl:with-param name="accumulator" select="1"/> </xsl:call-template> </xsl:variable> <xsl:attribute name="number-rows-spanned"> <xsl:value-of select="$rowSpan"/> </xsl:attribute> </xsl:if> <fo:block linefeed-treatment="ignore" white-space-collapse="true"> <xsl:apply-templates select=".//w:p"/> </fo:block> </fo:table-cell> </xsl:template> <xsl:template name="calculateRowSpan"> <xsl:param name="remainingRows"/> <xsl:param name="targetColumn"/> <xsl:param name="accumulator"/> <xsl:choose> <xsl:when test="$remainingRows[1]/w:tc[$targetColumn]/w:tcPr/w:vMerge[@w:val='continue']"> <xsl:call-template name="calculateRowSpan"> <xsl:with-param name="remainingRows" select="$remainingRows[position() > 1]"/> <xsl:with-param name="targetColumn" select="$targetColumn"/> <xsl:with-param name="accumulator" select="$accumulator + 1"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$accumulator"/> </xsl:otherwise> </xsl:choose> </xsl:template> 上述xlst样式表使用后报错The column-number or number of cells in the row overflows the number of fo:table-columns specified for the table. (See position 1:10790),怎么修改,请直接给出修改好的样式表,注意这是word的xml转xls-fo的xlst样式表,且版本均为1.0,请直接给出修改结果
03-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值