@@ -91,15 +91,15 @@
// slots: { customRender: 'action' },
// fixed: 'right',
// },
- customRow: () => {
- return {
- onClick: () => {
- return false;
- },
- };
+ // customRow: () => {
+ // return {
+ // onClick: () => {
+ // return false;
+ // },
+ // };
rowSelection: {
- type: 'checkbox',
+ // type: 'checkbox',
onSelectAll: (selected: any, selectedRows: any, changeRows: any) => {
selectRows.value = selectedRows;
},
@@ -114,6 +114,10 @@
const values = await validate();
setModalProps({ confirmLoading: true });
+
+ if (!values['parentId']) {
+ values['parentId'] = 0;
+ }
// TODO custom api
if (!unref(isUpdate)) {
//false 新增