<template>
  <div class="yqjs_box">
    <h1>编辑园区信息</h1>
    <el-form :model="parkForm" label-width="100px">
      <el-form-item label="园区名称">
        <el-input v-model="parkForm.name"></el-input>
      </el-form-item>
      <el-form-item label="描述">
        <el-input type="textarea" v-model="parkForm.description"></el-input>
      </el-form-item>
      <el-form-item label="园区总面积">
        <el-input v-model="parkForm.contact"></el-input>
      </el-form-item>
      <el-form-item label="入职企业">
        <el-input v-model="parkForm.phone"></el-input>
      </el-form-item>
      <el-form-item label="楼栋数量">
        <el-input v-model="parkForm.email"></el-input>
      </el-form-item>
      <el-form-item label="园区人员">
        <el-input v-model="parkForm.email"></el-input>
      </el-form-item>
      <el-form-item label="标准厂房">
        <el-input v-model="parkForm.email"></el-input>
      </el-form-item>
      <el-form-item label="总车位">
        <el-input v-model="parkForm.email"></el-input>
      </el-form-item>
      <el-form-item label="生产用地">
        <el-input v-model="parkForm.email"></el-input>
      </el-form-item>
      <el-form-item label="办公用地">
        <el-input v-model="parkForm.email"></el-input>
      </el-form-item>
      <el-form-item label="绿色植被">
        <el-input v-model="parkForm.email"></el-input>
      </el-form-item>
      <el-form-item label="基础设施">
        <el-input v-model="parkForm.email"></el-input>
      </el-form-item>
      <el-form-item label="待开发区">
        <el-input v-model="parkForm.email"></el-input>
      </el-form-item>
      <div>
      <h1>上传园区视频</h1>
      <el-upload class="upload-demo" drag action="https://jsonplaceholder.typicode.com/posts/" multiple>
        <i class="el-icon-upload"></i>
        <div class="el-upload__text">将文件拖到此处，或<em>点击上传</em></div>
        <template #tip>
          <div class="el-upload__tip">只能上传 mp4 文件，且不超过 50MB</div>
        </template>
      </el-upload>
    </div>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">保存</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script setup>
import { ref } from 'vue'

const parkForm = ref({
  name: '',
  contact: '',
  phone: '',
  email: '',
  description: ''
})

function onSubmit() {
  console.log('提交表单:', parkForm.value)
  // 在这里处理表单提交逻辑，例如发送到服务器
}
</script>


<style>
.yqjs_box {
  margin: 20px;
}
</style>
