Commit b88ce1dc authored by zhengke's avatar zhengke

修改

parent fb797971
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</div> </div>
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent, ref, onMounted } from 'vue' import { defineComponent , onMounted } from 'vue'
import customerService from '@/api/customer' import customerService from '@/api/customer'
export default defineComponent({ export default defineComponent({
......
<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 v-model="tab" dense class="text-grey" align="left" active-color="primary" indicator-color="primary" narrow-indicator>
<q-tab name="yewumoshi" label="业务模式" />
<q-tab name="field" label="客户字段" />
<q-tab name="label" label="标签" />
</q-tabs>
<div v-if="tab=='field'" >
 <customer-Field></customer-Field>
</div>
</q-page> <q-tabs v-model="tab" dense class="text-grey" align="left" active-color="primary" indicator-color="primary"
narrow-indicator>
<q-tab name="yewumoshi" label="业务模式" />
<q-tab name="field" label="客户字段" />
<q-tab name="label" label="标签" />
</q-tabs>
<div v-if="tab=='field'">
 <customer-Field></customer-Field>
</div>
</div> </q-page>
</div>
</template> </template>
<script lang="ts"> <script lang="ts">
import customerField from './components/customerField.vue' import customerField from './components/customerField.vue'
import { defineComponent, ref } from 'vue' import {
export default defineComponent({ defineComponent,
components: { customerField }, ref
setup() { } from 'vue'
return{ export default defineComponent({
tab:ref('field') components: {
} customerField
},
setup() {
return {
tab: ref('field')
}
} }
}) })
</script> </script>
...@@ -16,16 +16,19 @@ const routes: RouteRecordRaw[] = [ ...@@ -16,16 +16,19 @@ const routes: RouteRecordRaw[] = [
component: () => import('@/layouts/MainLayout.vue'), component: () => import('@/layouts/MainLayout.vue'),
children: [{ path: '', component: () => import('@/pages/customer/customerSetup.vue') }] children: [{ path: '', component: () => import('@/pages/customer/customerSetup.vue') }]
}, },
{ {
path:'/auth/login', path: '/customer',
component: () => import('@/layouts/MainLayout.vue'),
children: [{ path: '', component: () => import('@/pages/customerManage/customer.vue') }]
},
{
path: '/auth/login',
component: () => import('@/pages/auth/login.vue') component: () => import('@/pages/auth/login.vue')
}, },
{ {
path:'/auth/regist', path: '/auth/regist',
component: () => import('@/pages/auth/regist.vue') component: () => import('@/pages/auth/regist.vue')
}, },
// Always leave this as last one, // Always leave this as last one,
// but you can also remove it // but you can also remove it
{ {
......
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