Compare commits
	
		
			2 Commits
		
	
	
		
			237fe18db8
			...
			4feee6e2e8
		
	
	| Author | SHA1 | Date | 
|---|---|---|
| 
							
							
								 | 
						4feee6e2e8 | |
| 
							
							
								 | 
						f326d950a2 | 
| 
						 | 
					@ -61,6 +61,7 @@
 | 
				
			||||||
          lass="content"
 | 
					          lass="content"
 | 
				
			||||||
          style="width: 100%;"
 | 
					          style="width: 100%;"
 | 
				
			||||||
          :row-class-name="tableRowClassName"
 | 
					          :row-class-name="tableRowClassName"
 | 
				
			||||||
 | 
					          @sort-change="sortChange"
 | 
				
			||||||
        >
 | 
					        >
 | 
				
			||||||
          <el-table-column type="selection" />
 | 
					          <el-table-column type="selection" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -80,16 +81,19 @@
 | 
				
			||||||
            align="center"
 | 
					            align="center"
 | 
				
			||||||
            prop="pointCount"
 | 
					            prop="pointCount"
 | 
				
			||||||
            label="子点位总数"
 | 
					            label="子点位总数"
 | 
				
			||||||
 | 
					            sortable="custom"
 | 
				
			||||||
          />
 | 
					          />
 | 
				
			||||||
          <el-table-column
 | 
					          <el-table-column
 | 
				
			||||||
            align="center"
 | 
					            align="center"
 | 
				
			||||||
            prop="waitPointCount"
 | 
					            prop="waitPointCount"
 | 
				
			||||||
            label="待激活点位总数"
 | 
					            label="待激活点位总数"
 | 
				
			||||||
 | 
					            sortable="custom"
 | 
				
			||||||
          />
 | 
					          />
 | 
				
			||||||
          <el-table-column
 | 
					          <el-table-column
 | 
				
			||||||
            align="center"
 | 
					            align="center"
 | 
				
			||||||
            prop="repPvBalance"
 | 
					            prop="repPvBalance"
 | 
				
			||||||
            label="复购业绩余额"
 | 
					            label="复购业绩余额"
 | 
				
			||||||
 | 
					            sortable="custom"
 | 
				
			||||||
          />
 | 
					          />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        </el-table>
 | 
					        </el-table>
 | 
				
			||||||
| 
						 | 
					@ -117,7 +121,9 @@ const initParmas = {
 | 
				
			||||||
  pageNum: 1,
 | 
					  pageNum: 1,
 | 
				
			||||||
  pageSize: 50,
 | 
					  pageSize: 50,
 | 
				
			||||||
  memberSettlePeriodId: '',
 | 
					  memberSettlePeriodId: '',
 | 
				
			||||||
  memberCode: ''
 | 
					  memberCode: '',
 | 
				
			||||||
 | 
					  sort: '',
 | 
				
			||||||
 | 
					  sortColumn: ''
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
export default {
 | 
					export default {
 | 
				
			||||||
  name: 'MemberPointInfo',
 | 
					  name: 'MemberPointInfo',
 | 
				
			||||||
| 
						 | 
					@ -191,6 +197,8 @@ export default {
 | 
				
			||||||
        ...initParmas
 | 
					        ...initParmas
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      this.queryParams.memberSettlePeriodId = this.memberSettlePeriodList[0].pkId
 | 
					      this.queryParams.memberSettlePeriodId = this.memberSettlePeriodList[0].pkId
 | 
				
			||||||
 | 
					      // 清除表格排序状态
 | 
				
			||||||
 | 
					      this.$refs.table.clearSort()
 | 
				
			||||||
      this.handleSearch()
 | 
					      this.handleSearch()
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    tableRowClassName({ row, rowIndex }) {
 | 
					    tableRowClassName({ row, rowIndex }) {
 | 
				
			||||||
| 
						 | 
					@ -203,6 +211,27 @@ export default {
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    copyContent(content) {
 | 
					    copyContent(content) {
 | 
				
			||||||
      // this.$message.success('复制成功')
 | 
					      // this.$message.success('复制成功')
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    // 处理表格排序
 | 
				
			||||||
 | 
					    sortChange({ column, prop, order }) {
 | 
				
			||||||
 | 
					      if (order) {
 | 
				
			||||||
 | 
					        // 根据字段名映射到后端需要的排序字段名
 | 
				
			||||||
 | 
					        const sortColumnMap = {
 | 
				
			||||||
 | 
					          pointCount: 'POINT_COUNT',
 | 
				
			||||||
 | 
					          waitPointCount: 'WAIT_POINT_COUNT',
 | 
				
			||||||
 | 
					          repPvBalance: 'REP_PV_BALANCE'
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        this.queryParams.sortColumn = sortColumnMap[prop] || ''
 | 
				
			||||||
 | 
					        this.queryParams.sort = order === 'ascending' ? 'ASC' : 'DESC'
 | 
				
			||||||
 | 
					      } else {
 | 
				
			||||||
 | 
					        // 取消排序
 | 
				
			||||||
 | 
					        this.queryParams.sortColumn = ''
 | 
				
			||||||
 | 
					        this.queryParams.sort = ''
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      // 重新加载数据
 | 
				
			||||||
 | 
					      this.handleSearch()
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
| 
						 | 
					@ -225,10 +254,6 @@ export default {
 | 
				
			||||||
::v-deep .el-date-editor .el-range__icon{
 | 
					::v-deep .el-date-editor .el-range__icon{
 | 
				
			||||||
  margin-top: -10px;
 | 
					  margin-top: -10px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
::v-deep .el-input__inner{
 | 
					 | 
				
			||||||
  //height:28px;
 | 
					 | 
				
			||||||
  //line-height: 28px;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
::v-deep .el-form-item__label{
 | 
					::v-deep .el-form-item__label{
 | 
				
			||||||
  color: #333;
 | 
					  color: #333;
 | 
				
			||||||
  font-weight: inherit;
 | 
					  font-weight: inherit;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue