终端检测上传文件清除
This commit is contained in:
@@ -31,6 +31,7 @@
|
|||||||
:on-change="choose"
|
:on-change="choose"
|
||||||
:auto-upload="false"
|
:auto-upload="false"
|
||||||
:on-progress="uploadFileName('lineFilePath')"
|
:on-progress="uploadFileName('lineFilePath')"
|
||||||
|
:on-remove="removeFile"
|
||||||
>
|
>
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<el-button type="primary">监测点台账信息</el-button>
|
<el-button type="primary">监测点台账信息</el-button>
|
||||||
@@ -330,6 +331,7 @@
|
|||||||
:on-change="choose"
|
:on-change="choose"
|
||||||
:auto-upload="false"
|
:auto-upload="false"
|
||||||
:on-progress="uploadFileName('mainWiringDiagram')"
|
:on-progress="uploadFileName('mainWiringDiagram')"
|
||||||
|
:on-remove="removeFile"
|
||||||
>
|
>
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<el-button type="primary">上传文件</el-button>
|
<el-button type="primary">上传文件</el-button>
|
||||||
@@ -895,10 +897,14 @@ const handleExceed: UploadProps['onExceed'] = files => {
|
|||||||
uploadRef.value!.handleStart(file)
|
uploadRef.value!.handleStart(file)
|
||||||
}
|
}
|
||||||
let uploadName = ref('')
|
let uploadName = ref('')
|
||||||
//上传报告改变
|
//上传报告字段名称
|
||||||
const uploadFileName = val => {
|
const uploadFileName = val => {
|
||||||
uploadName.value = val
|
uploadName.value = val
|
||||||
}
|
}
|
||||||
|
//移除文件上传
|
||||||
|
const removeFile = (file: any,uploadFiles:any) => {
|
||||||
|
console.log(file, uploadFiles)
|
||||||
|
}
|
||||||
//监测点台账信息
|
//监测点台账信息
|
||||||
const lineFilePath = ref('')
|
const lineFilePath = ref('')
|
||||||
//主接线图
|
//主接线图
|
||||||
|
|||||||
@@ -111,6 +111,7 @@
|
|||||||
:on-change="choose"
|
:on-change="choose"
|
||||||
:auto-upload="false"
|
:auto-upload="false"
|
||||||
:on-progress="uploadFileName('deviceFilePath')"
|
:on-progress="uploadFileName('deviceFilePath')"
|
||||||
|
:on-remove="removeFile"
|
||||||
>
|
>
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<el-button type="primary">终端台账信息</el-button>
|
<el-button type="primary">终端台账信息</el-button>
|
||||||
@@ -447,6 +448,7 @@
|
|||||||
:on-change="choose"
|
:on-change="choose"
|
||||||
:auto-upload="false"
|
:auto-upload="false"
|
||||||
:on-progress="uploadFileName('informationSecurityTestReport')"
|
:on-progress="uploadFileName('informationSecurityTestReport')"
|
||||||
|
:on-remove="removeFile"
|
||||||
>
|
>
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<el-button type="primary">上传文件</el-button>
|
<el-button type="primary">上传文件</el-button>
|
||||||
@@ -464,6 +466,7 @@
|
|||||||
:on-change="choose"
|
:on-change="choose"
|
||||||
:auto-upload="false"
|
:auto-upload="false"
|
||||||
:on-progress="uploadFileName('acceptanceInspectionReportSingle')"
|
:on-progress="uploadFileName('acceptanceInspectionReportSingle')"
|
||||||
|
:on-remove="removeFile"
|
||||||
>
|
>
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<el-button type="primary">上传文件</el-button>
|
<el-button type="primary">上传文件</el-button>
|
||||||
@@ -481,6 +484,7 @@
|
|||||||
:on-change="choose"
|
:on-change="choose"
|
||||||
:auto-upload="false"
|
:auto-upload="false"
|
||||||
:on-progress="uploadFileName('acceptanceInspectionReport')"
|
:on-progress="uploadFileName('acceptanceInspectionReport')"
|
||||||
|
:on-remove="removeFile"
|
||||||
>
|
>
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<el-button type="primary">上传文件</el-button>
|
<el-button type="primary">上传文件</el-button>
|
||||||
@@ -498,6 +502,7 @@
|
|||||||
:on-change="choose"
|
:on-change="choose"
|
||||||
:auto-upload="false"
|
:auto-upload="false"
|
||||||
:on-progress="uploadFileName('typeExperimentReport')"
|
:on-progress="uploadFileName('typeExperimentReport')"
|
||||||
|
:on-remove="removeFile"
|
||||||
>
|
>
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<el-button type="primary">上传文件</el-button>
|
<el-button type="primary">上传文件</el-button>
|
||||||
@@ -515,6 +520,7 @@
|
|||||||
:on-change="choose"
|
:on-change="choose"
|
||||||
:auto-upload="false"
|
:auto-upload="false"
|
||||||
:on-progress="uploadFileName('factoryInspectionReport')"
|
:on-progress="uploadFileName('factoryInspectionReport')"
|
||||||
|
:on-remove="removeFile"
|
||||||
>
|
>
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<el-button type="primary">上传文件</el-button>
|
<el-button type="primary">上传文件</el-button>
|
||||||
@@ -532,6 +538,7 @@
|
|||||||
:on-change="choose"
|
:on-change="choose"
|
||||||
:auto-upload="false"
|
:auto-upload="false"
|
||||||
:on-progress="uploadFileName('performanceTestReport')"
|
:on-progress="uploadFileName('performanceTestReport')"
|
||||||
|
:on-remove="removeFile"
|
||||||
>
|
>
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<el-button type="primary">上传文件</el-button>
|
<el-button type="primary">上传文件</el-button>
|
||||||
@@ -549,6 +556,7 @@
|
|||||||
:on-change="choose"
|
:on-change="choose"
|
||||||
:auto-upload="false"
|
:auto-upload="false"
|
||||||
:on-progress="uploadFileName('otherAttachments')"
|
:on-progress="uploadFileName('otherAttachments')"
|
||||||
|
:on-remove="removeFile"
|
||||||
>
|
>
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<el-button type="primary">上传文件</el-button>
|
<el-button type="primary">上传文件</el-button>
|
||||||
@@ -586,7 +594,7 @@ const dialogFormVisible = ref(false)
|
|||||||
const form: any = ref({})
|
const form: any = ref({})
|
||||||
const ruleFormRef = ref(null)
|
const ruleFormRef = ref(null)
|
||||||
// acceptType .xls,.xlsx
|
// acceptType .xls,.xlsx
|
||||||
const acceptType=''
|
const acceptType = ''
|
||||||
//字典获取所属地市
|
//字典获取所属地市
|
||||||
const areaOptionList = dictData.getBasicData('jibei_area')
|
const areaOptionList = dictData.getBasicData('jibei_area')
|
||||||
//字典获取电压互感器类型
|
//字典获取电压互感器类型
|
||||||
@@ -757,7 +765,7 @@ const resetForm = async () => {
|
|||||||
alarmFunction: '0', //告警功能
|
alarmFunction: '0', //告警功能
|
||||||
commissioningTime: '', //投运时间
|
commissioningTime: '', //投运时间
|
||||||
communicationStatus: communicationStatusList[0].id, // 通讯状态
|
communicationStatus: communicationStatusList[0].id, // 通讯状态
|
||||||
frontType:frontTypeList[0].id,///通讯类型
|
frontType: frontTypeList[0].id, ///通讯类型
|
||||||
contractNumber: '', //合同号
|
contractNumber: '', //合同号
|
||||||
dataType: dataTypeList[0].id, //数据类型
|
dataType: dataTypeList[0].id, //数据类型
|
||||||
dataUpdateTime: new Date(), // 数据更新时间
|
dataUpdateTime: new Date(), // 数据更新时间
|
||||||
@@ -816,7 +824,7 @@ const devReportForm = ref({
|
|||||||
alarmFunction: '0', //告警功能
|
alarmFunction: '0', //告警功能
|
||||||
commissioningTime: '', //投运时间
|
commissioningTime: '', //投运时间
|
||||||
communicationStatus: communicationStatusList[0].id, // 通讯状态
|
communicationStatus: communicationStatusList[0].id, // 通讯状态
|
||||||
frontType:frontTypeList[0].id,///通讯类型
|
frontType: frontTypeList[0].id, ///通讯类型
|
||||||
contractNumber: '', //合同号
|
contractNumber: '', //合同号
|
||||||
currentTerminalDetectionTime: '', //本次终端检测时间
|
currentTerminalDetectionTime: '', //本次终端检测时间
|
||||||
dataType: dataTypeList[0].id, //数据类型
|
dataType: dataTypeList[0].id, //数据类型
|
||||||
@@ -1218,10 +1226,14 @@ const handleExceed: UploadProps['onExceed'] = files => {
|
|||||||
uploadRef.value!.handleStart(file)
|
uploadRef.value!.handleStart(file)
|
||||||
}
|
}
|
||||||
let uploadName = ref('')
|
let uploadName = ref('')
|
||||||
//上传报告改变
|
//上传报告字段名称
|
||||||
const uploadFileName = val => {
|
const uploadFileName = val => {
|
||||||
uploadName.value = val
|
uploadName.value = val
|
||||||
}
|
}
|
||||||
|
//移除文件上传
|
||||||
|
const removeFile = (file: any,uploadFiles:any) => {
|
||||||
|
console.log(file, uploadFiles)
|
||||||
|
}
|
||||||
// 终端台账信息
|
// 终端台账信息
|
||||||
const deviceFilePath = ref('')
|
const deviceFilePath = ref('')
|
||||||
//验收检验报告单
|
//验收检验报告单
|
||||||
|
|||||||
Reference in New Issue
Block a user