diff --git a/src/api/businessSupport.js b/src/api/businessSupport.js index 2c84b04f..0d26ff6e 100644 --- a/src/api/businessSupport.js +++ b/src/api/businessSupport.js @@ -15,6 +15,8 @@ const queryTreeList = (params) => getAction('/laws/standardization/lawsStandardi const addNode = (params) => postAction('/laws/standardization/lawsStandardization/add', params) // 标准化活动-编辑 const editNode = (params) => postAction('/laws/standardization/lawsStandardization/edit', params) +// 标准化活动-删除 +const deleteNode = (params) => postAction('/laws/standardization/lawsStandardization/delete', params) // 标准化活动-通过id查询 const queryById = (params) => getAction('/laws/standardization/lawsStandardization/queryById', params) // 标准化活动-通过id查询表格信息 @@ -43,6 +45,7 @@ export { queryTreeList, addNode, editNode, + deleteNode, queryById, queryTableDataById, queryStatisticalList, diff --git a/src/common/lang/businessSupport/zh.js b/src/common/lang/businessSupport/zh.js index 82768b65..cbe82f93 100644 --- a/src/common/lang/businessSupport/zh.js +++ b/src/common/lang/businessSupport/zh.js @@ -31,7 +31,9 @@ module.exports = { addUpToFourLevels: '该节点无法添加子节点', pleaseUploadGroupInfo: '请上传集团参与情况资料', pleaseUploadPaymentInfo: '请上传支付信息资料', - pleaseUploadMeeting: '请上传参会记录会议资料' + pleaseUploadMeeting: '请上传参会记录会议资料', + rootNodeNoDelete: '根节点不可以删除,请重新选择', + onlyDeleteLeaf: '只能删除叶子结点,请重新选择' }, // 问答库 questionAnswer: { diff --git a/src/common/lang/zh-cn.js b/src/common/lang/zh-cn.js index dedd303d..a0743b8f 100644 --- a/src/common/lang/zh-cn.js +++ b/src/common/lang/zh-cn.js @@ -189,6 +189,7 @@ module.exports = { noFileAvailableForPreview: '暂无可预览的文件', enterpriseStandard: '企业标准', pleaseAtLeastSelectOneUser: '请至少选择一个用户', + workNo: '工号', // 树右键 treeRight: { addFolder: '新增文件夹', @@ -645,7 +646,8 @@ module.exports = { fileFormatIncorrect: '文件格式不正确', uploadSuccessful: '上传成功', uploadMaximumATime: '一次最多上传二十张图片', - deletedSuccessfully: '删除成功' + deletedSuccessfully: '删除成功', + fileNameOverlong: '文件名长度不可超过30,请修改后重试' }, importWithTemplate: { chooseFile: '选择文件', diff --git a/src/components/UploadFile.vue b/src/components/UploadFile.vue index 113c2689..a2c08352 100644 --- a/src/components/UploadFile.vue +++ b/src/components/UploadFile.vue @@ -345,6 +345,12 @@ export default { doBeforeUpload (file) { this.uploadGoOn = true file.uploadGoOn = true + if (file.name.split('.')[0].length > 30) { + this.$message.warning(this.$t('uploadFile.fileNameOverlong')) + this.uploadGoOn = false + file.uploadGoOn = false + return false + } const fileSize = file.size // 上传的文件大小 if (fileSize === 0) { this.$message.warning(this.$t('uploadFile.cannotUploadEmpty')) diff --git a/src/components/jero/JUpload.vue b/src/components/jero/JUpload.vue index 5a0e29ff..9a6b9caf 100644 --- a/src/components/jero/JUpload.vue +++ b/src/components/jero/JUpload.vue @@ -310,8 +310,15 @@ export default { this.$emit('change', path) }, doBeforeUpload (file) { + console.log('--------file', file) this.uploadGoOn = true file.uploadGoOn = true + if (file.name.split('.')[0].length > 30) { + this.$message.warning(this.$t('uploadFile.fileNameOverlong')) + this.uploadGoOn = false + file.uploadGoOn = false + return false + } const fileSize = file.size // 上传的文件大小 if (fileSize === 0) { this.$message.warning(this.$t('uploadFile.cannotUploadEmpty')) @@ -395,6 +402,10 @@ export default { } else if (info.file.status === 'removed') { this.handleDelete(info.file) } + fileList = fileList.filter(tt => !!tt) + console.log(fileList) + // 二次过滤不符合要求的(uploadGoOn为false的),否则只上传多个不符合要求的只会有一个不出现在列表中 + fileList = fileList.filter(tt => tt.uploadGoOn === undefined || tt.uploadGoOn === null || tt.uploadGoOn === true) this.fileList = fileList if (info.file.status === 'done' || info.file.status === 'removed') { // returnUrl为true时仅返回文件路径 diff --git a/src/components/selection/EnterprisePlanSelectionModal.vue b/src/components/selection/EnterprisePlanSelectionModal.vue index 951e5995..2b09485a 100644 --- a/src/components/selection/EnterprisePlanSelectionModal.vue +++ b/src/components/selection/EnterprisePlanSelectionModal.vue @@ -14,56 +14,80 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +
+ + {{ toggleSearchStatus ? $t('putAway') : $t('open') }} + + {{ $t('query') }} {{ $t('reset') }}
@@ -282,7 +306,8 @@ export default { } ], dataList: [], - categoryTreeList: [] // 组织机构下拉框数据 + categoryTreeList: [], // 组织机构下拉框数据 + toggleSearchStatus: false } }, mounted () { @@ -296,6 +321,9 @@ export default { this.replacePage() }) }, + handleToggleSearch () { + this.toggleSearchStatus = !this.toggleSearchStatus + }, // 获取组织机构树 getSysCategoryTree () { queryDepartTreeList().then((res) => { @@ -393,6 +421,7 @@ export default { showSizeChanger: true, total: 0 } + this.toggleSearchStatus = false } } } diff --git a/src/views/businessSupport/standardizationActivity/StandardizationActivityPage.vue b/src/views/businessSupport/standardizationActivity/StandardizationActivityPage.vue index 5838bf94..c074f091 100644 --- a/src/views/businessSupport/standardizationActivity/StandardizationActivityPage.vue +++ b/src/views/businessSupport/standardizationActivity/StandardizationActivityPage.vue @@ -17,6 +17,8 @@ {{ $t('edit') }} + + {{ $t('delete') }} {{ $t('view') }} @@ -80,7 +82,7 @@