Browse Source

chore: compose

master
wangxiang 1 year ago
parent
commit
17f4d23fd2
  1. 17
      src/api/platform/system/entity/gencodeTable.ts
  2. 16
      src/api/platform/system/entity/gencodeTableColumn.ts
  3. 11
      src/views/system/devtools/genTable/index.vue

17
src/api/platform/system/entity/gencodeTable.ts

@ -0,0 +1,17 @@ @@ -0,0 +1,17 @@
import type { R } from '/#/axios';
import type { Page, CommonEntity } from '/@/api/common/data/entity';
export type GencodeCustomObjParams = Page & GencodeCustomObj;
export interface GencodeCustomObj extends CommonEntity {
id: string;
label: string;
value: string;
dataUrl: string;
tableName: string;
sort: number;
type: string;
[key: string]: any;
}
export type GencodeCustomObjResult = R<GencodeCustomObj[]>;

16
src/api/platform/system/entity/gencodeTableColumn.ts

@ -0,0 +1,16 @@ @@ -0,0 +1,16 @@
import type { R } from '/#/axios';
import type { Page } from '/@/api/common/data/entity';
import type { BaseEntity } from '/@/api/common/base/entity';
export type GencodeCustomFieldParams = Page & GencodeCustomField;
export interface GencodeCustomField extends BaseEntity {
id: string;
name: string;
objId: string;
sort: number;
remarks: string;
[key: string]: any;
}
export type GencodeCustomFieldResult = R<GencodeCustomField[]>;

11
src/views/system/devtools/genTable/index.vue

@ -6,9 +6,7 @@ @@ -6,9 +6,7 @@
dense
>
<div class="m-4 mr-0 overflow-hidden bg-white w-1/4 xl:w-1/5">
<BasicTree title="流程分类"
toolbar
search
<BasicTree search
defaultExpandAll
:clickRowToExpand="false"
:treeData="state.treeData"
@ -184,6 +182,13 @@ @@ -184,6 +182,13 @@
});
}
function handleSelect(selectedKeys: string[]) {
/*getForm().setFieldsValue({
categoryId: selectedKeys[0]
});
getForm().submit();*/
}
function handleRefreshTable() {
clearSelectedRowKeys();
reload();

Loading…
Cancel
Save