master
xy 3 years ago
parent cdca712e79
commit c0a1c82d5d

@ -71,7 +71,7 @@
<template v-for="item1 in item.detail">
<Poptip transfer trigger="hover">
<template v-slot:default>
<div class="schedule-content-item__schedule-item" >
<div class="schedule-content-item__schedule-item" @click="showDetail(item1)">
<div class="schedule-content-item__schedule-item--title">
<span>{{timeFormat(item1.start_time)}}</span>
<span>~</span>
@ -100,6 +100,8 @@
</div>
<el-backtop target=".schedule-content__wrap"></el-backtop>
<serveDraw ref="draw" :type="2" @refresh="getSchedule"></serveDraw>
</div>
</template>
@ -110,9 +112,19 @@ import {getList as typeList} from '@/api/productType'
import {getparameter} from '@/api/system/dictionary'
import { getAuthAreas,getAuthTypes } from "@/utils/auth"
import serveDraw from "@/views/finance/component/serveDraw.vue"
export default {
components:{
serveDraw
},
provide(){
return {
selectedRow:() => this.selectedRow
}
},
data() {
return {
selectedRow:{},
scrollDisable:false,
types: [],
@ -145,6 +157,13 @@ export default {
document.querySelector('.schedule-content').style.height = `${contentHeight}px`
},
showDetail(item1){
if(item1.status !== 2) return
this.selectedRow = item1;
this.$refs['draw'].select.id = item1.id;
this.$refs['draw'].isShow = true
},
async getSchedule(){
let res = await scheduleHome(this.select)
this.lists = res.list

Loading…
Cancel
Save