This commit is contained in:
tdg930622 2024-12-24 18:09:48 +08:00
parent cb52e7d51b
commit da469d1af5
3 changed files with 282 additions and 182 deletions

View File

@ -0,0 +1,85 @@
<template>
<el-dialog title="视频预约" :visible="true" width="600px" append-to-body :close-on-click-modal="false"
@close="handleClose">
<div class="dialog-content dialog-office-batch">
<div class="pt-8">
<el-form ref="ruleFormVideoReservation"
:model="videoReservationObj"
:rules="rulesRule"
label-width="130px">
<el-row :gutter="50">
<el-col :span="23">
<el-form-item label="开始时间" prop="bookingTime">
<el-date-picker
v-model="videoReservationObj.bookingTime"
type="datetime"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="请选择"
class="width100">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="handleClose()">取消</el-button>
<el-button type="primary" @click="handleSubmit()">立即预约</el-button>
</span>
</el-dialog>
</template>
<script>
import videoTelephone from "@/services/videoTelephone";
export default {
name: "videoReservationDialog",
props: {
eventDialog: {
type: Object,
default: () => {
return {}
},
},
},
data() {
return{
videoReservationObj: {
bookingTime: '',
id: '', // ID
},
rulesRule: {
bookingTime: [
{required: true, message: '请选择', trigger: 'change',},
],
},
}
},
mounted() {
// console.log(1231)
this.videoReservationObj = this.eventDialog;
},
methods: {
handleClose() {
this.$emit('update:eventDialog', null)
},
handleSubmit() {
if(!this.$clickThrottle()) { return }//
this.$refs.ruleFormVideoReservation.validate((valid) => {
if (valid) {
videoTelephone.videoTelephoneModify(this.videoReservationObj).then(res => {
this.handleClose()
this.$message.success("操作成功");
})
}
})
}
}
}
</script>
<style scoped>
</style>

View File

@ -58,27 +58,27 @@
</div>
<div class="case-table">
<el-table :data="tableData" height="330" >
<el-table :data="tableData" height="330">
<el-table-column type="index" label="序号" width="55"></el-table-column>
<el-table-column prop="pkgName" label="案件包名称" show-overflow-tooltip ></el-table-column>
<el-table-column prop="caseNo" label="案件编号" width="200" show-overflow-tooltip ></el-table-column>
<el-table-column prop="bookingTime" label="预约开始时间" show-overflow-tooltip ></el-table-column>
<el-table-column prop="bookingEndTime" label="预约结束时间" show-overflow-tooltip ></el-table-column>
<el-table-column prop="status" label="状态" show-overflow-tooltip ></el-table-column>
<el-table-column prop="invitee" label="受邀人" show-overflow-tooltip ></el-table-column>
<el-table-column prop="createByName" label="操作人" show-overflow-tooltip ></el-table-column>
<el-table-column prop="createAt" label="操作时间" show-overflow-tooltip >
<el-table-column prop="pkgName" label="案件包名称" show-overflow-tooltip></el-table-column>
<el-table-column prop="caseNo" label="案件编号" width="200" show-overflow-tooltip></el-table-column>
<el-table-column prop="bookingTime" label="预约开始时间" show-overflow-tooltip></el-table-column>
<el-table-column prop="bookingEndTime" label="预约结束时间" show-overflow-tooltip></el-table-column>
<el-table-column prop="status" label="状态" show-overflow-tooltip></el-table-column>
<el-table-column prop="invitee" label="受邀人" show-overflow-tooltip></el-table-column>
<el-table-column prop="createByName" label="操作人" show-overflow-tooltip></el-table-column>
<el-table-column prop="createAt" label="操作时间" show-overflow-tooltip>
<template slot-scope="scope">
<span >{{ scope.row.createAt | formaDate("yyyy-MM-dd hh:mm:ss") }}</span>
<span>{{ scope.row.createAt | formaDate("yyyy-MM-dd hh:mm:ss") }}</span>
</template>
</el-table-column>
<el-table-column label="操作" width="240">
<template slot-scope="scope">
<div class="flex-row align-items-center">
<el-button size="mini" @click="handleDelete(scope)">进入视频间</el-button>
<el-button size="mini" @click="handleDelete(scope)">修改</el-button>
<el-button size="mini" @click="handleBackCase(scope)">取消</el-button>
<el-button size="mini" @click="handleDelete(scope.row)">进入视频间</el-button>
<el-button size="mini" @click="VideoDialog={id:scope.row.id, bookingTime:scope.row.bookingTime}">修改</el-button>
<el-button size="mini" @click="handleBackCase(scope.row)">取消</el-button>
</div>
</template>
</el-table-column>
@ -98,15 +98,19 @@
</div>
</div>
<!-- 短信发送追踪 -->
<smsDialogDetail v-else :DialogDetail="DialogDetail" />
<smsDialogDetail v-else :DialogDetail="DialogDetail"/>
<!-- 视频预约修改 -->
<videoReservationDialog v-if="VideoDialog" :eventDialog.sync="VideoDialog" />
</div>
</template>
<script>
import api from "@/services/eventTracingApi";
export default {
export default {
components: {
smsDialogDetail: () => import('../dtraceDetail/smsDialogDetail.vue'),//
videoReservationDialog: () => import('./videoReservationDialog'),//
},
props: {
eventTraDialog: {
@ -118,28 +122,29 @@ import api from "@/services/eventTracingApi";
},
data() {
return {
DialogDetail:null,
DialogDetail: null,
queryDate: '',
queryParam:{
caseNo:'',
pkgName:'',
size:10,
current:1
queryParam: {
caseNo: '',
pkgName: '',
size: 10,
current: 1
},
tableData:[],
total:0,
tableData: [],
total: 0,
VideoDialog: null
};
},
mounted () {
mounted() {
this.queryParam.caseNo = this.eventTraDialog.caseNo
this.getList(1)
},
methods: {
handleChangeDate() {
this.activeUsage = ''
if(this.queryDate === null) {
if (this.queryDate === null) {
this.setDateFast()
}else {
} else {
this.queryParam.beginTime = this.$util.getDayStart(this.queryDate[0])
this.queryParam.endTime = this.$util.getDayEnd(this.queryDate[1])
}
@ -158,7 +163,7 @@ import api from "@/services/eventTracingApi";
this.getList(1)
},
//
getList(val){
getList(val) {
this.queryParam.planBegin = this.queryParam.beginTime
this.queryParam.planEnd = this.queryParam.endTime
this.queryParam.current = val
@ -169,25 +174,35 @@ import api from "@/services/eventTracingApi";
}
})
},
handleDelete() {},
handleBackCase() {},
}
};
};
</script>
<style scoped lang="scss">
.dialog-content{
.dialog-content {
padding: 16px 24px;
max-height:500px
max-height: 500px
}
.department-wrap{
.department-wrap {
padding: 16px 24px;
max-height: 250px;
.department-wrap-list{
margin-bottom:32px;
.department-wrap-list {
margin-bottom: 32px;
}
.department-wrap-list:last-child{
margin-bottom:0;
.department-wrap-list:last-child {
margin-bottom: 0;
}
}
.min-height350{min-height: 350px;}
.department-dept ::v-deep .el-checkbox__label {color: $color-000000}
.min-height350 {
min-height: 350px;
}
.department-dept ::v-deep .el-checkbox__label {
color: $color-000000
}
</style>

View File

@ -14,7 +14,7 @@
<!-- format="yyyy-MM-dd HH:mm"-->
<el-date-picker
v-model="repaymentObj.bookingTime"
value-format="yyyy-MM-DD HH:mm:ss"
value-format="yyyy-MM-dd HH:mm:ss"
type="datetime"
placeholder="请选择"
class="width100">