From 87edc55a377c3fca459ab48010a9716b0311c4a8 Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: 星期一, 15 八月 2022 09:21:54 +0800
Subject: [PATCH] lct

---
 src/views/goalManagement/performanceAppraisal/component/DailogSearch.vue |   29 ++++++++++++++++++++++++-----
 1 files changed, 24 insertions(+), 5 deletions(-)

diff --git a/src/views/goalManagement/performanceAppraisal/component/DailogSearch.vue b/src/views/goalManagement/performanceAppraisal/component/DailogSearch.vue
index 01d64c1..cb5bd86 100644
--- a/src/views/goalManagement/performanceAppraisal/component/DailogSearch.vue
+++ b/src/views/goalManagement/performanceAppraisal/component/DailogSearch.vue
@@ -24,11 +24,11 @@
 					</el-row>
 				</el-form>
 				<el-button size="default" :icon="Delete" @click="clear">清除选择</el-button>
-				<el-table :data="tableData" style="width: 100%; margin-top: 20px" @cell-click="radio">
+				<el-table :data="tableData" style="width: 100%; margin-top: 20px" >
 					<el-table-column align="center" width="70px">
 						<template #default="scope">
 							<el-radio-group v-model="radio1">
-								<el-radio :label="scope.row.id" size="large">{{ null }}</el-radio>
+								<el-radio :label="scope.row.id" @click="radio(scope.row)" size="large">{{ null }}</el-radio>
 							</el-radio-group>
 						</template>
 					</el-table-column>
@@ -64,7 +64,7 @@
 		<template #footer>
 			<span class="dialog-footer">
 				<el-button @click="dialogVisible = false" size="default">关闭</el-button>
-				<el-button type="primary" @click="dialogVisible = false" size="default">确定</el-button>
+				<el-button type="primary" @click="submitForm" size="default">确定</el-button>
 			</span>
 		</template>
 	</el-dialog>
@@ -75,7 +75,7 @@
 import { ElMessageBox, ElMessage, ElButton, ElInput, TabsPaneContext, FormInstance } from 'element-plus';
 import { goalManagementApi } from '/@/api/goalManagement';
 export default defineComponent({
-	setup() {
+	setup(props,{emit}) {
 		const dialogVisible = ref<boolean>(false);
 		const openDailog = () => {
 			dialogVisible.value = true;
@@ -122,6 +122,12 @@
 			ruleForm.pageIndex = val;
 			listApi();
 		};
+		// 提交
+		const submitForm=()=>{
+        dialogVisible.value = false
+		emit("typeDome",dynamicTags.value[0],list.value)
+		clear()
+		}
 		// 右方点击添加后显示标签
 		const dynamicTags = ref(['']);
 		const handleClose = (tag: string) => {
@@ -129,8 +135,19 @@
 			radio1.value = '';
 		};
 		const radio1 = ref('');
+		const list=ref([])
 		const radio = (event: any) => {
-			dynamicTags.value[0] = event;
+
+				goalManagementApi()
+					.getexamineTemplateDetail(event.id)
+					.then((res) => {
+						if (res.data.code == 200) {
+							list.value = res.data.data;
+						} else {
+							ElMessage.error(res.data.msg);
+						}
+					});
+					dynamicTags.value[0] = event;
 		};
 		const clear=()=>{
 			dynamicTags.value=['']
@@ -146,6 +163,8 @@
 			}
 		};
 		return {
+			submitForm,
+			list,
 			reset,
 			dialogVisible,
 			listApi,

--
Gitblit v1.9.2