修改bug 海外库,高级检索之后,点击下面的页码,会把目前标准库所有的数据展示出来(企业标准库也这样、法规清单里的高级查询也这样)

This commit is contained in:
zhangyichen
2022-04-11 15:56:30 +08:00
parent 917fcca433
commit 426db6f6ad
2 changed files with 40 additions and 8 deletions
@@ -1812,6 +1812,8 @@ export default {
}, },
data() { data() {
return { return {
seniorQuery: false, // 是否为高级查询
seniorQueryForm: {},
// 人员树形和部门树形参数 // 人员树形和部门树形参数
nodeList: [], nodeList: [],
nodeList2: [], nodeList2: [],
@@ -3146,6 +3148,13 @@ export default {
}, },
// 点击搜索按钮 // 点击搜索按钮
searchBtnClick() { searchBtnClick() {
if (this.seniorQuery === true) {
this.standCommonlySearch.page = 1
this.seniorQuery = false
}
for (let key in this.sarStandardsSearch) {
this.sarStandardsSearch[key] = ''
}
this.getDomesticStandardTable() this.getDomesticStandardTable()
}, },
// 搜索 // 搜索
@@ -3190,6 +3199,8 @@ export default {
item.page = 1 item.page = 1
this.standCommonlySearch.page = 1 this.standCommonlySearch.page = 1
this.standCommonlySearch.sarStandardsSearch = JSON.stringify(item) || '' this.standCommonlySearch.sarStandardsSearch = JSON.stringify(item) || ''
this.seniorQuery = true
this.seniorQueryForm = item
this.getDomesticStandardTable(item) this.getDomesticStandardTable(item)
}, },
// 清空搜索框 // 清空搜索框
@@ -3883,13 +3894,23 @@ export default {
// 分页点击后方法 // 分页点击后方法
pageChange(page) { pageChange(page) {
this.standCommonlySearch.page = page this.standCommonlySearch.page = page
this.getDomesticStandardTable() if (this.seniorQuery === false) {
this.getDomesticStandardTable()
} else {
this.seniorQueryForm.page = page
this.getDomesticStandardTable(this.seniorQueryForm)
}
}, },
// 分页每页显示数改变后方法 // 分页每页显示数改变后方法
pageSizeChange(pageSize) { pageSizeChange(pageSize) {
this.standCommonlySearch.pageSize = pageSize this.standCommonlySearch.pageSize = pageSize
this.standCommonlySearch.page = 1 this.standCommonlySearch.page = 1
this.getDomesticStandardTable() if (this.seniorQuery === false) {
this.getDomesticStandardTable()
} else {
this.seniorQueryForm.page = page
this.getDomesticStandardTable(this.seniorQueryForm)
}
}, },
/** /**
* // 分页查询标准 * // 分页查询标准
@@ -4031,9 +4052,9 @@ export default {
this.advanceSearchMapping[key] = '' this.advanceSearchMapping[key] = ''
} }
//情况基本字段 //情况基本字段
for (let key in this.sarStandardsSearch) { // for (let key in this.sarStandardsSearch) {
this.sarStandardsSearch[key] = '' // this.sarStandardsSearch[key] = ''
} // }
}, },
// 查询处于游离态的标准 // 查询处于游离态的标准
selectConfiguraStand() { selectConfiguraStand() {
@@ -932,6 +932,7 @@ export default {
}, },
// 切换tabs // 切换tabs
handleClick(tab, event) { handleClick(tab, event) {
this.page = 1
this.localProEO.prodectCode = this.ifMaintaince; this.localProEO.prodectCode = this.ifMaintaince;
this.insideHandleClick(); this.insideHandleClick();
}, },
@@ -1203,8 +1204,9 @@ export default {
}, },
// 条件分页查询 // 条件分页查询
getLocalProductTableBtn() { getLocalProductTableBtn() {
this.page = 1
this.projectLibrarySearch.page = 1; this.projectLibrarySearch.page = 1;
this.isAdvancedSearch = false; this.isAdvancedSearch = true;
this.getLocalProductTable(); this.getLocalProductTable();
}, },
// 查询本地产品 // 查询本地产品
@@ -1236,6 +1238,7 @@ export default {
}, },
getLocalProductTableBtns() { getLocalProductTableBtns() {
this.page = 1
this.projectLibrarySearch.page = 1; this.projectLibrarySearch.page = 1;
this.isAdvancedSearch = false; this.isAdvancedSearch = false;
this.getLocalProductTables(); this.getLocalProductTables();
@@ -1415,12 +1418,20 @@ export default {
// 分页点击后方法 // 分页点击后方法
pageChange(page) { pageChange(page) {
this.page = page; this.page = page;
this.getLocalProductTable(); if (this.isAdvancedSearch = true) {
this.getLocalProductTable()
} else {
this.getLocalProductTables()
}
}, },
// 分页每页显示数改变后方法 // 分页每页显示数改变后方法
pageSizeChange(pageSize) { pageSizeChange(pageSize) {
this.pageSize = pageSize; this.pageSize = pageSize;
this.getLocalProductTable(); if (this.isAdvancedSearch = true) {
this.getLocalProductTable()
} else {
this.getLocalProductTables()
}
// 此处需要调用接口,修改个人配置 // 此处需要调用接口,修改个人配置
}, },
/** /**