<!--
 * @Author: zwq
 * @Date: 2021-11-18 14:16:25
 * @LastEditors: zwq
 * @LastEditTime: 2023-06-27 10:09:48
 * @Description:
-->
<template>
    <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="120px">
      <el-form-item :label="$t('module.basicData.code')" prop="code">
        <el-input v-model="dataForm.code" :placeholder="$t('placeholder.first')+$t('module.basicData.code')"></el-input>
      </el-form-item>
      <el-form-item :label="$t('module.basicData.name')" prop="name">
        <el-input v-model="dataForm.name" :placeholder="$t('placeholder.first')+$t('module.basicData.name')"></el-input>
      </el-form-item>
      <el-form-item :label="$t('module.basicData.platformGroup')" prop="platformGroup">
        <el-input v-model="dataForm.platformGroup" :placeholder="$t('placeholder.first')+$t('module.basicData.platformGroup')"></el-input>
      </el-form-item>
    </el-form>
</template>

<script>
import basicAdd from '@/mixins/basic-add'
export default {
  mixins: [basicAdd],
  data() {
    return {
      urlOptions: {
          submitURL: '/basic/platform/',
          infoURL: '/basic/platform'
      },
        dataForm: {
          id: '',
          code: '',
          name: '',
          platformGroup: ''
        },
        dataRule: {
          code: [
            { required: true, message: '编码不能为空', trigger: 'blur' }
          ],
          name: [
            { required: true, message: '名称不能为空', trigger: 'blur' }
          ]
        }
      }
    },
    methods: {
    }
  }
</script>
