bug 3
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: zwq
|
||||
* @Date: 2021-11-18 14:16:25
|
||||
* @LastEditors: DY
|
||||
* @LastEditTime: 2023-12-12 16:04:44
|
||||
* @LastEditTime: 2024-03-20 16:20:39
|
||||
* @Description:
|
||||
-->
|
||||
<template>
|
||||
@@ -130,6 +130,11 @@ export default {
|
||||
if (this.dataForm.id) {
|
||||
this.urlOptions.infoURL(id).then(response => {
|
||||
this.dataForm = response.data;
|
||||
const tempPic = []
|
||||
this.dataForm.files?.forEach(item => {
|
||||
tempPic.push(item.fileUrl)
|
||||
})
|
||||
this.files = tempPic.join(',')
|
||||
if (this.setData) {
|
||||
this.setDataForm()
|
||||
}
|
||||
@@ -150,8 +155,8 @@ export default {
|
||||
}
|
||||
|
||||
this.dataForm.files = []
|
||||
if (this.files.length > 0) {
|
||||
this.files.forEach(item => {
|
||||
if (this.files.split(',').length > 0) {
|
||||
this.files.split(',').forEach(item => {
|
||||
const temp = {
|
||||
fileType: 1,
|
||||
fileUrl: item
|
||||
|
||||
Reference in New Issue
Block a user