Commit 0ab9830c authored by obt's avatar obt

序号修复

parent 1c2cd241
......@@ -27,7 +27,7 @@
</el-form>
</div>
<el-table :data="list" v-loading.body="listLoading" border fit highlight-current-row style="width: 100%">
<el-table-column align="center" type="index" label="序号" width="65"></el-table-column>
<el-table-column align="center" label="序号" prop="index" width="65"></el-table-column>
<el-table-column align="center" label="产品名称" prop="name"></el-table-column>
<el-table-column align="center" label="产品类型" prop="paramJson.productType"></el-table-column>
<el-table-column align="center" label="尺寸" prop="imageInfoRelationList[0].fileWidth"></el-table-column>
......@@ -212,8 +212,10 @@ export default {
this.data = res.data.data;
this.total = res.data.totalCount;
this.listLoading = false;
this.list = res.data.data;
this.list.forEach((element,index) => {
element.index = ((this.listQuery.page-1)*this.listQuery.limit)+(index+1)
});
this.list = this.list.map(v => {
v.paramJson = JSON.parse(v.paramJson)
return v
......
......@@ -22,11 +22,7 @@
</el-form>
</div>
<el-table :data="list" v-loading.body="listLoading" border fit highlight-current-row style="width: 100%">
<el-table-column align="center" label="序号" width="65">
<template slot-scope="scope">
{{scope.row.index}}
</template>
</el-table-column>
<el-table-column align="center" label="序号" prop="index" width="65"></el-table-column>
<el-table-column align="center" label="卫星名称" prop="name"></el-table-column>
<el-table-column align="center" label="缩略图">
<template slot-scope="scope">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment