|
@@ -5,8 +5,19 @@ const props = defineProps({
|
|
|
id: String,
|
|
|
});
|
|
|
|
|
|
-let form = $ref({});
|
|
|
-let time = $ref();
|
|
|
+let form = $ref({
|
|
|
+ zjhx_sm_id:'',
|
|
|
+ jgtId:'',
|
|
|
+ bindClassNum:'',
|
|
|
+ partClassNum:'',
|
|
|
+ centerNum:'',
|
|
|
+ partNum:'',
|
|
|
+ studentNum:'',
|
|
|
+ teacherNum:'',
|
|
|
+ subNum:'',
|
|
|
+ time:'',
|
|
|
+});
|
|
|
+let time = $ref("");
|
|
|
let timeList = $ref([
|
|
|
"2023-09~2024-08",
|
|
|
"2024-09~2025-08",
|
|
@@ -66,6 +77,7 @@ function handleChangeSm(e) {
|
|
|
}).then((res) => {
|
|
|
if (res.code == "1") {
|
|
|
subSchoolList = res.data.page_data;
|
|
|
+ form.jgtId = subSchoolList[0].jgtId
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@@ -84,12 +96,12 @@ if (props.id) {
|
|
|
// Object.keys(form).forEach((key) => {
|
|
|
// form[key] = res.data.one_info[key];
|
|
|
// });
|
|
|
- for (const key in res.data.one_info) {
|
|
|
+ for (const key in form) {
|
|
|
form[key] = res.data.one_info[key];
|
|
|
}
|
|
|
handleChangeSm(res.data.one_info.zjhx_sm_id);
|
|
|
form.jgtId = res.data.one_info.jgtId;
|
|
|
- time = `${res.data.one_info.startTime}~${res.data.one_info.endTime}`;
|
|
|
+ form.time = `${res.data.one_info.startTime}~${res.data.one_info.endTime}`;
|
|
|
// form.ym_student_num = res.data.one_info.ym_student_num * 1;
|
|
|
// form.ym_timetable_json = res.data.one_info.ym_timetable_json?.split(',')
|
|
|
// form.ym_date = res.data.one_info.ym_date;
|
|
@@ -149,9 +161,17 @@ function handleSubmit() {
|
|
|
data: {
|
|
|
szyx_id: props.id,
|
|
|
sjsb_zjh_yshlw_xxtj: {
|
|
|
- ...form,
|
|
|
- startTime: time.split("~")[0],
|
|
|
- endTime: time.split("~")[1],
|
|
|
+ zjhx_sm_id:form.zjhx_sm_id,
|
|
|
+ jgtId:form.jgtId,
|
|
|
+ bindClassNum:form.bindClassNum,
|
|
|
+ partClassNum:form.partClassNum,
|
|
|
+ centerNum:form.centerNum,
|
|
|
+ partNum:form.partNum,
|
|
|
+ studentNum:form.studentNum,
|
|
|
+ teacherNum:form.teacherNum,
|
|
|
+ subNum:form.subNum,
|
|
|
+ startTime: form.time.split("~")[0],
|
|
|
+ endTime: form.time.split("~")[1],
|
|
|
zjhx_sm_name,
|
|
|
jgtId_name,
|
|
|
},
|
|
@@ -181,7 +201,7 @@ function handleBack() {
|
|
|
>
|
|
|
<div class="text-lg text-hex-050026 w-full font-semibold">数据上报</div>
|
|
|
|
|
|
- <div class="w-480px text-hex-949494" v-loading="loading">
|
|
|
+ <div class="w-580px text-hex-949494" v-loading="loading">
|
|
|
<el-form
|
|
|
:model="form"
|
|
|
label-position="top"
|
|
@@ -221,7 +241,7 @@ function handleBack() {
|
|
|
</div>
|
|
|
<div>
|
|
|
<el-form-item label="教共体学校名称" prop="jgtId">
|
|
|
- <el-select :disabled="isEdit" v-model="form.jgtId" clearable>
|
|
|
+ <el-select disabled v-model="form.jgtId" clearable>
|
|
|
<el-option
|
|
|
v-for="item in subSchoolList"
|
|
|
:key="item.jgtId"
|
|
@@ -234,7 +254,7 @@ function handleBack() {
|
|
|
<el-input-number v-model="form.subNum" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="考核周期" prop="time">
|
|
|
- <el-select v-model="time" clearable>
|
|
|
+ <el-select v-model="form.time" clearable>
|
|
|
<el-option
|
|
|
v-for="(item, index) in timeList"
|
|
|
:key="index"
|
|
@@ -282,7 +302,7 @@ function handleBack() {
|
|
|
.el-input,
|
|
|
.el-select,
|
|
|
.el-input-number {
|
|
|
- width: 200px;
|
|
|
+ width: 280px;
|
|
|
}
|
|
|
}
|
|
|
</style>
|