？<template>
  <layout-form>
    <el-form
      :model="form"
      :loading="loading"
      :rules="rules"
      size="small"
      style="width: 100%"
      label-width="120px"
      ref="form"
    >
      <el-row>

        <Field
          label="受理条件"
          prop="content"
          v-model="form.content"
          placeholder="请输入受理条件"
          span="18"
          rows="5"
          type="textarea"
        />
        <Field
          label="受理条件来源"
          prop="source"
          v-model="form.source"
          :enumData="dict.source"
          type="select"
        />
      </el-row>
      <form-buttons @submit="submitForm" />
    </el-form>
  </layout-form>
</template>

<script>
import form from "@/assets/mixins/form";
export default {
  mixins: [form],
  created() {
    const { matterId } = this.$route.query;
    this.form.matterId = matterId;
    this.form.title="受理条件";
  },
  data() {
    return {
      toString: ["source"],

      rules: {

        content: [
          { required: true, message: "请输入回答", trigger: "blur" },
          { max: 65535, message: "最多只能录入65535个字符", trigger: "blur" },
        ],
        source: [
          { required: true, message: "请选择事项来源", trigger: "blur" },
        ],
      },
    };
  },
};
</script>