|
|
@@ -2937,31 +2937,52 @@ export default {
|
|
|
// this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
|
|
|
// }
|
|
|
// },
|
|
|
- handleRowChange:debounce(function(row,expandedRows) {
|
|
|
- console.log(expandedRows);
|
|
|
- if (expandedRows.length>0) {
|
|
|
- this.$api.letter
|
|
|
- .querySonOrders({ orderNo: row.orderno })
|
|
|
- .then((res) => {
|
|
|
- if (res.code == "200" && res.data.length != 0) {
|
|
|
- this.pageResult.map((item) => {
|
|
|
- if (item.orderno === row.orderno) {
|
|
|
- item.insAreaCompanyList = res.data;
|
|
|
- }
|
|
|
- return item;
|
|
|
- });
|
|
|
- row.expanded = !row.expanded;
|
|
|
- this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
|
|
|
- } else {
|
|
|
- this.$message.info("暂无数据");
|
|
|
- }
|
|
|
- });
|
|
|
+ // handleRowChange:debounce(function(row,expandedRows) {
|
|
|
+ // console.log(expandedRows);
|
|
|
+ // if (expandedRows.length>0) {
|
|
|
+ // this.$api.letter
|
|
|
+ // .querySonOrders({ orderNo: row.orderno })
|
|
|
+ // .then((res) => {
|
|
|
+ // if (res.code == "200" && res.data.length != 0) {
|
|
|
+ // this.pageResult.map((item) => {
|
|
|
+ // if (item.orderno === row.orderno) {
|
|
|
+ // item.insAreaCompanyList = res.data;
|
|
|
+ // }
|
|
|
+ // return item;
|
|
|
+ // });
|
|
|
+ // row.expanded = !row.expanded;
|
|
|
+ // this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
|
|
|
+ // } else {
|
|
|
+ // this.$message.info("暂无数据");
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // // else {
|
|
|
+ // // row.expanded = !row.expanded;
|
|
|
+ // // this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
|
|
|
+ // // }
|
|
|
+ // }, 500), // 300 毫秒内不会重复触发,
|
|
|
+ handleRowChange(row) {
|
|
|
+ if (!row.expanded) {
|
|
|
+ this.$api.letter.querySonOrders({ orderNo: row.orderno }).then(res => {
|
|
|
+ if (res.code == "200" && res.data.length != 0) {
|
|
|
+ this.pageResult.map(item => {
|
|
|
+ if (item.orderno === row.orderno) {
|
|
|
+ item.insAreaCompanyList = res.data;
|
|
|
+ }
|
|
|
+ return item;
|
|
|
+ });
|
|
|
+ row.expanded = !row.expanded;
|
|
|
+ this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
|
|
|
+ } else {
|
|
|
+ this.$message.info("暂无数据");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ row.expanded = !row.expanded;
|
|
|
+ this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
|
|
|
}
|
|
|
- // else {
|
|
|
- // row.expanded = !row.expanded;
|
|
|
- // this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
|
|
|
- // }
|
|
|
- }, 500), // 300 毫秒内不会重复触发,
|
|
|
+ },
|
|
|
//数据
|
|
|
findPage() {
|
|
|
this.orderLoaing = true;
|