feature_0521
zhenghuang 5 years ago
parent e6ab2c8174
commit ee87bbeded

@ -22,14 +22,19 @@
</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"
</template> :total="formData.total"
@on-change="onChange"
size="small"></Page>
</template>
</div> </div>
</div> </div>
<div slot="footer"> <div slot="footer">
@ -39,116 +44,121 @@
</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,
currentStep: 0,
modal_loading: false,
loading: false,
showUse: false,
pageNum: 1,
};
},
props: {
id: String,
schedule: Object,
show: Boolean,
isModify: {
type: Boolean,
default: false
}, },
beginStep: { isShow: false,
type: Number, currentStep: 0,
default: 1 modal_loading: false,
} loading: false,
showUse: false,
pageNum: 1,
};
},
props: {
id: String,
schedule: Object,
show: Boolean,
isModify: {
type: Boolean,
default: false
}, },
watch: { beginStep: {
show () { type: Number,
this.showUse = this.show; default: 1
this.getList(); }
}, },
schedule () { watch: {
console.log('schedule监听', this.schedule); show () {
this.isShow = true; this.showUse = this.show;
} this.getList();
}, },
computed: { schedule () {
// level () { console.log('schedule监听', this.schedule);
// let str = ""; this.isShow = true;
// switch (this.schedule.level) { }
// case 1: },
// str = "广"; computed: {
// break; // level () {
// case 2: // let str = "";
// str = ""; // switch (this.schedule.level) {
// break; // case 1:
// case 3: // str = "广";
// str = ""; // break;
// break; // case 2:
// default: // str = "";
// str = "广"; // break;
// } // case 3:
// return str; // 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;
}, },
mounted () { },
methods: {
cancel () {
this.modal_loading = false;
this.$emit("doShow", false);
}, },
filters: { onChange (e) {
level: function(value) { this.pageNum = e;
let str = ""; this.getList();
switch (value) {
case 1:
str = "一般推广员";
break;
case 2:
str = "客户经理";
break;
case 3:
str = "服务经理";
break;
default:
str = "一般推广员";
}
return str;
},
}, },
methods: { getList () {
cancel () { let that = this;
this.modal_loading = false; let param = {
this.$emit("doShow", false); pageNum: this.pageNum,
}, userId: this.schedule.userId
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;
});
} }
}, 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> </script>
<style scoped> <style scoped>

Loading…
Cancel
Save