| | |
| | | <el-row style="margin: 15px 0"> |
| | | <el-form> |
| | | <el-row> |
| | | <el-col :span="5"> |
| | | <el-col :span="6"> |
| | | <el-form-item label="培训日期:"> |
| | | <el-date-picker v-model="trainingForm.openingTime" format="yyyy-MM-dd" :disabled="currentRow.state !== 3" |
| | | placeholder="选择日期" size="small" value-format="yyyy-MM-dd" |
| | |
| | | import { |
| | | newPersonnelAddedToTrainingRecords, |
| | | outOfFocusPreservation, trainingAndAssessmentRecordsAdded, trainingAndAssessmentRecordsEvaluate, |
| | | trainingAndAssessmentRecordsPage |
| | | trainingAndAssessmentRecordsPage, deleteTrainingAndAssessmentRecords |
| | | } from "@/api/cnas/personal/personalTraining"; |
| | | |
| | | export default { |
| | |
| | | }, |
| | | addUserTableInfo: { |
| | | name: null, |
| | | type: 2 |
| | | }, |
| | | multipleSelection: [], |
| | | userList: [], |
| | |
| | | }, |
| | | batchDelete() { |
| | | if (this.multipleSelection.length > 0) { |
| | | let ids = this.multipleSelection.map(item => item.trainingRecordId) |
| | | let ids = this.multipleSelection.map(item => item.trainingRecordId).join(',') |
| | | this.$confirm('是否确认删除所选择的数据?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | let formData = new FormData() |
| | | formData.append('ids', ids) |
| | | deleteTrainingAndAssessmentRecords(formData).then(res => { |
| | | deleteTrainingAndAssessmentRecords({ids: ids}).then(res => { |
| | | if (res.code == 200) { |
| | | this.$message.success('删除成功'); |
| | | this.getInfo() |