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

回访信息 [更新] 去掉只读时不能添加回访信息的权限判断

回访信息 [修复] 班级成员界面点沟通情况时未传teacher id导致不能添加回访信息的问题
教师列表选择框 [更新] 接口条数限制改为500
parent 24b04b2a
This diff is collapsed.
......@@ -88,7 +88,9 @@
<el-table-column type="selection" width="40"></el-table-column>
<el-table-column width="120" label="沟通情况">
<template slot-scope="scope">
<teacher-desc :row="scope.row" :typeFlag="true" :descType="2" @onSuccess="searchList()"></teacher-desc>
<!--<teacher-desc :row="scope.row" :typeFlag="true" :descType="2" @onSuccess="searchList()"></teacher-desc>-->
<!---->
<teacher-desc :teacherId="userObj.teacherId" :row="scope.row" :typeFlag="true" :descType="2" @onSuccess="searchList()"></teacher-desc>
</template>
</el-table-column>
<el-table-column label="用户" className="f-c" min-width="180" sortable prop="user_id">
......
......@@ -154,7 +154,7 @@
</div>
</template>
<script>
import {
import {
getTeacherListApi,
getchannelTransListApi,
getPeriodsApi,
......@@ -163,16 +163,16 @@ import {
getPeriodsOtherListApi,
getConfigListApi,
getUpdateTimeApi
} from "../../service/api";
import page from "../framework/page";
import { GOODSTYPE, CLASSSOURCE } from "../../util/wordbook";
} from "../../service/api";
import page from "../framework/page";
import {GOODSTYPE, CLASSSOURCE} from "../../util/wordbook";
export default {
export default {
name: "channelTransList",
data() {
return {
updateTime: '',
typeList:[],
typeList: [],
width: 0,
nowPage: 1,
limit: 20,
......@@ -276,7 +276,7 @@ export default {
contentSpanArr: [],
searchFrom: {
payTime: [],
classTime:[],
classTime: [],
start_at: "",
end_at: "",
invite_type: "",
......@@ -289,14 +289,14 @@ export default {
},
propertyList: [],
watchList: [
{ id: 0, title: 5 },
{ id: 1, title: 6 },
{ id: 2, title: 10 },
{ id: 3, title: 20 }
{id: 0, title: 5},
{id: 1, title: 6},
{id: 2, title: 10},
{id: 3, title: 20}
]
};
},
components: { page },
components: {page},
methods: {
periodName(row) {
//return `【${row.goods_id}】${row.periods_title}${row.watch_num}课时(${row.start_at.slice(5).replace('-', '')})-d${this.title.has_watch_num}`
......@@ -319,7 +319,7 @@ export default {
},
exportDataTable() {
let json = {};
if(this.searchFrom.sort_value){
if (this.searchFrom.sort_value) {
json.sort_value = this.searchFrom.sort_value;
json.sort_key = this.searchFrom.sort_key;
}
......@@ -364,7 +364,7 @@ export default {
// }
},
handleItemChange(val) {
getPeriodsApi({ goods_id: val[0], limit: 100 }).then(res => {
getPeriodsApi({goods_id: val[0], limit: 100}).then(res => {
res.list.forEach(i => {
i.name = i.title;
});
......@@ -416,12 +416,12 @@ export default {
getTeacherList() {
let json = {
page: 1,
limit: 200
limit: 500
};
getTeacherListApi(json).then(res => {
this.teacherList = res.list;
});
getConfigListApi({page:1, limit: 100,key:'code_rule_type'}).then(res=>{
getConfigListApi({page: 1, limit: 100, key: 'code_rule_type'}).then(res => {
this.typeList = res.list
})
},
......@@ -450,9 +450,9 @@ export default {
});
},
getPeriodsOtherList() {
let json = { limit: 1000,page:1,max_watch_num:20 };
let json = {limit: 1000, page: 1, max_watch_num: 20};
getPeriodsOtherListApi(json).then(res => {
res.list.forEach(val=>{
res.list.forEach(val => {
val.label = `【${val.goods_id}${val.title}${val.watch_num}课时(${val.start_at.slice(5).replace('-', '')})-d${val.has_watch_num}`
})
this.periodList = res.list;
......@@ -467,7 +467,7 @@ export default {
if (this.searchFrom.invite_type) {
json.invite_type = this.searchFrom.invite_type;
}
if(this.searchFrom.sort_value){
if (this.searchFrom.sort_value) {
json.sort_value = this.searchFrom.sort_value;
json.sort_key = this.searchFrom.sort_key;
}
......@@ -486,7 +486,7 @@ export default {
if (this.searchFrom.teacher_id) {
json.teacher_id = this.searchFrom.teacher_id;
}
if (this.searchFrom.payTime&&this.searchFrom.payTime.length > 0) {
if (this.searchFrom.payTime && this.searchFrom.payTime.length > 0) {
if (
this.searchFrom.payTime[0] &&
this.searchFrom.payTime[0].length > 0
......@@ -502,7 +502,7 @@ export default {
json.end_at = this.searchFrom.end_at;
}
}
if (this.searchFrom.classTime&&this.searchFrom.classTime.length > 0) {
if (this.searchFrom.classTime && this.searchFrom.classTime.length > 0) {
console.log(this.searchFrom.classTime)
if (
this.searchFrom.classTime[0] &&
......@@ -583,12 +583,12 @@ export default {
this.getPeriodsOtherList();
this.getUpdateTime();
}
};
};
</script>
<style lang="less" scope>
.channel-trans-list {
.channel-trans-list {
padding: 20px 0;
}
}
</style>
......@@ -145,11 +145,18 @@
</div>
</template>
<script>
import { getPeriodsConversionListApi, getGoodsListApi, getPeriodsOtherListApi, getTeacherListApi, getUpdateTimeApi } from "../../service/api";
import page from "../framework/page";
import { GOODSTYPE, CLASSSOURCE } from "../../util/wordbook";
import { tipArr3 } from "../../util/tipArr";
export default {
import {
getPeriodsConversionListApi,
getGoodsListApi,
getPeriodsOtherListApi,
getTeacherListApi,
getUpdateTimeApi
} from "../../service/api";
import page from "../framework/page";
import {GOODSTYPE, CLASSSOURCE} from "../../util/wordbook";
import {tipArr3} from "../../util/tipArr";
export default {
name: "periodsConversionList",
data() {
return {
......@@ -253,7 +260,7 @@ export default {
contentSpanArr: [],
searchFrom: {
payTime: [],
classTime:[],
classTime: [],
start_at: "",
end_at: "",
invite_type: "",
......@@ -266,14 +273,14 @@ export default {
},
propertyList: [],
watchList: [
{ id: 0, title: 5 },
{ id: 1, title: 6 },
{ id: 2, title: 10 },
{ id: 3, title: 20 }
{id: 0, title: 5},
{id: 1, title: 6},
{id: 2, title: 10},
{id: 3, title: 20}
]
};
},
components: { page },
components: {page},
methods: {
periodName(val) {
let str = '';
......@@ -296,7 +303,7 @@ export default {
}
return str
},
rendertip(h, { column }) {
rendertip(h, {column}) {
// console.log(h)
return h("span", [
h("span", column.label),
......@@ -318,11 +325,11 @@ export default {
)
]);
},
sortMethod(data){
sortMethod(data) {
this.searchFrom.sort_key = data.prop
if(data.order=='ascending'){
if (data.order == 'ascending') {
this.searchFrom.sort_value = 'asc'
}else{
} else {
this.searchFrom.sort_value = 'desc'
}
this.getChannelTransList()
......@@ -330,7 +337,7 @@ export default {
getTeacherList() {
let json = {
page: 1,
limit: 200
limit: 500
};
getTeacherListApi(json).then(res => {
this.teacherList = res.list;
......@@ -395,7 +402,7 @@ export default {
// }
},
handleItemChange(val) {
getPeriodsApi({ goods_id: val[0], limit: 100 }).then(res => {
getPeriodsApi({goods_id: val[0], limit: 100}).then(res => {
res.list.forEach(i => {
i.name = i.title;
});
......@@ -469,9 +476,9 @@ export default {
});
},
getPeriodsOtherList() {
let json = { limit: 1000,page:1,max_watch_num:20 };
let json = {limit: 1000, page: 1, max_watch_num: 20};
getPeriodsOtherListApi(json).then(res => {
res.list.forEach(val=>{
res.list.forEach(val => {
val.label = `【${val.goods_id}${val.title}${val.watch_num}课时(${val.start_at.slice(5).replace('-', '')})-d${val.has_watch_num}`
})
this.periodList = res.list;
......@@ -487,7 +494,7 @@ export default {
if (this.searchFrom.invite_type) {
json.invite_type = this.searchFrom.invite_type;
}
if(this.searchFrom.sort_value){
if (this.searchFrom.sort_value) {
json.sort_value = this.searchFrom.sort_value;
json.sort_key = this.searchFrom.sort_key;
}
......@@ -503,7 +510,7 @@ export default {
if (this.searchFrom.teacher_id) {
json.teacher_id = this.searchFrom.teacher_id;
}
if (this.searchFrom.payTime&&this.searchFrom.payTime.length > 0) {
if (this.searchFrom.payTime && this.searchFrom.payTime.length > 0) {
if (
this.searchFrom.payTime[0] &&
this.searchFrom.payTime[0].length > 0
......@@ -519,7 +526,7 @@ export default {
json.end_at = this.searchFrom.end_at;
}
}
if (this.searchFrom.classTime&&this.searchFrom.classTime.length > 0) {
if (this.searchFrom.classTime && this.searchFrom.classTime.length > 0) {
console.log(this.searchFrom.classTime)
if (
this.searchFrom.classTime[0] &&
......@@ -600,12 +607,12 @@ export default {
this.getTeacherList();
this.getUpdateTime()
}
};
};
</script>
<style lang="less" scope>
.channel-trans-list {
.channel-trans-list {
padding: 20px 0;
}
}
</style>
......@@ -96,7 +96,7 @@
:style="{width: width+'px'}"
fixed
>
<el-table-column prop="out_trade_no" label="订单号" ></el-table-column>
<el-table-column prop="out_trade_no" label="订单号"></el-table-column>
<el-table-column
label="购买人"
className="f-c"
......@@ -105,8 +105,8 @@
<img class="avatar" :src="scope.row.user_avatar"/> {{scope.row.user_nickname}}<br>(ID:{{scope.row.user_id}})<br>手机:{{scope.row.user_mobile}}
</template>
</el-table-column>
<el-table-column prop="goods_name" label="商品名称" ></el-table-column>
<el-table-column prop="periods_title" label="期数标题" ></el-table-column>
<el-table-column prop="goods_name" label="商品名称"></el-table-column>
<el-table-column prop="periods_title" label="期数标题"></el-table-column>
<el-table-column
prop="duration_over_at"
label="开课看课时间"
......@@ -151,10 +151,10 @@
<img class="avatar" :src="scope.row.class_invite_user_avatar"/> {{scope.row.class_invite_user_nickname}}<br>(ID:{{scope.row.class_invite_user_id}})<br>手机:{{scope.row.class_invite_user_mobile}}
</template>
</el-table-column>
<el-table-column prop="money" label="实付金额" ></el-table-column>
<el-table-column prop="pay_at" label="支付时间" ></el-table-column>
<el-table-column prop="in_class_at" label="进班时间" ></el-table-column>
<el-table-column prop="status" label="支付状态" >
<el-table-column prop="money" label="实付金额"></el-table-column>
<el-table-column prop="pay_at" label="支付时间"></el-table-column>
<el-table-column prop="in_class_at" label="进班时间"></el-table-column>
<el-table-column prop="status" label="支付状态">
<template slot-scope="scope">
{{scope.row.status|orderFilter}}
</template>
......@@ -170,11 +170,18 @@
</div>
</template>
<script>
import { getPeriodsConversionListApi, getSourceConversionListApi, getGoodsListApi, getPeriodsOtherListApi, getTeacherListApi } from "../../service/api";
import page from "../framework/page";
import { GOODSTYPE, CLASSSOURCE,ORDERSTATUS } from "../../util/wordbook";
import { tipArr3 } from "../../util/tipArr";
export default {
import {
getPeriodsConversionListApi,
getSourceConversionListApi,
getGoodsListApi,
getPeriodsOtherListApi,
getTeacherListApi
} from "../../service/api";
import page from "../framework/page";
import {GOODSTYPE, CLASSSOURCE, ORDERSTATUS} from "../../util/wordbook";
import {tipArr3} from "../../util/tipArr";
export default {
name: "periodsConversionList",
data() {
return {
......@@ -278,7 +285,7 @@ export default {
contentSpanArr: [],
searchFrom: {
payTime: [],
classTime:[],
classTime: [],
start_at: "",
end_at: "",
invite_type: "",
......@@ -290,16 +297,16 @@ export default {
periods_title: ""
},
watchList: [
{ id: 0, title: 5 },
{ id: 1, title: 6 },
{ id: 2, title: 10 },
{ id: 3, title: 20 }
{id: 0, title: 5},
{id: 1, title: 6},
{id: 2, title: 10},
{id: 3, title: 20}
],
goodList: []
};
},
filters:{
orderFilter(val){
filters: {
orderFilter(val) {
return ORDERSTATUS[val]
},
filterGoods(val) {
......@@ -317,7 +324,7 @@ export default {
);
}
},
components: { page },
components: {page},
methods: {
getGoodsOption() {
let json = {
......@@ -330,7 +337,7 @@ export default {
console.log(this.goodList, 176);
});
},
rendertip(h, { column }) {
rendertip(h, {column}) {
// console.log(h)
return h("span", [
h("span", column.label),
......@@ -352,11 +359,11 @@ export default {
)
]);
},
sortMethod(data){
sortMethod(data) {
this.searchFrom.sort_key = data.prop
if(data.order=='ascending'){
if (data.order == 'ascending') {
this.searchFrom.sort_value = 'asc'
}else{
} else {
this.searchFrom.sort_value = 'desc'
}
this.getChannelTransList()
......@@ -364,7 +371,7 @@ export default {
getTeacherList() {
let json = {
page: 1,
limit: 200
limit: 500
};
getTeacherListApi(json).then(res => {
this.teacherList = res.list;
......@@ -389,7 +396,7 @@ export default {
objectSpanMethod(data) {
},
handleItemChange(val) {
getPeriodsApi({ goods_id: val[0], limit: 100 }).then(res => {
getPeriodsApi({goods_id: val[0], limit: 100}).then(res => {
res.list.forEach(i => {
i.name = i.title;
});
......@@ -463,9 +470,9 @@ export default {
});
},
getPeriodsOtherList() {
let json = { limit: 1000,page:1,max_watch_num:20 };
let json = {limit: 1000, page: 1, max_watch_num: 20};
getPeriodsOtherListApi(json).then(res => {
res.list.forEach(val=>{
res.list.forEach(val => {
val.label = `【${val.goods_id}${val.title}${val.watch_num}课时(${val.start_at.slice(5).replace('-', '')})-d${val.has_watch_num}`
})
this.periodList = res.list;
......@@ -484,7 +491,7 @@ export default {
if (this.searchFrom.goods_id) {
json.goods_id = this.searchFrom.goods_id;
}
if(this.searchFrom.sort_value){
if (this.searchFrom.sort_value) {
json.sort_value = this.searchFrom.sort_value;
json.sort_key = this.searchFrom.sort_key;
}
......@@ -506,7 +513,7 @@ export default {
if (this.searchFrom.user_id) {
json.user_id = this.searchFrom.user_id;
}
if (this.searchFrom.payTime&&this.searchFrom.payTime.length > 0) {
if (this.searchFrom.payTime && this.searchFrom.payTime.length > 0) {
if (
this.searchFrom.payTime[0] &&
this.searchFrom.payTime[0].length > 0
......@@ -522,7 +529,7 @@ export default {
json.pay_over_at = this.searchFrom.end_at;
}
}
if (this.searchFrom.classTime&&this.searchFrom.classTime.length > 0) {
if (this.searchFrom.classTime && this.searchFrom.classTime.length > 0) {
console.log(this.searchFrom.classTime)
if (
this.searchFrom.classTime[0] &&
......@@ -596,12 +603,12 @@ export default {
this.getTeacherList()
this.getGoodsOption()
}
};
};
</script>
<style lang="less" scope>
.channel-trans-list {
.channel-trans-list {
padding: 20px 0;
}
}
</style>
......@@ -151,17 +151,18 @@
</div>
</template>
<script>
import {
import {
getTeacherPeriodsConversionListApi,
getGoodsListApi,
getPeriodsOtherListApi,
getTeacherListApi,
getUpdateTimeApi
} from "../../service/api";
import page from "../framework/page";
import { GOODSTYPE, CLASSSOURCE } from "../../util/wordbook";
import { tipArr3 } from "../../util/tipArr";
export default {
} from "../../service/api";
import page from "../framework/page";
import {GOODSTYPE, CLASSSOURCE} from "../../util/wordbook";
import {tipArr3} from "../../util/tipArr";
export default {
name: "teacherPeriodsConversionList",
data() {
return {
......@@ -268,7 +269,7 @@ export default {
spanArr: [],
contentSpanArr: [],
searchFrom: {
classTime:[],
classTime: [],
payTime: [],
start_at: "",
end_at: "",
......@@ -282,14 +283,14 @@ export default {
},
propertyList: [],
watchList: [
{ id: 0, title: 5 },
{ id: 1, title: 6 },
{ id: 2, title: 10 },
{ id: 3, title: 20 }
{id: 0, title: 5},
{id: 1, title: 6},
{id: 2, title: 10},
{id: 3, title: 20}
]
};
},
components: { page },
components: {page},
methods: {
periodName(val) {
let str = '';
......@@ -314,7 +315,7 @@ export default {
}
return str
},
rendertip(h, { column }) {
rendertip(h, {column}) {
// console.log(h)
return h("span", [
h("span", column.label),
......@@ -336,11 +337,11 @@ export default {
)
]);
},
sortMethod(data){
sortMethod(data) {
this.searchFrom.sort_key = data.prop
if(data.order=='ascending'){
if (data.order == 'ascending') {
this.searchFrom.sort_value = 'asc'
}else{
} else {
this.searchFrom.sort_value = 'desc'
}
this.getChannelTransList()
......@@ -348,7 +349,7 @@ export default {
getTeacherList() {
let json = {
page: 1,
limit: 200
limit: 500
};
getTeacherListApi(json).then(res => {
this.teacherList = res.list;
......@@ -413,7 +414,7 @@ export default {
// }
},
handleItemChange(val) {
getPeriodsApi({ goods_id: val[0], limit: 100 }).then(res => {
getPeriodsApi({goods_id: val[0], limit: 100}).then(res => {
res.list.forEach(i => {
i.name = i.title;
});
......@@ -487,9 +488,9 @@ export default {
});
},
getPeriodsOtherList() {
let json = { limit: 1000,page:1,max_watch_num:20 };
let json = {limit: 1000, page: 1, max_watch_num: 20};
getPeriodsOtherListApi(json).then(res => {
res.list.forEach(val=>{
res.list.forEach(val => {
val.label = `【${val.goods_id}${val.title}${val.watch_num}课时(${val.start_at.slice(5).replace('-', '')})-d${val.has_watch_num}`
})
this.periodList = res.list;
......@@ -504,7 +505,7 @@ export default {
if (this.searchFrom.invite_type) {
json.invite_type = this.searchFrom.invite_type;
}
if(this.searchFrom.sort_value){
if (this.searchFrom.sort_value) {
json.sort_value = this.searchFrom.sort_value;
json.sort_key = this.searchFrom.sort_key;
}
......@@ -520,7 +521,7 @@ export default {
if (this.searchFrom.teacher_id) {
json.teacher_id = this.searchFrom.teacher_id;
}
if (this.searchFrom.payTime&&this.searchFrom.payTime.length > 0) {
if (this.searchFrom.payTime && this.searchFrom.payTime.length > 0) {
if (
this.searchFrom.payTime[0] &&
this.searchFrom.payTime[0].length > 0
......@@ -536,7 +537,7 @@ export default {
json.end_at = this.searchFrom.end_at;
}
}
if (this.searchFrom.classTime&&this.searchFrom.classTime.length > 0) {
if (this.searchFrom.classTime && this.searchFrom.classTime.length > 0) {
console.log(this.searchFrom.classTime)
if (
this.searchFrom.classTime[0] &&
......@@ -616,12 +617,12 @@ export default {
this.getTeacherList();
this.getUpdateTime();
}
};
};
</script>
<style lang="less" scope>
.channel-trans-list {
.channel-trans-list {
padding: 20px 0;
}
}
</style>
This diff is collapsed.
......@@ -72,6 +72,7 @@
&::-webkit-scrollbar {
background-color: #333333; /* or add it to the track */
&:hover {
&::-webkit-scrollbar-thumb {
background-color: #999;
......
......@@ -401,7 +401,7 @@
show: false,
nowPage: 1,
total: 0,
limit: 100,
limit: 500,
teacher_id: ''
},
teacherList: [],
......
This diff is collapsed.
......@@ -244,37 +244,37 @@
} from "../../util/wordbook";
import CommonJs from "../../util/common";
export default {
export default {
name: "index",
data() {
return {
nowPage: 1,
total: 0,
today:{
text:'今天',
onClick:()=>{
this.searchFrom.payTime = [this.formatTime(new Date())+' 00:00:00',this.formatTime(new Date())+' 23:59:59'];
today: {
text: '今天',
onClick: () => {
this.searchFrom.payTime = [this.formatTime(new Date()) + ' 00:00:00', this.formatTime(new Date()) + ' 23:59:59'];
}
},
yesterday:{
text:'昨天',
onClick:()=>{
let preDate = this.formatTime(new Date(new Date().getTime() - 24*60*60*1000));
this.searchFrom.payTime = [preDate+' 00:00:00',preDate+' 23:59:59'];
yesterday: {
text: '昨天',
onClick: () => {
let preDate = this.formatTime(new Date(new Date().getTime() - 24 * 60 * 60 * 1000));
this.searchFrom.payTime = [preDate + ' 00:00:00', preDate + ' 23:59:59'];
}
},
last30Day:{
text:'过去30天',
onClick:()=>{
let preDate = this.formatTime(new Date(new Date().getTime() - 30*24*60*60*1000));
this.searchFrom.payTime = [preDate+' 00:00:00',this.formatTime(new Date())+' 23:59:59'];
last30Day: {
text: '过去30天',
onClick: () => {
let preDate = this.formatTime(new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000));
this.searchFrom.payTime = [preDate + ' 00:00:00', this.formatTime(new Date()) + ' 23:59:59'];
}
},
last7Day:{
text:'过去7天',
onClick:()=>{
let preDate = this.formatTime(new Date(new Date().getTime() - 7*24*60*60*1000));
this.searchFrom.payTime = [preDate+' 00:00:00',this.formatTime(new Date())+' 23:59:59'];
last7Day: {
text: '过去7天',
onClick: () => {
let preDate = this.formatTime(new Date(new Date().getTime() - 7 * 24 * 60 * 60 * 1000));
this.searchFrom.payTime = [preDate + ' 00:00:00', this.formatTime(new Date()) + ' 23:59:59'];
}
},
sourceDialog: {
......@@ -292,7 +292,7 @@ export default {
limit: 10,
searchFrom: {
nickname: "",
wait_into_course:'',
wait_into_course: '',
user_id: "",
invite_type: "",
invite_id: "",
......@@ -302,7 +302,7 @@ export default {
out_trade_no: "",
payTime: [],
order_group_id: "",
is_captain:"",
is_captain: "",
},
tableData: [],
dialogObj: {
......@@ -323,18 +323,18 @@ export default {
buyTypeOption: BUYTYPEOPTION,
inviteSearchPlaceholder: "",
rules: {
value: [{ required: true, message: "请输入备注", trigger: "change" }]
value: [{required: true, message: "请输入备注", trigger: "change"}]
},
promoterDialog: {
show: false,
nowPage: 1,
total: 0,
limit: 100,
limit: 500,
teacher_id: ""
},
teacherList: [],
loading: false,
isLeaderOption:ISLEADEROPTION,
isLeaderOption: ISLEADEROPTION,
};
},
methods: {
......@@ -361,14 +361,14 @@ export default {
}
return str
},
formatTime(date){
formatTime(date) {
let year = date.getFullYear();
let Month = date.getMonth()+1;
if(Month < 10){
let Month = date.getMonth() + 1;
if (Month < 10) {
Month = `0${Month}`
}
let Day = date.getDate();
if(Day<10)Day = `0${Day}`;
if (Day < 10) Day = `0${Day}`;
return `${year}-${Month}-${Day}`;
},
showRef(data) {
......@@ -385,7 +385,7 @@ export default {
},
changeRow(data, b) {
if (b.indexOf(data) > -1) {
getRefundListApi({ out_trade_no: data.out_trade_no }).then(res => {
getRefundListApi({out_trade_no: data.out_trade_no}).then(res => {
data.refundList = res.list;
});
}
......@@ -436,14 +436,14 @@ export default {
json.wait_into_course = this.searchFrom.wait_into_course
}
json.course_type = 1; //日课
exportExcelApi("/api/admin/order/export", json,'日课订单列表');
exportExcelApi("/api/admin/order/export", json, '日课订单列表');
},
getGoodsOption() {
let json = {
page: 1,
limit: 100,
course_type:1,
status:"1,2"
course_type: 1,
status: "1,2"
};
getGoodsListApi(json).then(res => {
......
This diff is collapsed.
......@@ -59,7 +59,8 @@
</el-card>
<!--添加回访信息-->
<el-card shadow="never" v-if="callbackObj.teacher_id && !$store.state.readonly" class="callback-item callback-input">
<!--<el-card shadow="never" v-if="callbackObj.teacher_id && !$store.state.readonly" class="callback-item callback-input">-->
<el-card shadow="never" v-if="callbackObj.teacher_id" class="callback-item callback-input">
<el-form size="small" inline>
<el-form-item required>
<el-select v-model="add.method" placeholder="回访方式" style="width: 140px;">
......@@ -186,7 +187,8 @@
props: {
callbackObj: { // user_id、teacher_id、timestamp
type: Object,
default: () => {}
default: () => {
}
},
hasUserInfo: { // 是否传过来用户信息,传来用户信息就不调接口请求用户新,否则请求(防止同时请求用户信息接口报错)
type: Boolean,
......@@ -482,6 +484,7 @@
<style lang="less">
.callback-container {
border: none;
.el-divider--horizontal {
margin: 20px 0;
}
......
......@@ -24,27 +24,28 @@
</template>
<script>
import {getTeacherListApi,addRelatedTeacherApi} from "../../service/api";
import {getTeacherListApi, addRelatedTeacherApi} from "../../service/api";
export default {
props:[
props: [
'dialogObj'
],
data(){
return{
form:{
data() {
return {
form: {
id: '',
teacher_id:'',
teacher_id: '',
},
teacherList:[],
teacherList: [],
}
},
methods:{
initPage(){
let json ={
page:1,
limit:200
methods: {
initPage() {
let json = {
page: 1,
limit: 500
}
getTeacherListApi(json).then(res=>{
getTeacherListApi(json).then(res => {
this.teacherList = res.list;
});
this.form = {
......@@ -52,7 +53,7 @@
teacher_id: this.dialogObj.teacher_id ? this.dialogObj.teacher_id : ''
};
},
onSave(){
onSave() {
let json = {
teacher_id: this.form.teacher_id ? this.form.teacher_id : 0
};
......@@ -66,9 +67,9 @@
})
}
},
watch:{
'dialogObj.show'(value){
if(value){
watch: {
'dialogObj.show'(value) {
if (value) {
this.initPage()
}
}
......
......@@ -25,27 +25,28 @@
</template>
<script>
import {getTeacherListApi,bindTeacherApi} from "../../service/api";
import {getTeacherListApi, bindTeacherApi} from "../../service/api";
export default {
props:[
props: [
'dialogObj'
],
data(){
return{
form:{
data() {
return {
form: {
id: '',
teacher_id:'',
teacher_id: '',
},
teacherList:[],
teacherList: [],
}
},
methods:{
initPage(){
let json ={
page:1,
limit:200
methods: {
initPage() {
let json = {
page: 1,
limit: 500
}
getTeacherListApi(json).then(res=>{
getTeacherListApi(json).then(res => {
this.teacherList = res.list;
});
this.form = {
......@@ -53,9 +54,9 @@
teacher_id: this.dialogObj.teacher_id ? this.dialogObj.teacher_id : ''
};
},
onSave(){
let teacher_id=this.form.teacher_id ? this.form.teacher_id : 0
bindTeacherApi(this.form.id,teacher_id).then(res => {
onSave() {
let teacher_id = this.form.teacher_id ? this.form.teacher_id : 0
bindTeacherApi(this.form.id, teacher_id).then(res => {
this.$message({
type: 'success',
message: '绑定成功!'
......@@ -64,8 +65,8 @@
})
}
},
watch:{
'dialogObj'(value){
watch: {
'dialogObj'(value) {
this.initPage()
}
}
......
This diff is collapsed.
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