Commit 9055ba30 authored by zhengke's avatar zhengke

修改

parent 298e0f6a
......@@ -333,7 +333,7 @@
Teacher_Id: 0, //讲师Id
Assist_Id: 0, //助教Id
Group_Id: 0, //集团编号
School_Id: 0, //学校编号
School_Id: -1, //学校编号
CreateBy: 0, //创建人
CreateTime: '', //创建时间
UpdateBy: '', //修改人
......@@ -594,7 +594,7 @@
this.SchoolList = res.Data;
var obj = {
SName: '请选择',
SId: 0
SId: -1
}
this.SchoolList.unshift(obj);
}
......
......@@ -15,7 +15,7 @@
<div class="row wrap">
<div class="col-6">
<q-select filled stack-label option-value="SId" option-label="SName" v-model="objOption.School_Id"
ref="School_Id" :options="SchoolList" label="所属校区" :rules="[val => !!val || '请选择所属校区']" :dense="false" class="col-6 q-pr-lg q-pb-lg" emit-value
ref="School_Id" :options="SchoolList" label="所属校区" :dense="false" class="col-6 q-pr-lg q-pb-lg" emit-value
map-options />
<div class="col-6">
<a v-if="objOption.SupplierContract&&isHaveViewContractAction"
......@@ -83,7 +83,7 @@
SupplierId: 0, //供应商编号
SupplierContract: '', //供应商合同
Remark: '', //备注
School_Id: 0, //所属校区
School_Id: -1, //所属校区
ImgCover:'', //封面图
},
optionTitle: "",
......@@ -134,7 +134,7 @@
this.SchoolList = res.Data;
var obj = {
SName: '请选择',
SId: 0
SId: -1
}
this.SchoolList.unshift(obj);
}
......@@ -167,7 +167,7 @@
this.objOption.SupplierId = 0;
this.objOption.SupplierContract = '';
this.objOption.Remark = '';
this.objOption.School_Id = 0;
this.objOption.School_Id = -1;
}
},
//关闭弹窗
......@@ -187,8 +187,7 @@
// }
this.$refs.Name.validate();
this.$refs.SupplierId.validate();
this.$refs.School_Id.validate();
if (!this.$refs.Name.hasError&&!this.$refs.SupplierId.hasError&&!this.$refs.School_Id.hasError) {
if (!this.$refs.Name.hasError&&!this.$refs.SupplierId.hasError) {
this.saveLoading = true;
saveStudyAbroad(this.objOption).then(res => {
this.saveLoading = false
......
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