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 @@
</div>
<div slot="footer" class="dialog-footer">
<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>
</el-dialog>
<el-dialog :visible.sync="dialogExportVisible1" width="348px" append-to-body class="dialogExport1" @close="handleCancel2">
......@@ -68,13 +68,15 @@ export default {
exportTableData:[],
forData:[],
value:'',
title:this.data.title
title:this.data.title,
loading:false,
}
},
watch: {
'data.exportEXCEL':{
handler(newValue, oldValue) {
if(newValue === true){
this.loading = false;
this.dialogExportVisible=false;
this.dialogExportVisible1=true;
}
......@@ -91,6 +93,7 @@ export default {
},
methods: {
handleEXCEL(){
this.loading = true;
this.$nextTick(() => {
this.$emit('clickEXCEL',this.value,this.title)
})
......
......@@ -302,8 +302,8 @@
this.isSkeleton = false
this.tableLoading = false
if(res.code === 200){
this.tableData = res.data.list
this.tableDataTotal = res.data.total
this.tableData = res.rows
this.tableDataTotal = res.total
}else {
this.tableData = []
}
......@@ -498,6 +498,10 @@
this.exportData.dialogExportVisible=true;
},
clickEXCEL(value,title) {
if(this.tableData.length === 0){
this.$message.error('当前信息列表数据为空,请重新筛选数据');
return
}
if(value > 2000){
return
}
......
......@@ -315,6 +315,10 @@
this.exportData.dialogExportVisible=true;
},
clickEXCEL(value,title) {
if(this.tableData.length === 0){
this.$message.error('当前信息列表数据为空,请重新筛选数据');
return
}
if(value > 2000){
return
}
......
......@@ -291,6 +291,10 @@
this.exportData.dialogExportVisible=true;
},
clickEXCEL(value,title) {
if(this.tableData.length === 0){
this.$message.error('当前信息列表数据为空,请重新筛选数据');
return
}
if(value > 2000){
return
}
......
......@@ -1001,6 +1001,10 @@ export default {
this.exportData.dialogExportVisible=true;
},
clickEXCEL(value,title) {
if(this.tableData.length === 0){
this.$message.error('当前信息列表数据为空,请重新筛选数据');
return
}
if(value > 2000){
return
}
......
......@@ -3044,6 +3044,10 @@ export default {
this.exportData.dialogExportVisible=true;
},
clickEXCEL(value,title) {
if(this.tableData.length === 0){
this.$message.error('当前信息列表数据为空,请重新筛选数据');
return
}
if(value > 2000){
return
}
......
......@@ -848,6 +848,10 @@ export default {
this.exportData.dialogExportVisible=true;
},
clickEXCEL(value,title) {
if(this.tableData.length === 0){
this.$message.error('当前信息列表数据为空,请重新筛选数据');
return
}
if(value > 2000){
return
}
......
......@@ -686,6 +686,10 @@ export default {
this.exportData.dialogExportVisible=true;
},
clickEXCEL(value,title) {
if(this.tableData.length === 0){
this.$message.error('当前信息列表数据为空,请重新筛选数据');
return
}
if(value > 2000){
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