From 4f7c939bb39aac9374df82696ffee18b4aadf5c5 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Fri, 18 Aug 2023 15:09:47 +0800 Subject: [PATCH] =?UTF-8?q?[add]=20=E4=B8=9A=E5=8A=A1=E6=94=AF=E6=8C=81-?= =?UTF-8?q?=E8=B5=84=E6=96=99=E4=B8=AD=E5=BF=83=E8=BF=81=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/less/common.less | 113 ++- src/common/lang/en-us.js | 25 +- src/common/lang/zh-cn.js | 23 + src/components/customField/AddForm.vue | 110 +-- src/config/router.config.js | 18 + src/views/businessSupport/DataCenter.vue | 829 ++++++++++++++++++ .../businessSupport/modules/AddModel.vue | 182 ++++ src/views/documentTool/DocumentSplit.vue | 70 +- 8 files changed, 1222 insertions(+), 148 deletions(-) create mode 100644 src/views/businessSupport/DataCenter.vue create mode 100644 src/views/businessSupport/modules/AddModel.vue diff --git a/src/assets/less/common.less b/src/assets/less/common.less index a0d06139..0e79a95b 100644 --- a/src/assets/less/common.less +++ b/src/assets/less/common.less @@ -118,6 +118,60 @@ } // 新增编辑表单样式 +.form-add{ + margin-bottom: 40px; + /deep/ .ant-form-item-label { + width: 130px; + } + /deep/ .ant-form-item-control-wrapper { + display: inline-block; + width: 100%; + } +} +.item-model{ + width: calc(100% - 130px); + display: inline-block; + margin-top: 2px; + height: 40px; + margin-bottom: 24px; + /deep/ .ant-form-item-control-wrapper { + width: 100%; + } +} +.item-model-textarea { + width: calc(100% - 130px); + display: inline-block; + margin-top: 2px; + /deep/ .ant-form-item-control-wrapper { + width: 100% !important; + } +} +.box-input { + /deep/ .ant-select-selection--single { + height: 38px; + } + /deep/ .ant-select-selection--multiple { + height: 38px; + .ant-select-selection__rendered > ul > li{ + margin-top: 6px; + } + } + /deep/ .ant-select-selection__rendered { + line-height: 38px; + height: 38px; + } + /deep/ .ant-calendar-picker { + line-height: 38px; + height: 38px; + } + /deep/ .ant-calendar-picker-input { + height: 38px; + } + /deep/ .ant-input-number-input-wrap { + line-height: 38px; + height: 38px; + } +} .box-title-text { line-height: 1.4; display: flex; @@ -186,4 +240,61 @@ height: 38px; } } -} \ No newline at end of file +} +.box-input { + display: inline-block; + height: 38px; + width: 100%; +} +.required { + color: red; + margin-right: 4px; +} +.title-text-text { + margin-top: 9px; +} +.header-text { + font-size: 16px; + font-weight: bold; + margin-left: 15px; + /*border-bottom: 1px #d9d9d9 dashed;*/ + height: 30px; + margin-bottom: 30px; +} +.button-text { + height: 38px; + width: calc(100% - 100px); + line-height: 38px; + background: #fff; + border: 1px #1890ff solid; + color: #1890ff; +} +// 新增编辑表单样式--完 + +// 左树右表布局 +.left-tree-div { + .div-left { + /*height: 100%;*/ + width: 230px; + float: left; + padding-right: 20px; + /*border-right: 1px solid #E6E7EC;*/ + overflow-y: auto; + } + + .div-right { + padding-left: 20px; + width: calc(100% - 230px); + float: right; + border-left: 1px solid #E6E7EC; + /*flex: 1;*/ + + .right-search-header { + margin-bottom: 20px; + + .table-page-search-submitButtons { + display: flex; + } + } + } +} diff --git a/src/common/lang/en-us.js b/src/common/lang/en-us.js index cc84f8dd..1cf9f421 100644 --- a/src/common/lang/en-us.js +++ b/src/common/lang/en-us.js @@ -96,6 +96,7 @@ module.exports = { essentialInformation: 'General Information', download: 'Download', fileName: 'File Name', + fileDeclaration: 'File Declaration', newNode: 'New node', modifyNode: 'Modify Node', deleteNode: 'Delete Node', @@ -113,11 +114,24 @@ module.exports = { confirmRelease: 'Confirm Release?', confirmWithdraw: 'Confirm to Withdraw?', doNotHavePermissionDeleteData: 'Do not have permission to delete this data', - noData: 'No Data', dataLoading: 'Data loading...', confirmDelete: 'Confirm the listing title you want to delete?', - + uploadedBy: 'Uploaded By', + uploadTime: 'Upload Time', + uploadFileBtn: 'Upload File', + // 树右键 + treeRight: { + addFolder: 'Create New Folder', + addSubFolders: 'Add A Subfolder', + editFolder: 'Edit Folder', + deleteFolders: 'Delete Folders', + folderName: 'Folder Name', + administrativePrivileges: 'Administrative Permissions', + checkPermissions: 'Read Permissions', + folderOrder: 'Folder Order', + deleteNode: 'If there is any file information, the file will be deleted. Are you sure to delete this data?' + }, // 页面头部 header: { userMenuSearchMenu: 'Search menu', @@ -417,6 +431,13 @@ module.exports = { replyToComments: 'Reply To Comments' } }, + // 业务支持 + businessSupp: { + dataCenter: { + selectDirectoryLocation: 'Please select the directory location to add the folder', + fileUploaded: 'File uploaded, please wait' + } + }, // 标准选择器 standardSelect: { standardSelection: 'Standard Selection' diff --git a/src/common/lang/zh-cn.js b/src/common/lang/zh-cn.js index 682ed4aa..6a67edbd 100644 --- a/src/common/lang/zh-cn.js +++ b/src/common/lang/zh-cn.js @@ -96,6 +96,7 @@ module.exports = { essentialInformation: '基本信息', download: '下载', fileName: '文件名称', + fileDeclaration: '文件说明', newNode: '新增节点', modifyNode: '修改节点', deleteNode: '删除节点', @@ -116,6 +117,21 @@ module.exports = { noData: '暂无数据', dataLoading: '数据加载中...', confirmDelete: '确定删除?', + uploadedBy: '上传人', + uploadTime: '上传时间', + uploadFileBtn: '上传文件', + // 树右键 + treeRight: { + addFolder: '新增文件夹', + addSubFolders: '新增子文件夹', + editFolder: '编辑文件夹', + deleteFolders: '删除文件夹', + folderName: '文件夹名称', + administrativePrivileges: '管理权限', + checkPermissions: '查看权限', + folderOrder: '文件夹顺序', + deleteNode: '若有文件信息将同步删除,确认删除该条数据?' + }, // 页面头部 header: { userMenuSearchMenu: '搜索菜单', @@ -415,6 +431,13 @@ module.exports = { replyToComments: '回复评论' } }, + // 业务支持 + businessSupp: { + dataCenter: { + selectDirectoryLocation: '请选择添加文件夹的目录位置', + fileUploaded: '文件上传中,请稍后' + } + }, // 标准选择器 standardSelect: { standardSelection: '标准选择' diff --git a/src/components/customField/AddForm.vue b/src/components/customField/AddForm.vue index e9ee00ee..8ce4ff4a 100644 --- a/src/components/customField/AddForm.vue +++ b/src/components/customField/AddForm.vue @@ -504,113 +504,5 @@ export default { diff --git a/src/config/router.config.js b/src/config/router.config.js index 5a7767ab..193ab3ef 100644 --- a/src/config/router.config.js +++ b/src/config/router.config.js @@ -327,6 +327,24 @@ export const constantRouterMap = [ name: 'documentIndex', component: () => import(/* webpackChunkName: "user" */ '@/views/documentManage/modules/LibraryDetail') }, + // 文档对比-发起对比 + { + path: '/initiateDocumentComparison', + name: 'initiateDocumentComparison', + component: () => import(/* webpackChunkName: "user" */ '@/views/documentTool/modules/InitiateComparison') + }, + // 文档对比-发起对比 + { + path: '/documentDataComparison', + name: 'documentDataComparison', + component: () => import(/* webpackChunkName: "user" */ '@/views/documentTool/modules/DocumentDataComparison') + }, + // 文档对比-对比结果 + { + path: '/comparisonResults', + name: 'comparisonResults', + component: () => import(/* webpackChunkName: "user" */ '@/views/documentTool/modules/ComparisonResults') + }, // { // path: '/', // name: 'index', diff --git a/src/views/businessSupport/DataCenter.vue b/src/views/businessSupport/DataCenter.vue new file mode 100644 index 00000000..afd267c7 --- /dev/null +++ b/src/views/businessSupport/DataCenter.vue @@ -0,0 +1,829 @@ + + + + + + + + + + + + {{ title.substr(0, title.indexOf(searchValue)) }}{{ searchValue }}{{ title.substr(title.indexOf(searchValue) + searchValue.length) }} + + + {{title && title.length > 18?title.slice(0,17)+'...':title}} + + + {{ title.substr(0, title.indexOf(searchValue)) }}{{ title.indexOf(searchValue)+searchValue.length>18?searchValue.substr(0,18-title.indexOf(searchValue)) : searchValue }}{{ title.indexOf(searchValue)+searchValue.length>18?'...': title.substr(title.indexOf(searchValue) + searchValue.length,18-title.indexOf(searchValue) - searchValue.length)+'...' }} + + + + {{title && title.length > 18?title.slice(0,17)+'...':title}} + + + + {{$t('treeRight.addFolder')}} + {{$t('treeRight.addSubFolders')}} + {{$t('treeRight.editFolder')}} + {{$t('treeRight.deleteFolders')}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ !toggleSearchStatus ? $t('open') : $t('putAway') }} + + {{ $t('reset') }} + {{ $t('query') }} + + + + + + + + + + + + {{ $t('uploadFileBtn') }} + + + + {{ $t('batchDelete') }} + + + + + + + {{ text }} + + + {{ text }} + + + {{$t('download')}} + {{$t('edit')}} + {{$t('delete')}} + + + + + + + + + + + + + * + {{$t('treeRight.folderName')}} + + + + + + + + + + + + {{$t('treeRight.administrativePrivileges')}} + + + + + {{ item.realname }} + + + + + + + + + + + + + + {{$t('treeRight.checkPermissions')}} + + + + + {{ item.realname }} + + + + + + + + + + + + + + * + {{$t('treeRight.folderOrder')}} + + + + + + + + + + + + + + + + + + + diff --git a/src/views/businessSupport/modules/AddModel.vue b/src/views/businessSupport/modules/AddModel.vue new file mode 100644 index 00000000..6f51ba33 --- /dev/null +++ b/src/views/businessSupport/modules/AddModel.vue @@ -0,0 +1,182 @@ + + + + + + + + + + + * + {{$t('fileName')}} + + + + {{ (formInline.fileKey === 'null' || formInline.fileKey === '' || + formInline.fileKey == null) ? $t('uploadFile.clickUpload') : $t('uploadFile.viewUploadedFiles') + }} + + + + + + + + + + {{$t('fileDeclaration')}} + + + + + + + + + + + + {{$t('cancel')}} + {{$t('submit')}} + + + + + + + + + diff --git a/src/views/documentTool/DocumentSplit.vue b/src/views/documentTool/DocumentSplit.vue index 8bab9e48..e6cade1b 100644 --- a/src/views/documentTool/DocumentSplit.vue +++ b/src/views/documentTool/DocumentSplit.vue @@ -1,43 +1,41 @@ - - - - + + + + + + + + + {{ $t('docTool.split.splitText') }} - - - - - {{ $t('docTool.split.splitText') }} - - - - - {{ $t('docTool.split.importResults') }} - - - - - {{ $t('batchDelete') }} - + + + + {{ $t('docTool.split.importResults') }} - - + + + + {{ $t('batchDelete') }} - - - - + + + + + + +