From 5733cdccaa8ca89ac758c78eefcb3d7a4692f1d1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167>
Date: Fri, 31 Mar 2023 18:03:19 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E6=96=87=E6=A1=A3?=
=?UTF-8?q?=E5=BA=93-=E8=AF=A6=E6=83=85=E9=A1=B5-=E4=BF=AE=E6=94=B9?=
=?UTF-8?q?=E6=96=87=E6=A1=A3=E5=BA=93=E8=AF=A6=E6=83=85=E9=A1=B5=E7=9A=84?=
=?UTF-8?q?=E5=B1=95=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../library/docDetail/index.vue | 390 ++++++++++++------
1 file changed, 263 insertions(+), 127 deletions(-)
diff --git a/jero-web/src/views/documentManage/library/docDetail/index.vue b/jero-web/src/views/documentManage/library/docDetail/index.vue
index b6c149e5a..574b31938 100644
--- a/jero-web/src/views/documentManage/library/docDetail/index.vue
+++ b/jero-web/src/views/documentManage/library/docDetail/index.vue
@@ -12,7 +12,7 @@
v-html="serial_number">
- {{$t('StandardDetails')}}
+
@@ -47,13 +47,14 @@
-
{
if (res.success) {
this.detailList = res.result
+ this.$nextTick(() => {
+ let detailContentRightText = document.getElementsByClassName('detail-content-right-text')
+ detailContentRightText[0].classList.add('detail-content-right-text-color')
+ })
this.loading = false
} else {
this.detailList = []
}
})
},
- getPage(){
+ getPage() {
let tablequery = {
pageNo: this.tablepageNo,
pageSize: this.tablepageSize,
@@ -510,7 +501,7 @@
getAction(this.url.getPage, tablequery).then((res) => {
if (res.success) {
this.dataGrad = res.result.records
- this.tabletotal=res.result.total
+ this.tabletotal = res.result.total
this.loading = false
} else {
this.dataGrad = []
@@ -635,16 +626,11 @@
window.open(newUrl.href, '_blank')
},
relatedClick(val) {
- if (val.list && val.list.length == 1) {
- let newUrl = this.$router.resolve({
- path: '/docManage/library/detail',
- query: val.list[0]
- })
- window.open(newUrl.href, '_blank')
- } else {
- this.visibleRelated = true
- this.dataSourceRelated = val.list
- }
+ let newUrl = this.$router.resolve({
+ path: '/docManage/library/detail',
+ query: val
+ })
+ window.open(newUrl.href, '_blank')
},
breakdown(item) {
let newUrl = this.$router.resolve({
@@ -654,6 +640,41 @@
}
})
window.open(newUrl.href, '_blank')
+ },
+ detailTextClick(num, name) {
+ let detailContentRightTextColor = document.getElementsByClassName('detail-content-right-text-color')
+ if (detailContentRightTextColor && detailContentRightTextColor.length > 0) {
+ detailContentRightTextColor[0].classList.remove('detail-content-right-text-color')
+ }
+ let detailContentRightText = document.getElementsByClassName('detail-content-right-text')
+ detailContentRightText[num].classList.add('detail-content-right-text-color')
+
+ let fixedPosition = document.getElementsByClassName('fixedPosition')
+ if (fixedPosition && fixedPosition.length > 0) {
+ for (let i = 0; i < fixedPosition.length; i++) {
+ if (fixedPosition[i].innerText == name) {
+ let offsetTop = fixedPosition[i].offsetTop
+ let body = document.documentElement || document.body
+ body.scrollTop = offsetTop - 68
+ }
+ }
+ }
+ },
+ getRightTitle() {
+ let _id = this.$route.query.documentId === undefined ? this.$route.query.id : this.$route.query.documentId
+ let query = {
+ id: _id
+ }
+ getAction(this.url.getMenuList, query).then((res) => {
+ if (res.success) {
+ this.rightTitleList = res.result
+ this.rightTitleList.push({
+ name:this.$t('DetailsPhasedImplementation'),
+ })
+ } else {
+ this.rightTitleList = []
+ }
+ })
}
}
}
@@ -671,17 +692,27 @@
color: #333;
background-color: #fff !important;
}
+
.tooltipColor .ant-tooltip-arrow::before {
background-color: #fff;
}
\ No newline at end of file