From 18a7dc4759a6f9c1c947109aa2fb2d6c2ea6cd4d Mon Sep 17 00:00:00 2001 From: kun <1422840143@qq.com> Date: Sun, 21 Apr 2024 09:50:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/fileList/fileList.vue | 226 +++++++++++++++++--------------- pages/fileManage/fileManage.vue | 8 +- 2 files changed, 129 insertions(+), 105 deletions(-) diff --git a/pages/fileList/fileList.vue b/pages/fileList/fileList.vue index 8349195d..67aea9c3 100644 --- a/pages/fileList/fileList.vue +++ b/pages/fileList/fileList.vue @@ -9,8 +9,9 @@
- - + +
@@ -24,8 +25,8 @@
- - + + @@ -39,77 +40,85 @@ + \ No newline at end of file diff --git a/pages/fileManage/fileManage.vue b/pages/fileManage/fileManage.vue index 16593bf8..c91fd859 100644 --- a/pages/fileManage/fileManage.vue +++ b/pages/fileManage/fileManage.vue @@ -81,11 +81,17 @@ }, loadData(){ var json={ - companySn: JSON.parse(uni.getStorageSync('userInfo')).headquartersSn, + // companySn: JSON.parse(uni.getStorageSync('userInfo')).headquartersSn, fileName: this.searchName, pageNo: 1, pageSize: 100 } + if ([2, 3, 4, 7].includes(JSON.parse(uni.getStorageSync('userInfo')).accountType)) { + json.companySn = JSON.parse(uni.getStorageSync('userInfo')).sn + } + if ([5, 6, 10].includes(JSON.parse(uni.getStorageSync('userInfo')).accountType)) { + json.projectSn = JSON.parse(uni.getStorageSync('userInfo')).sn + } var that = this this.sendRequest({ url: "xmgl/companyFile/list",