|
|
|
@ -18,6 +18,7 @@ import { |
|
|
|
Plus, |
|
|
|
Edit, |
|
|
|
Setting, |
|
|
|
Promotion, |
|
|
|
} from '@element-plus/icons-vue' |
|
|
|
import {ElMessage,UploadFile,UploadFiles,ElPagination} from "element-plus"; |
|
|
|
import aiagent from './agent.vue'; |
|
|
|
@ -446,6 +447,8 @@ function handleAiUpload(info:matterInfo){ |
|
|
|
doAiTraining(`/agents/${currentAgent.value.uuid}/updates`,{"matter":info.uuid}).then(resp=>{ |
|
|
|
console.log(resp) |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
alert("当前路径没有智能体") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -602,6 +605,7 @@ function isOwner(){ |
|
|
|
<el-button v-if="scope.row.permitVal>=PERMITS.DOWNLOAD" size="small" :icon="Download" circle @click="onDownload(scope.row)"></el-button> |
|
|
|
<el-button v-if="scope.row.permitVal>=PERMITS.EDIT" size="small" :icon="Edit" circle @click="onlyOfficeEdit(scope.row)"></el-button> |
|
|
|
<span v-if="scope.row.permitVal>=PERMITS.MANAGER" class="manager_span" > |
|
|
|
<el-button v-if="!scope.row.dir" size="small" circle @click="handleAiUpload(scope.row)">AI</el-button> |
|
|
|
<el-button size="small" :icon="Delete" circle @click="onDelMatter(scope.row)"></el-button> |
|
|
|
<el-button size="small" :icon="Setting" circle @click="onSpacePManage(scope.row)"></el-button> |
|
|
|
</span> |
|
|
|
|