Commit 2226899b authored by zhengke's avatar zhengke

导入成员成功 刷新列表

parent 7537a966
......@@ -279,9 +279,6 @@ const deleteGroup = (item:any) => {
}
).then(async () => {
try {
let queryMsg = {
TempId: item.TempId
}
deleteLoading.value = true
let dataRes = await CloudDiskService.RemovePPTCloudGroup(item.Id)
if (dataRes.data.resultCode == 1) {
......
......@@ -183,7 +183,7 @@
<el-icon class="q-pt-sm" size="16" color="#b1b7cf"><MoreFilled /></el-icon>
<template #dropdown>
<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-dropdown-item>
<el-dropdown-item @click="deleteTemplate(scope.row)">
......@@ -495,7 +495,7 @@ const next = () =>{
}
}
// 查看所有子模版
const getTemplate = async (item:any) => {
const getTemplate = async (item:any,index:Number) => {
DetailsVisible.value = true
datas.TemDetails = item
datas.currentImg = index
......
......@@ -61,7 +61,7 @@
:action="getUploadActionUrl()"
:on-success="handleAvatarSuccess"
:before-upload="beforeAvatarUpload"
v-model:file-list="fileList"
:file-list="fileList"
>
<IconUpload size="54" class=""></IconUpload>
<div class="el-upload__text">
......@@ -201,6 +201,7 @@ const goDownload = (type:any) =>{
}
//导入文件地址
const getUploadActionUrl=()=>{
let uid=userInfo.value.id;
const url=domainManager().domainUrl.replace("common","file")+`?cmd=dmc_post_LocalFileUpload&Type=19&fileType=1&PPTEmployeeId=${encodeURIComponent(uid)}`
return url;
......@@ -209,8 +210,8 @@ const getUploadActionUrl=()=>{
const handleAvatarSuccess=async (res:any)=>{
if(res.data&&res.data.totalNum){
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}`
}
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