<template>
  <div id="columnDetail">
    <el-row>
      <el-col :span="24">
        <el-col :span="24" class="top">
          <el-col :span="12" class="topTitle"> </el-col>
          <el-col :span="12" class="topBtn"> </el-col>
        </el-col>
        <el-col :span="24" class="messgae">
          <el-form ref="form" :model="form" label-width="120px">
            <el-form-item label="审核">
              <el-radio-group v-model="form.status">
                <el-radio :label="2" name="2">交易成功</el-radio>
                <el-radio :label="3" name="3">交易取消</el-radio>
              </el-radio-group>
            </el-form-item>

            <el-form-item>
              <el-button type="primary" @click="onSubmit(form)">提交</el-button>
            </el-form-item>
          </el-form>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'columnDetail',
  props: {
    form: null,
  },
  components: {},
  data: () => ({}),
  created() {},
  computed: {},
  methods: {
    onSubmit() {
      this.$emit('submitDate', { data: this.form, id: this.form.id });
    },
    returnBtn() {
      this.$router.push({ path: '/personnel/column' });
    },
  },
};
</script>

<style lang="less" scoped>
.top {
  padding: 15px 0;
}
.top .topTitle {
  text-align: left;
}
.top .topBtn {
  text-align: right;
  padding: 0 5px;
}
</style>
