<template>
  <div class="addDialog">
    <el-form :model="infoForm" size="small" label-width="100px">
      <el-row :gutter="20">
        <el-col :span="24">
          <el-col :span="12">
            <el-form-item label="主体企业">
              <el-input
                v-model="infoForm.name"
                placeholder="请选择主体企业"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-button
              type="text"
              icon="el-icon-circle-plus-outline"
              size="small"
              >点击新增企业</el-button
            >
          </el-col>
        </el-col>
        <el-col :span="24" class="company-info">
          <el-col :span="12">企业归属：武侯区</el-col>
          <el-col :span="12">社会信用代码：暂无</el-col>
          <el-col :span="12">联系人：张三</el-col>
          <el-col :span="12">联系电话：1358888888</el-col>
          <el-col :span="12">公司地址：成都市茂业中心操作</el-col>
        </el-col>
        <el-col :span="24">
          <el-form-item label="系统类型">
            <el-input
              v-model="infoForm.name"
              placeholder="请选择系统类型"
            ></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="系统分类">
            <el-input
              v-model="infoForm.name"
              placeholder="请选择系统分类"
            ></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="备案号">
            <el-input
              v-model="infoForm.name"
              placeholder="请输入备案号"
            ></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="备案许可证">
            <el-input
              v-model="infoForm.name"
              placeholder="请输入备案许可证"
            ></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="归属平台">
            <el-input
              v-model="infoForm.name"
              placeholder="请输入归属平台"
            ></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="域名">
            <el-input
              v-model="infoForm.name"
              placeholder="请输入域名"
            ></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="下载量">
            <el-input
              v-model="infoForm.name"
              placeholder="请输入下载量"
            ></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="版本">
            <el-input
              v-model="infoForm.name"
              placeholder="请输入版本"
            ></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="负责人姓名">
            <el-input
              v-model="infoForm.name"
              placeholder="请输入负责人姓名"
            ></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="负责人电话">
            <el-input
              v-model="infoForm.name"
              placeholder="请输入负责人电话"
            ></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="24">
          <el-form-item label="办公地址">
            <el-input
              v-model="infoForm.name"
              placeholder="请输入办公地址"
            ></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="24">
          <el-form-item label="系统图标">
            <el-input
              v-model="infoForm.name"
              placeholder="请输入系统图标"
            ></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="24">
          <el-form-item label="所属区县">
            <el-input
              v-model="infoForm.name"
              placeholder="请输入所属区县"
            ></el-input>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <div>
      <el-button @click="$emit('close')">取 消</el-button>
      <el-button type="primary" @click="$emit('close')">确 定</el-button>
    </div>
  </div>
</template>

<script>
import { getCompanyInfoList } from "@/api/company";
export default {
  name: "AddDialog",
  props: [],
  data() {
    return {
      infoForm: {
        name: "",
      },
      value: "",
      companyOptions: [],
      options: [{ value: 1, label: "选项1" }],
      dialogFormVisible: false,
    };
  },
  mounted() {
    this.getAllCompanyList();
  },
  methods: {
    // 请求公司列表
    getAllCompanyList() {
      getCompanyInfoList().then((res) => {
        console.log(res, '全部公司信息');
      });
    },
  },
};
</script>

<style></style>
