Commit 652b5f69 by tangjiale

更新代码

parent b9a724fd
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com * @eMail: 932055106@qq.com
* @Date: 2022-06-02 15:02:39 * @Date: 2022-06-02 15:02:39
* @LastEditors: tangjiale * @LastEditors: tangjiale
* @LastEditTime: 2022-06-14 19:02:32 * @LastEditTime: 2022-06-23 15:57:31
--> -->
<template> <template>
<div> <div>
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<el-input v-model="param.otherPhone" placeholder="请输入手机号" style="width:222px"></el-input> <el-input v-model="param.otherPhone" placeholder="请输入手机号" style="width:222px"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="所在校区" prop="schIds"> <el-form-item label="所在校区" prop="schIds">
<t-select v-model="param.schIds" :ds="{service:'base', func: 'getUserAllSchList'}"></t-select> <t-select multiple v-model="param.schIds" :ds="{service:'base', func: 'getUserAllSchList'}"></t-select>
</el-form-item> </el-form-item>
<el-form-item label="就读学校" prop="readSchName"> <el-form-item label="就读学校" prop="readSchName">
<el-input v-model="param.readSchName" placeholder="请输入就读学校名称" style="width:222px"></el-input> <el-input v-model="param.readSchName" placeholder="请输入就读学校名称" style="width:222px"></el-input>
...@@ -61,7 +61,7 @@ export default { ...@@ -61,7 +61,7 @@ export default {
fatherPhone:'', fatherPhone:'',
motherPhone:'', motherPhone:'',
otherPhone:'', otherPhone:'',
schIds:'', schIds:[],
readSchName:'' readSchName:''
}, },
...@@ -83,7 +83,8 @@ export default { ...@@ -83,7 +83,8 @@ export default {
queryDetail(id){ queryDetail(id){
this.$service.student.queryStudentDetail(id).then(res =>{ this.$service.student.queryStudentDetail(id).then(res =>{
let {id,name,birthday,gender,fatherPhone,motherPhone,otherPhone,schIds,readSchName} = res let {id,name,birthday,gender,fatherPhone,motherPhone,otherPhone,schIds,readSchName} = res
this.param = {id,name,birthday,gender,fatherPhone,motherPhone,otherPhone,schIds,readSchName} let schId = (schIds.split(',')).map(v => Number(v))
this.param = {id,name,birthday,gender,fatherPhone,motherPhone,otherPhone,schIds:schId,readSchName}
}) })
}, },
onSubmit(){ onSubmit(){
...@@ -94,6 +95,9 @@ export default { ...@@ -94,6 +95,9 @@ export default {
this.$message.error('至少输入一个手机号') this.$message.error('至少输入一个手机号')
return return
} }
if(that.param.schIds && that.param.schIds.length){
that.param.schIds = that.param.schIds.join(',')
}
let funName = this.param.id ? 'emitStudent' : 'addStudent' let funName = this.param.id ? 'emitStudent' : 'addStudent'
that.$service.student[funName](that.param).then(res =>{ that.$service.student[funName](that.param).then(res =>{
that.$notifySuccess() that.$notifySuccess()
...@@ -123,4 +127,7 @@ export default { ...@@ -123,4 +127,7 @@ export default {
/deep/ .el-form-item__error{ /deep/ .el-form-item__error{
left: 22px !important; left: 22px !important;
} }
/deep/ .el-form-item .el-form-item__content{
height: auto !important;
}
</style> </style>
\ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com * @eMail: 932055106@qq.com
* @Date: 2022-06-17 08:47:27 * @Date: 2022-06-17 08:47:27
* @LastEditors: tangjiale * @LastEditors: tangjiale
* @LastEditTime: 2022-06-20 09:28:33 * @LastEditTime: 2022-06-23 17:07:45
--> -->
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<el-col :span="8">班主任:{{(detail.pxEmployeeList && detail.pxEmployeeList.length && detail.pxEmployeeList.filter(v => v.empPosition == 'manger')).map(e => e.empName).join(',')}}</el-col> <el-col :span="8">班主任:{{(detail.pxEmployeeList && detail.pxEmployeeList.length && detail.pxEmployeeList.filter(v => v.empPosition == 'manger')).map(e => e.empName).join(',')}}</el-col>
</el-row> </el-row>
<el-row :gutter="10"> <el-row :gutter="10">
<el-col :span="8">学生姓名:{{detail.bmStuName}} <div class="ware-tab">预警</div></el-col> <el-col :span="8">学生姓名:{{detail.bmStuName}} <div class="ware-tab" v-if="detail.warning == 1">预警</div></el-col>
<el-col :span="8">年龄:{{detail.age}}</el-col> <el-col :span="8">年龄:{{detail.age}}</el-col>
<el-col :span="8">手机号码:{{detail.bmPhone}}</el-col> <el-col :span="8">手机号码:{{detail.bmPhone}}</el-col>
</el-row> </el-row>
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<el-col :span="8" v-if="type == 2">报名状态:{{orderState[detail.bmStatus]}}</el-col> <el-col :span="8" v-if="type == 2">报名状态:{{orderState[detail.bmStatus]}}</el-col>
<el-col :span="8"> <el-col :span="8">
{{type==1?`报名时间:${detail.orderTime || ''}` : type==2?`报名时间:${detail.bmTime || ''}`:''}} {{type==1?`订单时间:${detail.orderTime || ''}` : type==2?`报名时间:${detail.bmTime || ''}`:''}}
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
......
...@@ -109,8 +109,8 @@ export default { ...@@ -109,8 +109,8 @@ export default {
let that = this let that = this
this.$showConfirm(`你确认 ${type==1?'同意':'不同意'}退款吗?`).then(() => { this.$showConfirm(`你确认 ${type==1?'同意':'不同意'}退款吗?`).then(() => {
that.$service.course.updateOrderStatus({orderId:data.orderId,orderStatus:type}).then(res =>{ that.$service.course.updateOrderStatus({orderId:data.orderId,orderStatus:type}).then(res =>{
this.$notifySuccess();
this.upDateList() this.upDateList()
this.$notifySuccess();
}) })
}); });
}, },
......
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