|
|
|
@ -25,8 +25,9 @@ import uploadlog from './uploadlog.vue'; |
|
|
|
import space from './space.vue'; |
|
|
|
import spacePermission from './spacePermission.vue'; |
|
|
|
import SvgIcon from "@/components/SvgIcon/index.vue"; |
|
|
|
import {doDelSpace,doAccessManage,doCreateAiagent} from "@/api/doc/space" |
|
|
|
import {doDelSpace,doAccessManage,doCreateAiagent,setAgentQueryURL,getAgentQueryURL} from "@/api/doc/space" |
|
|
|
import Space from "./space.vue"; |
|
|
|
import Logpanel from "./logpanel.vue"; |
|
|
|
|
|
|
|
//TODO: add file icons done! |
|
|
|
//TODO: click on table-item, 1)preview on file ..................... |
|
|
|
@ -77,6 +78,8 @@ const modRecycling=ref(false) |
|
|
|
const percentage=ref(0) |
|
|
|
const onprogress=ref(false) |
|
|
|
const tabName = ref('main') |
|
|
|
const logTableRef = ref() //上传日志页面的引用 |
|
|
|
|
|
|
|
|
|
|
|
const Departs = computed(() => { |
|
|
|
return `${'p0'+userStore.userInfoCont.userId},${userStore.userInfoCont.company},${userStore.userInfoCont.department},${userStore.userInfoCont.organization}` |
|
|
|
@ -312,16 +315,12 @@ function showRecycling(){ |
|
|
|
|
|
|
|
//获取上传日志 |
|
|
|
function showlogs(){ |
|
|
|
modRecycling.value=true |
|
|
|
currentNode.value={} //清空当前节点 |
|
|
|
if(!PRIVATESPACE.value) { //共享空间模式要切换到个人空间 |
|
|
|
PRIVATESPACE.value=true |
|
|
|
} |
|
|
|
|
|
|
|
getRecyclingList(uid,{}).then((resp)=>{ |
|
|
|
paginInfo.value={total:1,page:0} |
|
|
|
matterList.value=resp.data |
|
|
|
}) |
|
|
|
logTableRef.value.loadLogList() |
|
|
|
} |
|
|
|
|
|
|
|
//恢复删除文件 |
|
|
|
@ -858,6 +857,38 @@ function onAiAgent(row:matterInfo){ |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
//设置智能体联网查询地址 |
|
|
|
async function onAgentQueryURL(row:matterInfo){ |
|
|
|
await getAgentQueryURL(row.uuid).then(resp=>{ |
|
|
|
const newurls=ref(resp.data) |
|
|
|
ElMessageBox({ |
|
|
|
title:"填入网址(多个网址必须逗号分隔)", |
|
|
|
customStyle: { '--el-messagebox-width':'630px',padding:'13px'}, |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
message: () => h(ElInput, { |
|
|
|
type:"textarea", |
|
|
|
rows:3, |
|
|
|
style: { width:'600px' }, |
|
|
|
modelValue: newurls.value, |
|
|
|
'onUpdate:modelValue': (val) => { |
|
|
|
newurls.value = val |
|
|
|
}, |
|
|
|
}), |
|
|
|
}).then(() => { |
|
|
|
setAgentQueryURL(row.uuid,{ |
|
|
|
urls:newurls.value |
|
|
|
}).then(()=>{ |
|
|
|
ElMessage({ |
|
|
|
message: '已成功更新URL', |
|
|
|
type: 'success', |
|
|
|
plain: true, |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
//------------------------------------------------------ |
|
|
|
//http://172.20.2.87:6010/api/alien/preview/5a10aaf6-396e-4d9a-7e87-3c5c8029d4db/123.png?ir=fill_100_100 |
|
|
|
//渲染完页面再执行 |
|
|
|
@ -929,7 +960,7 @@ const handleSelectionChange = (val:matterInfo[]) => { |
|
|
|
</el-tree> |
|
|
|
<div class="area_header"> |
|
|
|
<el-icon :size="20"><Collection /></el-icon> <span class="area_name" > 共享空间</span> |
|
|
|
<el-button size="small" style="margin: 0 5px 0 auto;" :icon="Plus" @click="onNewSpace"> </el-button> |
|
|
|
<el-button v-if="userStore.userInfoCont.department==102" size="small" style="margin: 0 5px 0 auto;" :icon="Plus" @click="onNewSpace"> </el-button> |
|
|
|
</div> |
|
|
|
<el-tree |
|
|
|
ref="spaceTreeRef" |
|
|
|
@ -951,6 +982,7 @@ const handleSelectionChange = (val:matterInfo[]) => { |
|
|
|
<el-dropdown-item v-if="!data.puuid" @click="(e)=>{ e.stopPropagation(); onAccessManage()}">成员管理</el-dropdown-item> |
|
|
|
<el-dropdown-item @click="(e)=>{ e.stopPropagation(); onSpacePManage(data)}">权限管理</el-dropdown-item> |
|
|
|
<el-dropdown-item v-if="data.puuid" @click="(e)=>{ e.stopPropagation(); onAiAgent(data)}">创建智能体</el-dropdown-item> |
|
|
|
<el-dropdown-item v-if="data.agent" @click="(e)=>{ e.stopPropagation(); onAgentQueryURL(data)}">联网查询</el-dropdown-item> |
|
|
|
<el-dropdown-item @click="(e)=>{ e.stopPropagation(); onDelSpaceMatter(data)}">删除</el-dropdown-item> |
|
|
|
<el-dropdown-item @click="(e)=>{ e.stopPropagation(); spaceEleRef.onSpaceMatterRename(data)}">重命名</el-dropdown-item> |
|
|
|
</el-dropdown-menu> |
|
|
|
@ -959,7 +991,7 @@ const handleSelectionChange = (val:matterInfo[]) => { |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-tree> |
|
|
|
<div class="area_header" @click="tabName='logs'"> |
|
|
|
<div class="area_header" @click="tabName='logs';showlogs()"> |
|
|
|
<el-icon :size="20"><Bell /></el-icon><span class="area_name" > 上传日志</span> |
|
|
|
</div> |
|
|
|
<div class="area_header" @click="showRecycling"> |
|
|
|
@ -1105,7 +1137,7 @@ const handleSelectionChange = (val:matterInfo[]) => { |
|
|
|
</div> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane name="logs"> |
|
|
|
Comming soon.... |
|
|
|
<Logpanel ref="logTableRef" :uid="uid" /> |
|
|
|
</el-tab-pane> |
|
|
|
</el-tabs> |
|
|
|
|
|
|
|
|