|
|
@@ -3966,33 +3966,9 @@ 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("暂无数据");
|
|
|
- // }
|
|
|
- // });
|
|
|
- // }
|
|
|
- // // else {
|
|
|
- // // row.expanded = !row.expanded;
|
|
|
- // // this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
|
|
|
- // // }
|
|
|
- // }, 500), // 300 毫秒内不会重复触发,
|
|
|
- handleRowChange(row) {
|
|
|
- if (!row.expanded) {
|
|
|
+ handleRowChange:debounce(function(row,expandedRows) {
|
|
|
+ console.log(expandedRows);
|
|
|
+ if (expandedRows.length>0) {
|
|
|
this.$api.letter
|
|
|
.querySonOrders({ orderNo: row.orderno })
|
|
|
.then((res) => {
|
|
|
@@ -4009,11 +3985,36 @@ export default {
|
|
|
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 毫秒内不会重复触发,
|
|
|
+
|
|
|
+ // 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);
|
|
|
+ // }
|
|
|
+ // },
|
|
|
//数据
|
|
|
findPage() {
|
|
|
this.orderLoaing = true;
|