From 36185b6da7383751f9bf56b427b50e075e686005 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: Thu, 14 Nov 2024 11:10:19 +0800
Subject: [PATCH] 新增页面
---
src/views/safetyReview/expertManage/postEvaluation/index.vue | 22 ++++++++++++----------
1 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/src/views/safetyReview/expertManage/postEvaluation/index.vue b/src/views/safetyReview/expertManage/postEvaluation/index.vue
index 1acd943..a1f77d5 100644
--- a/src/views/safetyReview/expertManage/postEvaluation/index.vue
+++ b/src/views/safetyReview/expertManage/postEvaluation/index.vue
@@ -24,11 +24,11 @@
</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" />
@@ -61,14 +61,14 @@
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'
@@ -95,7 +95,8 @@
});
const { showSearch,total, expertTypes,expertList,queryParams,classiFy,searchTime} = toRefs(data);
-const expertFormRef = ref()
+const expertListRef = ref()
+
onMounted(()=>{
getList()
getTypes()
@@ -168,8 +169,9 @@
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) => {
--
Gitblit v1.9.2