|
@@ -56,7 +56,7 @@
|
|
|
:key="index"
|
|
|
:width="item.width"
|
|
|
:label="item.label"
|
|
|
- :align="index === 1 ? 'left' : 'center'"
|
|
|
+ :align="index === 0 ? 'left' : 'center'"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="item.scope === 'aTimeList'">{{
|
|
@@ -294,6 +294,10 @@ export default {
|
|
|
prop: { hasChildren: "hasChildren", children: "children" },
|
|
|
};
|
|
|
},
|
|
|
+ created() {
|
|
|
+ this.formData.searchKey = this.$route.params.orderSn || "";
|
|
|
+ this.formData.periodStatus = this.$route.params.type === "1,2" ? "1,2" : 0;
|
|
|
+ },
|
|
|
mounted() {
|
|
|
this.search();
|
|
|
},
|
|
@@ -441,8 +445,6 @@ export default {
|
|
|
if (int === 4) {
|
|
|
this.formData.pageNum = 1;
|
|
|
}
|
|
|
- this.allCheckData = [];
|
|
|
- this.$refs.tableList.clearSelection();
|
|
|
var data = JSON.parse(JSON.stringify(this.formData));
|
|
|
data.inputOrderSn = this.$route.query.inputOrderSn;
|
|
|
if (this.formData.searchStartTime) {
|
|
@@ -466,8 +468,20 @@ export default {
|
|
|
})
|
|
|
.finally(() => {
|
|
|
this.loading = false;
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.allCheckData = [];
|
|
|
+ this.$refs.tableList.clearSelection();
|
|
|
+ this.expandAll();
|
|
|
+ });
|
|
|
});
|
|
|
},
|
|
|
+ expandAll() {
|
|
|
+ // 获取点击的箭头元素
|
|
|
+ let els = document.getElementsByClassName("el-table__expand-icon");
|
|
|
+ for (let i = 0; i < els.length; i++) {
|
|
|
+ els[i].click();
|
|
|
+ }
|
|
|
+ },
|
|
|
init() {
|
|
|
this.search(2);
|
|
|
},
|
|
@@ -495,19 +509,19 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
-::v-deep .el-table .backGround {
|
|
|
- td {
|
|
|
- background-color: rgb(252, 248, 229);
|
|
|
- }
|
|
|
-}
|
|
|
-::v-deep .el-table .childrenGround {
|
|
|
- td {
|
|
|
- background-color: rgb(252, 238, 238);
|
|
|
- &:nth-of-type(2) {
|
|
|
- background: rgb(237, 246, 245);
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
+// ::v-deep .el-table .backGround {
|
|
|
+// td {
|
|
|
+// background-color: rgb(252, 248, 229);
|
|
|
+// }
|
|
|
+// }
|
|
|
+// ::v-deep .el-table .childrenGround {
|
|
|
+// td {
|
|
|
+// background-color: rgb(252, 238, 238);
|
|
|
+// &:nth-of-type(2) {
|
|
|
+// background: rgb(237, 246, 245);
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
// el-table表格对齐
|
|
|
::v-deep .el-table__row:not([class*="el-table__row--level-"]) {
|
|
|
td:nth-of-type(2) {
|
|
@@ -515,7 +529,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
::v-deep .el-table__placeholder {
|
|
|
- margin-left: 3px; //子节点无Child缩进
|
|
|
+ margin-left: 20px; //子节点无Child缩进
|
|
|
}
|
|
|
/deep/.el-button {
|
|
|
border-radius: 8px;
|