applicationFee.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <div>
  3. <avue-crud
  4. :option="option"
  5. v-model="form"
  6. :data="data"
  7. ref="form"
  8. @selection-change="selection"
  9. @row-del="rowDel"
  10. @saveColumn="saveColumn"
  11. >
  12. </avue-crud>
  13. <div style="float: right;margin-right: 8px">
  14. <el-button type="primary" size="small" @click="submit()">请核</el-button>
  15. <el-button size="small" @click="">取消</el-button>
  16. </div>
  17. </div>
  18. </template>
  19. <script>
  20. import option from "./config/option.json"
  21. export default {
  22. name: "applicationFee",
  23. props:{
  24. },
  25. data(){
  26. return{
  27. option:{},
  28. form:{},
  29. data:[],
  30. selection:"",
  31. }
  32. },
  33. async created() {
  34. this.option = await this.getColumnData(this.getColumnName(46), option);
  35. },
  36. methods:{
  37. rowDel(){
  38. },
  39. submit(){
  40. },
  41. //列保存触发
  42. async saveColumn() {
  43. const inSave = await this.saveColumnData(
  44. this.getColumnName(46),
  45. this.option
  46. );
  47. if (inSave) {
  48. this.$message.success("保存成功");
  49. //关闭窗口
  50. this.$refs.form.$refs.dialogColumn.columnBox = false;
  51. }
  52. },
  53. }
  54. }
  55. </script>
  56. <style scoped>
  57. </style>