调整:
1、登录界面的学生家长关系 2、学生课表按周几查询 3、学生成绩的学科名称按id重新查询
This commit is contained in:
parent
98d18a15aa
commit
e85d41d714
@ -172,7 +172,9 @@ const selectDay = (index: number) => {
|
||||
drpkkbApi({
|
||||
bjId: getCurXs.bjId,
|
||||
xqId: xqId,
|
||||
rq: rqList.value[index].rq
|
||||
rq: "",
|
||||
// rq: rqList.value[index].rq, // 暂时废弃,目前小学都按周几进行查询
|
||||
zj: rqList.value[index].zj
|
||||
}).then(res => {
|
||||
// 根据接口返回的result判断是否已报名
|
||||
if (res && res.resultCode === 1) {
|
||||
|
||||
@ -456,13 +456,15 @@ const buildXqKmKscjList = () => {
|
||||
|
||||
const rebuildData = () => {
|
||||
// 根据考试场次,分解对应的科目
|
||||
let ksccKmmcList = getData.kmmc.split(",");
|
||||
let ksccKmmcList = [];
|
||||
let ksccKmIdList = getData.kmId.split(",");
|
||||
let ksfsList = [];
|
||||
let totalFs = 0.00;
|
||||
kscjList.value = [];
|
||||
for (let i = 0; i < ksccKmIdList.length; i++) {
|
||||
let km = { id: ksccKmIdList[i], kmmc: ksccKmmcList[i] };
|
||||
let kmmc = srcKmList.value.find((item: any) => item.id === ksccKmIdList[i])?.kmmc;
|
||||
ksccKmmcList.push(kmmc);
|
||||
let km = { id: ksccKmIdList[i], kmmc: kmmc };
|
||||
let kmKscj = buildKmKscj(km, srcKsccKscjList.value);
|
||||
ksfsList.push(kmKscj.ksfs);
|
||||
totalFs += kmKscj.ksfs;
|
||||
|
||||
@ -63,7 +63,7 @@
|
||||
inputAlign="right"
|
||||
></u--input>
|
||||
</u-form-item>
|
||||
<u-form-item
|
||||
<!-- <u-form-item
|
||||
label="与学生关系"
|
||||
:prop="`students[${index}].jzxsgxId`"
|
||||
required
|
||||
@ -74,7 +74,7 @@
|
||||
<view v-else>{{ student.jzxsgxmc }}</view>
|
||||
</view>
|
||||
|
||||
</u-form-item>
|
||||
</u-form-item> -->
|
||||
<u-form-item
|
||||
label="身份证号"
|
||||
:prop="`students[${index}].xssfzh`"
|
||||
@ -131,16 +131,17 @@ const dicVal = ref<number[]>([]);
|
||||
|
||||
let formSchema: FormsSchema[] = [
|
||||
{ title: "监护人信息" },
|
||||
// {
|
||||
// field: "jzxsgxId",
|
||||
// label: "与学生关系",
|
||||
// component: "BasicPicker",
|
||||
// componentProps: {
|
||||
// rangeKey: "dictionaryValue",
|
||||
// savaKey: "dictionaryCode",
|
||||
// options: []
|
||||
// },
|
||||
// },
|
||||
{
|
||||
field: "jzxsgxId",
|
||||
label: "与学生关系",
|
||||
component: "BasicPicker",
|
||||
componentProps: {
|
||||
api: dicApi,
|
||||
param: { pid: 1622287061 },
|
||||
rangeKey: "dictionaryValue",
|
||||
savaKey: "dictionaryCode",
|
||||
},
|
||||
},
|
||||
{
|
||||
field: "jzxm",
|
||||
label: "家长姓名",
|
||||
@ -295,6 +296,9 @@ async function submit() {
|
||||
const formData = await getValue();
|
||||
showLoading({ title: "提交中" });
|
||||
try {
|
||||
for (let i = 0; i < students.value.length; i++) {
|
||||
students.value[i].jzxsgxId = formData.jzxsgxId;
|
||||
}
|
||||
const res = await loginRegisterJzApi({
|
||||
xsList: students.value,
|
||||
...formData,
|
||||
@ -314,10 +318,10 @@ async function submit() {
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
const resDic = await dicApi({ pid: 1622287061 });
|
||||
dicOptions.value = [resDic.result];
|
||||
formSchema[1].componentProps.options = resDic.result;
|
||||
setSchema(formSchema);
|
||||
// const resDic = await dicApi({ pid: 1622287061 });
|
||||
// dicOptions.value = [resDic.result];
|
||||
// formSchema[1].componentProps.options = resDic.result;
|
||||
// setSchema(formSchema);
|
||||
});
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user