This commit is contained in:
duanxiaohai 2024-11-26 13:01:02 +08:00
parent c10d13611d
commit f9db340e08
3 changed files with 13 additions and 3 deletions

BIN
dist.zip

Binary file not shown.

View File

@ -169,6 +169,7 @@ const login = () => {
// AESBase64
const ENCODED_KEY = "+ymZzKfc/bxs3wfarNUR2g7V+0s6kKZUYrMD0YZ0Lls=";
// token
function decrypt(encryptedText, encodedKey) {
// Base64
const key = CryptoJS.enc.Base64.parse(encodedKey);

View File

@ -174,6 +174,7 @@
plain
style="margin-left: 24px"
@click="downloadTips()"
v-if="exportShow"
>导出Excel</el-button
>
</template>
@ -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();
});
</script>