dev-zcx
zcxee 1 year ago
parent ba59394115
commit 63eb91e64c
  1. 10
      src/api/sch/classType.js
  2. 12
      src/views/zs/sign/components/CheckDialog/components/SignForm.vue
  3. 9
      src/views/zs/sign/components/CheckDialog/index.vue
  4. 15
      src/views/zs/sign/components/SignFormDialog.vue

@ -9,6 +9,16 @@ export function getClassTypeTableList(query) {
});
}
// 查询班型列表
export function getAllList(query) {
return request({
url: '/sch/classType/all',
method: 'get',
params: query
});
}
// 新增班型
export function insertClassType(params) {
return request({

@ -47,14 +47,14 @@
<el-col :span="12">
<el-form-item label="报名驾校" prop="signSchool">
<el-select v-model="modalForm.signSchool" filterable placeholder="请选择" clearable size="small" disabled>
<el-option v-for="dict in schoolOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
<el-option v-for="dict in schoolOptions" :key="dict.schoolId" :label="dict.schoolName" :value="dict.schoolId" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="报名场地" prop="signPlace">
<el-select v-model="modalForm.signPlace" filterable placeholder="请选择" clearable size="small" disabled>
<el-option v-for="dict in placeOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
<el-option v-for="dict in placeOptions" :key="dict.placeId" :label="dict.name" :value="dict.placeId" />
</el-select>
</el-form-item>
</el-col>
@ -64,7 +64,7 @@
<el-col :span="12">
<el-form-item label="报名班型" prop="signClass">
<el-select v-model="modalForm.signClass" filterable placeholder="请选择" clearable size="small" disabled>
<el-option v-for="dict in classTypeOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
<el-option v-for="dict in classTypeOptions" :key="dict.typeId" :label="dict.typeName" :value="dict.typeId" />
</el-select>
</el-form-item>
</el-col>
@ -181,7 +181,7 @@
import empApi from '@/api/system/employee'
import schoolAPi from '@/api/sch/school'
import { getAllPlaces } from '@/api/sch/place'
import { getClassTypeTableList } from '@/api/sch/classType'
import { getAllList } from '@/api/sch/classType'
import { getCheckRecord } from '@/api/zs/sign'
export default {
@ -236,7 +236,7 @@ export default {
},
//
getSchools() {
schoolAPi.pageList().then((resp) => {
schoolAPi.allList().then((resp) => {
this.schoolOptions = resp.data
})
},
@ -250,7 +250,7 @@ export default {
},
//
getClassTypes() {
getClassTypeTableList({
getAllList({
schoolId: this.modalForm.signSchool,
placeId: this.modalForm.signPlace,
status: '0',

@ -47,6 +47,15 @@ export default {
console.log('打开弹框')
this.resetForm('modalForm')
this.modalForm = data
if (this.modalForm.signSchool) {
this.modalForm.signSchool = Number(this.modalForm.signSchool)
}
if (this.modalForm.signClass) {
this.modalForm.signClass = Number(this.modalForm.signClass)
}
if (this.modalForm.signPlace) {
this.modalForm.signPlace = Number(this.modalForm.signPlace)
}
this.visible = true
this.checkTab = 'one'
this.resetForm('modalForm2')

@ -202,7 +202,7 @@ import { getToken } from '@/utils/auth';
import empApi from '@/api/system/employee';
import schoolAPi from '@/api/sch/school';
import { getAllPlaces } from '@/api/sch/place';
import { getClassTypeTableList } from '@/api/sch/classType';
import { getAllList } from '@/api/sch/classType';
import { uploadEvidence, deleteFile } from '@/api/tool/common';
import { getClueList, getConsultRecord } from '@/api/zs/clue';
@ -337,9 +337,9 @@ export default {
});
},
getClassTypes(schoolId, placeId) {
getClassTypeTableList({ schoolId: schoolId, placeId: placeId, status: '0' }).then(
getAllList({ schoolId: schoolId, placeId: placeId, status: '0' }).then(
(resp) => {
this.classTypeOptions = resp.rows;
this.classTypeOptions = resp.data;
}
);
},
@ -393,6 +393,15 @@ export default {
handleUpdate(item) {
this.setDate(false);
this.modalForm = Object.assign({}, item);
if (this.modalForm.signSchool) {
this.modalForm.signSchool = Number(this.modalForm.signSchool)
}
if (this.modalForm.signClass) {
this.modalForm.signClass = Number(this.modalForm.signClass)
}
if (this.modalForm.signPlace) {
this.modalForm.signPlace = Number(this.modalForm.signPlace)
}
this.getPlaces(this.modalForm.signSchool);
this.getClassTypes(this.modalForm.signSchool, this.modalForm.signPlace);
if (item.clueId) {

Loading…
Cancel
Save