调整:

1、登录界面的学生家长关系
2、学生课表按周几查询
3、学生成绩的学科名称按id重新查询
This commit is contained in:
ywyonui 2025-06-23 22:50:44 +08:00
parent 98d18a15aa
commit e85d41d714
3 changed files with 27 additions and 19 deletions

View File

@ -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) {

View File

@ -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;

View File

@ -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);
});