Commit 394bbdf3 authored by rencs's avatar rencs

1.14 bug

parent 943895ad
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
align="center" align="center"
> >
</el-table-column> </el-table-column>
<el-table-column prop="imageResolution" label="分辨率" align="center"> <el-table-column prop="imageResolutionStr" label="分辨率" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="imageTakeTimeStr" label="拍摄时间" align="center"> <el-table-column prop="imageTakeTimeStr" label="拍摄时间" align="center">
</el-table-column> </el-table-column>
...@@ -142,7 +142,10 @@ export default { ...@@ -142,7 +142,10 @@ export default {
if (res.status == 200) { if (res.status == 200) {
this.total = res.data.totalCount; this.total = res.data.totalCount;
this.list = res.data.data; this.list = res.data.data;
this.list.map((item) => { this.list.map((item) => {
console.log(item);
item.imageResolutionStr = item.imageResolution.join("m,") + "m";
item.imageTakeTimeStr = timestamp2DateAuto( item.imageTakeTimeStr = timestamp2DateAuto(
item.imageTakeTime, item.imageTakeTime,
"yyyy-MM-dd hh:mm:ss" "yyyy-MM-dd hh:mm:ss"
......
...@@ -163,13 +163,13 @@ ...@@ -163,13 +163,13 @@
}}</span> }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="父级" align="center"> <!-- <el-table-column label="父级" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="typelevel">{{ <span class="typelevel">{{
getFatherTypeName(scope.row.pid) getFatherTypeName(scope.row.pid)
}}</span> }}</span>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column label="排序" align="center"> <el-table-column label="排序" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.sort }}</span> <span>{{ scope.row.sort }}</span>
...@@ -529,9 +529,12 @@ export default { ...@@ -529,9 +529,12 @@ export default {
} }
}); });
} }
this.tableData.forEach((obj,index)=> { this.tableData.forEach((obj, index) => {
obj.index = ((this.typePagination.currentPage-1)*this.typePagination.pageSize)+(++index) obj.index =
}) (this.typePagination.currentPage - 1) *
this.typePagination.pageSize +
++index;
});
} }
}, },
// 删除类型 // 删除类型
......
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