|
@@ -63,7 +63,7 @@
|
|
<!--学生账号table-->
|
|
<!--学生账号table-->
|
|
<div class="sc-content" style="position: relative; padding-left: 15px" :style="{width: '100%',transition: 'all 0.7s'}">
|
|
<div class="sc-content" style="position: relative; padding-left: 15px" :style="{width: '100%',transition: 'all 0.7s'}">
|
|
<Scroll :on-reach-bottom="scrollLoad" height="750" :distance-to-edge="[15, 15]">
|
|
<Scroll :on-reach-bottom="scrollLoad" height="750" :distance-to-edge="[15, 15]">
|
|
- <Table ref="selection" :columns="tableColumns" :data="tableShowData" @on-selection-change="(selection)=>{selections = selection}">
|
|
|
|
|
|
+ <Table ref="selection" :columns="tableColumns" :data="tableShowData" @on-selection-change="(selection)=>{selections = selection}" @on-filter-change="handleFilterData">
|
|
<template slot-scope="{ row }" slot="header">
|
|
<template slot-scope="{ row }" slot="header">
|
|
<PersonalPhoto :name="row.name" :picture="row.picture" />
|
|
<PersonalPhoto :name="row.name" :picture="row.picture" />
|
|
</template>
|
|
</template>
|
|
@@ -275,6 +275,7 @@ export default {
|
|
callback()
|
|
callback()
|
|
}
|
|
}
|
|
return {
|
|
return {
|
|
|
|
+ imeiFilter:'',
|
|
graduateList: [],
|
|
graduateList: [],
|
|
isGraduate: false,
|
|
isGraduate: false,
|
|
imeiTips: '',
|
|
imeiTips: '',
|
|
@@ -685,6 +686,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
initData() {
|
|
initData() {
|
|
|
|
+ let _this = this
|
|
this.tableColumns = [
|
|
this.tableColumns = [
|
|
{
|
|
{
|
|
type: 'selection',
|
|
type: 'selection',
|
|
@@ -769,10 +771,34 @@ export default {
|
|
this.tableColumns.splice(8, 0, {
|
|
this.tableColumns.splice(8, 0, {
|
|
title: this.$t('stuAccount.imei'),
|
|
title: this.$t('stuAccount.imei'),
|
|
slot: 'imei',
|
|
slot: 'imei',
|
|
- align: 'center'
|
|
|
|
|
|
+ align: 'center',
|
|
|
|
+ key:'imei',
|
|
|
|
+ filters: [
|
|
|
|
+ {
|
|
|
|
+ label: '已绑定',
|
|
|
|
+ value: 1
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '未绑定',
|
|
|
|
+ value: 2
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ filterMultiple: false,
|
|
|
|
+ filterMethod (value, row) {
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ handleFilterData(data){
|
|
|
|
+ console.log(data)
|
|
|
|
+ if(data._filterChecked.length){
|
|
|
|
+ this.imeiFilter = data._filterChecked[0]
|
|
|
|
+ }else{
|
|
|
|
+ this.imeiFilter = ''
|
|
|
|
+ }
|
|
|
|
+ this.filterData()
|
|
|
|
+ },
|
|
/**基础查询数据 */
|
|
/**基础查询数据 */
|
|
baseFindStudent(params) {
|
|
baseFindStudent(params) {
|
|
this.tableLoading = true
|
|
this.tableLoading = true
|
|
@@ -863,6 +889,17 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ //imei筛选
|
|
|
|
+ if(this.imeiFilter){
|
|
|
|
+ data = data.filter(item=>{
|
|
|
|
+ if(this.imeiFilter == 1){
|
|
|
|
+ return !!item.imei
|
|
|
|
+ }else if(this.imeiFilter == 2){
|
|
|
|
+ return !item.imei
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
this.tableFilterData = data
|
|
this.tableFilterData = data
|
|
this.pointNum = this.basicCount
|
|
this.pointNum = this.basicCount
|
|
this.tableShowData = data.slice(0, this.basicCount)
|
|
this.tableShowData = data.slice(0, this.basicCount)
|