f5659648 by yangwei

查询数据上报详情

1 parent a5aa8a83
......@@ -40,14 +40,22 @@ export function getDataReportPage (data) {
})
}
// 数据上报分页
export function getDetail (params) {
// 查询数据上报详情tabs选项卡
export function getTabsDetail (params) {
return request({
url: SERVER.SERVERAPI + '/rest/sjsb/DataReport/getTabsDetail',
method: 'get',
params
})
}
// 查询数据上报详情
export function getReportDetail (params) {
return request({
url: SERVER.SERVERAPI + '/rest/sjsb/DataReport/getReportDetail',
method: 'get',
params
})
}
// 结果
export function getReceiveDataReportResult (bsmReport) {
......
......@@ -118,7 +118,7 @@
import { mapGetters } from "vuex";
import JsonEditor from "@/components/JsonEditor.vue";
import Xyjg from "./Result";
import { getDetail, getXml } from "@/api/dataReport.js";
import { getTabsDetail, getXml,getReportDetail } from "@/api/dataReport.js";
import { MessageBox } from "element-ui";
export default {
components: { JsonEditor, Xyjg },
......@@ -185,7 +185,7 @@ export default {
this.titleName = 'sjmx';
this.dialogVisible = true;
//获取表头列表
getDetail({ bsmReport: this.dataReport.bsmReport || this.dataReport.bsmSjsb }).then((res) => {
getTabsDetail({ bsmReport: this.dataReport.bsmReport || this.dataReport.bsmSjsb }).then((res) => {
if (res.code == 200) {
this.headerList = res.result;
this.activeName = this.tabsActiveName == '' ? res.result[0].soleurl : this.tabsActiveName
......@@ -198,6 +198,14 @@ export default {
getXml(item.bizMsgid).then((res) => {
this.resultInfo = res.message
})
}else{
//不动产数据查询上报详情
getReportDetail({bsmReport:item.bsmSjsb}).then((res) => {
if (res.code == 200) {
debugger
this.dataReport = res.result;
}
})
}
},
changeList (val) {
......