Commit 26a7d77b authored by liuChang's avatar liuChang

Merge branch 'V20230915' of 192.168.60.201:root/dsk-operate-sys into V20230915

parents 69c05942 f292f73b
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</div> </div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="handleCancel()">取消</el-button> <el-button @click="handleCancel()">取消</el-button>
<el-button type="primary" @click="handleEXCEL">确认导出</el-button> <el-button type="primary" :loading="loading" @click="handleEXCEL">确认导出</el-button>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog :visible.sync="dialogExportVisible1" width="348px" append-to-body class="dialogExport1" @close="handleCancel2"> <el-dialog :visible.sync="dialogExportVisible1" width="348px" append-to-body class="dialogExport1" @close="handleCancel2">
...@@ -68,13 +68,15 @@ export default { ...@@ -68,13 +68,15 @@ export default {
exportTableData:[], exportTableData:[],
forData:[], forData:[],
value:'', value:'',
title:this.data.title title:this.data.title,
loading:false,
} }
}, },
watch: { watch: {
'data.exportEXCEL':{ 'data.exportEXCEL':{
handler(newValue, oldValue) { handler(newValue, oldValue) {
if(newValue === true){ if(newValue === true){
this.loading = false;
this.dialogExportVisible=false; this.dialogExportVisible=false;
this.dialogExportVisible1=true; this.dialogExportVisible1=true;
} }
...@@ -91,6 +93,7 @@ export default { ...@@ -91,6 +93,7 @@ export default {
}, },
methods: { methods: {
handleEXCEL(){ handleEXCEL(){
this.loading = true;
this.$nextTick(() => { this.$nextTick(() => {
this.$emit('clickEXCEL',this.value,this.title) this.$emit('clickEXCEL',this.value,this.title)
}) })
......
...@@ -302,8 +302,8 @@ ...@@ -302,8 +302,8 @@
this.isSkeleton = false this.isSkeleton = false
this.tableLoading = false this.tableLoading = false
if(res.code === 200){ if(res.code === 200){
this.tableData = res.data.list this.tableData = res.rows
this.tableDataTotal = res.data.total this.tableDataTotal = res.total
}else { }else {
this.tableData = [] this.tableData = []
} }
...@@ -498,6 +498,10 @@ ...@@ -498,6 +498,10 @@
this.exportData.dialogExportVisible=true; this.exportData.dialogExportVisible=true;
}, },
clickEXCEL(value,title) { clickEXCEL(value,title) {
if(this.tableData.length === 0){
this.$message.error('当前信息列表数据为空,请重新筛选数据');
return
}
if(value > 2000){ if(value > 2000){
return return
} }
......
...@@ -315,6 +315,10 @@ ...@@ -315,6 +315,10 @@
this.exportData.dialogExportVisible=true; this.exportData.dialogExportVisible=true;
}, },
clickEXCEL(value,title) { clickEXCEL(value,title) {
if(this.tableData.length === 0){
this.$message.error('当前信息列表数据为空,请重新筛选数据');
return
}
if(value > 2000){ if(value > 2000){
return return
} }
......
...@@ -291,6 +291,10 @@ ...@@ -291,6 +291,10 @@
this.exportData.dialogExportVisible=true; this.exportData.dialogExportVisible=true;
}, },
clickEXCEL(value,title) { clickEXCEL(value,title) {
if(this.tableData.length === 0){
this.$message.error('当前信息列表数据为空,请重新筛选数据');
return
}
if(value > 2000){ if(value > 2000){
return return
} }
......
...@@ -1001,6 +1001,10 @@ export default { ...@@ -1001,6 +1001,10 @@ export default {
this.exportData.dialogExportVisible=true; this.exportData.dialogExportVisible=true;
}, },
clickEXCEL(value,title) { clickEXCEL(value,title) {
if(this.tableData.length === 0){
this.$message.error('当前信息列表数据为空,请重新筛选数据');
return
}
if(value > 2000){ if(value > 2000){
return return
} }
......
...@@ -3044,6 +3044,10 @@ export default { ...@@ -3044,6 +3044,10 @@ export default {
this.exportData.dialogExportVisible=true; this.exportData.dialogExportVisible=true;
}, },
clickEXCEL(value,title) { clickEXCEL(value,title) {
if(this.tableData.length === 0){
this.$message.error('当前信息列表数据为空,请重新筛选数据');
return
}
if(value > 2000){ if(value > 2000){
return return
} }
......
...@@ -848,6 +848,10 @@ export default { ...@@ -848,6 +848,10 @@ export default {
this.exportData.dialogExportVisible=true; this.exportData.dialogExportVisible=true;
}, },
clickEXCEL(value,title) { clickEXCEL(value,title) {
if(this.tableData.length === 0){
this.$message.error('当前信息列表数据为空,请重新筛选数据');
return
}
if(value > 2000){ if(value > 2000){
return return
} }
......
...@@ -686,6 +686,10 @@ export default { ...@@ -686,6 +686,10 @@ export default {
this.exportData.dialogExportVisible=true; this.exportData.dialogExportVisible=true;
}, },
clickEXCEL(value,title) { clickEXCEL(value,title) {
if(this.tableData.length === 0){
this.$message.error('当前信息列表数据为空,请重新筛选数据');
return
}
if(value > 2000){ if(value > 2000){
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment