This commit is contained in:
parent
c10d13611d
commit
f9db340e08
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue