| | |
| | | <el-tab-pane label="产品" name="product"> |
| | | <Product v-if="activeName == 'product'" @changeData="activeDataFunc"></Product> |
| | | </el-tab-pane> |
| | | <el-tab-pane v-if="supplier.is_release" label="供需" name="release"> |
| | | <Release v-if="activeName == 'release'" @changeData="activeDataFunc"></Release> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | <div slot="footer" class="dialog-footer d-b-c"> |
| | | <div class="flex-1"> |
| | |
| | | <script> |
| | | import Product from './part/Product.vue'; |
| | | import Pages from './part/Pages.vue'; |
| | | import Release from './part/Release.vue'; |
| | | import SettingApi from '@/api/setting.js'; |
| | | export default { |
| | | components: { |
| | | Product, |
| | | Pages |
| | | Pages, |
| | | Release |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | dialogVisible: true, |
| | | /*选中的链接*/ |
| | | activeData: null, |
| | | activeName: 'product' |
| | | activeName: 'pages', |
| | | /*供应商列*/ |
| | | supplier: [] |
| | | }; |
| | | }, |
| | | props: ['is_linkset'], |
| | | created() { |
| | | this.getSupplier(); |
| | | this.dialogVisible = this.is_linkset; |
| | | }, |
| | | methods: { |
| | | /*获取供应商列表*/ |
| | | getSupplier(){ |
| | | SettingApi.getSupplier().then(res => { |
| | | console.log(res); |
| | | this.supplier = res.data.model; |
| | | }) |
| | | .catch(error => { |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | /*关闭弹窗*/ |
| | | dialogFormVisible(e) { |
| | | if (e) { |