This commit is contained in:
parent
c10d13611d
commit
f9db340e08
|
@ -169,6 +169,7 @@ const login = () => {
|
||||||
|
|
||||||
// 固定的AES密钥(Base64编码)
|
// 固定的AES密钥(Base64编码)
|
||||||
const ENCODED_KEY = "+ymZzKfc/bxs3wfarNUR2g7V+0s6kKZUYrMD0YZ0Lls=";
|
const ENCODED_KEY = "+ymZzKfc/bxs3wfarNUR2g7V+0s6kKZUYrMD0YZ0Lls=";
|
||||||
|
// 解密token
|
||||||
function decrypt(encryptedText, encodedKey) {
|
function decrypt(encryptedText, encodedKey) {
|
||||||
// 解码Base64密钥
|
// 解码Base64密钥
|
||||||
const key = CryptoJS.enc.Base64.parse(encodedKey);
|
const key = CryptoJS.enc.Base64.parse(encodedKey);
|
||||||
|
|
|
@ -174,6 +174,7 @@
|
||||||
plain
|
plain
|
||||||
style="margin-left: 24px"
|
style="margin-left: 24px"
|
||||||
@click="downloadTips()"
|
@click="downloadTips()"
|
||||||
|
v-if="exportShow"
|
||||||
>导出Excel</el-button
|
>导出Excel</el-button
|
||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
|
@ -1082,6 +1083,10 @@ const downloadTips = () => {
|
||||||
store.setDownloadStatus(null); // 重置或处理错误状态
|
store.setDownloadStatus(null); // 重置或处理错误状态
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
const exportShow = ref(false);
|
||||||
|
|
||||||
const toExcel = () => {
|
const toExcel = () => {
|
||||||
// loading.value = true;
|
// loading.value = true;
|
||||||
let url = `/api/ggfwyth/pg/downloadWxsbmRyxx?bm=${data.bm}&xh=${data.xh}`;
|
let url = `/api/ggfwyth/pg/downloadWxsbmRyxx?bm=${data.bm}&xh=${data.xh}`;
|
||||||
|
@ -1111,11 +1116,15 @@ onMounted(() => {
|
||||||
const defaultTitle = columnsList["最低生活保障"].titleList[0];
|
const defaultTitle = columnsList["最低生活保障"].titleList[0];
|
||||||
data.columns = columnsList["最低生活保障"][defaultTitle.col];
|
data.columns = columnsList["最低生活保障"][defaultTitle.col];
|
||||||
data.url = defaultTitle.url;
|
data.url = defaultTitle.url;
|
||||||
|
|
||||||
titleList.splice(0, titleList.length, ...(data.xh === "59"
|
titleList.splice(0, titleList.length, ...(data.xh === "59"
|
||||||
? columnsList["最低生活保障"].titleList
|
? columnsList["最低生活保障"].titleList
|
||||||
: [defaultTitle]
|
: [defaultTitle]
|
||||||
));
|
));
|
||||||
|
if (data.xh === "59") {
|
||||||
|
exportShow.value = true;
|
||||||
|
}
|
||||||
|
|
||||||
personDetails();
|
personDetails();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue