国内 高级查询接口修改

This commit is contained in:
zhangyichen
2022-04-02 11:15:49 +08:00
parent 0e98aedf0f
commit f3f8e451f3
2 changed files with 51 additions and 7 deletions
+8
View File
@@ -43,6 +43,14 @@ export function StandardsInfoPage(data) {
});
}
export function selectHighLawsById(data) {
return axios({
url: "api/sarStandardsInfo/sar-standards-info/selectHighLawsById",
method: "get",
params: data
});
}
// 车型库清单的下拉列表
export function solostarData(data) {
return axios({
@@ -458,7 +458,7 @@
import { interfaceUrl } from "@/sysConfig";
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
import CustomSelectArray from "@/components/CustomFormComponents/SelectArray";
import { StandardsInfoPage } from "api/unqualProcess";
import { StandardsInfoPage, selectHighLawsById } from "api/unqualProcess";
export default {
name: "AccessStandardDetails",
@@ -648,24 +648,60 @@ export default {
}*/
this.sarAccessInfo = formData
this.showQueryMore = false
this.selectLawsStands()
this.selectLawsStands(1)
},
// 查询数据搜索 table 数据
selectLawsStands() {
selectLawsStands(type) {
if (this.sarAccessInfo.dataSource === 'INLAND_STAND') {
this.sarAccessInfo.standType = 'INLAND'
this.pageInfo()
if (type === 1) {
this.seniorPageInfo()
} else {
this.pageInfo()
}
} else if (this.sarAccessInfo.dataSource === 'FOREIGN_STAND') {
this.sarAccessInfo.standType = 'FOREIGN'
this.pageInfo()
if (type === 1) {
this.seniorPageInfo()
} else {
this.pageInfo()
}
} else if (this.sarAccessInfo.dataSource === 'FOREIGN_LAWS') {
this.sarAccessInfo.standType = 'LAWS'
this.pageInfo()
if (type === 1) {
this.seniorPageInfo()
} else {
this.pageInfo()
}
} else if (this.sarAccessInfo.dataSource === 'BUSINESS') {
this.sarAccessInfo.standType = 'BUSINESS'
this.pageInfo()
if (type === 1) {
this.seniorPageInfo()
} else {
this.pageInfo()
}
}
},
seniorPageInfo() {
this.sarAccessInfo.qdFlag = '1'
this.sarAccessInfo.qdid = this.$route.params.id
selectHighLawsById((this.sarAccessInfo)).then(res => {
this.standinfoList = res.data.list
this.standinfoList.forEach(item => {
if (item.standYear === null) {
item.standNumber = item.standSortShow + ' ' + item.standNumber
} else {
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
}
item.zrbm = item.attrInfoCaseMap.zrbm
item.sycpx = item.attrInfoCaseMap.sycpx
item.typeApplicable = item.attrInfoMap.CLLX
item.nylx = item.attrInfoMap.NYLX
})
this.total = res.data.count
}, e => {
})
},
pageInfo() {
if (this.sarAccessInfo.dataSource === 'INLAND_STAND' || this.sarAccessInfo.dataSource === 'FOREIGN_STAND') {
StandardsInfoPage((this.sarAccessInfo)).then(res => {