<template>
  <div>
    <avue-crud
      :option="option"
      v-model="form"
      :data="data"
      ref="form"
      @selection-change="selection"
      @row-del="rowDel"
      @saveColumn="saveColumn"
    >
     </avue-crud>
    <div style="float: right;margin-right: 8px">
      <el-button type="primary" size="small" @click="submit()">请核</el-button>
      <el-button size="small" @click="">取消</el-button>
    </div>
  </div>
</template>

<script>
    import option from "./config/option.json"

    export default {
      name: "applicationFee",
      props:{

      },
      data(){
          return{
            option:{},
            form:{},
            data:[],
            selection:"",
          }
      },
      async created() {
        this.option = await this.getColumnData(this.getColumnName(46), option);
      },
      methods:{
        rowDel(){

        },
        submit(){

        },
        //列保存触发
        async saveColumn() {
          const inSave = await this.saveColumnData(
            this.getColumnName(46),
            this.option
          );
          if (inSave) {
            this.$message.success("保存成功");
            //关闭窗口
            this.$refs.form.$refs.dialogColumn.columnBox = false;
          }
        },
      }
    }
</script>

<style scoped>

</style>
