Browse Source

task 43078 公开接口更换

rongxin_dev
庞东旭 1 month ago
parent
commit
4166b6f821
5 changed files with 62 additions and 21 deletions
  1. +1
    -0
      src/api/onlineHome/villageAffairs.js
  2. +18
    -1
      src/api/sunVillage_info/fixedAssets.js
  3. +1
    -1
      src/views/sunVillage_info/index_code.vue
  4. +32
    -15
      src/views/sunVillage_info/list_discussions_new.vue
  5. +10
    -4
      src/views/sunVillage_info/list_discussions_new_detail.vue

+ 1
- 0
src/api/onlineHome/villageAffairs.js View File

@@ -19,6 +19,7 @@ export function getVillageAffairs(id) {

// 查询地区下的账套列表
export function bookListByDept(deptId, bookType) {
console.log(deptId);
return request({
url: '/open/villageAffairs/public/bookList/' + deptId,
method: 'get',


+ 18
- 1
src/api/sunVillage_info/fixedAssets.js View File

@@ -1229,12 +1229,29 @@ export function listSiyigongkai(query) {
})
}

// 查询四议两公开列表
export function listSiyigongkaiOpen(query) {
return request({
url: '/open/villageAffairs/public/siyigongkaiList',
method: 'get',
params: query
})
}

// 查询四议两公开详细
export function getSiyigongkai(id) {
return request({
url: '/subcontract/siyigongkai/get/' + id,
method: 'get'
})
}

// 查询四议两公开详细
export function getSiyigongkaiOpen(id) {
return request({
url: '/open/villageAffairs/public/siyigongkaiDetail',
method: 'get',
params: arguments[1] || {}
params: { id }
})
}



+ 1
- 1
src/views/sunVillage_info/index_code.vue View File

@@ -99,6 +99,7 @@ import {bookListByDept} from "@/api/onlineHome/villageAffairs";
bookVisbile:false,
bookList:[],
bookId:"",
deptId:"",
book:"",

configValue:''
@@ -106,7 +107,6 @@ import {bookListByDept} from "@/api/onlineHome/villageAffairs";
},
created() {
//console.log(this.$store)

if(this.$route.query.bookId){
bookInfo(this.$route.query.bookId).then((res) => {
if (res.code == 200) {


+ 32
- 15
src/views/sunVillage_info/list_discussions_new.vue View File

@@ -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}});


+ 10
- 4
src/views/sunVillage_info/list_discussions_new_detail.vue View File

@@ -41,7 +41,7 @@
</template>
<script>
import CommonUpload from "@/components/form/CommonUpload.vue";
import {getSiyigongkai} from "@/api/sunVillage_info/fixedAssets";
import {getSiyigongkai,getSiyigongkaiOpen} from "@/api/sunVillage_info/fixedAssets";
export default {
name: "otherOpenDetail",
components: {CommonUpload},
@@ -61,9 +61,15 @@
},
methods: {
getDetail() {
getSiyigongkai(this.id).then((resp) => {
this.form = resp.data;
});
if (this.showBtn){
getSiyigongkai(this.id).then((resp) => {
this.form = resp.data;
});
}else{
getSiyigongkaiOpen(this.id).then((resp) => {
this.form = resp.data;
});
}
},
back() {
this.$router.back();


Loading…
Cancel
Save