This commit is contained in:
su 2025-03-09 22:02:06 +08:00
commit 883b34e938
2 changed files with 39 additions and 46 deletions

View File

@ -1,43 +1,36 @@
<template>
<div class="pageBackground">
<div class="breadHeader">文件管理/全文检索</div>
<div class="filecontent" >
<a-layout>
<a-layout-content>
<div style="margin-top: 20px;">
<a-row>
<a-col :span="12">
<a-form layout="inline">
<a-form-item>
<a-input placeholder="请输入" v-model="searchFile.queryCriteria" style="color: #000000 !important;"></a-input>
</a-form-item>
<a-form-item>
<a-checkbox-group v-model:value="checkboxValue" name="checkboxgroup" :options="plainOptions" />
</a-form-item>
<a-form-item>
<a-button type="primary" icon="search" style="margin-left: 21px" @click="searchgetFileList">查询</a-button>
<a-button type="primary" icon="reload" style="margin-left: 8px" @click="reloadFileList">重置</a-button>
</a-form-item>
</a-form>
</a-col>
</a-row>
</div>
<div style="margin-top: 15px">
<a-table ref="table" bordered size="middle" rowKey="id" :columns="columns" class="fileTable"
:dataSource="dataSource" :loading="loading"
>
<span slot="action" slot-scope="text, record">
<a @click="download(record,$event)">下载</a>&nbsp; <a @click="viewFile(record,$event)">预览</a>
</span>
</a-table>
</div>
</a-layout-content>
</a-layout>
</div>
</div>
<a-layout-content>
<div style="margin-top: 20px;">
<a-form layout="inline">
<a-row>
<a-col :span="24">
<a-form-item>
<a-input placeholder="请输入" v-model="searchFile.queryCriteria" style="color: #000000 !important;"></a-input>
</a-form-item>
<a-form-item>
<a-checkbox-group v-model:value="checkboxValue" name="checkboxgroup" :options="plainOptions" />
</a-form-item>
<a-form-item>
<a-button type="primary" icon="search" style="margin-left: 21px" @click="searchgetFileList">查询</a-button>
<a-button type="primary" icon="reload" style="margin-left: 8px" @click="reloadFileList">重置</a-button>
</a-form-item>
</a-col>
</a-row>
</a-form>
</div>
<div style="margin-top: 15px">
<a-table ref="table" bordered size="middle" rowKey="id" :columns="columns" class="fileTable"
:dataSource="dataSource" :loading="loading"
>
<span slot="action" slot-scope="text, record">
<a @click="download(record,$event)">下载</a>&nbsp; <a @click="viewFile(record,$event)">预览</a>
</span>
</a-table>
</div>
</a-layout-content>
</template>
<script>
import guaz from '@assets/guaz.png'
import {createDir,logicDelDir,renameDir,dirtreeList} from '@/api/dirapi'
import {downloadFile,filePreview,fullTextSearching} from '@/api/fileapi'
export default {

View File

@ -104,11 +104,11 @@
// });
this.isMultiDepart = false
}else if(multi_depart==2){
this.visible=true
this.isMultiDepart = true
this.departList = loginResult.departs
// this.visible=true
// this.isMultiDepart = true
// this.departList = loginResult.departs
}else {
this.isMultiDepart = false
// this.isMultiDepart = false
}
},
bizTenant(ids){
@ -118,11 +118,11 @@
this.tenant_id = ids;
this.isMultiTenant = false
}else{
this.visible = true
this.isMultiTenant = true
getAction('/sys/tenant/queryList', {ids: ids}).then(res=>{
this.tenantList = res.result
})
// this.visible = true
// this.isMultiTenant = true
// getAction('/sys/tenant/queryList', {ids: ids}).then(res=>{
// this.tenantList = res.result
// })
}
},
show(loginResult){