Commit 5be7ee35 authored by zhengke's avatar zhengke

成员 导入

parent 2226899b
......@@ -93,11 +93,12 @@
</div>
<div v-if="queryObj.pageCount>1" class="q-mt-md" style="display: flex;justify-content: center;">
<el-pagination
v-model:current-page="currentPage"
v-model:current-page="queryObj.pageIndex"
:page-size="queryObj.pageSize"
small-padding
small="small"
layout="prev, pager, next"
:total="queryObj.total"
:total="total"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
/>
......@@ -148,7 +149,7 @@ const queryObj = reactive({
FileName: '',
total: 0
})
const currentPage = ref(1)
const total = ref(0)
const ImgId= ref('')
const GName= ref('')
const addEditMsg = reactive({
......@@ -323,7 +324,7 @@ const Search = (item:any) =>{
const querySearchHandler = async () =>{
loading.value = true
try {
if(queryObj.pageIndex == 1) dataList.value =[]
// if(queryObj.pageIndex == 1) dataList.value =[]
let pageRes = await CloudDiskService.GetPPTCloudInfoPage(queryObj);
if (pageRes.data.resultCode==ApiResult.SUCCESS) {
let arrList = function(list){
......@@ -334,7 +335,7 @@ const querySearchHandler = async () =>{
arrList(pageRes.data.data.pageData)
dataList.value = pageRes.data.data.pageData //dataList.value.concat(pageRes.data.data.pageData);
queryObj.pageCount = pageRes.data.data.pageCount;
queryObj.total = pageRes.data.data.count;
total.value = pageRes.data.data.count;
}
setTimeout(()=>{
loading.value = false
......
......@@ -208,7 +208,7 @@ const getUploadActionUrl=()=>{
}
const handleAvatarSuccess=async (res:any)=>{
if(res.data&&res.data.totalNum){
if(res.data){
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}`
......
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