(create)新增项目所属文档片段crud

This commit is contained in:
2024-07-25 18:51:12 +08:00
parent 3c32e70977
commit 7aecdb2df6
20 changed files with 231 additions and 61 deletions

View File

@@ -153,6 +153,9 @@ const crudOptions = ref({
add: { show: true, api: testDemandApi.save, text: "新增测试项" },
edit: { show: true, api: testDemandApi.update, text: "修改测试项" },
delete: { show: true, api: testDemandApi.delete },
afterDelete(response) {
crudRef.value.setSelecteds([])
},
showTools: false,
beforeOpenAdd: function () {
let key_split = route.query.key.split("-")
@@ -198,7 +201,7 @@ const crudOptions = ref({
searchColNumber: 3,
tablePagination: false,
operationColumn: true,
operationColumnAlign:'center',
operationColumnAlign: "center",
formOption: {
width: 1200
}