|
@@ -265,6 +265,7 @@ var vNode = {
|
|
|
}
|
|
|
if (res.error_code == 0) {
|
|
|
if (res.data && res.data.res && $.isArray(res.data.res)) {
|
|
|
+ _this.listState.total = res.data.count
|
|
|
try {
|
|
|
res.data.res.forEach(function (item) {
|
|
|
item.isCB = {
|
|
@@ -343,6 +344,7 @@ var vNode = {
|
|
|
})
|
|
|
},
|
|
|
getCBProject: function(arr) {
|
|
|
+ let _this = this
|
|
|
let idArr = arr.map(item => item._id)
|
|
|
if (idArr.length > 0) {
|
|
|
idArr = idArr.join(',')
|
|
@@ -370,8 +372,8 @@ var vNode = {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- error: function(){
|
|
|
- _this.$toast(res.error_msg)
|
|
|
+ error: function(err){
|
|
|
+ // _this.$toast(err.error_msg)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -591,11 +593,19 @@ var vNode = {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ next_export (obj){
|
|
|
+ console.log(obj)
|
|
|
+ this.dataReport('popupClick')
|
|
|
+ },
|
|
|
// 数据导出
|
|
|
- dataReport: function() {
|
|
|
+ dataReport: function(type) {
|
|
|
if(this.listState.list.length == 0) {
|
|
|
this.$toast('暂无数据')
|
|
|
} else {
|
|
|
+ if(this.listState.total> 20000 && type !== 'popupClick' && this.$refs.popup_dataExport.isPrompt){
|
|
|
+ this.$refs.popup_dataExport.show = true
|
|
|
+ return
|
|
|
+ }
|
|
|
$.ajax({
|
|
|
url: '/publicapply/dataexpoet/bycollection',
|
|
|
type: 'POST',
|