修改雷达状态

main
scrin 2 weeks ago
parent f7a7b1439c
commit 4b902a895d

@ -1363,6 +1363,12 @@ const dialog3Form = ref({})
//
const uploadFiles2 = async (e) => {
const res = await UpdateImage({files: [e.file]})
const file = e.file
dialog3Form.fileList.value.push({
name: file.name,
url:res.ls[0],
})
}
//
const handlePictureCardPreview2 = (file) => {
@ -1386,12 +1392,14 @@ const openCamera2 = () => {
const handleCameraChange2 = (e) => {
const file = e.target.files[0]
if (!file) return
const url = URL.createObjectURL(file)
UpdateImage({files: [file]})
dialog3Form.fileList.value.push({
name: file.name,
url,
raw: file
// const url = URL.createObjectURL(file)
UpdateImage({files: [file]}).then(v=>{
const url = v.ls?.[0]
dialog3Form.fileList.value.push({
name: file.name,
url,
})
})
// input
e.target.value = ''
@ -1502,6 +1510,12 @@ const dialog1Form = ref({})
//
const uploadFiles = async (e) => {
const res = await UpdateImage({files: [e.file]})
const file = e.file
dialog1Form.fileList.value.push({
name: file.name,
url:res.ls[0],
})
}
//
const handlePictureCardPreview = (file) => {
@ -1525,12 +1539,13 @@ const openCamera = () => {
const handleCameraChange = (e) => {
const file = e.target.files[0]
if (!file) return
const url = URL.createObjectURL(file)
UpdateImage({files: [file]})
dialog1Form.fileList.value.push({
name: file.name,
url,
raw: file
// const url = URL.createObjectURL(file)
UpdateImage({files: [file]}).then(v=>{
const url = v.ls?.[0]
dialog1Form.fileList.value.push({
name: file.name,
url,
})
})
// input
e.target.value = ''
@ -1724,6 +1739,11 @@ const dialog2Form = ref({})
//
const uploadFiles1 = async (e) => {
const res = await UpdateImage({files: [e.file]})
const file = e.file
dialog2Form.fileList.value.push({
name: file.name,
url:res.ls[0],
})
}
//
const handlePictureCardPreview1 = (file) => {
@ -1748,11 +1768,13 @@ const handleCameraChange1 = (e) => {
const file = e.target.files[0]
if (!file) return
const url = URL.createObjectURL(file)
UpdateImage({files: [file]})
dialog2Form.fileList.value.push({
name: file.name,
url,
raw: file
UpdateImage({files: [file]}).then(v=>{
const url = v.ls?.[0]
dialog2Form.fileList.value.push({
name: file.name,
url,
})
})
// input
e.target.value = ''

Loading…
Cancel
Save