| | |
| | | <el-table ref="multipleTableRef" :data="tableData" style="width: 100%" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" align="center" width="55" /> |
| | | <el-table-column type="expand"> |
| | | <template #default> |
| | | <template #default="scope"> |
| | | <div class="tableC"> |
| | | <el-table :data="tableData.currentExamineDtoList" style="width: 100%"> |
| | | <el-table :data="scope.row.currentExamineDtoList" style="width: 100%"> |
| | | <el-table-column align="center" prop="itemDetail" label="考核项目" /> |
| | | <el-table-column align="center" prop="content" label="考核内容" /> |
| | | <el-table-column align="center" prop="number" label="考核分数" /> |
| | |
| | | <el-table ref="multipleTableRef" :data="tableDatas" style="width: 100%" @selection-change="handleSelectionChanges"> |
| | | <el-table-column type="selection" align="center" width="55" /> |
| | | <el-table-column type="expand"> |
| | | <template #default> |
| | | <template #default="scope"> |
| | | <div class="tableC"> |
| | | <el-table :data="tableDatas.examineItemList" style="width: 100%"> |
| | | <el-table :data="scope.row.examineItemList" style="width: 100%"> |
| | | <el-table-column align="center" prop="itemType" label="类型" /> |
| | | <el-table-column align="center" prop="itemDetail" label="考核项目" /> |
| | | <el-table-column align="center" prop="content" label="考核内容" /> |
| | |
| | | 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; |