|
|
|
@ -98,31 +98,6 @@ function updateListOrGrid(val:boolean){ |
|
|
|
} |
|
|
|
|
|
|
|
//--------------权限控制&添加空间成员------------- |
|
|
|
function onAccessManage(){ |
|
|
|
//迁移到了manage文件中,暂时不需要了 |
|
|
|
dynamicVNode.value = h(sharePermission, { |
|
|
|
uid: uid, |
|
|
|
uuid: "", |
|
|
|
spaceid:props.spaceid, // |
|
|
|
confirmFunc: (_list: string[],_infos:string[]) => { |
|
|
|
// 组织权限数据 |
|
|
|
//_len=_list.length |
|
|
|
let permited = btoa(_list.join("|")) |
|
|
|
doAccessManage(uid,{ |
|
|
|
"space":props.spaceid, |
|
|
|
"roles":permited, |
|
|
|
"owner":owner.value, |
|
|
|
"len":_list.length |
|
|
|
}).then(()=>{ |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
closeFunc: () => { |
|
|
|
dynamicVNode.value=null |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
//文档权限控制管理 |
|
|
|
function onSpacePManage(row:matterInfo){ |
|
|
|
dynamicVNode.value=h(spacePermission,{ |
|
|
|
@ -333,21 +308,9 @@ function handleDoubleClick(row:matterInfo,ind?:number){ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
function handleMouseEnter(row:any){ |
|
|
|
currentHoverRow.value=row.name |
|
|
|
} |
|
|
|
//上传成功 |
|
|
|
function handleSingleUpload(response:any){ |
|
|
|
handleAiUpload(response.data) |
|
|
|
onLoadMatterList() |
|
|
|
} |
|
|
|
interface uploadError{ |
|
|
|
msg:string |
|
|
|
} |
|
|
|
//上传失败 |
|
|
|
function handleSigLoadErr(error: Error, uploadFile: UploadFile, uploadFiles:UploadFiles){ |
|
|
|
ElMessage.error(JSON.parse(error.message).msg) |
|
|
|
} |
|
|
|
|
|
|
|
//自定义上传,目的是支持多文件上传, 使用原生组件,是为了解决并发问题 |
|
|
|
async function onCustomUpload(e:Event){ |
|
|
|
@ -582,7 +545,7 @@ onMounted(() => { |
|
|
|
|
|
|
|
<template> |
|
|
|
<div class="app_container"> |
|
|
|
<el-row :gutter="24" style="margin: 12px 0px;"> |
|
|
|
<el-row :gutter="24" style="margin: 4px 0px;"> |
|
|
|
<el-col class="search" style="padding:0px;width: 80%;"> |
|
|
|
<el-button type="text" :icon="ArrowLeft" @click="router.back()"> </el-button> |
|
|
|
<el-input placeholder="搜索文件" v-model="searchname" @blur="searchname===''?onLoadMatterList():''"/> |
|
|
|
@ -605,16 +568,16 @@ onMounted(() => { |
|
|
|
|
|
|
|
<el-row :gutter="24"> |
|
|
|
<el-col :span="14" v-if="CutLevelPermit>=PERMITS.UPLOAD"> |
|
|
|
<div class="el-button el-button--default" style="position: relative;"> |
|
|
|
<div class="el-button el-button--default" style="position: relative;height: 24px;"> |
|
|
|
<el-icon><Upload /></el-icon> |
|
|
|
<input type="file" style="position: absolute;opacity: 0;width: 50px;" |
|
|
|
@change="onCustomUpload" multiple /> |
|
|
|
上传 |
|
|
|
</div> |
|
|
|
|
|
|
|
<el-button icon="plus" @click="createDir">新建</el-button> |
|
|
|
<el-button size="small" icon="plus" @click="createDir">新建</el-button> |
|
|
|
</el-col> |
|
|
|
<el-button style="margin-left: auto;" @click="()=>currentAgent.model=true">AI助手</el-button> |
|
|
|
<el-button size="small" style="margin-left: auto;" @click="()=>currentAgent.model=true">AI助手</el-button> |
|
|
|
|
|
|
|
|
|
|
|
</el-row> |
|
|
|
@ -627,7 +590,7 @@ onMounted(() => { |
|
|
|
style="width: 100%" |
|
|
|
row-key="uuid" |
|
|
|
:row-style ="() => ({ lineHeight: '36px' })"> |
|
|
|
<el-table-column property="name" label="文件名"> |
|
|
|
<el-table-column property="name"> |
|
|
|
<template #default="scope"> |
|
|
|
<input v-if="scope.row.name===''" v-model="newdirName" type="text" autofocus placeholder="文件夹名" style="border:groove;height:30px;" @change="onCreateDir" /> |
|
|
|
<div v-else style="display: flex; align-items: center;" @click="handleDoubleClick(scope.row)" > |
|
|
|
@ -723,7 +686,7 @@ onMounted(() => { |
|
|
|
position: relative; |
|
|
|
} |
|
|
|
.nav-header{ |
|
|
|
margin-top: 21px; |
|
|
|
margin-top: 12px; |
|
|
|
width: 100%; |
|
|
|
display: flex; |
|
|
|
span{ |
|
|
|
|