Browse Source

对接教学数据接口

master
unknown 6 months ago
parent
commit
d5841f7b3b
  1. 3
      config/api.js
  2. 2
      manifest.json
  3. 10
      pages/indexEntry/settlement/settlement.vue
  4. 7
      pages/tabbar/operateTrain/index.vue
  5. 9
      pages/tabbar/student/index.vue
  6. 33
      pages/userCenter/teachingData/teachingData.vue
  7. BIN
      static/images/bigImg/teachdata.png

3
config/api.js

@ -15,6 +15,9 @@
export const updateRefundStatusOpend = (params) => http.get('app/refund/updateRefundStatusPass', {params}) export const updateRefundStatusOpend = (params) => http.get('app/refund/updateRefundStatusPass', {params})
// 学员学费退款审核不通过 // 学员学费退款审核不通过
export const updateRefundStatusOut = (params) => http.get('app/refund/updateRefundStatusOut', {params}) export const updateRefundStatusOut = (params) => http.get('app/refund/updateRefundStatusOut', {params})
// 学车数据
export const getDrivingLearningData = () => http.get('business/coach/getDrivingLearningData', )

2
manifest.json

@ -86,7 +86,7 @@
"disableHostCheck" : true, "disableHostCheck" : true,
"proxy" : { "proxy" : {
"/api" : { "/api" : {
"target" : "http://192.168.1.43:8318/",
"target" : "http://192.168.1.40:8318/",
// "target" : "http://123.6.232.1:8099", // "target" : "http://123.6.232.1:8099",
"changeOrigin" : true, "changeOrigin" : true,
"secure" : true, "secure" : true,

10
pages/indexEntry/settlement/settlement.vue

@ -35,7 +35,7 @@
<nodata v-if="!list.length&&status=='nomore'"></nodata> <nodata v-if="!list.length&&status=='nomore'"></nodata>
</view> </view>
<u-datetime-picker :show="showDatePicker" v-model="value1" mode="year-month" :visibleItemCount="4"
<u-datetime-picker :show="showDatePicker" v-model="searchMonth" mode="year-month" :visibleItemCount="4"
:closeOnClickOverlay="false" @confirm="confirmDatePicker" @cancel="cancelDatePicker"></u-datetime-picker> :closeOnClickOverlay="false" @confirm="confirmDatePicker" @cancel="cancelDatePicker"></u-datetime-picker>
</view> </view>
</template> </template>
@ -54,7 +54,7 @@
date3: '', date3: '',
date2: '', date2: '',
date1: '', date1: '',
value1: '',
searchMonth: '',
showDatePicker: false, showDatePicker: false,
show: false, show: false,
tabData: [{ tabData: [{
@ -94,7 +94,8 @@
} }
}, },
onLoad() { onLoad() {
this.params.searchMonth = uni.$u.timeFormat(Date.now(), 'yyyy/mm');
this.searchMonth = this.params.searchMonth = uni.$u.timeFormat(Date.now(), 'yyyy/mm');
console.log(this.params.searchMonth)
this.initList() this.initList()
}, },
onPullDownRefresh() { onPullDownRefresh() {
@ -126,7 +127,8 @@
confirmDatePicker(val) { confirmDatePicker(val) {
this.showDatePicker = false this.showDatePicker = false
let date = uni.$u.date(val.value, 'yyyy/mm') let date = uni.$u.date(val.value, 'yyyy/mm')
this.params.searchMonth = date
this.searchMonth = this.params.searchMonth = date
console.log(this.params.searchMonth)
this.initList() this.initList()
}, },
// //

7
pages/tabbar/operateTrain/index.vue

@ -33,10 +33,11 @@
<u-icon name="arrow-down"></u-icon> <u-icon name="arrow-down"></u-icon>
</view> </view>
</view> </view>
<view class="selectItem" @click="showDatePicker=true">
<view class="text">{{screen.timer}}</view>
<view class="selectItem">
<view class="text" @click="showDatePicker=true">{{screen.timer}}</view>
<view class="downIcon"> <view class="downIcon">
<u-icon name="arrow-down"></u-icon>
<u-icon name="arrow-down" v-if="screen.timer=='预约时间'" @click="showDatePicker=true"></u-icon>
<u-icon name="close" :size="'28rpx'" v-else @click="cancelDate"></u-icon>
</view> </view>
</view> </view>
</view> </view>

9
pages/tabbar/student/index.vue

@ -57,10 +57,11 @@
<view class="screen_row"> <view class="screen_row">
<view class="selectItem" @click="showDatePicker=true">
<view class="text ">{{screen.timer}}</view>
<view class="selectItem" >
<view class="text " @click="showDatePicker=true">{{screen.timer}}</view>
<view class="downIcon"> <view class="downIcon">
<u-icon name="arrow-down" :size="'28rpx'"></u-icon>
<u-icon name="arrow-down" :size="'28rpx'" v-if="screen.timer=='报名时间'" @click.stop="showDatePicker=true"></u-icon>
<u-icon name="close" :size="'28rpx'" v-else @click="closeCalendar"></u-icon>
</view> </view>
</view> </view>
<view class="selectItem" @click="showCar=true"> <view class="selectItem" @click="showCar=true">
@ -176,7 +177,7 @@
cancelDate() { cancelDate() {
this.showDatePicker=false this.showDatePicker=false
this.params.applyDateTime = '' this.params.applyDateTime = ''
this.screen.timer = '预约时间'
this.screen.timer = '报名时间'
this.listInit() this.listInit()
}, },
confirmDatePicker(val) { confirmDatePicker(val) {

33
pages/userCenter/teachingData/teachingData.vue

@ -10,15 +10,15 @@
<view class="top_row"> <view class="top_row">
<view class="topItem"> <view class="topItem">
<view class="lab">历史服务学员</view> <view class="lab">历史服务学员</view>
<view class="val">100</view>
<view class="val">{{info.historyStudentTotal}}</view>
</view> </view>
<view class="topItem"> <view class="topItem">
<view class="lab">结业人数</view> <view class="lab">结业人数</view>
<view class="val">130</view>
<view class="val">{{info.finishStudentTotal}}</view>
</view> </view>
<view class="topItem"> <view class="topItem">
<view class="lab">服务中人数</view> <view class="lab">服务中人数</view>
<view class="val">13</view>
<view class="val">{{info.inServiceStudentTotal}}</view>
</view> </view>
</view> </view>
</view> </view>
@ -26,29 +26,29 @@
<view class="title"> <view class="title">
<view class="txt">结业率高达</view> <view class="txt">结业率高达</view>
<view class="num">90%</view>
<view class="num">{{info.finishRate}}</view>
</view> </view>
<view class="ul"> <view class="ul">
<view class="li">
<view class="li" v-if="info.finishSubjectOneTime">
<view class="lab">科目一平均通过时间</view> <view class="lab">科目一平均通过时间</view>
<view class="val">12</view>
<view class="val">{{info.finishSubjectOneTime}}</view>
</view> </view>
<view class="li"> <view class="li">
<view class="lab">科目二平均通过时间</view> <view class="lab">科目二平均通过时间</view>
<view class="val">12</view>
<view class="val">{{info.finishSubjectTowTime ||'暂无'}}</view>
</view> </view>
<view class="li"> <view class="li">
<view class="lab">科目三平均通过时间</view> <view class="lab">科目三平均通过时间</view>
<view class="val">12</view>
<view class="val">{{info.finishSubjectThreeTime || '暂无'}}</view>
</view> </view>
<view class="li">
<view class="li" v-if="info.finishSubjectFourTime">
<view class="lab">科目四平均通过时间</view> <view class="lab">科目四平均通过时间</view>
<view class="val">12</view>
<view class="val">{{info.finishSubjectFourTime}}</view>
</view> </view>
</view> </view>
<view class="title"> <view class="title">
<view class="txt">平均拿证时间</view> <view class="txt">平均拿证时间</view>
<view class="num">47</view>
<view class="num">{{info.averageFinishTime || '暂无'}}</view>
</view> </view>
<!-- <view class="btnBorder" @click="shareClick">立即分享</view> <!-- <view class="btnBorder" @click="shareClick">立即分享</view>
<canvas canvas-id="canvas" style="width: 300px; height: 300px;opacity: 0;" class="canvas">3333</canvas> <canvas canvas-id="canvas" style="width: 300px; height: 300px;opacity: 0;" class="canvas">3333</canvas>
@ -59,13 +59,16 @@
</template> </template>
<script> <script>
import { getDrivingLearningData } from '@/config/api.js'
export default { export default {
data() { data() {
return { return {
shareImageUrl: ''
shareImageUrl: '',
info: {}
} }
}, },
mounted() { mounted() {
this.getDrivingLearningDataFn()
this.$nextTick(()=>{ this.$nextTick(()=>{
setTimeout(()=>{ setTimeout(()=>{
this.getCanvas() this.getCanvas()
@ -73,6 +76,10 @@
}) })
}, },
methods: { methods: {
async getDrivingLearningDataFn() {
const {data: res} = await getDrivingLearningData()
this.info = res || {}
},
shareClick() { shareClick() {
}, },
@ -126,7 +133,7 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.teachingDataBg { .teachingDataBg {
width: 100%; width: 100%;
background: url('http://192.168.1.20:81/zhili/image/20230818/409dca21dfec44eb8477e056ee23e437.png') #f6f6f6 no-repeat;
background: url('../../../static/images/bigImg/teachdata.png') #f6f6f6 no-repeat;
background-size: 100% 544rpx; background-size: 100% 544rpx;
min-height: 100vh; min-height: 100vh;
font-size: 28rpx; font-size: 28rpx;

BIN
static/images/bigImg/teachdata.png

After

Width: 750  |  Height: 544  |  Size: 45 KiB

Loading…
Cancel
Save