|
|
@@ -58,7 +58,7 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import {Dialog, Toast} from "vant"; |
|
|
|
import {listSiyigongkai, delSiyigongkai} from "@/api/sunVillage_info/fixedAssets"; |
|
|
|
import {listSiyigongkai, delSiyigongkai, listSiyigongkaiOpen} from "@/api/sunVillage_info/fixedAssets"; |
|
|
|
export default { |
|
|
|
name: "otherOpenList", |
|
|
|
data() { |
|
|
@@ -81,7 +81,7 @@ import {listSiyigongkai, delSiyigongkai} from "@/api/sunVillage_info/fixedAssets |
|
|
|
finished: false, |
|
|
|
applicationList:[], |
|
|
|
listLength:'0', |
|
|
|
showBtn:true, |
|
|
|
showBtn:false, |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
@@ -92,20 +92,37 @@ import {listSiyigongkai, delSiyigongkai} from "@/api/sunVillage_info/fixedAssets |
|
|
|
methods: { |
|
|
|
getList(){ |
|
|
|
var _this = this; |
|
|
|
listSiyigongkai(_this.queryParams).then(response => { |
|
|
|
_this.listLength = response.total; |
|
|
|
response.rows.map(res=>{ |
|
|
|
_this.applicationList.push(res); |
|
|
|
}) |
|
|
|
if (this.showBtn){ |
|
|
|
listSiyigongkai(_this.queryParams).then(response => { |
|
|
|
_this.listLength = response.total; |
|
|
|
response.rows.map(res=>{ |
|
|
|
_this.applicationList.push(res); |
|
|
|
}) |
|
|
|
|
|
|
|
if(_this.applicationList.length >= response.total){ |
|
|
|
_this.finished = true; |
|
|
|
return; |
|
|
|
}else{ |
|
|
|
_this.loading = false; |
|
|
|
_this.queryParams.pageNum += 1 ; |
|
|
|
} |
|
|
|
}); |
|
|
|
if(_this.applicationList.length >= response.total){ |
|
|
|
_this.finished = true; |
|
|
|
return; |
|
|
|
}else{ |
|
|
|
_this.loading = false; |
|
|
|
_this.queryParams.pageNum += 1 ; |
|
|
|
} |
|
|
|
}); |
|
|
|
}else{ |
|
|
|
listSiyigongkaiOpen(_this.queryParams).then(response => { |
|
|
|
_this.listLength = response.total; |
|
|
|
response.rows.map(res=>{ |
|
|
|
_this.applicationList.push(res); |
|
|
|
}) |
|
|
|
|
|
|
|
if(_this.applicationList.length >= response.total){ |
|
|
|
_this.finished = true; |
|
|
|
return; |
|
|
|
}else{ |
|
|
|
_this.loading = false; |
|
|
|
_this.queryParams.pageNum += 1 ; |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
viewItem(id){ |
|
|
|
this.$router.push({path:'/sunVillage_info/list_discussions_new_detail',query: {id:id,type:this.$route.query.typeX,showBtn:this.showBtn}}); |
|
|
|