feature_0521
zhenghuang 5 years ago
parent e6ab2c8174
commit ee87bbeded

@ -22,13 +22,18 @@
</div> </div>
<div class="m-subordinate">下级({{formData.total}})</div> <div class="m-subordinate">下级({{formData.total}})</div>
<div> <div>
<div class="t-rows" v-for="(item,index) in formData.records" :key="index"> <div class="t-rows"
v-for="(item,index) in formData.records"
:key="index">
<div>{{item.promoterInfo.name}}</div> <div>{{item.promoterInfo.name}}</div>
<div>{{item.promoterInfo.phone}}</div> <div>{{item.promoterInfo.phone}}</div>
<div>{{item.promoterInfo.level | level}}</div> <div>{{item.promoterInfo.level | level}}</div>
</div> </div>
<template> <template>
<Page v-if="formData.total>10" :total="formData.total" @on-change="onChange" size="small"></Page> <Page v-if="formData.total>10"
:total="formData.total"
@on-change="onChange"
size="small"></Page>
</template> </template>
</div> </div>
</div> </div>
@ -39,16 +44,16 @@
</div> </div>
</template> </template>
<script> <script>
import bulletinService from '../../services/recruit/Bulletin' import bulletinService from '../../services/recruit/Bulletin'
export default { export default {
name: "recruitTable", name: "recruitTable",
components: { components: {
}, },
data () { data () {
return { return {
formData:{ formData: {
dataList:[] dataList: []
}, },
isShow: false, isShow: false,
currentStep: 0, currentStep: 0,
@ -104,8 +109,9 @@
}, },
filters: { filters: {
level: function(value) { level: function (value) {
let str = ""; let str = "";
console.log(value)
switch (value) { switch (value) {
case 1: case 1:
str = "一般推广员"; str = "一般推广员";
@ -115,6 +121,10 @@
break; break;
case 3: case 3:
str = "服务经理"; str = "服务经理";
case 4:
str = "导购";
case 5:
str = "店铺";
break; break;
default: default:
str = "一般推广员"; str = "一般推广员";
@ -127,15 +137,15 @@
this.modal_loading = false; this.modal_loading = false;
this.$emit("doShow", false); this.$emit("doShow", false);
}, },
onChange(e){ onChange (e) {
this.pageNum = e; this.pageNum = e;
this.getList(); this.getList();
}, },
getList(){ getList () {
let that = this; let that = this;
let param = { let param = {
pageNum: this.pageNum, pageNum: this.pageNum,
userId:this.schedule.userId userId: this.schedule.userId
} }
bulletinService.promoterDetail(param, function (data) { bulletinService.promoterDetail(param, function (data) {
if (data.data.code == "0000") { if (data.data.code == "0000") {
@ -148,7 +158,7 @@
}); });
} }
}, },
}; };
</script> </script>
<style scoped> <style scoped>

Loading…
Cancel
Save