Commit d90b176f authored by 黄奎's avatar 黄奎

页面修改

parent 48896a1f
...@@ -64,6 +64,20 @@ ...@@ -64,6 +64,20 @@
</span> </span>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-OrderCount="props">
<q-td auto-width :props="props">
<q-badge color="green">
{{props.row.OrderCount}}
</q-badge>
</q-td>
</template>
<template v-slot:body-cell-FailCount="props">
<q-td auto-width :props="props">
<q-badge color="red">
{{props.row.FailCount}}
</q-badge>
</q-td>
</template>
<template v-slot:body-cell-TeacherId="props"> <template v-slot:body-cell-TeacherId="props">
<q-td :props="props"> <q-td :props="props">
<q-btn-dropdown v-if="authObj&&authObj.isShowEdit" flat size="xs" color="dark" label="更多"> <q-btn-dropdown v-if="authObj&&authObj.isShowEdit" flat size="xs" color="dark" label="更多">
...@@ -163,7 +177,7 @@ ...@@ -163,7 +177,7 @@
}, },
{ {
name: 'OrderCount', name: 'OrderCount',
label: '转订单人数', label: '试听成功',
align: 'left', align: 'left',
field: 'OrderCount', field: 'OrderCount',
}, },
...@@ -173,6 +187,12 @@ ...@@ -173,6 +187,12 @@
align: 'left', align: 'left',
field: 'ConversionRates', field: 'ConversionRates',
}, },
{
name: 'FailCount',
label: '试听失败',
align: 'left',
field: 'FailCount',
},
{ {
name: 'ClassContent', name: 'ClassContent',
label: '试讲内容', label: '试讲内容',
...@@ -199,8 +219,9 @@ ...@@ -199,8 +219,9 @@
], ],
//表格可见列 //表格可见列
visibleColumns: [ visibleColumns: [
'TeacherName', 'ClassDateStr', 'ClassTime', 'RoomName', 'LessonName', 'JoinNum', 'OrderCount', 'ConversionRates', 'ClassContent', "ReserveType", 'TeacherName', 'ClassDateStr', 'ClassTime', 'RoomName', 'LessonName', 'JoinNum', 'OrderCount', 'FailCount',
'CreateByName','TeacherId' 'ConversionRates', 'ClassContent', "ReserveType",
'CreateByName', 'TeacherId'
], //可见列 ], //可见列
reserveObj: {}, reserveObj: {},
isShowReserve: false, isShowReserve: false,
......
...@@ -87,6 +87,17 @@ ...@@ -87,6 +87,17 @@
var day = nowDay.getDate(); //日 var day = nowDay.getDate(); //日
this.msg.StartClassDate = year + '-' + month + '-' + day this.msg.StartClassDate = year + '-' + month + '-' + day
if (this.$route.query) {
if (this.$route.query.StartClassDate) {
this.msg.StartClassDate = this.$route.query.StartClassDate;
}
if (this.$route.query.EndClassDate) {
this.msg.EndClassDate = this.$route.query.EndClassDate;
}
if (this.$route.query.TeacherId) {
this.msg.TeacherId = Number(this.$route.query.TeacherId);
}
}
this.GetTeacherList(); this.GetTeacherList();
this.getClassRoomList(); this.getClassRoomList();
this.getList() this.getList()
......
...@@ -12,6 +12,20 @@ ...@@ -12,6 +12,20 @@
<div class="page-option"> <div class="page-option">
</div> </div>
</template> </template>
<template v-slot:body-cell-SpeakState="props">
<q-td :props="props">
<template v-if="props.row.OrderCount>0">
<q-badge color="green">
试讲成功
</q-badge>
</template>
<template v-else>
<q-badge color="red">
试讲失败
</q-badge>
</template>
</q-td>
</template>
<template v-slot:bottom> <template v-slot:bottom>
<q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount" <q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount"
:input="true" @input="changePage" /> :input="true" @input="changePage" />
...@@ -94,6 +108,18 @@ ...@@ -94,6 +108,18 @@
field: 'TeacherName', field: 'TeacherName',
align: 'left' align: 'left'
}, },
{
name: 'OrderCount',
label: '订单数量',
field: 'OrderCount',
align: 'left'
},
{
name: 'SpeakState',
label: '试讲',
field: 'SpeakState',
align: 'left'
},
{ {
name: 'RoomName', name: 'RoomName',
label: '教室', label: '教室',
......
...@@ -207,6 +207,27 @@ ...@@ -207,6 +207,27 @@
{{props.row.AssessmentScore}} {{props.row.AssessmentScore}}
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-SpeakClassScore="props">
<q-td :props="props">
<span style="color:blue;cursor:pointer;" title="点击查看试听信息" @click="gotoShiTing(props.row)">
{{props.row.SpeakClassScore}}
</span>
</q-td>
</template>
<template v-slot:body-cell-SpeakVipScore="props">
<q-td :props="props">
<span style="color:blue;cursor:pointer;" title="点击查看试听信息" @click="gotoShiTing(props.row)">
{{props.row.SpeakVipScore}}
</span>
</q-td>
</template>
<template v-slot:body-cell-SpeakFailScore="props">
<q-td :props="props">
<span style="color:blue;cursor:pointer;" title="点击查看试听信息" @click="gotoShiTing(props.row)">
{{props.row.SpeakFailScore}}
</span>
</q-td>
</template>
<template v-slot:bottom-row> <template v-slot:bottom-row>
<q-tr v-if="lastRow"> <q-tr v-if="lastRow">
<q-td> <q-td>
...@@ -540,6 +561,16 @@ ...@@ -540,6 +561,16 @@
this.getList(); this.getList();
}, },
methods: { methods: {
//跳转到试听
gotoShiTing(item) {
var lastDay = new Date(this.msg.YearStr, this.msg.MonthStr, 0).getDate();
var qObj = {
TeacherId: item.TeacherId,
StartClassDate: this.msg.YearStr + "-" + this.msg.MonthStr + "-01",
EndClassDate: this.msg.YearStr + "-" + this.msg.MonthStr + "-" + lastDay,
};
this.OpenNewUrl('/sale/reserveClass', qObj)
},
GoToDetails(item, type) { GoToDetails(item, type) {
//跳转到跟进详情 //跳转到跟进详情
if (type == 1) { if (type == 1) {
......
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