From 2bff5e788d4f7e505961270f0624aa3e78280e25 Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: 星期四, 13 十月 2022 14:31:29 +0800
Subject: [PATCH] 目录
---
src/views/goalManagement/performanceAppraisal/component/DailogSearch.vue | 31 +++++++++++++++++++++++++------
1 files changed, 25 insertions(+), 6 deletions(-)
diff --git a/src/views/goalManagement/performanceAppraisal/component/DailogSearch.vue b/src/views/goalManagement/performanceAppraisal/component/DailogSearch.vue
index 01d64c1..d50ea80 100644
--- a/src/views/goalManagement/performanceAppraisal/component/DailogSearch.vue
+++ b/src/views/goalManagement/performanceAppraisal/component/DailogSearch.vue
@@ -15,7 +15,7 @@
<el-input v-model="ruleForm.checkPass" placeholder="目标指标编号" />
</el-form-item>
</el-col> -->
- <el-col :span="6" :offset="1">
+ <el-col :span="11" :offset="1">
<el-form-item>
<el-button size="default" type="primary" @click="listApi()">查询</el-button>
<el-button size="default" @click="reset">重置</el-button>
@@ -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