|
@@ -92,6 +92,9 @@ export default {
|
|
|
historyList: {
|
|
|
type: Array,
|
|
|
},
|
|
|
+ type: {
|
|
|
+ type: String,
|
|
|
+ },
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -112,7 +115,7 @@ export default {
|
|
|
// this.getData();
|
|
|
if (this.historyList) {
|
|
|
this.datalist = this.historyList;
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.datalist = hgxfx.datalist;
|
|
|
}
|
|
|
},
|
|
@@ -147,7 +150,8 @@ export default {
|
|
|
// if (res.success) {
|
|
|
// this.$emit("updateParent", "scjgObj=JSON.parse(JSON.stringify(res.data))
|
|
|
// this.$emit("updateParent", "scjgObj=JSON.parse(JSON.stringify(res.data))
|
|
|
- this.$emit("updateParent", "activeTabs", "scjg");
|
|
|
+ let next = this.$props.type == "hgxfx" ? "scjg" : "xzjg";
|
|
|
+ this.$emit("updateParent", "activeTabs", next);
|
|
|
console.log(555555, item);
|
|
|
// }
|
|
|
// });
|