Commit d7af38a4 authored by 赵茹林's avatar 赵茹林

同上

parent b0175a7a
...@@ -23,12 +23,16 @@ ...@@ -23,12 +23,16 @@
<el-input <el-input
style="width: 46%;" style="width: 46%;"
type="number" type="number"
v-model.number="scope.row.min_money"></el-input> v-model.number="scope.row.min_money">
<template v-if="item2.isMoneyPercent" slot="append">%</template>
</el-input>
<div style="display: flex; align-items: center; justify-content: center; width: 8%;">~</div> <div style="display: flex; align-items: center; justify-content: center; width: 8%;">~</div>
<el-input <el-input
style="width: 46%;" style="width: 46%;"
type="number" type="number"
v-model.number="scope.row.max_money"></el-input> v-model.number="scope.row.max_money">
<template v-if="item2.isMoneyPercent" slot="append">%</template>
</el-input>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
...@@ -86,18 +90,21 @@ ...@@ -86,18 +90,21 @@
value: '1', value: '1',
children: [{ children: [{
label: '试听课来源-转年课业绩提点配置', label: '试听课来源-转年课业绩提点配置',
isMoneyPercent: false,
money: '业绩区间', money: '业绩区间',
scale: '提点比例', scale: '提点比例',
value: '1', value: '1',
data: [] data: []
}, { }, {
label: '月课、季课来源-转年课业绩提点配置', label: '月课、季课来源-转年课业绩提点配置',
isMoneyPercent: false,
money: '业绩区间', money: '业绩区间',
scale: '提点比例', scale: '提点比例',
value: '2', value: '2',
data: [] data: []
}, { }, {
label: '年课来源 - 转两年课业绩提点配置', label: '年课来源 - 转两年课业绩提点配置',
isMoneyPercent: false,
money: '业绩区间', money: '业绩区间',
scale: '提点比例', scale: '提点比例',
value: '3', value: '3',
...@@ -108,18 +115,21 @@ ...@@ -108,18 +115,21 @@
value: '2', value: '2',
children: [{ children: [{
label: '主管业绩提点', label: '主管业绩提点',
isMoneyPercent: true, // 是否显示%
money: '业绩完成率', money: '业绩完成率',
scale: '提点比例', scale: '提点比例',
value: '4', value: '4',
data: [] data: []
}, { }, {
label: '主管转化率系数(试听课)', label: '主管转化率系数(试听课)',
isMoneyPercent: true,
money: '团队转化率', money: '团队转化率',
scale: '转化系数', scale: '转化系数',
value: '5', value: '5',
data: [] data: []
}, { }, {
label: '主管转化率系数(月课、季课)', label: '主管转化率系数(月课、季课)',
isMoneyPercent: true,
money: '团队转化率', money: '团队转化率',
scale: '转化系数', scale: '转化系数',
value: '6', value: '6',
......
...@@ -186,8 +186,7 @@ ...@@ -186,8 +186,7 @@
props: { props: {
callbackObj: { callbackObj: {
type: Object, type: Object,
default: () => { default: () => {}
}
}, },
callbackAdd: { callbackAdd: {
type: Boolean, type: Boolean,
...@@ -268,6 +267,11 @@ ...@@ -268,6 +267,11 @@
this.callbackEdit.mobile.origin = this.user.relation_mobile; this.callbackEdit.mobile.origin = this.user.relation_mobile;
this.callbackEdit.wechat.value = this.user.wx_number; this.callbackEdit.wechat.value = this.user.wx_number;
this.callbackEdit.wechat.origin = this.user.wx_number; this.callbackEdit.wechat.origin = this.user.wx_number;
},
'callbackObj.timestamp'() {
this.user.user_id = this.callbackObj.user_id;
this.getUser();
this.getTag();
} }
}, },
mounted() { mounted() {
......
...@@ -98,8 +98,9 @@ ...@@ -98,8 +98,9 @@
data(){ data(){
return { return {
callbackObj: { callbackObj: {
id: '', user_id: '',
detail: {} teacher_id: '',
timestamp: ''
}, },
descDialog:{ descDialog:{
show:false, show:false,
...@@ -144,11 +145,7 @@ ...@@ -144,11 +145,7 @@
// this.getUserDescList(); // this.getUserDescList();
this.callbackObj.user_id = data.user_id; this.callbackObj.user_id = data.user_id;
this.callbackObj.teacher_id = this.teacherId; this.callbackObj.teacher_id = this.teacherId;
this.callbackObj.detail.birthday = data.birthday; this.callbackObj.timestamp = (new Date()).getTime();
this.callbackObj.detail.user_id = data.user_id;
this.callbackObj.detail.nickname = data.nickname;
this.callbackObj.detail.mobile = data.mobile;
this.callbackObj.detail.baby_name = data.baby_name;
}, },
getUserDescList(){ getUserDescList(){
getUserDescListApi(this.row.id,{limit:1000}).then(res => { getUserDescListApi(this.row.id,{limit:1000}).then(res => {
......
...@@ -167,6 +167,17 @@ ...@@ -167,6 +167,17 @@
userDetail, userDetail,
teacherDialog teacherDialog
}, },
watch: {
$route(){
if (this.$route.query.type && this.$route.query.type == 'detail') { // 详情页
this.inDetail = true
} else { // 列表页
this.inDetail = false;
this.getUser();
}
this.$route.query.id ? this.searchFrom.userId = this.$route.query.id : '';
},
},
mounted() { mounted() {
if (this.$route.query.type && this.$route.query.type == 'detail') { // 详情页 if (this.$route.query.type && this.$route.query.type == 'detail') { // 详情页
this.inDetail = true this.inDetail = true
......
...@@ -548,8 +548,9 @@ ...@@ -548,8 +548,9 @@
data() { data() {
return { return {
callbackObj: { callbackObj: {
id: '', user_id: '',
detail: {} teacher_id: '',
timestamp: ''
}, },
userList: [], userList: [],
yunjiList: [], yunjiList: [],
...@@ -651,6 +652,7 @@ ...@@ -651,6 +652,7 @@
this.callbackObj.user_id = this.id; this.callbackObj.user_id = this.id;
// this.callbackObj.teacher_id = this.parentDetail.teacher_id ? this.parentDetail.teacher_id : ''; // this.callbackObj.teacher_id = this.parentDetail.teacher_id ? this.parentDetail.teacher_id : '';
this.callbackObj.teacher_id = this.parentDetail && this.parentDetail.teacher_id ? this.parentDetail.teacher_id : (this.$route.query.teacherid ? this.$route.query.teacherid : ''); this.callbackObj.teacher_id = this.parentDetail && this.parentDetail.teacher_id ? this.parentDetail.teacher_id : (this.$route.query.teacherid ? this.$route.query.teacherid : '');
this.callbackObj.timestamp = (new Date()).getTime();
}, },
mounted() { mounted() {
this.getDetail(); this.getDetail();
...@@ -873,7 +875,7 @@ ...@@ -873,7 +875,7 @@
if (!this.id) return; if (!this.id) return;
getUserDetailApi(this.id).then(res => { getUserDetailApi(this.id).then(res => {
this.detail = res; this.detail = res;
this.callbackObj.detail = res; // 用户的所有数据 // this.callbackObj.detail = res; // 用户的所有数据
if (res.periods_list) { if (res.periods_list) {
this.periodList = res.periods_list this.periodList = res.periods_list
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment