Commit 1dacb7d3 authored by “yiyousong”'s avatar “yiyousong”

perf: 优化系统设置参数搜索和应用数据搜索

parent 057edb12
...@@ -255,32 +255,23 @@ export default { ...@@ -255,32 +255,23 @@ export default {
// 获取数据列表 // 获取数据列表
async getDatasetList() { async getDatasetList() {
this.loading = true; this.loading = true;
let orConditionList = [ let obj = {};
{ let orConditionList = [];
fieldCode: this.fieldCode, let form = {
fieldValue: `%${this.searchVal}%`,
},
...this.sortSearch,
];
let res = await getDatasetList({
page: this.current, page: this.current,
size: this.size, size: this.size,
appId: this.appId, appId: this.appId,
orConditionList, };
// fieldCode: this.fieldCode, if (this.fieldCode) {
// fieldValue: `%${this.searchVal}%`, obj.fieldCode = this.fieldCode;
// orConditionList: [ obj.fieldValue = `%${this.searchVal}%`;
// { orConditionList.push(obj);
// fieldCode: this.fieldCode, }
// fieldValue: `%${this.searchVal}%`, orConditionList = [...orConditionList, ...this.sortSearch];
// }, if (orConditionList.length) {
// { form.orConditionList = orConditionList;
// fieldCode: "top", }
// fieldValue: `%%`, let res = await getDatasetList(form);
// },
// ],
});
this.loading = false; this.loading = false;
if (res.data.code === 1) { if (res.data.code === 1) {
let { data, total } = res.data.data; let { data, total } = res.data.data;
......
...@@ -14,11 +14,6 @@ ...@@ -14,11 +14,6 @@
v-model="searchForm.name" v-model="searchForm.name"
allowClear allowClear
/> />
<a-input
placeholder="请输入二级组织搜索"
v-model="searchForm.secondOrganize"
allowClear
/>
<a-button type="primary" @click="onSearch">搜索</a-button> <a-button type="primary" @click="onSearch">搜索</a-button>
<a-button @click="resetSearch">重置</a-button> <a-button @click="resetSearch">重置</a-button>
</a-space> </a-space>
...@@ -185,7 +180,6 @@ export default { ...@@ -185,7 +180,6 @@ export default {
searchValue: "", // 搜索 searchValue: "", // 搜索
searchForm: { searchForm: {
name: "", name: "",
secondOrganize: "",
}, },
tableData: [], tableData: [],
selectedRowKeys: [], selectedRowKeys: [],
...@@ -205,7 +199,6 @@ export default { ...@@ -205,7 +199,6 @@ export default {
page: this.current, page: this.current,
size: this.size, size: this.size,
name: `%${this.searchForm.name}%`, name: `%${this.searchForm.name}%`,
secondOrganize: `%${this.searchForm.secondOrganize}%`,
}); });
this.loading = false; this.loading = false;
if (res.data.code == 1) { if (res.data.code == 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment