<template>
    <div>
        <div>
            <TableHeader area ref="TableHeaderRef">
                <template #select>
                    <el-form-item label="干扰源类型">
                        <el-input
                            v-model="tableStore.table.params.searchValue"
                            clearable
                            placeholder="请选择干扰源类型"
                        ></el-input>
                    </el-form-item>
                    <el-form-item label="干扰源用户名称">
                        <el-input
                            v-model="tableStore.table.params.searchValue"
                            clearable
                            placeholder="请选择干扰源用户名称"
                        ></el-input>
                    </el-form-item>
                    <el-form-item label="关联干扰源用户">
                        <el-input
                            v-model="tableStore.table.params.searchValue"
                            clearable
                            placeholder="请选择关联干扰源用户"
                        ></el-input>
                    </el-form-item>
                </template>
                <template #operation>
                    <el-button icon="el-icon-Stamp" type="primary">审核</el-button>
                </template>
            </TableHeader>
            <Table ref="tableRef" />
        </div>
    </div>
</template>
<script setup lang="ts">
import { ref, onMounted, provide, nextTick } from 'vue'
import TableStore from '@/utils/tableStore'
import Table from '@/components/table/index.vue'
import TableHeader from '@/components/table/header/index.vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { mainHeight } from '@/utils/layout'
import { useDictData } from '@/stores/dictData'
import { addUse, updateUse, removeUse } from '@/api/advance-boot/bearingCapacity'

const dictData = useDictData()
const process = [
    {
        name: '是',
        id: '1'
    },
    {
        name: '否',
        id: '0'
    }
]

const dialogVisible = ref(false)
const TableHeaderRef = ref()
const title = ref('')

const ruleFormRef = ref()
const tableStore = new TableStore({
    url: '/system-boot/area/areaSelect',
    publicHeight: 65,
    method: 'POST',
    column: [
        { width: '60', type: 'checkbox' },
        { field: 'orgName', title: '所属单位' },
        {
            field: 'loadType',
            title: '干扰源类型'
        },
        { field: 'userName', title: '干扰源用户名称' },
        { field: 'relationUserName', title: '关联干扰源用户名称' },
        { field: 'auploadTime', title: '报告提交评估时间' }
    ],

    loadCallback: () => {
        tableStore.table.data = []
    }
})

tableStore.table.params.searchState = ''
tableStore.table.params.searchValue = ''
tableStore.table.params.type = ''

provide('tableStore', tableStore)
onMounted(() => {
    tableStore.index()
})
</script>
