| | |
| | | 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 }, |
| | |
| | | // 重置 |
| | | const resetForm = () => { |
| | | ruleForm.searchParams.examineDepartmentId = ''; |
| | | listApi() |
| | | }; |
| | | const listApi = () => { |
| | | goalManagementApi() |
| | |
| | | }; |
| | | // 切换 |
| | | 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(); |
| | |
| | | }); |
| | | // 重置 |
| | | 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; |