shj
2022-08-11 a831b79d695473619f44c42836c05bef7cef44c2
src/views/goalManagement/performanceAppraisal/index.vue
@@ -141,8 +141,9 @@
import DailogAq from './component/DailogAq.vue';
import DailogKh from './component/DailogKh.vue';
import { ref, toRefs, reactive, onMounted, defineComponent } from 'vue';
import { ElMessageBox, ElMessage, ElButton, ElInput, TabsPaneContext, FormInstance } from 'element-plus';
import { ElMessageBox, ElMessage, ElButton, ElInput, FormInstance } from 'element-plus';
import { Plus, Delete, Upload, Download, Refresh, View, EditPen } from '@element-plus/icons-vue';
import type { TabsPaneContext } from 'element-plus'
import { goalManagementApi } from '/@/api/goalManagement';
export default defineComponent({
   components: { ElButton, ElInput, DailogAq, DailogKh },
@@ -158,6 +159,7 @@
      // 重置
      const resetForm = () => {
         ruleForm.searchParams.examineDepartmentId = '';
         listApi()
      };
      const listApi = () => {
         goalManagementApi()
@@ -283,8 +285,9 @@
      };
      // 切换
      const activeName = ref('1');
      const handleClick = (val: any) => {
         if (val == '1') {
      const handleClick = (val: TabsPaneContext) => {
         console.log(val)
         if (val.props.name == '1') {
            listApi();
         }else{
            listApis();
@@ -300,11 +303,12 @@
      });
      // 重置
      const resetForms = () => {
         ruleForm.searchParams.examineDepartmentId = '';
         ruleForms.searchParams.title = '';
         listApis()
      };
      const listApis = () => {
         goalManagementApi()
            .getexamineTemplateList(ruleForm)
            .getexamineTemplateList(ruleForms)
            .then((res) => {
               if (res.data.code == 200) {
                  tableDatas.value = res.data.data;