检查表、检查项模块bug修改
This commit is contained in:
parent
3b92fc40cd
commit
7da5572ef5
|
|
@ -85,15 +85,7 @@ const state = reactive({
|
|||
parmas: {isDeleted: false, enabled: true},
|
||||
key: 'deliveryMethodId',
|
||||
optionProps: {key: 'deliveryMethodId', label: 'methodName', value: 'deliveryMethodId'}
|
||||
},
|
||||
checklist: {//检查表
|
||||
filterable: false,
|
||||
api: checklists,
|
||||
parmas: {isRemove: false, enabled: true},
|
||||
key: 'checklistId',
|
||||
optionProps: {key: 'checklistId', label: 'checklistName', value: 'checklistId'}
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
const {baseConfig, selectConfig} = toRefs(state)
|
||||
|
|
|
|||
|
|
@ -12,15 +12,7 @@
|
|||
<template #queryPanel="{ queryParams: qp }">
|
||||
<el-form ref="queryForm" :model="qp" label-width="100px">
|
||||
<el-row class="query-condition">
|
||||
<el-col :span="6">
|
||||
<el-form-item label="检查表" prop="checklistName">
|
||||
<el-input v-model="qp.checklistName"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="描述" prop="description">
|
||||
<el-input v-model="qp.description"/>
|
||||
</el-form-item>
|
||||
m-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
|
|
|
|||
|
|
@ -119,14 +119,7 @@ public class ChecklistService {
|
|||
*
|
||||
* @param itemIds 检查表ID列表
|
||||
*/
|
||||
@Transactional
|
||||
public void deleteChecklistByIds(List<String> itemIds) {
|
||||
checklistRepo.findAllById(itemIds).forEach(checklist -> {
|
||||
checklist.setIsRemove(true);
|
||||
checklist.setRemoveTime(LocalDateTime.now());
|
||||
checklistRepo.save(checklist);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据查询条件获取检查表列表
|
||||
|
|
|
|||
Loading…
Reference in New Issue