Browse Source

Merge branch 'dev-0420' of http://git.elinkit.com.cn:7070/r/epmet-oper-gov into dev-0420

shibei_master
dai 3 years ago
parent
commit
1180da6e78
  1. 47
      src/views/modules/base/community/buildTable.vue
  2. 28
      src/views/modules/base/community/roomTable.vue

47
src/views/modules/base/community/buildTable.vue

@ -69,6 +69,26 @@
:selectable="checkSelect" :selectable="checkSelect"
width="55"> width="55">
</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 prop="buildingName" <el-table-column prop="buildingName"
label="楼栋名称" label="楼栋名称"
min-width="180"> min-width="180">
@ -107,25 +127,6 @@
<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"
:min="1"
:max="9999"
label="描述文字"></el-input-number>
</div>
</template>
</el-table-column>
<el-table-column label="操作" <el-table-column label="操作"
fixed="right" fixed="right"
@ -265,10 +266,10 @@ export default {
const { data, code, msg } = await requestPost(url, params) const { data, code, msg } = await requestPost(url, params)
if (code === 0) { if (code === 0) {
this.$message({ // this.$message({
type: 'success', // type: 'success',
message: '操作成功' // message: ''
}) // })
} else { } else {

28
src/views/modules/base/community/roomTable.vue

@ -64,8 +64,8 @@
v-model="scope.row.sort" v-model="scope.row.sort"
class="item_width_4" class="item_width_4"
:precision="2" :precision="2"
size="mini" size="small"
:min="1" :min="0"
:max="9999" :max="9999"
label="描述文字"></el-input-number> label="描述文字"></el-input-number>
</div> </div>
@ -276,10 +276,10 @@ export default {
const { data, code, msg } = await requestPost(url, params) const { data, code, msg } = await requestPost(url, params)
if (code === 0) { if (code === 0) {
this.$message({ // this.$message({
type: 'success', // type: 'success',
message: '操作成功' // message: ''
}) // })
} else { } else {
@ -727,12 +727,12 @@ export default {
width: 120px; width: 120px;
} }
// /deep/.el-input-number--medium .el-input-number__decrease, /deep/.el-input-number--medium .el-input-number__decrease,
// /deep/.el-input-number--medium .el-input-number__increase { /deep/.el-input-number--medium .el-input-number__increase {
// width: 26px; width: 26px;
// } }
// /deep/.el-input-number--medium .el-input__inner { /deep/.el-input-number--medium .el-input__inner {
// padding-left: 0px; padding-left: 0px;
// padding-right: 0px; padding-right: 0px;
// } }
</style> </style>

Loading…
Cancel
Save