Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
EcomWeb
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
zhanbo.xu
2025-06-10 11:18:15 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4d3823b62c00621b64d83105d9effdb723931ba5
4d3823b6
1 parent
42cbb145
feat: 优化从总跳分的搜索
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
5 deletions
src/views/reportingData/index.vue
src/views/reportingData/index.vue
View file @
4d3823b
...
...
@@ -308,6 +308,8 @@
<div v-loading="loadings.sreachLoading">
<vxe-table
:max-height="tableMaxheight"
:height="300"
ref="tableRef"
:data="tableData"
:column-config="{ resizable: true }"
:row-config="{ isCurrent: true, isHover: true }"
...
...
@@ -821,18 +823,18 @@ export default {
},
};
},
beforeCreate() {},
created() {
try {
if (this.$route.query.billNo && this.$route.query.search == "true") {
this.sreachFormData.billNo = this.$route.query.billNo;
console.log(
this.$route.query,
JSON.parse(this.$route.query.receiptStatus)
);
this.activeType = true;
this.sreachFormData.receiptStatus = JSON.parse(
this.$route.query.receiptStatus
JSON.parse(this.$route.query.receiptStatus || "[]")
);
const choose = JSON.parse(this.$route.query.receiptStatus || "[]");
this.listStatus = choose;
this.changeFilters(choose);
}
} catch (error) {
console.log(error);
...
...
@@ -861,6 +863,23 @@ export default {
});
},
methods: {
// 筛选条件改变
changeFilters(choose) {
this.$nextTick(() => {
const $table = this.$refs.tableRef;
if ($table) {
const newArr = listStatus().map((item) => {
return {
...item,
checked: (choose || []).includes(item.value),
};
});
$table.setFilter("listReceiptStatus", [...newArr], true);
this.listStatusFilters = [...newArr];
}
});
},
filterChangeEvent(value) {
console.log(value.values);
if (value.field === "orderReceiptStatus") {
...
...
Please
register
or
login
to post a comment