feature_0521
zhenghuang 5 years ago
parent e6ab2c8174
commit ee87bbeded

@ -22,14 +22,19 @@
</div>
<div class="m-subordinate">下级({{formData.total}})</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.phone}}</div>
<div>{{item.promoterInfo.level | level}}</div>
</div>
<template>
<Page v-if="formData.total>10" :total="formData.total" @on-change="onChange" size="small"></Page>
</template>
<Page v-if="formData.total>10"
:total="formData.total"
@on-change="onChange"
size="small"></Page>
</template>
</div>
</div>
<div slot="footer">
@ -39,116 +44,121 @@
</div>
</template>
<script>
import bulletinService from '../../services/recruit/Bulletin'
export default {
name: "recruitTable",
components: {
import bulletinService from '../../services/recruit/Bulletin'
export default {
name: "recruitTable",
components: {
},
data () {
return {
formData:{
dataList:[]
},
isShow: false,
currentStep: 0,
modal_loading: false,
loading: false,
showUse: false,
pageNum: 1,
};
},
props: {
id: String,
schedule: Object,
show: Boolean,
isModify: {
type: Boolean,
default: false
},
beginStep: {
type: Number,
default: 1
}
},
watch: {
show () {
this.showUse = this.show;
this.getList();
},
data () {
return {
formData: {
dataList: []
},
schedule () {
console.log('schedule监听', this.schedule);
this.isShow = true;
}
isShow: false,
currentStep: 0,
modal_loading: false,
loading: false,
showUse: false,
pageNum: 1,
};
},
props: {
id: String,
schedule: Object,
show: Boolean,
isModify: {
type: Boolean,
default: false
},
computed: {
// level () {
// let str = "";
// switch (this.schedule.level) {
// case 1:
// str = "广";
// break;
// case 2:
// str = "";
// break;
// case 3:
// str = "";
// break;
// default:
// str = "广";
// }
// return str;
// }
beginStep: {
type: Number,
default: 1
}
},
watch: {
show () {
this.showUse = this.show;
this.getList();
},
mounted () {
schedule () {
console.log('schedule监听', this.schedule);
this.isShow = true;
}
},
computed: {
// level () {
// let str = "";
// switch (this.schedule.level) {
// case 1:
// str = "广";
// break;
// case 2:
// str = "";
// break;
// case 3:
// str = "";
// break;
// default:
// str = "广";
// }
// return str;
// }
},
mounted () {
},
filters: {
level: function (value) {
let str = "";
console.log(value)
switch (value) {
case 1:
str = "一般推广员";
break;
case 2:
str = "客户经理";
break;
case 3:
str = "服务经理";
case 4:
str = "导购";
case 5:
str = "店铺";
break;
default:
str = "一般推广员";
}
return str;
},
filters: {
level: function(value) {
let str = "";
switch (value) {
case 1:
str = "一般推广员";
break;
case 2:
str = "客户经理";
break;
case 3:
str = "服务经理";
break;
default:
str = "一般推广员";
}
return str;
},
},
methods: {
cancel () {
this.modal_loading = false;
this.$emit("doShow", false);
},
methods: {
cancel () {
this.modal_loading = false;
this.$emit("doShow", false);
},
onChange(e){
this.pageNum = e;
this.getList();
},
getList(){
let that = this;
let param = {
pageNum: this.pageNum,
userId:this.schedule.userId
}
bulletinService.promoterDetail(param, function (data) {
if (data.data.code == "0000") {
that.formData = data.data.results
} else {
that.$Message.error("系统异常");
}
}, function (error) {
that.loading = false;
});
}
onChange (e) {
this.pageNum = e;
this.getList();
},
};
getList () {
let that = this;
let param = {
pageNum: this.pageNum,
userId: this.schedule.userId
}
bulletinService.promoterDetail(param, function (data) {
if (data.data.code == "0000") {
that.formData = data.data.results
} else {
that.$Message.error("系统异常");
}
}, function (error) {
that.loading = false;
});
}
},
};
</script>
<style scoped>

Loading…
Cancel
Save