<template>
  <tablePage 
    :columnWidth="150"
    :apiName="state.apiName"
    :searchOptions="state.searchOptions"
    :searchFilter="state.searchFilter"
    :rightOperation="state.rightOperation"
    :apiEditFormRules="state.apiEditFormRules"
  ></tablePage>
</template>

<script setup>
defineOptions({ name: 'taskConifgure' })
import { reactive, ref, onMounted } from 'vue'
import tablePage from '@/components/tablePage/index.vue'

const state = reactive({
  apiName:'taskconifgure',
  searchFilter: {
    tableName: null
  },
  searchOptions:[
    {type:'input',prop:'tableName',label:'表名'}
  ],
  rightOperation:'apiUpdate',
  apiEditFormRules:{
    tableName: [{ required: true, message: '必填项', trigger: 'blur' }],
    taskName: [{ required: true, message: '必填项', trigger: 'blur' }],
    api: [{ required: true, message: '必填项', trigger: 'blur' }],
    url: [{ required: true, message: '必填项', trigger: 'blur' }],
    corn: [{ required: true, message: '必填项', trigger: 'blur' }],
  }
})
</script>