lct
Your Name
2022-08-15 87edc55a377c3fca459ab48010a9716b0311c4a8
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,