This commit is contained in:
2025-09-26 17:29:00 +08:00
parent 26ea6dbdcf
commit 3b3a8122bc
2 changed files with 5 additions and 1 deletions

View File

@ -95,6 +95,8 @@ const fileList = ref([]);
watch(() => props.modelValue,(val) => {
let arr = val ? (Array.isArray(val) ? val :[val]): [];
console.log(val,'=========999');
if(arr.length == 0 ) return fileList.value = [];
fileList.value = arr.map((el) => {
if (Object.prototype.toString.call(el) === "[object Object]") {
@ -159,6 +161,8 @@ const handlerSuccess = (res, file) => {
// file.url = `/bagl/mosty-base/minio/image/download/` + res.data;
file.id = res.data;
fileList.value.push(file);
console.log(fileList.value,'=========999');
let arr = []
if(props.isImg){
arr = fileList.value.map((el) => el.id)

View File

@ -140,7 +140,7 @@ const handleDelete = async (ids) => {
await proxy.$modal.confirm("是否确认删除该从业人员?")
try {
await qcckPost({ idList: ids }, "/bagl/mosty-base/baxx/cyry/remove")
await qcckPost({ idList: ids }, "/mosty-base/baxx/cyry/remove")
proxy.$modal.msgSuccess("删除成功");
getList();
} catch (error) {