|
@@ -2,12 +2,9 @@
|
|
|
<div class="autoLaunch">
|
|
|
<div class="card-container">
|
|
|
<a-tabs type="card" v-model="analaysisDirection" @change="analaysisDirectionChange" :animated='true'>
|
|
|
- <a-tab-pane key="1" tab="素材+定向">
|
|
|
-
|
|
|
- </a-tab-pane>
|
|
|
- <a-tab-pane key="2" tab="素材+出价">
|
|
|
-
|
|
|
- </a-tab-pane>
|
|
|
+ <a-tab-pane key="1" tab="素材+出价"></a-tab-pane>
|
|
|
+ <a-tab-pane key="2" tab="素材+定向"></a-tab-pane>
|
|
|
+ <a-tab-pane key="3" tab="时间+出价"></a-tab-pane>
|
|
|
<!-- <a-tab-pane key="3" tab="">
|
|
|
</a-tab-pane> -->
|
|
|
</a-tabs>
|
|
@@ -15,6 +12,7 @@
|
|
|
</component>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -30,6 +28,7 @@ export default {
|
|
|
return {
|
|
|
currentTabComponent:'materialAndOrient',
|
|
|
analaysisDirection:'1',
|
|
|
+ currentStrategy:{}
|
|
|
}
|
|
|
},
|
|
|
components:{
|
|
@@ -39,6 +38,16 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
analaysisDirectionChange(key){
|
|
|
+ // console.log(key)
|
|
|
+ // if(key=='1'){
|
|
|
+ // this.currentTabComponent='materialAndOrient'
|
|
|
+ // }else if(key=='2'){
|
|
|
+ // this.currentTabComponent='materialAndBid'
|
|
|
+ // }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ watch:{
|
|
|
+ analaysisDirection(key,oldkey){
|
|
|
console.log(key)
|
|
|
if(key=='1'){
|
|
|
this.currentTabComponent='materialAndOrient'
|
|
@@ -48,10 +57,17 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted(){
|
|
|
- this.currentTabComponent='materialAndOrient'
|
|
|
+ this.currentTabComponent='materialAndOrient' ;
|
|
|
+ let currentStrategy=localStorage.getItem('currentStrategy');
|
|
|
+ if(currentStrategy){
|
|
|
+ this.currentStrategy=JSON.parse(currentStrategy);
|
|
|
+ this.analaysisDirection=this.currentStrategy.scenes;
|
|
|
+ // this.analaysisDirectionChange(this.currentStrategy.scenes)
|
|
|
+ }
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
- this.currentTabComponent='materialAndOrient'
|
|
|
+ this.currentTabComponent='materialAndOrient' ;
|
|
|
+ localStorage.setItem('currentStrategy','');
|
|
|
},
|
|
|
|
|
|
}
|
|
@@ -81,27 +97,27 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
.card-container > .ant-tabs-card > .ant-tabs-content {
|
|
|
- // height: 120px;
|
|
|
- margin-top: -16px;
|
|
|
+ // height: 120px;
|
|
|
+ margin-top: -16px;
|
|
|
}
|
|
|
|
|
|
.card-container > .ant-tabs-card > .ant-tabs-content > .ant-tabs-tabpane {
|
|
|
- background: #fff;
|
|
|
- // padding: 16px;
|
|
|
+ background: #fff;
|
|
|
+ // padding: 16px;
|
|
|
}
|
|
|
|
|
|
.card-container > .ant-tabs-card > .ant-tabs-bar {
|
|
|
- border-color: #fff;
|
|
|
+ border-color: #fff;
|
|
|
}
|
|
|
|
|
|
.card-container > .ant-tabs-card > .ant-tabs-bar .ant-tabs-tab {
|
|
|
- border-color: transparent;
|
|
|
- background: transparent;
|
|
|
+ border-color: transparent;
|
|
|
+ background: transparent !important;
|
|
|
}
|
|
|
|
|
|
.card-container > .ant-tabs-card > .ant-tabs-bar .ant-tabs-tab-active {
|
|
|
- border-color: #fff;
|
|
|
- background: #fff;
|
|
|
+ border-color: #fff;
|
|
|
+ background: #fff !important;
|
|
|
}
|
|
|
}
|
|
|
|