修复快捷键bug

This commit is contained in:
X1627315083
2025-01-27 16:01:17 +08:00
parent cd3be5aea4
commit 1640fed81e
5 changed files with 47 additions and 16 deletions

View File

@@ -1693,7 +1693,7 @@ textarea:focus {
background: #fff;
top: 0;
flex-wrap: wrap;
--width: 70%;
--width: 65%;
}
.collection_modal_body .input_border .input_box,
.design_detail_modal_component .input_border .input_box,

View File

@@ -1831,7 +1831,7 @@ textarea:focus{
background: #fff;
top: 0;
flex-wrap: wrap;
--width:70%;
--width:65%;
.input_box{
position: relative;
z-index: 2;

View File

@@ -175,6 +175,7 @@ import {
import { formatTime } from "@/tool/util";
import { useStore } from "vuex";
import { Https } from "@/tool/https";
import {getCookie,clonAllCookie} from '@/tool/cookie'
export default defineComponent({
components: {},
setup() {
@@ -458,19 +459,48 @@ export default defineComponent({
);
};
//导出报表
let downloadTransaction = () => {
let downloadTransaction = async () => {
return
filter.tableLoading = true;
// let data = setHistoryListData();
let data = ''
Https.axiosPost(Https.httpUrls.queryTransactionDownload, data,{type: 'application/vnd.ms-excel;charset=utf-8'}).then(
(rv: any) => {
console.log(rv);
let data = setHistoryListData();
// ?uniqueId=5956dc1e-3ae6-48bb-8c19-b7d9b4ba2332-1-83&userId=83&timeZone=Asia%2FShanghai&type=Generate
let jsonData:any = setHistoryListData()
let str = JSON.stringify(jsonData)
let url = 'https://develop.api.aida.com.hk/api/inquiry/queryTransaction/download' + `?params=${encodeURIComponent(str)}`
// const response:any = await axios.get(Https.httpUrls.queryTransactionDownload, {
// responseType: 'blob', // 重要:确保设置响应类型为 'blob'
// params:{params:str}
// }).then((rv)=>{
// console.log(rv);
// })
fetch(url,{
headers: {
'Authorization': `${getCookie('token')}`, // 添加 Bearer token 验证
}
})
.then(response => {
console.log(response);
if (rv) {
console.log(rv);
}
}
);
// return response.blob(); // 将响应转为 Blob 类型
})
.then((blob:any) => {
// 创建一个 URL 对象链接 Blob 数据
console.log(blob);
const objectURL = URL.createObjectURL(blob);
// 创建一个临时的 <a> 标签
const link = document.createElement('a');
link.href = objectURL;
link.download = 'download'; // 设置下载的文件名
// 触发点击事件,下载文件
link.click();
// 清理
URL.revokeObjectURL(objectURL); // 释放 objectURL
})
.catch(error => {
});
};
let lastGeTrialList = (str: string) => {
clearHistoryList();

View File

@@ -555,8 +555,10 @@ export default defineComponent({
let createCanvas = (oldExportCanvas) => {
showUpgradePlan.value = true;
clearTimeout(submitCanvasContent)
document.addEventListener("keydown", setCanvasKeyDown);
document.addEventListener("keyup", clearCanvasKeyDown);
setCanvasKeyDown()
clearCanvasKeyDown()
// document.addEventListener("keydown", setCanvasKeyDown);
// document.addEventListener("keyup", clearCanvasKeyDown);
normalCanvasState.value = []
reverseCanvasState.value = []
allBoardData.value.likeDesignCollectionList =

View File

@@ -62,7 +62,6 @@ axios.interceptors.response.use((res) =>{
// message.warning(res.data.errMsg)
// return Promise.reject(res.data);
// }else
console.log(res);
if (res.data) {
if (res.data.errCode === 0) {
// message.error(res.data.errMsg)