| src/views/basicData/supplierManage/components/BlacklistTab.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/basicData/supplierManage/components/HomeTab.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/basicData/supplierManage/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/views/basicData/supplierManage/components/BlacklistTab.vue
@@ -499,7 +499,7 @@ type: "warning", }) .then(() => { proxy.download("/system/supplier/export", {}, "供应商档案.xlsx"); proxy.download("/system/supplier/export", { isWhite: 1 }, "供应商档案.xlsx"); }) .catch(() => { proxy.$modal.msg("已取消"); @@ -559,6 +559,10 @@ onMounted(() => { getList(); }); defineExpose({ getList, }); </script> src/views/basicData/supplierManage/components/HomeTab.vue
@@ -505,7 +505,7 @@ type: "warning", }) .then(() => { proxy.download("/system/supplier/export", {}, "供应商档案.xlsx"); proxy.download("/system/supplier/export", { isWhite: 0 }, "供应商档案.xlsx"); }) .catch(() => { proxy.$modal.msg("已取消"); @@ -565,5 +565,9 @@ onMounted(() => { getList(); }); defineExpose({ getList, }); </script> src/views/basicData/supplierManage/index.vue
@@ -1,12 +1,12 @@ <!-- 在你的主页面中 --> <template> <div class="app-container"> <el-tabs v-model="activeTab" type="card"> <el-tabs v-model="activeTab" @tab-change="handleTabChange"> <el-tab-pane label="正常供应商" name="home"> <HomeTab /> <HomeTab ref="homeTab" /> </el-tab-pane> <el-tab-pane label="黑名单" name="blacklist"> <BlacklistTab /> <BlacklistTab ref="blacklistTab" /> </el-tab-pane> </el-tabs> </div> @@ -27,21 +27,17 @@ activeTab: 'home' } }, watch: { activeTab(newVal) { if (newVal === 'home') { this.$refs.homeTab && this.$refs.homeTab.getList() } else if (newVal === 'blacklist') { this.$refs.blacklistTab && this.$refs.blacklistTab.getList() } } 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> <style> .main-container :deep(.el-tabs__item.is-active) { color: #1883f6 !important; border-bottom: 2px solid #409EFF; } </style>