Commit fb6831e2 authored by Mac's avatar Mac

1

parent b7463bfe
<template>
<div class="q-pa-md">
<q-page padding style="background: #FFF;border-radius: 10px;">
<q-page padding style="background: #FFF;border-radius: 10px;" >
<q-tabs
v-model="tab"
dense
......@@ -9,6 +9,7 @@
active-color="primary"
indicator-color="primary"
narrow-indicator
@update:model-value='gettabs'
>
<q-tab name="yewumoshi" label="业务模式" />
<q-tab name="field" label="客户字段" />
......@@ -29,19 +30,36 @@
import customerField from './components/customerField.vue'
import clueRule from './components/clueRule.vue'
import customerPhase from './components/customerPhase.vue'
import router from '@/router/index'
import {
defineComponent,
ref
} from 'vue'
export default defineComponent({
components: {
customerField,
clueRule,
customerPhase
},
setup() {
let tab = ref<string>('phase')
if( router.currentRoute.value.query && router.currentRoute.value.query.type){
// let type = router.currentRoute.value.query.type;
tab.value = router.currentRoute.value.query.type as string
}
const gettabs = () => {
// console.log(tab.value)
}
// if(props && props.type){
// }
return {
tab: ref('phase')
tab,
gettabs
}
}
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment