Browse Source

tabs

master
zhangli 1 year ago
parent
commit
3ebcd0b882
  1. 7
      src/components/Tabs/src/Tabs.vue
  2. 1
      src/utils/disposition/tabsList.ts
  3. 7
      src/views/wms/itembasic/ItembasicDetail.vue

7
src/components/Tabs/src/Tabs.vue

@ -26,11 +26,8 @@ const props = defineProps({
default: 0
},
})
const tabsList = ref(JSON.parse(JSON.stringify(props.tabsList)))
tabsList.value.unshift({
label: '详情',
prop:'Detail'
})
const tabsList = props.tabsList
const current = ref(props.current);
const change = (item, index) => {
current.value = index

1
src/utils/disposition/tabsList.ts

@ -1,5 +1,4 @@
// 页面tabs标签
export const ItemBasicTabsList = [{
label: "供应商物品",
prop: 'SupplierItems',

7
src/views/wms/itembasic/ItembasicDetail.vue

@ -4,7 +4,7 @@
{{ detailData.code }} <span class="ml-20px font-size-16px">{{ detailData.name }}</span>
</div>
</ContentWrap>
<Tabs :tabsList="ItemBasicTabsList" :current="current" @change="change" />
<Tabs :tabsList="tabsList" :current="current" @change="change" />
<div class="flex" v-if="current == 0">
<!-- 详情 -->
<ContentWrap class="w-[73%]">
@ -43,6 +43,11 @@ const { query } = useRoute() // 路由的查询
import * as ItembasicApi from '@/api/wms/itembasic'
import * as UserApi from '@/api/system/user'
const tabsList = ref(JSON.parse(JSON.stringify(ItemBasicTabsList)))
tabsList.value.unshift({
label: '详情',
prop: 'Detail'
})
//
const queryParams = reactive({
title: '',

Loading…
Cancel
Save