| | |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" plain :icon="Plus" @click="openDialog('add',{})">新增</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | <!-- <el-row :gutter="10" class="mb8">--> |
| | | <!-- <el-col :span="1.5">--> |
| | | <!-- <el-button type="primary" plain :icon="Plus" @click="openAdd('add',{})">新增</el-button>--> |
| | | <!-- </el-col>--> |
| | | <!-- </el-row>--> |
| | | <el-table v-loading="loading" :data="expertList" :border="true"> |
| | | <el-table-column type="index" width="55" align="center" /> |
| | | <el-table-column label="项目名称" align="center" prop="name" /> |
| | |
| | | v-model:limit="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | <expert-form ref="expertFormRef" @getList="getList"></expert-form> |
| | | <expert-list ref="expertListRef" @getList="getList"></expert-list> |
| | | </div> |
| | | </template> |
| | | |
| | | <script setup> |
| | | import {getCurrentInstance, onMounted, onUnmounted, reactive, ref, toRefs} from "vue"; |
| | | import {ElMessage, ElMessageBox} from "element-plus"; |
| | | import ExpertForm from "./components/expertForm"; |
| | | import ExpertList from "./components/expertList"; |
| | | import {delExpert, getExpertsList, getExpertTypes} from "../../../../api/form"; |
| | | import { Plus } from '@element-plus/icons-vue' |
| | | |
| | |
| | | }); |
| | | |
| | | const { showSearch,total, expertTypes,expertList,queryParams,classiFy,searchTime} = toRefs(data); |
| | | const expertFormRef = ref() |
| | | const expertListRef = ref() |
| | | |
| | | onMounted(()=>{ |
| | | getList() |
| | | getTypes() |
| | |
| | | loading.value = false; |
| | | } |
| | | |
| | | const openDialog = (type, value) => { |
| | | expertFormRef.value.openDialog(type, value) |
| | | const openDialog = async (type, value) => { |
| | | console.log(expertListRef.value,888) |
| | | expertListRef.value.openDialog(type, value) |
| | | } |
| | | |
| | | const handleDelete = (val) => { |