|
@ -69,27 +69,15 @@ |
|
|
:selectable="checkSelect" |
|
|
:selectable="checkSelect" |
|
|
width="55"> |
|
|
width="55"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="sort" |
|
|
<el-table-column fixed="left" |
|
|
sortable="custom" |
|
|
width="55" |
|
|
min-width="140" |
|
|
type="index" |
|
|
label="序号"> |
|
|
label="序号" |
|
|
<template slot-scope="scope"> |
|
|
:index="indexMethod"> |
|
|
<div @click="handleEditSort(scope.row)"> |
|
|
|
|
|
<span v-if="!scope.row.isChange">{{scope.row.sort}}</span> |
|
|
|
|
|
<el-input-number v-else |
|
|
|
|
|
@change="handleChangeSort(scope.row)" |
|
|
|
|
|
v-model="scope.row.sort" |
|
|
|
|
|
class="item_width_4" |
|
|
|
|
|
:precision="2" |
|
|
|
|
|
size="small" |
|
|
|
|
|
:min="0" |
|
|
|
|
|
:max="9999" |
|
|
|
|
|
label="描述文字"></el-input-number> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
<el-table-column prop="buildingName" |
|
|
<el-table-column prop="buildingName" |
|
|
|
|
|
fixed="left" |
|
|
label="楼栋名称" |
|
|
label="楼栋名称" |
|
|
min-width="180"> |
|
|
min-width="180"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
@ -127,6 +115,26 @@ |
|
|
<el-table-column prop="totalHouseNum" |
|
|
<el-table-column prop="totalHouseNum" |
|
|
label="总户数"> |
|
|
label="总户数"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column prop="sort" |
|
|
|
|
|
sortable="custom" |
|
|
|
|
|
min-width="140" |
|
|
|
|
|
label="排序"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<div @click="handleEditSort(scope.row)"> |
|
|
|
|
|
<span v-if="!scope.row.isChange">{{scope.row.sort}}</span> |
|
|
|
|
|
<el-input-number v-else |
|
|
|
|
|
@change="handleChangeSort(scope.row)" |
|
|
|
|
|
v-model="scope.row.sort" |
|
|
|
|
|
class="item_width_4" |
|
|
|
|
|
:precision="2" |
|
|
|
|
|
size="small" |
|
|
|
|
|
:min="0" |
|
|
|
|
|
:max="9999" |
|
|
|
|
|
label="描述文字"></el-input-number> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
<el-table-column label="操作" |
|
|
<el-table-column label="操作" |
|
|
fixed="right" |
|
|
fixed="right" |
|
@ -233,7 +241,9 @@ export default { |
|
|
...mapGetters(['clientHeight', 'iframeHeight']) |
|
|
...mapGetters(['clientHeight', 'iframeHeight']) |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
indexMethod (index) { |
|
|
|
|
|
return index + 1; |
|
|
|
|
|
}, |
|
|
handleSortOrderChange (value) { |
|
|
handleSortOrderChange (value) { |
|
|
console.log(value.column, value.prop, value.order) |
|
|
console.log(value.column, value.prop, value.order) |
|
|
this.sortType = value.order === 'ascending' ? 'asc' : 'desc' |
|
|
this.sortType = value.order === 'ascending' ? 'asc' : 'desc' |
|
|