下拉框回显

This commit is contained in:
‘huanghaiixia’
2026-03-02 14:41:03 +08:00
parent 594d9ebd11
commit d4d18129d2
19 changed files with 93 additions and 67 deletions

View File

@ -170,9 +170,10 @@
}
);
onMounted(() => {
getOption()
if (pageId.value) {
getInfo(pageId.value)
} else {
getOption()
}
});
@ -187,13 +188,14 @@
Object.assign(formState, {...data})
Object.assign(dataList.value, formState.lngScoreDtlList || [])
Object.assign(dataFile.value, formState.lngFileUploadList || [])
getOption()
formState.dateGrade = formState.dateGrade ? dayjs(formState.dateGrade) : null
} catch (error) {
spinning.value = false
}
}
async function getOption() {
optionSelect.gsIdList = await getLngGradeSystemPageList({'valid': 'Y', 'typeCode': 'SU'})
optionSelect.gsIdList = await getLngGradeSystemPageList({'typeCode': 'SU', eid: formState.gsId})
optionSelect.approCodeList = await getDictionary('LNG_APPRO')
let res = await getUserInfo()
Object.assign(userInfo, {...res})

View File

@ -150,9 +150,9 @@
<template v-if="column.dataIndex === 'dateTo'">
{{ record.dateTo ? dayjs(record.dateTo).format('YYYY-MM-DD') : ''}}
</template>
<template v-if="column.dataIndex === 'docTypeCode'">
<!-- <template v-if="column.dataIndex === 'docTypeCode'">
{{ (optionSelect.docCpList.find(v=>v.code == record.docTypeCode) || {}).fullName }}
</template>
</template> -->
<template v-if="column.dataIndex === 'operation'">
<a v-if="!isDisable" style="margin-right: 10px" @click="btnCheck('certificate', 'edit', record, index)">编辑</a>
<a v-if="!isDisable" style="margin-right: 10px" @click="btnCheck('certificate', 'delete', record, index)">删除</a>
@ -300,7 +300,7 @@
const columnsCertificate = ref([
{ title: t('序号'), dataIndex: 'index', key: 'index', customRender: (column) => `${column.index + 1}` ,width: 100},
{ title: t('资质证书名称'), dataIndex: 'docTypeCode' , width:200},
{ title: t('资质证书名称'), dataIndex: 'docTypeName' , width:200},
{ title: t('有效期开始'), dataIndex: 'dateFrom', width: 140},
{ title: t('有效期结束'), dataIndex: 'dateTo', width: 140},
{ title: t('备注'), dataIndex: 'note', },
@ -399,7 +399,7 @@
optionSelect.signList = await getDictionary('LNG_YN')
optionSelect.validList = await getDictionary('LNG_VALID')
optionSelect.approCodeList = await getDictionary('LNG_APPRO')
optionSelect.docCpList = await getDocCpList()
// optionSelect.docCpList = await getDocCpList()
}
const handleAdd = (val)=> {
curIdx.value = null