修改 电能质量问题管理页面

This commit is contained in:
GGJ
2024-04-03 16:24:14 +08:00
parent 60462b0086
commit a43dd0f62f
11 changed files with 383 additions and 121 deletions

View File

@@ -1,5 +1,5 @@
<template>
<el-form :model="causeAnalysisData" :rules="rules" ref="formRef" label-width="140px">
<el-form :model="causeAnalysisData" :rules="rules" ref="form1Ref" label-width="auto">
<el-form-item label="电网侧原因:" prop="reportProcessContentYyfx">
<el-checkbox-group v-model="causeAnalysisData.reportProcessContentYyfx">
<el-checkbox v-for="(item, ind) in CauseList" :key="ind" :label="item.code">
@@ -81,7 +81,7 @@ const emit = defineEmits(['handleClose'])
const dictData = useDictData()
const upload = ref()
const formRef = ref()
const form1Ref = ref()
const causeAnalysisData: any = ref({
reportProcessContentYyfx: [],
userReportProcessContentYyfx: [],
@@ -119,9 +119,9 @@ const handleExceed: UploadProps['onExceed'] = files => {
}
const submit = () => {
console.log('🚀 ~ formRef.value.validate ~ =prop.addData:', prop.addData)
// console.log('🚀 ~ form1Ref.value.validate ~ =prop.addData:', prop.addData)
formRef.value.validate(async (valid: any) => {
form1Ref.value.validate(async (valid: any) => {
if (valid) {
let form = new FormData()
form.append('file', causeAnalysisData.value.fileList[0].raw)