更新
This commit is contained in:
@ -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)
|
||||
|
||||
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user