<template>
  <el-card>
    <el-tabs type="border-card">
      <el-tab-pane label="CN转换PCT">
        <cn-2-pct-form :baseUrl="baseUrl"/>
      </el-tab-pane>
      <el-tab-pane label="公式转换图片">
        <visio-form :baseUrl="baseUrl"/>
      </el-tab-pane>
      <el-tab-pane label="PCT槁转CN稿">
        <Pct2CnForm :baseUrl="baseUrl"/>
      </el-tab-pane>
    </el-tabs>
  </el-card>
</template>

<script>
import Cn2CpcForm from './components/Cn2CpcForm'
import Cn2PctForm from './components/Cn2PctForm'
import VisioForm from './components/VisioForm'
import Pct2CnForm from './components/Pct2CnForm'
import config from '@config/index.js'
export default {
  name: 'ConvertTool',
  props:{
    env:{
      type: String,
      default: 'prod_sz'
    }
  },
  components: {
    Cn2CpcForm,
    Cn2PctForm,
    VisioForm,
    Pct2CnForm
  },
  computed:{
    baseUrl(){
      console.log('config', config, this.env)
      return config[this.env].VUE_APP_GRAPHAPI_URL
    }
  },
}
</script>
