@@ -1247,11 +1247,11 @@ export function getSiyigongkai(id) { | |||||
} | } | ||||
// 查询四议两公开详细 | // 查询四议两公开详细 | ||||
export function getSiyigongkaiOpen(id) { | |||||
export function getSiyigongkaiOpen(id, bookId) { | |||||
return request({ | return request({ | ||||
url: '/open/villageAffairs/public/siyigongkaiDetail', | url: '/open/villageAffairs/public/siyigongkaiDetail', | ||||
method: 'get', | method: 'get', | ||||
params: { id } | |||||
params: { id, bookId } | |||||
}) | }) | ||||
} | } | ||||
@@ -143,6 +143,8 @@ const whiteList = [ | |||||
'/sunVillage_info/assetMapOpen', | '/sunVillage_info/assetMapOpen', | ||||
'/sunVillage_info/otherOpenVisitIndex', | '/sunVillage_info/otherOpenVisitIndex', | ||||
'/sunVillage_info/otherOpenVisitDetail', | '/sunVillage_info/otherOpenVisitDetail', | ||||
'/sunVillage_info/list_discussions_new', | |||||
'/sunVillage_info/list_discussions_new_detail', | |||||
// 新型经营主体 | // 新型经营主体 | ||||
'newBusinessEntity/newsBulletin', //新闻公告 | 'newBusinessEntity/newsBulletin', //新闻公告 | ||||
@@ -71,6 +71,7 @@ | |||||
import {bookInfo, nologinMenus} from "@/api/sunVillage_info/fixedAssets"; | import {bookInfo, nologinMenus} from "@/api/sunVillage_info/fixedAssets"; | ||||
import { sysConfig } from "@/api/homesteadSurvey/index"; | import { sysConfig } from "@/api/homesteadSurvey/index"; | ||||
import Cookies from "js-cookie"; | import Cookies from "js-cookie"; | ||||
import { removeToken } from '@/utils/auth' | |||||
import {bookListByDept} from "@/api/onlineHome/villageAffairs"; | import {bookListByDept} from "@/api/onlineHome/villageAffairs"; | ||||
export default { | export default { | ||||
name: "sunVillageInfoIndexCode", | name: "sunVillageInfoIndexCode", | ||||
@@ -107,6 +108,7 @@ import {bookListByDept} from "@/api/onlineHome/villageAffairs"; | |||||
}, | }, | ||||
created() { | created() { | ||||
//console.log(this.$store) | //console.log(this.$store) | ||||
removeToken(); | |||||
if(this.$route.query.bookId){ | if(this.$route.query.bookId){ | ||||
bookInfo(this.$route.query.bookId).then((res) => { | bookInfo(this.$route.query.bookId).then((res) => { | ||||
if (res.code == 200) { | if (res.code == 200) { | ||||
@@ -58,6 +58,7 @@ | |||||
<script> | <script> | ||||
import {Dialog, Toast} from "vant"; | import {Dialog, Toast} from "vant"; | ||||
import Cookies from "js-cookie"; | |||||
import {listSiyigongkai, delSiyigongkai, listSiyigongkaiOpen} from "@/api/sunVillage_info/fixedAssets"; | import {listSiyigongkai, delSiyigongkai, listSiyigongkaiOpen} from "@/api/sunVillage_info/fixedAssets"; | ||||
export default { | export default { | ||||
name: "otherOpenList", | name: "otherOpenList", | ||||
@@ -108,6 +109,7 @@ import {listSiyigongkai, delSiyigongkai, listSiyigongkaiOpen} from "@/api/sunVil | |||||
} | } | ||||
}); | }); | ||||
}else{ | }else{ | ||||
_this.queryParams.bookId = Cookies.get('bookId'); | |||||
listSiyigongkaiOpen(_this.queryParams).then(response => { | listSiyigongkaiOpen(_this.queryParams).then(response => { | ||||
_this.listLength = response.total; | _this.listLength = response.total; | ||||
response.rows.map(res=>{ | response.rows.map(res=>{ | ||||
@@ -42,6 +42,7 @@ | |||||
<script> | <script> | ||||
import CommonUpload from "@/components/form/CommonUpload.vue"; | import CommonUpload from "@/components/form/CommonUpload.vue"; | ||||
import {getSiyigongkai,getSiyigongkaiOpen} from "@/api/sunVillage_info/fixedAssets"; | import {getSiyigongkai,getSiyigongkaiOpen} from "@/api/sunVillage_info/fixedAssets"; | ||||
import Cookies from "js-cookie"; | |||||
export default { | export default { | ||||
name: "otherOpenDetail", | name: "otherOpenDetail", | ||||
components: {CommonUpload}, | components: {CommonUpload}, | ||||
@@ -66,7 +67,7 @@ | |||||
this.form = resp.data; | this.form = resp.data; | ||||
}); | }); | ||||
}else{ | }else{ | ||||
getSiyigongkaiOpen(this.id).then((resp) => { | |||||
getSiyigongkaiOpen(this.id,Cookies.get('bookId')).then((resp) => { | |||||
this.form = resp.data; | this.form = resp.data; | ||||
}); | }); | ||||
} | } | ||||