Browse Source

排序去除小数

V1.0
mk 3 years ago
parent
commit
daa2466185
  1. 2
      src/views/modules/base/community/buildTable.vue
  2. 4
      src/views/modules/base/community/roomTable.vue

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

@ -467,7 +467,7 @@ export default {
this.total = data.total
data.list.forEach(item => {
item.sort = parseInt(item.sort) || 0;
item.sort = item.sort.toFixed(2)
// item.sort = item.sort.toFixed(2)
item.isChange = false
if (item.agencyId === this.staffAgencyId) {
item.showBtn = true

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

@ -207,11 +207,11 @@
<template slot-scope="scope">
<div @click="handleEditSort(scope.row)">
<span v-if="!scope.row.isChange">{{ scope.row.sort }}</span>
<!-- :precision="2" -->
<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"
@ -533,7 +533,7 @@ export default {
this.validTableDataNum = 0;
data.list.forEach((item) => {
item.sort = parseInt(item.sort) || 0;
item.sort = item.sort.toFixed(2);
// item.sort = item.sort.toFixed(2);
item.isChange = false;
item.houseNameShow =
item.neighborHoodName +

Loading…
Cancel
Save