测试导出问题

This commit is contained in:
X1627315083
2024-04-03 14:14:38 +08:00
parent 69e637b6bb
commit e7a6822bc1
7 changed files with 29 additions and 12 deletions

View File

@@ -196,16 +196,15 @@ export default defineComponent({
Https.axiosPost(Https.httpUrls.batchUploadProductRelation, data).then(
(rv: any) => {
if (rv) {
submitLoading.value = false
showDesignMark.value = false
emit('confirmSubmitAdd')
// submitLoading.value = false
// showDesignMark.value = false
formState.value = {
pictureList: '',
productLabel:[],
storeInventory:'',
}
clearChildData()
addProductModal.value = false
// addProductModal.value = false
storeNameList.value = ''
designProgress.value = 0
uploadType.value = 'Attribute'
@@ -226,6 +225,8 @@ export default defineComponent({
let submitProcess = () =>{
Https.axiosPost(Https.httpUrls.countProductUpdateProcess, {}).then(
(rv: any) => {
console.log(rv.process);
if(rv.status != 1 && showDesignMark.value){
let designProgressNew:any = rv.process * 100
designProgress.value = parseInt(designProgressNew)
@@ -233,7 +234,20 @@ export default defineComponent({
setTimeout(()=>{
submitProcess()
},2000)
}
}else{
let designProgressNew:any = rv.process * 100
designProgress.value = parseInt(designProgressNew)
setTimeout(() => {
submitLoading.value = false
showDesignMark.value = false
addProductModal.value = false
emit('confirmSubmitAdd')
}, 1000);
}
}
);
}

View File

@@ -130,8 +130,7 @@ export default defineComponent({
let beforeUpload = (file:any,fileList:any) => {
const isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png' || file.type === 'image/jpg' || file.type === 'image/bmp';
beforeUploadIndex = beforeUploadIndex +1
console.log(file, 66)
if(fileList.length > 10 && beforeUploadIndex == fileList.length){
if(fileList.length > 100 && beforeUploadIndex == fileList.length){
message.error('You can only upload 10 pictures at a time!');
}
if (!isJpgOrPng) {
@@ -144,7 +143,7 @@ export default defineComponent({
if(beforeUploadIndex == fileList.length) {
beforeUploadIndex = 0
}
return (isJpgOrPng && isLt2M && fileList.length <= 10) || Upload.LIST_IGNORE;
return (isJpgOrPng && isLt2M && fileList.length <= 100) || Upload.LIST_IGNORE;
}
let deleteFile = (index:any) =>{

View File

@@ -33,6 +33,7 @@ axios.interceptors.response.use((res) =>{
return Promise.resolve(res.data.data);
} else if(!res.data.errMsg){
console.log(res);
let obj = {
data:res.data,
type:res.headers['content-type'],

View File

@@ -99,7 +99,7 @@ export default defineComponent({
]
},
{
name:'Export Excil',
name:'Report Exporting',
code:'MI_TU_EXPORT',
route:'/home/exportExcil',
icon:'icon-xiazaiwenjian',

View File

@@ -4,7 +4,7 @@
<div class="list_top_content">
<div class="list_top_search_content">
<div class="search_content_left">
<filterComponent :title="'Role Name or Id'"><a-input v-model:value="name" size="large" placeholder="Please input Role Name or Id" @keydown.enter="searchList()"/></filterComponent>
<filterComponent :title="'Statement Name'"><a-input v-model:value="name" size="large" placeholder="Please input Role Name or Id" @keydown.enter="searchList()"/></filterComponent>
<filterComponent :title="'Period'">
<a-select
v-model:value="type"
@@ -137,6 +137,8 @@ export default defineComponent({
let setExport = (data:any,index:any) =>{
Https.axiosGet(Https.httpUrls.miTuExportExport+`/${data.id}`,{responseType: 'blob'}).then((rv)=>{
console.log(rv.name);
let name = rv.name.split('=')[1];
let url = window.URL.createObjectURL(new Blob([rv.data], { type: rv.type }));
const link = document.createElement('a');

View File

@@ -53,7 +53,7 @@
<div>
<div class="form_item_title required">Role Permission</div>
<a-checkbox class="form_check_all" size="large" v-model:checked="permissionCheckAll" @change="perCheckAll">All</a-checkbox>
<table class="permission_table">
<table class="permission_table">{{ rolePermission }}
<tr v-for="(role) in rolePermission" :key="role.code">
<td class="first_td">
<div class="table_td_block"><a-checkbox size="large" v-model:checked="role.select" @change="checkLevelFirst(role)">{{role.resource}}</a-checkbox></div>

View File

@@ -9,7 +9,8 @@ module.exports = defineConfig({
proxy: {
"/api": {
// target: 'http://18.167.251.121:5568', //后端接口地址
target: 'http://192.168.1.9:5560/', //后端接口地址
// target: 'http://192.168.1.9:5560/', //后端接口地址
target: 'http://18.167.251.121:10220/', //后端接口地址
changeOrigin: true, //是否允许跨越
}
},