更新
This commit is contained in:
@ -95,6 +95,8 @@ const fileList = ref([]);
|
|||||||
|
|
||||||
watch(() => props.modelValue,(val) => {
|
watch(() => props.modelValue,(val) => {
|
||||||
let arr = val ? (Array.isArray(val) ? val :[val]): [];
|
let arr = val ? (Array.isArray(val) ? val :[val]): [];
|
||||||
|
console.log(val,'=========999');
|
||||||
|
|
||||||
if(arr.length == 0 ) return fileList.value = [];
|
if(arr.length == 0 ) return fileList.value = [];
|
||||||
fileList.value = arr.map((el) => {
|
fileList.value = arr.map((el) => {
|
||||||
if (Object.prototype.toString.call(el) === "[object Object]") {
|
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.url = `/bagl/mosty-base/minio/image/download/` + res.data;
|
||||||
file.id = res.data;
|
file.id = res.data;
|
||||||
fileList.value.push(file);
|
fileList.value.push(file);
|
||||||
|
console.log(fileList.value,'=========999');
|
||||||
|
|
||||||
let arr = []
|
let arr = []
|
||||||
if(props.isImg){
|
if(props.isImg){
|
||||||
arr = fileList.value.map((el) => el.id)
|
arr = fileList.value.map((el) => el.id)
|
||||||
|
|||||||
@ -140,7 +140,7 @@ const handleDelete = async (ids) => {
|
|||||||
await proxy.$modal.confirm("是否确认删除该从业人员?")
|
await proxy.$modal.confirm("是否确认删除该从业人员?")
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await qcckPost({ idList: ids }, "/bagl/mosty-base/baxx/cyry/remove")
|
await qcckPost({ idList: ids }, "/mosty-base/baxx/cyry/remove")
|
||||||
proxy.$modal.msgSuccess("删除成功");
|
proxy.$modal.msgSuccess("删除成功");
|
||||||
getList();
|
getList();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user