Commit 2226899b authored by zhengke's avatar zhengke

导入成员成功 刷新列表

parent 7537a966
...@@ -279,9 +279,6 @@ const deleteGroup = (item:any) => { ...@@ -279,9 +279,6 @@ const deleteGroup = (item:any) => {
} }
).then(async () => { ).then(async () => {
try { try {
let queryMsg = {
TempId: item.TempId
}
deleteLoading.value = true deleteLoading.value = true
let dataRes = await CloudDiskService.RemovePPTCloudGroup(item.Id) let dataRes = await CloudDiskService.RemovePPTCloudGroup(item.Id)
if (dataRes.data.resultCode == 1) { if (dataRes.data.resultCode == 1) {
......
...@@ -183,7 +183,7 @@ ...@@ -183,7 +183,7 @@
<el-icon class="q-pt-sm" size="16" color="#b1b7cf"><MoreFilled /></el-icon> <el-icon class="q-pt-sm" size="16" color="#b1b7cf"><MoreFilled /></el-icon>
<template #dropdown> <template #dropdown>
<el-dropdown-menu class="q-pa-md"> <el-dropdown-menu class="q-pa-md">
<el-dropdown-item @click="getTemplate(scope.row)"> <el-dropdown-item @click="getTemplate(scope.row,scope.$index)">
<el-button type="default" link :icon="View" size="small" class="microsoft">详情</el-button> <el-button type="default" link :icon="View" size="small" class="microsoft">详情</el-button>
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item @click="deleteTemplate(scope.row)"> <el-dropdown-item @click="deleteTemplate(scope.row)">
...@@ -495,7 +495,7 @@ const next = () =>{ ...@@ -495,7 +495,7 @@ const next = () =>{
} }
} }
// 查看所有子模版 // 查看所有子模版
const getTemplate = async (item:any) => { const getTemplate = async (item:any,index:Number) => {
DetailsVisible.value = true DetailsVisible.value = true
datas.TemDetails = item datas.TemDetails = item
datas.currentImg = index datas.currentImg = index
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
:action="getUploadActionUrl()" :action="getUploadActionUrl()"
:on-success="handleAvatarSuccess" :on-success="handleAvatarSuccess"
:before-upload="beforeAvatarUpload" :before-upload="beforeAvatarUpload"
v-model:file-list="fileList" :file-list="fileList"
> >
<IconUpload size="54" class=""></IconUpload> <IconUpload size="54" class=""></IconUpload>
<div class="el-upload__text"> <div class="el-upload__text">
...@@ -201,6 +201,7 @@ const goDownload = (type:any) =>{ ...@@ -201,6 +201,7 @@ const goDownload = (type:any) =>{
} }
//导入文件地址 //导入文件地址
const getUploadActionUrl=()=>{ const getUploadActionUrl=()=>{
let uid=userInfo.value.id; let uid=userInfo.value.id;
const url=domainManager().domainUrl.replace("common","file")+`?cmd=dmc_post_LocalFileUpload&Type=19&fileType=1&PPTEmployeeId=${encodeURIComponent(uid)}` const url=domainManager().domainUrl.replace("common","file")+`?cmd=dmc_post_LocalFileUpload&Type=19&fileType=1&PPTEmployeeId=${encodeURIComponent(uid)}`
return url; return url;
...@@ -209,8 +210,8 @@ const getUploadActionUrl=()=>{ ...@@ -209,8 +210,8 @@ const getUploadActionUrl=()=>{
const handleAvatarSuccess=async (res:any)=>{ const handleAvatarSuccess=async (res:any)=>{
if(res.data&&res.data.totalNum){ if(res.data&&res.data.totalNum){
UploadResults.value = res.data UploadResults.value = res.data
if(res.data.successNum>0) emit('imported')
if(res.data.failUrl) UploadResults.value.DownloadUrl = domainManager().DownloadUrl.replace("common","file")+`${res.data.failUrl}` if(res.data.failUrl) UploadResults.value.DownloadUrl = domainManager().DownloadUrl.replace("common","file")+`${res.data.failUrl}`
} }
console.log("handleAvatarSuccess_res",res); console.log("handleAvatarSuccess_res",res);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment