|
@@ -63,7 +63,7 @@
|
|
|
<input-dialog :type='2' @confirm='confirm'></input-dialog>
|
|
|
</div>
|
|
|
<el-table :data='tableData' :border='true' style='width: 100%'>
|
|
|
- <el-table-column type='index' label='序号' width='60'></el-table-column>
|
|
|
+ <el-table-column type='index' label='序号' width='60' :index='indexMethod'></el-table-column>
|
|
|
<el-table-column prop='sbmc' label='设备名称' show-overflow-tooltip resizable min-width='150'>
|
|
|
<template slot-scope='{row}'>{{row.sbmc || '--'}}</template>
|
|
|
</el-table-column>
|
|
@@ -87,10 +87,10 @@
|
|
|
<template slot-scope='{row}'>{{row.sl>=0?row.sl:'--'}}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop='cost' label='费用(万元)' width='80'>
|
|
|
- <template slot-scope='{row}'>{{row.cost || '--'}}</template>
|
|
|
+ <template slot-scope='{row}'>{{number_format(row.cost,2) || '--'}}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop='source' label='费用出处' show-overflow-tooltip resizable width='80'>
|
|
|
- <template slot-scope='{row}'>{{number_format(row.source,2) || '--'}}</template>
|
|
|
+ <template slot-scope='{row}'>{{row.source|| '--'}}</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop='brand' label='现场照片' width='70'>
|
|
@@ -164,6 +164,10 @@ export default {
|
|
|
...mapGetters(['floorSelect'])
|
|
|
},
|
|
|
methods: {
|
|
|
+ //序号的方法
|
|
|
+ indexMethod(index) {
|
|
|
+ return (this.currentPage - 1) * this.size + index + 1
|
|
|
+ },
|
|
|
//多余输入框监听
|
|
|
confirm(gzglid) {
|
|
|
this.gzglid = gzglid
|