|
@@ -6,6 +6,7 @@
|
|
|
<contract v-if="contractShow" @changeApplication="onChange"></contract>
|
|
<contract v-if="contractShow" @changeApplication="onChange"></contract>
|
|
|
<customer v-if="customerShow" @changeApplication="onChange"></customer>
|
|
<customer v-if="customerShow" @changeApplication="onChange"></customer>
|
|
|
<agenter v-if="agenerShow" @changeApplication="onChange"></agenter>
|
|
<agenter v-if="agenerShow" @changeApplication="onChange"></agenter>
|
|
|
|
|
+ <publicClue v-if="pubClueShow" @changeApplication="onChange"></publicClue>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -16,9 +17,10 @@ import quotedPrice from './quotedPrice/index'
|
|
|
import contract from './contract/index'
|
|
import contract from './contract/index'
|
|
|
import customer from './customer/index'
|
|
import customer from './customer/index'
|
|
|
import agenter from './agentManage/index'
|
|
import agenter from './agentManage/index'
|
|
|
|
|
+import publicClue from './publicClue/index'
|
|
|
export default {
|
|
export default {
|
|
|
name: "index",
|
|
name: "index",
|
|
|
- components:{saleClue,projectChange,quotedPrice,contract,customer,agenter},
|
|
|
|
|
|
|
+ components:{saleClue,projectChange,quotedPrice,contract,customer,agenter,publicClue},
|
|
|
data(){
|
|
data(){
|
|
|
return {
|
|
return {
|
|
|
salClueShow:true,
|
|
salClueShow:true,
|
|
@@ -26,11 +28,13 @@ export default {
|
|
|
quotedPriceShow:false,
|
|
quotedPriceShow:false,
|
|
|
contractShow:false,
|
|
contractShow:false,
|
|
|
customerShow:false,
|
|
customerShow:false,
|
|
|
- agenerShow:false
|
|
|
|
|
|
|
+ agenerShow:false,
|
|
|
|
|
+ pubClueShow:false
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods:{
|
|
methods:{
|
|
|
onChange(val){
|
|
onChange(val){
|
|
|
|
|
+ console.log(val,'val切换')
|
|
|
console.log(this.projectChangeShow,this.salClueShow)
|
|
console.log(this.projectChangeShow,this.salClueShow)
|
|
|
if (val === '1'){
|
|
if (val === '1'){
|
|
|
this.salClueShow = true
|
|
this.salClueShow = true
|
|
@@ -39,6 +43,7 @@ export default {
|
|
|
this.contractShow = false
|
|
this.contractShow = false
|
|
|
this.customerShow = false
|
|
this.customerShow = false
|
|
|
this.agenerShow = false
|
|
this.agenerShow = false
|
|
|
|
|
+ this.pubClueShow = false
|
|
|
}else if (val === '2') {
|
|
}else if (val === '2') {
|
|
|
this.customerShow = true
|
|
this.customerShow = true
|
|
|
this.salClueShow = false
|
|
this.salClueShow = false
|
|
@@ -46,6 +51,7 @@ export default {
|
|
|
this.quotedPriceShow = false
|
|
this.quotedPriceShow = false
|
|
|
this.contractShow = false
|
|
this.contractShow = false
|
|
|
this.agenerShow = false
|
|
this.agenerShow = false
|
|
|
|
|
+ this.pubClueShow = false
|
|
|
}else if (val === '3'){
|
|
}else if (val === '3'){
|
|
|
this.contractShow = true
|
|
this.contractShow = true
|
|
|
this.quotedPriceShow = false
|
|
this.quotedPriceShow = false
|
|
@@ -53,6 +59,7 @@ export default {
|
|
|
this.projectChangeShow = false
|
|
this.projectChangeShow = false
|
|
|
this.customerShow = false
|
|
this.customerShow = false
|
|
|
this.agenerShow = false
|
|
this.agenerShow = false
|
|
|
|
|
+ this.pubClueShow = false
|
|
|
}else if (val === '4'){
|
|
}else if (val === '4'){
|
|
|
this.projectChangeShow = true
|
|
this.projectChangeShow = true
|
|
|
this.quotedPriceShow = false
|
|
this.quotedPriceShow = false
|
|
@@ -60,6 +67,7 @@ export default {
|
|
|
this.contractShow = false
|
|
this.contractShow = false
|
|
|
this.customerShow = false
|
|
this.customerShow = false
|
|
|
this.agenerShow = false
|
|
this.agenerShow = false
|
|
|
|
|
+ this.pubClueShow = false
|
|
|
}else if (val === '5'){
|
|
}else if (val === '5'){
|
|
|
this.quotedPriceShow = true
|
|
this.quotedPriceShow = true
|
|
|
this.customerShow = false
|
|
this.customerShow = false
|
|
@@ -67,6 +75,7 @@ export default {
|
|
|
this.salClueShow = false
|
|
this.salClueShow = false
|
|
|
this.projectChangeShow = false
|
|
this.projectChangeShow = false
|
|
|
this.agenerShow = false
|
|
this.agenerShow = false
|
|
|
|
|
+ this.pubClueShow = false
|
|
|
}else if (val === '6'){
|
|
}else if (val === '6'){
|
|
|
this.agenerShow = true
|
|
this.agenerShow = true
|
|
|
this.customerShow = false
|
|
this.customerShow = false
|
|
@@ -74,6 +83,15 @@ export default {
|
|
|
this.salClueShow = false
|
|
this.salClueShow = false
|
|
|
this.projectChangeShow = false
|
|
this.projectChangeShow = false
|
|
|
this.quotedPriceShow = false
|
|
this.quotedPriceShow = false
|
|
|
|
|
+ this.pubClueShow = false
|
|
|
|
|
+ }else if (val === '7'){
|
|
|
|
|
+ this.pubClueShow = true
|
|
|
|
|
+ this.customerShow = false
|
|
|
|
|
+ this.contractShow = false
|
|
|
|
|
+ this.salClueShow = false
|
|
|
|
|
+ this.projectChangeShow = false
|
|
|
|
|
+ this.quotedPriceShow = false
|
|
|
|
|
+ this.agenerShow = false
|
|
|
}
|
|
}
|
|
|
console.log(this.projectChangeShow,this.salClueShow)
|
|
console.log(this.projectChangeShow,this.salClueShow)
|
|
|
}
|
|
}
|