From 7f66aae79c0f723c698efa25092a46fda3253460 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期五, 10 四月 2026 11:33:59 +0800
Subject: [PATCH] fix:安铁配置
---
src/views/basicData/supplierManage/index.vue | 63 +++++++++++++++++--------------
1 files changed, 35 insertions(+), 28 deletions(-)
diff --git a/src/views/basicData/supplierManage/index.vue b/src/views/basicData/supplierManage/index.vue
index d87a45b..0d4f1a0 100644
--- a/src/views/basicData/supplierManage/index.vue
+++ b/src/views/basicData/supplierManage/index.vue
@@ -1,11 +1,14 @@
<!-- 鍦ㄤ綘鐨勪富椤甸潰涓� -->
<template>
<div class="app-container">
- <el-tabs v-model="activeTab" @tab-change="handleTabChange">
- <el-tab-pane label="姝e父渚涘簲鍟�" name="home">
+ <el-tabs v-model="activeTab"
+ @tab-change="handleTabChange">
+ <el-tab-pane label="姝e父渚涘簲鍟�"
+ name="home">
<HomeTab ref="homeTab" />
</el-tab-pane>
- <el-tab-pane label="榛戝悕鍗�" name="blacklist">
+ <el-tab-pane label="榛戝悕鍗�"
+ name="blacklist">
<BlacklistTab ref="blacklistTab" />
</el-tab-pane>
</el-tabs>
@@ -13,31 +16,35 @@
</template>
<script>
-import HomeTab from './components/HomeTab.vue'
-import BlacklistTab from './components/BlacklistTab.vue'
+ import HomeTab from "./components/HomeTab.vue";
+ import BlacklistTab from "./components/BlacklistTab.vue";
-export default {
- name: 'MainPage',
- components: {
- HomeTab,
- BlacklistTab
- },
- data() {
- return {
- activeTab: 'home'
- }
- },
- methods: {
- handleTabChange(tabName) {
- this.activeTab = tabName
- this.$nextTick(() => {
- if (tabName === 'home') {
- this.$refs.homeTab && this.$refs.homeTab.getList && this.$refs.homeTab.getList()
- } else if (tabName === 'blacklist') {
- this.$refs.blacklistTab && this.$refs.blacklistTab.getList && this.$refs.blacklistTab.getList()
- }
- })
+ export default {
+ name: "MainPage",
+ components: {
+ HomeTab,
+ BlacklistTab,
},
- }
-}
+ data() {
+ return {
+ activeTab: "home",
+ };
+ },
+ methods: {
+ handleTabChange(tabName) {
+ this.activeTab = tabName;
+ this.$nextTick(() => {
+ if (tabName === "home") {
+ this.$refs.homeTab &&
+ this.$refs.homeTab.getList &&
+ this.$refs.homeTab.getList();
+ } else if (tabName === "blacklist") {
+ this.$refs.blacklistTab &&
+ this.$refs.blacklistTab.getList &&
+ this.$refs.blacklistTab.getList();
+ }
+ });
+ },
+ },
+ };
</script>
--
Gitblit v1.9.3