From 7d32361eed3257f3563baeaaca025c859d61c5b1 Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Wed, 15 May 2024 17:13:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=A3=E6=A1=88=E9=97=A8=E7=B1=BB=E6=A0=91?= =?UTF-8?q?=E4=BF=AE=E6=94=B9/=E6=94=B6=E9=9B=86=E5=BA=93=E8=A3=85?= =?UTF-8?q?=E7=9B=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/yxk-admin.scss | 10 +- .../managementLibrary/index.vue | 233 +++++---- .../managementLibrary/mixins/index.js | 12 +- .../module/collectHeader.vue | 8 +- .../module/packingBox/index.vue | 4 +- .../collectionLibrary/index.vue | 230 ++++++--- .../module/collectHeader.vue | 61 ++- .../module/packingBox/index.vue | 457 ++++++++++++++++++ .../components/archivesListModule/index.vue | 2 +- src/views/system/groupManage/index.vue | 87 +++- src/views/system/user/index.vue | 46 +- 11 files changed, 925 insertions(+), 225 deletions(-) create mode 100644 src/views/collectReorganizi/collectionLibrary/module/packingBox/index.vue diff --git a/src/assets/styles/yxk-admin.scss b/src/assets/styles/yxk-admin.scss index 66e9bb9..3c3d102 100644 --- a/src/assets/styles/yxk-admin.scss +++ b/src/assets/styles/yxk-admin.scss @@ -1338,19 +1338,21 @@ input[type ='number'] { .iconFolder{ display: inline-block; - width: 17px; + // width: 17px; height: 17px; padding-left: 22px; background: url('~@/assets/images/icon/tree-01.png') no-repeat left center; - background-size: contain; + background-size: 17px 17px; + // background-size: contain; } .iconArch{ display: inline-block; - width: 20px; + // width: 20px; height: 20px; padding-left: 22px; background: url('~@/assets/images/icon/tree-02.png') no-repeat left center; - background-size: cover; + background-size: 20px 20px; + // background-size: cover; } .iconFile{ diff --git a/src/views/archivesManage/managementLibrary/index.vue b/src/views/archivesManage/managementLibrary/index.vue index fd95632..489a4fc 100644 --- a/src/views/archivesManage/managementLibrary/index.vue +++ b/src/views/archivesManage/managementLibrary/index.vue @@ -10,19 +10,18 @@
- - - {{ data.cnName }} + + + {{ data.label }} - - - - {{ data.cnName }} + + {{ data.label }} - - - - {{ data.cnName }} + + {{ data.label }} + + + {{ data.label }} @@ -73,7 +72,7 @@ import crudCategory from '@/api/category/category' import crudRoles from '@/api/system/role' import { manageLibraryCrud } from './mixins/index' -import { FetchInitSearchFonds } from '@/api/archiveUtilize/archiveUtilize' +// import { FetchInitSearchFonds } from '@/api/archiveUtilize/archiveUtilize' import { FetchDictionaryTreeByCategoryId } from '@/api/system/dict' import { FetchIsAuthByLookType } from '@/api/archivesManage/library' import CRUD, { presenter, header } from '@crud/crud' @@ -89,8 +88,9 @@ export default { cruds() { return [ CRUD({ - title: '收集库', url: 'api/category/menu', + title: '管理库', url: 'api/category/fondMenu', crudMethod: { ...crudCategory }, + query: { page: null, size: null }, optShow: { add: false, edit: false, @@ -121,7 +121,7 @@ export default { return { defaultProps: { children: 'children', - label: 'cnName' + label: 'label' }, defaultClassifyProps: { children: 'childDictionarys' || null, @@ -221,56 +221,113 @@ export default { } return null }, - // 展开选中的父级 - expandParents(node) { + // 转换函数,将原始数据转换为el-tree所需格式 + transformData(rawData) { + return rawData.map(item => { + return { + label: item.fondName, + isType: 0, + id: item.fondsId, + children: item.categoryList.map(category => { + return { + label: category.cnName, + id: category.id, + arrangeType: category.arrangeType, + isType: category.isType, + fondsId: item.fondsId, + children: this.transformChildren(category.children, item.fondsId) + } + }) + } + }) + }, + // 递归函数,用于处理数据的子节点 + transformChildren(children, fondsId) { + return children.map(child => { + return { + label: child.cnName, + id: child.id, + isType: child.isType, + pid: child.pid, + code: child.code, + arrangeType: child.arrangeType, + fondsId: fondsId, + children: child.children.length ? this.transformChildren(child.children, fondsId) : [] + } + }) + }, + // 根据父级展开全部子级 + expandAllChildren(node, targetElement) { node.expanded = true - if (node.parent) { - this.expandParents(node.parent) + // 递归展开当前节点的每个子节点 + if (node.childNodes && node.childNodes.length > 0) { + for (let i = 0; i < node.childNodes.length; i++) { + if (node.childNodes[i].data.id === targetElement.id) { + this.$refs.categroyTree.setCurrentKey(node.childNodes[i]) + } + this.expandAllChildren(node.childNodes[i], targetElement) + } + } + }, + // 找顶级节点 + findTopLevelNode(data, fondsId) { + for (let i = 0; i < data.length; i++) { + if (data[i].id === fondsId) { + return data[i] + } } + return null }, [CRUD.HOOK.afterRefresh]() { - this.crud.data = this.filterData(this.crud.data) + this.crud.data = this.filterData(this.transformData(this.crud.data)) + console.log('this.crud.data', this.crud.data) this.$nextTick(() => { let currentKey - if (localStorage.getItem('currentArchivesKey')) { + if (localStorage.getItem('currentArchivesKey') !== null) { currentKey = JSON.parse(localStorage.getItem('currentArchivesKey')) // 删除门类节点后 if (this.$refs.categroyTree.getCurrentKey(currentKey.id) == null) { localStorage.removeItem('currentArchivesKey') } - // 缓存的门类节点判断 - if (currentKey.isType === 1) { - if (currentKey.children.length !== 0) { - currentKey = this.findNode(currentKey.children, (node) => { - return node.isType !== 1 - }) + this.topLevelNode = this.findTopLevelNode(this.crud.data, currentKey.fondsId) + // 如果找到了顶级节点,则从该节点开始递归查找指定元素 + if (this.topLevelNode) { + if (currentKey) { + // 展开顶级节点的子节点 + if (currentKey.isType === 1) { + currentKey = this.findNode(this.crud.data[0].children, (node) => { + return node.isType !== 1 + }) + } + this.expandAllChildren(this.$refs.categroyTree.getNode(this.topLevelNode), currentKey) + } else { + this.defaultSetting(currentKey) } - } - } else { - // 默认 - if (this.crud.data[0].isType === 1) { - currentKey = this.findNode(this.crud.data[0].children, (node) => { - return node.isType !== 1 - }) } else { - currentKey = this.crud.data[0] + this.defaultSetting(currentKey) } + } else { + this.defaultSetting(currentKey) } if (currentKey && currentKey.id) { - // 设置某个节点的当前选中状态 - this.$refs.categroyTree.setCurrentKey(currentKey.id) this.$nextTick(() => { - // 设置某个节点的父级展开 - const selectedKey = this.$refs.categroyTree.getCurrentNode() - if (this.$refs.categroyTree.getNode(selectedKey) && this.$refs.categroyTree.getNode(selectedKey).parent) { - this.expandParents(this.$refs.categroyTree.getNode(selectedKey).parent) - } // 选中节点的门类详情 - this.handleNodeClick(selectedKey) + this.handleNodeClick(currentKey) }) } }) }, + defaultSetting(currentKey) { + if (this.crud.data[0].isType === 0) { + currentKey = this.findNode(this.crud.data[0].children, (node) => { + return node.isType !== 1 + }) + this.expandAllChildren(this.$refs.categroyTree.getNode(this.crud.data[0]), currentKey) + } else { + currentKey = this.crud.data[0] + this.expandAllChildren(this.$refs.categroyTree.getNode(this.crud.data[0]), currentKey) + } + }, handleNodeClick(val) { this.smartQuery = { // 'retention': null, // 保管期限 @@ -295,12 +352,13 @@ export default { this.classifyTree = [] } this.$nextTick(() => { + this.smartQuery.fonds_no = this.selectedCategory.fondsId this.getDictsList() - FetchInitSearchFonds().then(res => { - const allFondsIds = res.map(item => item.fondsId) - // this.$refs.classifyTree.setCheckedKeys(allFondsIds) - this.smartQuery.fonds_no = allFondsIds.join(',') - }) + // FetchInitSearchFonds().then(res => { + // const allFondsIds = res.map(item => item.fondsId) + // // this.$refs.classifyTree.setCheckedKeys(allFondsIds) + // this.smartQuery.fonds_no = allFondsIds.join(',') + // }) this.handlePageList() // Promise.all(this.user.roles.map(item => this.getRole(item.id))) // .then(roles => { @@ -386,29 +444,30 @@ export default { 'categoryId': categoryId } FetchDictionaryTreeByCategoryId(params).then((res) => { - let fonds - if (res.fonds.length <= 1) { - fonds = [] - } else { - const parent = {} - parent.id = 0 - parent.fondsName = '全宗' - parent.childDictionarys = res.fonds.map(item => { - return { - ...item, - id: item.fondsId - } - }) - fonds = parent - } - if (res.dictionarys.length === 0) { - this.classifyTree = [] - if (fonds.length !== 0) { - this.classifyTree.push(fonds) - } - } else { - this.classifyTree = res.dictionarys.concat(fonds) - } + this.classifyTree = res.dictionarys + // let fonds + // if (res.fonds.length <= 1) { + // fonds = [] + // } else { + // const parent = {} + // parent.id = 0 + // parent.fondsName = '全宗' + // parent.childDictionarys = res.fonds.map(item => { + // return { + // ...item, + // id: item.fondsId + // } + // }) + // fonds = parent + // } + // if (res.dictionarys.length === 0) { + // this.classifyTree = [] + // if (fonds.length !== 0) { + // this.classifyTree.push(fonds) + // } + // } else { + // this.classifyTree = res.dictionarys.concat(fonds) + // } this.classifyLoading = false }).catch(err => { console.log(err) @@ -425,20 +484,21 @@ export default { handleCheckChange(data, checked, indeterminate) { // 获取所有选中的节点 const res = this.$refs.classifyTree.getCheckedNodes() + this.smartQuery.fonds_no = this.selectedCategory.fondsId // const isFondsTop = res.some(obj => obj.fondsName === '全宗') // if (isFondsTop) { // this.smartQuery.fonds_no = null - const fondsGroup = res.filter(item => item.fondsId).map(item => item.fondsId) - if (fondsGroup.length === 0) { - FetchInitSearchFonds().then(res => { - this.smartQuery.fonds_no = res.map(item => item.fondsId).join(',') - this.$nextTick(() => { - this.handlePageList('quickFilter') - }) - }) - } else { - this.smartQuery.fonds_no = fondsGroup.join(',') - } + // const fondsGroup = res.filter(item => item.fondsId).map(item => item.fondsId) + // if (fondsGroup.length === 0) { + // FetchInitSearchFonds().then(res => { + // this.smartQuery.fonds_no = res.map(item => item.fondsId).join(',') + // this.$nextTick(() => { + // this.handlePageList('quickFilter') + // }) + // }) + // } else { + // this.smartQuery.fonds_no = fondsGroup.join(',') + // } // } const groupedData = {} @@ -682,4 +742,15 @@ export default { [data-theme=dark] .elect-cont-right { margin-top: 0 !important; } + +.el-tree{ + .el-tree-node__children{ + .tree-text { + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + width: 160px; + } + } +} diff --git a/src/views/archivesManage/managementLibrary/mixins/index.js b/src/views/archivesManage/managementLibrary/mixins/index.js index bc2f173..8e8380d 100644 --- a/src/views/archivesManage/managementLibrary/mixins/index.js +++ b/src/views/archivesManage/managementLibrary/mixins/index.js @@ -110,8 +110,6 @@ export const manageLibraryCrud = { }) }, getViewTableList(categoryLevel, parentsId, type) { - // console.log('888', this.smartQuery.fonds_no) - console.log('this.page.page', this.page.page) const params = { 'parentId': parentsId, 'categoryId': this.selectedCategory.id, @@ -129,7 +127,7 @@ export const manageLibraryCrud = { 'fonds_no': this.smartQuery.fonds_no, 'project_class': this.query.project_class, 'archive_ctg_no': this.query.archive_ctg_no, - 'page': this.page.page - 1, + 'page': this.page.page === 0 ? 0 : this.page.page - 1, 'size': this.page.size, 'sort': this.arrySort } @@ -147,6 +145,8 @@ export const manageLibraryCrud = { } if (type === 'search') { projectObj.projectData = res.list.content + projectObj.page.page = 1 + projectObj.page.size = 10 projectObj.page.total = res.list.totalElements projectObj.getTableDisplayFieldsLoading = false } @@ -162,6 +162,8 @@ export const manageLibraryCrud = { // 搜索/新增/编辑 非 案卷是主页的时候 if (type === 'search') { anjuanObj.anjuanData = res.list.content + anjuanObj.page.page = 1 + anjuanObj.page.size = 10 anjuanObj.page.total = res.list.totalElements anjuanObj.getTableDisplayFieldsLoading = false } @@ -177,6 +179,8 @@ export const manageLibraryCrud = { } if (type === 'search') { wjObj.anjuanData = res.list.content + wjObj.page.page = 1 + wjObj.page.size = 10 wjObj.page.total = res.list.totalElements wjObj.getTableDisplayFieldsLoading = false } @@ -186,6 +190,8 @@ export const manageLibraryCrud = { this.page.total = res.list.totalElements if (type === 'search') { this.parentsData.$refs.juanneiEle.junneiData = res.list.content + this.parentsData.$refs.fileEle.page.page = 1 + this.parentsData.$refs.fileEle.page.size = 10 this.parentsData.$refs.juanneiEle.page.total = res.list.totalElements this.parentsData.$refs.juanneiEle.getTableDisplayFieldsLoading = false } diff --git a/src/views/archivesManage/managementLibrary/module/collectHeader.vue b/src/views/archivesManage/managementLibrary/module/collectHeader.vue index 0c94efb..b92052b 100644 --- a/src/views/archivesManage/managementLibrary/module/collectHeader.vue +++ b/src/views/archivesManage/managementLibrary/module/collectHeader.vue @@ -744,9 +744,11 @@ export default { return false } if (this.selectedCategory.arrangeType === 2) { - if (this.selections.length > 1) { - this.$message({ message: '只可勾选唯一目标条目,请先确认!', offset: 8 }) - return false + if (type === 1) { + if (this.selections.length > 1) { + this.$message({ message: '只可勾选唯一目标条目,请先确认!', offset: 8 }) + return false + } } if (this.selections[0].child === 0) { this.$message({ message: '当前选中的档案无相关卷内文件,不可装盒!', type: 'error', offset: 8 }) diff --git a/src/views/archivesManage/managementLibrary/module/packingBox/index.vue b/src/views/archivesManage/managementLibrary/module/packingBox/index.vue index b652c05..ef96d43 100644 --- a/src/views/archivesManage/managementLibrary/module/packingBox/index.vue +++ b/src/views/archivesManage/managementLibrary/module/packingBox/index.vue @@ -278,7 +278,7 @@ export default { 'isdel': false, 'page': 0, 'size': 100, - 'sort': null, + 'sort': this.arrySort, 'queryType': null, 'queryTitle': null, 'itemNo': null, @@ -414,7 +414,7 @@ export default { if (res) { this.arrySort = [] this.tableDisplayFields = res - const orderSortArry = this.tableDisplayFields.filter(item => item.displayOrder).sort((a, b) => a.displayOrder - b.displayOrder) + const orderSortArry = this.tableDisplayFields.filter(item => item.queue).sort((a, b) => a.queue - b.queue) orderSortArry.forEach(item => { if (item.displayOrderBy) { this.arrySort.push(item.fieldName + ',' + item.displayOrderBy) diff --git a/src/views/collectReorganizi/collectionLibrary/index.vue b/src/views/collectReorganizi/collectionLibrary/index.vue index 70ed23d..8ce93e2 100644 --- a/src/views/collectReorganizi/collectionLibrary/index.vue +++ b/src/views/collectReorganizi/collectionLibrary/index.vue @@ -10,19 +10,18 @@
- - - {{ data.cnName }} + + + {{ data.label }} - - - - {{ data.cnName }} + + {{ data.label }} - - - - {{ data.cnName }} + + {{ data.label }} + + + {{ data.label }} @@ -87,8 +86,9 @@ export default { cruds() { return [ CRUD({ - title: '收集库', url: 'api/category/menu', + title: '收集库', url: 'api/category/fondMenu', crudMethod: { ...crudCategory }, + query: { page: null, size: null }, optShow: { add: false, edit: false, @@ -119,7 +119,7 @@ export default { return { defaultProps: { children: 'children', - label: 'cnName' + label: 'label' }, defaultClassifyProps: { children: 'childDictionarys' || null, @@ -147,7 +147,8 @@ export default { 'fonds_no': null // 全宗 }, isTabFile: false, - fixedStatusBar: false + fixedStatusBar: false, + topLevelNode: null } }, computed: { @@ -206,56 +207,113 @@ export default { } return null }, - // 展开选中的父级 - expandParents(node) { + // 根据父级展开全部子级 + expandAllChildren(node, targetElement) { node.expanded = true - if (node.parent) { - this.expandParents(node.parent) + // 递归展开当前节点的每个子节点 + if (node.childNodes && node.childNodes.length > 0) { + for (let i = 0; i < node.childNodes.length; i++) { + if (node.childNodes[i].data.id === targetElement.id) { + this.$refs.categroyTree.setCurrentKey(node.childNodes[i]) + } + this.expandAllChildren(node.childNodes[i], targetElement) + } + } + }, + // 转换函数,将原始数据转换为el-tree所需格式 + transformData(rawData) { + return rawData.map(item => { + return { + label: item.fondName, + isType: 0, + id: item.fondsId, + children: item.categoryList.map(category => { + return { + label: category.cnName, + id: category.id, + arrangeType: category.arrangeType, + isType: category.isType, + fondsId: item.fondsId, + children: this.transformChildren(category.children, item.fondsId) + } + }) + } + }) + }, + // 递归函数,用于处理数据的子节点 + transformChildren(children, fondsId) { + return children.map(child => { + return { + label: child.cnName, + id: child.id, + isType: child.isType, + pid: child.pid, + code: child.code, + arrangeType: child.arrangeType, + fondsId: fondsId, + children: child.children.length ? this.transformChildren(child.children, fondsId) : [] + } + }) + }, + // 找顶级节点 + findTopLevelNode(data, fondsId) { + for (let i = 0; i < data.length; i++) { + if (data[i].id === fondsId) { + return data[i] + } } + return null }, [CRUD.HOOK.afterRefresh]() { - this.crud.data = this.filterData(this.crud.data) + this.crud.data = this.filterData(this.transformData(this.crud.data)) + console.log('this.crud.data', this.crud.data) this.$nextTick(() => { let currentKey - if (localStorage.getItem('currentArchivesKey')) { + if (localStorage.getItem('currentArchivesKey') !== null) { currentKey = JSON.parse(localStorage.getItem('currentArchivesKey')) // 删除门类节点后 if (this.$refs.categroyTree.getCurrentKey(currentKey.id) == null) { localStorage.removeItem('currentArchivesKey') } - // 缓存的门类节点判断 - if (currentKey.isType === 1) { - if (currentKey.children.length !== 0) { - currentKey = this.findNode(currentKey.children, (node) => { - return node.isType !== 1 - }) + this.topLevelNode = this.findTopLevelNode(this.crud.data, currentKey.fondsId) + // 如果找到了顶级节点,则从该节点开始递归查找指定元素 + if (this.topLevelNode) { + if (currentKey) { + // 展开顶级节点的子节点 + if (currentKey.isType === 1) { + currentKey = this.findNode(this.crud.data[0].children, (node) => { + return node.isType !== 1 + }) + } + this.expandAllChildren(this.$refs.categroyTree.getNode(this.topLevelNode), currentKey) + } else { + this.defaultSetting(currentKey) } - } - } else { - // 默认 - if (this.crud.data[0].isType === 1) { - currentKey = this.findNode(this.crud.data[0].children, (node) => { - return node.isType !== 1 - }) } else { - currentKey = this.crud.data[0] + this.defaultSetting(currentKey) } + } else { + this.defaultSetting(currentKey) } if (currentKey && currentKey.id) { - // 设置某个节点的当前选中状态 - this.$refs.categroyTree.setCurrentKey(currentKey.id) this.$nextTick(() => { - // 设置某个节点的父级展开 - const selectedKey = this.$refs.categroyTree.getCurrentNode() - if (this.$refs.categroyTree.getNode(selectedKey) && this.$refs.categroyTree.getNode(selectedKey).parent) { - this.expandParents(this.$refs.categroyTree.getNode(selectedKey).parent) - } // 选中节点的门类详情 - this.handleNodeClick(selectedKey) + this.handleNodeClick(currentKey) }) } }) }, + defaultSetting(currentKey) { + if (this.crud.data[0].isType === 0) { + currentKey = this.findNode(this.crud.data[0].children, (node) => { + return node.isType !== 1 + }) + this.expandAllChildren(this.$refs.categroyTree.getNode(this.crud.data[0]), currentKey) + } else { + currentKey = this.crud.data[0] + this.expandAllChildren(this.$refs.categroyTree.getNode(this.crud.data[0]), currentKey) + } + }, handleNodeClick(val) { this.smartQuery = { // 'retention': null, // 保管期限 @@ -282,8 +340,9 @@ export default { } this.$nextTick(() => { + this.smartQuery.fonds_no = this.selectedCategory.fondsId this.getDictsList() - this.getFonds() + // this.getFonds() this.handlePageList() // Promise.all(this.user.roles.map(item => this.getRole(item.id))) // .then(roles => { @@ -389,29 +448,30 @@ export default { 'categoryId': categoryId } FetchDictionaryTreeByCategoryId(params).then((res) => { - let fonds - if (res.fonds.length <= 1) { - fonds = [] - } else { - const parent = {} - parent.id = 0 - parent.fondsName = '全宗' - parent.childDictionarys = res.fonds.map(item => { - return { - ...item, - id: item.fondsId - } - }) - fonds = parent - } - if (res.dictionarys.length === 0) { - this.classifyTree = [] - if (fonds.length !== 0) { - this.classifyTree.push(fonds) - } - } else { - this.classifyTree = res.dictionarys.concat(fonds) - } + this.classifyTree = res.dictionarys + // let fonds + // if (res.fonds.length <= 1) { + // fonds = [] + // } else { + // const parent = {} + // parent.id = 0 + // parent.fondsName = '全宗' + // parent.childDictionarys = res.fonds.map(item => { + // return { + // ...item, + // id: item.fondsId + // } + // }) + // fonds = parent + // } + // if (res.dictionarys.length === 0) { + // this.classifyTree = [] + // if (fonds.length !== 0) { + // this.classifyTree.push(fonds) + // } + // } else { + // this.classifyTree = res.dictionarys.concat(fonds) + // } this.classifyLoading = false }).catch(err => { console.log(err) @@ -428,20 +488,19 @@ export default { handleCheckChange(data, checked, indeterminate) { // 获取所有选中的节点 const res = this.$refs.classifyTree.getCheckedNodes() - // const isFondsTop = res.some(obj => obj.fondsName === '全宗') - // if (isFondsTop) { - // this.smartQuery.fonds_no = null - const fondsGroup = res.filter(item => item.fondsId).map(item => item.fondsId) - if (fondsGroup.length === 0) { - FetchInitSearchFonds().then(res => { - this.smartQuery.fonds_no = res.map(item => item.fondsId).join(',') - this.$nextTick(() => { - this.handlePageList('quickFilter') - }) - }) - } else { - this.smartQuery.fonds_no = fondsGroup.join(',') - } + this.smartQuery.fonds_no = this.selectedCategory.fondsId + // const fondsGroup = res.filter(item => item.fondsId).map(item => item.fondsId) + // console.log('fondsGroup', fondsGroup) + // if (fondsGroup.length === 0) { + // this.smartQuery.fonds_no = this.selectedCategory.fondsId + // // FetchInitSearchFonds().then(res => { + // // this.smartQuery.fonds_no = res.map(item => item.fondsId).join(',') + // // this.$nextTick(() => { + // // this.handlePageList('quickFilter') + // // }) + // // }) + // } else { + // this.smartQuery.fonds_no = fondsGroup.join(',') // } const groupedData = {} const securityId = this.getIdByCode('security_class') @@ -694,4 +753,15 @@ export default { [data-theme=dark] .elect-cont-right { margin-top: 0 !important; } + +.el-tree{ + .el-tree-node__children{ + .tree-text { + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + width: 160px; + } + } +} diff --git a/src/views/collectReorganizi/collectionLibrary/module/collectHeader.vue b/src/views/collectReorganizi/collectionLibrary/module/collectHeader.vue index 8052390..e5f7a0f 100644 --- a/src/views/collectReorganizi/collectionLibrary/module/collectHeader.vue +++ b/src/views/collectReorganizi/collectionLibrary/module/collectHeader.vue @@ -106,6 +106,11 @@ 快速组卷 手工组卷 + + + 装盒 + 分卷装盒 +