From cbccda8c1a5b3f326d447a42c7faebd13c4430e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Thu, 27 Apr 2023 11:53:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E9=A1=B9=E7=9B=AE=E5=BA=93?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E7=9A=84=E9=A1=B9=E7=9B=AE=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/common/lang/en-us.js | 1 + jero-web/src/common/lang/zh-cn.js | 1 + .../components/ProjectDetails.vue | 42 +-- .../complianceCertificationForm.vue | 298 ++++++++++++++++++ .../components/responsibilityList.vue | 9 +- .../projectStatusBoard/index.vue | 66 ++-- 6 files changed, 369 insertions(+), 48 deletions(-) create mode 100644 jero-web/src/views/projectManagement/components/complianceCertificationForm.vue diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js index 90123bff0..40bcf2ee2 100644 --- a/jero-web/src/common/lang/en-us.js +++ b/jero-web/src/common/lang/en-us.js @@ -1823,4 +1823,5 @@ module.exports = { componentReportSubmitted:'Component report submitted', componentReportHasBeenStored:'Component report has been stored', parameterCollectionProgress:'Parameter Collection Progress', + proportion:'Proportion', } \ No newline at end of file diff --git a/jero-web/src/common/lang/zh-cn.js b/jero-web/src/common/lang/zh-cn.js index 550d5af25..b97c3739d 100644 --- a/jero-web/src/common/lang/zh-cn.js +++ b/jero-web/src/common/lang/zh-cn.js @@ -1925,4 +1925,5 @@ module.exports = { componentReportSubmitted:'部件报告已提交', componentReportHasBeenStored:'部件报告已入库', parameterCollectionProgress:'参数收集进度', + proportion:'占比', } \ No newline at end of file diff --git a/jero-web/src/views/projectManagement/components/ProjectDetails.vue b/jero-web/src/views/projectManagement/components/ProjectDetails.vue index 7dfe78a4b..3e894d1f5 100644 --- a/jero-web/src/views/projectManagement/components/ProjectDetails.vue +++ b/jero-web/src/views/projectManagement/components/ProjectDetails.vue @@ -118,19 +118,19 @@
- -
-
- - - -
-
{{item.name}}
-
{{item.time?item.time.slice(0,11): item.time}}
-
-
-
-
+ + + + + + + + + + + + +
@@ -164,6 +164,7 @@ import { getAction, postAction, downloadFile, putAction } from '@/api/manage' import addModel from './addModel' import versionStatistics from './versionStatistics' + import complianceCertificationForm from './complianceCertificationForm' import settingList from './settingList' import projectStatus from './projectStatus' import { mapGetters } from 'vuex' @@ -175,7 +176,8 @@ addModel, settingList, projectStatus, - versionStatistics + versionStatistics, + complianceCertificationForm }, data() { return { @@ -199,7 +201,6 @@ }, mounted() { this.getForm() - this.getSetting() this.administrators = false this.activeKey = this.$t('regulatoryComplianceManagement') if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) { @@ -230,17 +231,8 @@ currentStatus(item) { this.$emit('TaskListChange', item) }, - getSetting() { - getAction(this.url.queryByProjectId, { projectId: this.$route.query.id }).then((res) => { - if (res.success) { - this.regulatoryCertificationTaskPlanList = res.result || [] - } else { - this.regulatoryCertificationTaskPlanList = [] - } - }) - }, settingListForm() { - this.getSetting() + this.$refs.complianceCertificationRef.getSetting() }, ListOfRelevantPersonnelClick() { this.$refs.listOfRelevantPersonnelRef.getData() diff --git a/jero-web/src/views/projectManagement/components/complianceCertificationForm.vue b/jero-web/src/views/projectManagement/components/complianceCertificationForm.vue new file mode 100644 index 000000000..37465169d --- /dev/null +++ b/jero-web/src/views/projectManagement/components/complianceCertificationForm.vue @@ -0,0 +1,298 @@ + + + + + \ No newline at end of file diff --git a/jero-web/src/views/projectManagement/components/responsibilityList.vue b/jero-web/src/views/projectManagement/components/responsibilityList.vue index 8fe9a1de0..7be4a77f8 100644 --- a/jero-web/src/views/projectManagement/components/responsibilityList.vue +++ b/jero-web/src/views/projectManagement/components/responsibilityList.vue @@ -68,7 +68,14 @@ dataIndex: 'amount', align: 'left', ellipsis: true, - width: 300 + width: 150 + }, + { + title: this.$t('proportion'), + dataIndex: 'percentage', + align: 'left', + ellipsis: true, + width: 150 } ] } diff --git a/jero-web/src/views/projectManagement/projectStatusBoard/index.vue b/jero-web/src/views/projectManagement/projectStatusBoard/index.vue index eb39c74d3..9ec232d63 100644 --- a/jero-web/src/views/projectManagement/projectStatusBoard/index.vue +++ b/jero-web/src/views/projectManagement/projectStatusBoard/index.vue @@ -483,7 +483,7 @@ for (let i = 0; i < timeData.length; i++) { for (let j = 0; j < timeData[i].data[0].length; j++) { for (let k = 0; k < dataList.length; k++) { - let num = (Math.ceil(clientWidth / 30)) * parseInt(timeData[i].data[0][j].time.slice(8, 10)) + let num = (Math.floor(clientWidth / 30 * 10000)/10000) * parseInt(timeData[i].data[0][j].time.slice(8, 10)) timeList.forEach((res, index) => { if (timeData[i].data[0][j].time.slice(0, 7) == res.slice(0, 7)) { timeData[i].data[0][j].left = 'left:' + ((clientWidth * index + num) - 10) + 'px' @@ -509,8 +509,8 @@ }) this.timeData = timeData - console.log(this.timeData) this.timeData = [...this.timeData] + console.log(this.timeData) this.loadingMain = false }, 500) @@ -754,14 +754,23 @@ .process-content-right-top { font-size: 12px; color: #040B29; - width: 75px; + width: 83px; background: #fff; display: inline-block; overflow: hidden; position: absolute; - top: -12px; + top: -15px; left: 50%; transform: translate(-50%, -50%); + overflow: hidden; + display: -webkit-box; + text-overflow: ellipsis; + /*! autoprefixer: off */ + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + /*! autoprefixer: on;*/ + text-justify: inter-ideograph; + word-break: break-all } .process-content-right-button { @@ -770,11 +779,19 @@ width: 75px; background: #fff; display: inline-block; - overflow: hidden; position: absolute; top: 12px; left: 50%; transform: translate(-50%, -50%); + overflow: hidden; + display: -webkit-box; + text-overflow: ellipsis; + /*! autoprefixer: off */ + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + /*! autoprefixer: on;*/ + text-justify: inter-ideograph; + word-break: break-all } .process-content-right-button { @@ -810,7 +827,7 @@ .process-content-right-top { font-size: 12px; color: #040B29; - width: 75px; + width: 83px; background: #fff; display: inline-block; overflow: hidden; @@ -818,30 +835,35 @@ top: -12px; left: 50%; transform: translate(-50%, -50%); + display: -webkit-box; + text-overflow: ellipsis; + /*! autoprefixer: off */ + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + /*! autoprefixer: on;*/ + text-justify: inter-ideograph; + word-break: break-all } .process-content-right-button { - font-size: 12px; - color: #040B29; - width: 75px; - background: #fff; - display: inline-block; - overflow: hidden; - position: absolute; - top: 12px; - left: 50%; - transform: translate(-50%, -50%); - } - - .process-content-right-button { - width: 75px; + width: 83px; font-size: 12px; font-weight: 400; color: #6F7385; position: absolute; + background: #fff; left: 50%; - top: 34px; + top: 36px; transform: translate(-50%, -50%); + overflow: hidden; + display: -webkit-box; + text-overflow: ellipsis; + /*! autoprefixer: off */ + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + /*! autoprefixer: on;*/ + text-justify: inter-ideograph; + word-break: break-all } } @@ -870,7 +892,7 @@ } .box-top-content-right-xian { - height: 120%; + height: 101%; border-left: 1px #D92E2E solid; position: absolute; top: -42px;