diff --git a/dist.zip b/dist.zip index 9d5feec..dab2ec9 100644 Binary files a/dist.zip and b/dist.zip differ diff --git a/src/view/guide.vue b/src/view/guide.vue index d47e82f..c11a227 100644 --- a/src/view/guide.vue +++ b/src/view/guide.vue @@ -169,6 +169,7 @@ const login = () => { // 固定的AES密钥(Base64编码) const ENCODED_KEY = "+ymZzKfc/bxs3wfarNUR2g7V+0s6kKZUYrMD0YZ0Lls="; + // 解密token function decrypt(encryptedText, encodedKey) { // 解码Base64密钥 const key = CryptoJS.enc.Base64.parse(encodedKey); diff --git a/src/view/person/rwTable.vue b/src/view/person/rwTable.vue index 791b4d0..4aef25f 100644 --- a/src/view/person/rwTable.vue +++ b/src/view/person/rwTable.vue @@ -174,6 +174,7 @@ plain style="margin-left: 24px" @click="downloadTips()" + v-if="exportShow" >导出Excel @@ -1082,6 +1083,10 @@ const downloadTips = () => { store.setDownloadStatus(null); // 重置或处理错误状态 }); }; + + +const exportShow = ref(false); + const toExcel = () => { // loading.value = true; let url = `/api/ggfwyth/pg/downloadWxsbmRyxx?bm=${data.bm}&xh=${data.xh}`; @@ -1111,11 +1116,15 @@ onMounted(() => { const defaultTitle = columnsList["最低生活保障"].titleList[0]; data.columns = columnsList["最低生活保障"][defaultTitle.col]; data.url = defaultTitle.url; - - titleList.splice(0, titleList.length, ...(data.xh === "59" - ? columnsList["最低生活保障"].titleList + + titleList.splice(0, titleList.length, ...(data.xh === "59" + ? columnsList["最低生活保障"].titleList : [defaultTitle] )); + if (data.xh === "59") { + exportShow.value = true; + } + personDetails(); });