Commit fb6831e2 authored by Mac's avatar Mac

1

parent b7463bfe
<template> <template>
<div class="q-pa-md"> <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 <q-tabs
v-model="tab" v-model="tab"
dense dense
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
active-color="primary" active-color="primary"
indicator-color="primary" indicator-color="primary"
narrow-indicator narrow-indicator
@update:model-value='gettabs'
> >
<q-tab name="yewumoshi" label="业务模式" /> <q-tab name="yewumoshi" label="业务模式" />
<q-tab name="field" label="客户字段" /> <q-tab name="field" label="客户字段" />
...@@ -29,19 +30,36 @@ ...@@ -29,19 +30,36 @@
import customerField from './components/customerField.vue' import customerField from './components/customerField.vue'
import clueRule from './components/clueRule.vue' import clueRule from './components/clueRule.vue'
import customerPhase from './components/customerPhase.vue' import customerPhase from './components/customerPhase.vue'
import router from '@/router/index'
import { import {
defineComponent, defineComponent,
ref ref
} from 'vue' } from 'vue'
export default defineComponent({ export default defineComponent({
components: { components: {
customerField, customerField,
clueRule, clueRule,
customerPhase customerPhase
}, },
setup() { 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 { 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