Commit 1e4e41ea authored by 赵茹林's avatar 赵茹林

实时数据基本信息

通话次数
parent 5792c118
...@@ -432,7 +432,7 @@ ...@@ -432,7 +432,7 @@
color: #666; color: #666;
} }
</style> </style>
<style> <style lang="less" scoped>
.disabled .el-upload--picture-card { .disabled .el-upload--picture-card {
display: none !important; display: none !important;
} }
......
...@@ -571,6 +571,9 @@ ...@@ -571,6 +571,9 @@
goToTeacherDetail(row){ goToTeacherDetail(row){
// this.$router.push('/teacher/'+ row.id); // this.$router.push('/teacher/'+ row.id);
this.dialogDetail.id = row.id; this.dialogDetail.id = row.id;
this.dialogDetail.alias = row.alias;
this.dialogDetail.name = row.name;
this.dialogDetail.adviser = row.adviser;
this.dialogDetail.show = true this.dialogDetail.show = true
} }
......
This diff is collapsed.
...@@ -71,6 +71,9 @@ ...@@ -71,6 +71,9 @@
</el-card> </el-card>
</div> </div>
<el-tabs type="border-card" v-model="tabs"> <el-tabs type="border-card" v-model="tabs">
<el-tab-pane label="客户管理" name="customer">
<customerDetail :customerObj="customerObj"></customerDetail>
</el-tab-pane>
<el-tab-pane label="今日任务" name="task"> <el-tab-pane label="今日任务" name="task">
<task :parentDetail="parentDetail"></task> <task :parentDetail="parentDetail"></task>
</el-tab-pane> </el-tab-pane>
...@@ -505,6 +508,7 @@ ...@@ -505,6 +508,7 @@
import AddressArray from '../framework/address-picker/addr' import AddressArray from '../framework/address-picker/addr'
import task from './task' import task from './task'
import page from '../framework/page' import page from '../framework/page'
import customerDetail from './customer'
import sourceDialog from './sourceDialog' import sourceDialog from './sourceDialog'
import couponDialog from './couponDialog' import couponDialog from './couponDialog'
import refundDetail from './refundDetail' import refundDetail from './refundDetail'
...@@ -524,7 +528,8 @@ ...@@ -524,7 +528,8 @@
chooseGoodDialog, chooseGoodDialog,
couponDialog, couponDialog,
refundDetail, refundDetail,
sourceDialog sourceDialog,
customerDetail
}, },
data() { data() {
let nowDate = new Date(); let nowDate = new Date();
...@@ -549,7 +554,7 @@ ...@@ -549,7 +554,7 @@
postModularParams: {}, postModularParams: {},
modularList: [], modularList: [],
modularContent: [], modularContent: [],
tabs: 'task', tabs: 'customer',
nowDate: nowDate, nowDate: nowDate,
yunjiList: [], yunjiList: [],
searchFrom: { searchFrom: {
...@@ -581,6 +586,11 @@ ...@@ -581,6 +586,11 @@
total: 0, total: 0,
limit: 10, limit: 10,
nowPage: 1, nowPage: 1,
customerObj: {
alias: '',
name: '',
adviser: ''
},
userObj: { userObj: {
classId: '', classId: '',
title: '', title: '',
...@@ -1049,7 +1059,11 @@ ...@@ -1049,7 +1059,11 @@
return studentSource[val] return studentSource[val]
} }
}, },
created() {
this.customerObj.alias = this.parentDetail ? this.parentDetail.alias : this.$route.params.alias;
this.customerObj.name = this.parentDetail ? this.parentDetail.name : this.$route.params.name;
this.customerObj.adviser = this.parentDetail ? this.parentDetail.adviser : this.$route.params.adviser;
},
mounted() { mounted() {
this.id = this.parentDetail ? this.parentDetail.id : this.$route.params.id; this.id = this.parentDetail ? this.parentDetail.id : this.$route.params.id;
this.getTask4(); this.getTask4();
......
...@@ -95,6 +95,10 @@ export const postTransferTeacherApi = function (json) { ...@@ -95,6 +95,10 @@ export const postTransferTeacherApi = function (json) {
export const getRealTimeDataApi = function (data) { export const getRealTimeDataApi = function (data) {
return Vue.prototype.$fetch(`${_baseUrl}api/admin/teacher/todaydata/${data}`) return Vue.prototype.$fetch(`${_baseUrl}api/admin/teacher/todaydata/${data}`)
}; };
// 通话次数
export const getPhoneRecordApi = function (data) {
return Vue.prototype.$fetch(`${_baseUrl}api/admin/teacher/phonerecord/${data}`)
};
//获取课程列表 //获取课程列表
const getLessonUrl = `${_baseUrl}api/admin/course/list`; const getLessonUrl = `${_baseUrl}api/admin/course/list`;
export const getLessonApi = function (json) { export const getLessonApi = function (json) {
......
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