diff --git a/src/api/resource/catalogTextbook/index.ts b/src/api/resource/catalogTextbook/index.ts index cf7709d..0f89cc2 100644 --- a/src/api/resource/catalogTextbook/index.ts +++ b/src/api/resource/catalogTextbook/index.ts @@ -69,3 +69,12 @@ export const delCatalogTextbook = (catalogId: string | number | Array { + return request({ + url: '/catalog/textbook/drag', + method: 'post', + data: data + }); +}; \ No newline at end of file diff --git a/src/api/teacher/types.ts b/src/api/teacher/types.ts index 1ec8f52..dd606d3 100644 --- a/src/api/teacher/types.ts +++ b/src/api/teacher/types.ts @@ -122,6 +122,10 @@ export interface TeacherForm extends BaseEntity { */ birthday?: string; + postCode?: string; + + postIds?: [] + } export interface TeacherQuery extends PageQuery { @@ -181,10 +185,10 @@ export interface TeacherQuery extends PageQuery { */ birthday?: string; - /** - * 日期范围参数 - */ - params?: any; + /** + * 日期范围参数 + */ + params?: any; } diff --git a/src/views/basic/teacher/index.vue b/src/views/basic/teacher/index.vue index dde72bb..863293d 100644 --- a/src/views/basic/teacher/index.vue +++ b/src/views/basic/teacher/index.vue @@ -97,7 +97,7 @@ + check-strictly @change="handleDeptChange" /> @@ -172,6 +172,15 @@ + + + + + + + +
- - - - - - - - + + + + +
@@ -103,6 +91,11 @@ type CatalogPersonOption = { children?: CatalogPersonOption[]; } +const defaultProps = { + children: 'children', + label: 'catalogName', +} + const { proxy } = getCurrentInstance() as ComponentInternalInstance; const { volume } = useVolume(2); @@ -290,10 +283,18 @@ onMounted(() => { }); const fileListRef = ref() -const handleRowClick = (row: any) => { +const handleNodeClick = (row: any) => { fileListRef.value.handleNode(row) } +const handleDrop = (draggingNode, dropNode, dropType) => { + // 处理拖拽后的逻辑,比如更新节点顺序等 + console.log('draggingNode:', draggingNode, 'dropNode:', dropNode, 'dropType:', dropType) + const oldData = draggingNode.data + const newData = dropNode.data +} + + const handleChange = () => { fileListRef.value.handleTypeChange(queryParams.value.type) } @@ -338,6 +339,15 @@ const handleChange = () => { .active { background-color: #F5F7FA; } + + .custom-tree-node { + flex: 1; + display: flex; + align-items: center; + justify-content: space-between; + font-size: 14px; + padding-right: 8px; + } } :deep(.docx-wrapper) { diff --git a/src/views/resource/catalogResource/index.vue b/src/views/resource/catalogResource/index.vue index 238e5be..aef8c7b 100644 --- a/src/views/resource/catalogResource/index.vue +++ b/src/views/resource/catalogResource/index.vue @@ -1,22 +1,5 @@ - - -