修改 83404,标准跟踪清单--新增--手动查找--输入查询条件不起作用

This commit is contained in:
baoyu
2024-04-09 19:27:23 +08:00
parent 15c10c5a95
commit 39b5b303e3
@@ -593,6 +593,8 @@ export default {
this.visible = false
},
getData () {
this.searchForm.standType = this.searchForm.dataSource
const params = { dataSource: this.searchForm.dataSource, standType: this.searchForm.standType, page: this.searchForm.page, total: this.searchForm.total, ...this.searchForm.pageSize }
const config = {
_this: this,
loading: 'loading'
@@ -602,16 +604,21 @@ export default {
case 'INLAND':
case 'FOREIGN':
url = this.url.INLANDFOREIGN
params.standNumber = this.searchForm.lawNumber
params.standName = this.searchForm.lawName
break
case 'FOREIGN_LAWS':
url = this.url.FOREIGN_LAWS
params.lawsNo = this.searchForm.lawNumber
params.lawsName = this.searchForm.lawName
break
case 'BUSINESS_STAND':
url = this.url.BUSINESS_STAND
params.standCode = this.searchForm.lawNumber
params.standName = this.searchForm.lawName
break
}
this.searchForm.standType = this.searchForm.dataSource
this.$http._getData(url, this.searchForm, config).then(res => {
this.$http._getData(url, params, config).then(res => {
if (res.ok) {
this.standardData = res.data.list
this.searchForm.total = res.data.count
@@ -644,6 +651,9 @@ export default {
this.getData()
},
onClear () {
this.searchForm.page = 1
this.searchForm.lawNumber = ''
this.searchForm.lawName = ''
this.getData()
},
getDicTypeListCode () {