终端检测上传文件清除
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>
|
||||||
@@ -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