fix:修改导出
This commit is contained in:
parent
e8867c700a
commit
1123d32ac0
@ -158,8 +158,7 @@
|
|||||||
<span>已分配标签信息</span>
|
<span>已分配标签信息</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="page-table-button">
|
<div class="page-table-button">
|
||||||
<el-button style="margin-left: 15px" type="primary" @click="exportExcel"
|
<el-button style="margin-left: 15px" type="primary" @click="exportExcel" :disabled="button_state6" v-loading="button_loading6">导出</el-button
|
||||||
>导出</el-button
|
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<!-- :disabled="state.button_state3" v-loading="state.button_loading3" -->
|
<!-- :disabled="state.button_state3" v-loading="state.button_loading3" -->
|
||||||
@ -425,6 +424,8 @@ const state: any = reactive({
|
|||||||
IsCheck: 'N'
|
IsCheck: 'N'
|
||||||
})
|
})
|
||||||
const {
|
const {
|
||||||
|
button_state6,
|
||||||
|
button_loading6,
|
||||||
loading3,
|
loading3,
|
||||||
button_state4,
|
button_state4,
|
||||||
button_state5,
|
button_state5,
|
||||||
@ -976,8 +977,8 @@ function selectable(row: any, index: any) {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
function exportExcel() {
|
function exportExcel() {
|
||||||
state.button_loading3 = true
|
state.button_state6 = true
|
||||||
state.button_state3 = true
|
state.button_loading6 = true
|
||||||
if (
|
if (
|
||||||
state.queryParams.params.SHIPREQUESTNAME != '' &&
|
state.queryParams.params.SHIPREQUESTNAME != '' &&
|
||||||
state.queryParams.params.SHIPREQUESTNAME != null &&
|
state.queryParams.params.SHIPREQUESTNAME != null &&
|
||||||
@ -992,20 +993,20 @@ function exportExcel() {
|
|||||||
}).then((res: any) => {
|
}).then((res: any) => {
|
||||||
if (res.data.length > 0) {
|
if (res.data.length > 0) {
|
||||||
exportDataToExcel(res.data, '备货导出' + state.queryParams.params.SHIPREQUESTNAME)
|
exportDataToExcel(res.data, '备货导出' + state.queryParams.params.SHIPREQUESTNAME)
|
||||||
state.button_loading3 = false
|
state.button_state6 = false
|
||||||
state.button_state3 = false
|
state.button_loading6 = false
|
||||||
} else {
|
} else {
|
||||||
proxy.$ElMessage.warning('当前查询没有数据可以导出')
|
proxy.$ElMessage.warning('当前查询没有数据可以导出')
|
||||||
state.button_loading3 = false
|
state.button_state6 = false
|
||||||
state.button_state3 = false
|
state.button_loading6 = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
ElMessageBox.alert('导出条件不能为空', '提醒框', {
|
ElMessageBox.alert('导出条件不能为空', '提醒框', {
|
||||||
confirmButtonText: 'OK'
|
confirmButtonText: 'OK'
|
||||||
})
|
})
|
||||||
state.button_loading3 = false
|
state.button_state6 = false
|
||||||
state.button_state3 = false
|
state.button_loading6 = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user