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 @@
-
+
{{val}}
- {{ol.db_field_txt}} + {{ol.db_field_txt}} + {{ol.db_field_txt}} {{ol.value ? ol.value : '--'}} @@ -64,85 +65,52 @@ -- - - {{ol.value ? ol.value : '--'}} + + + {{valItem.title}} + + -- {{ol.value ? ol.value : '--'}}
+
- - - - - - - -
- {{ol.db_field_txt}} - - - {{ol.value ? ol.value.fileName : '--'}} - - {{$t('StandardBreakdown')}} - - - {{$t('download')}} - - - {{ol.value}} - -- - - {{ol.value ? ol.value : '--'}} - {{ol.value ? ol.value:'--'}} -
-
-
- - - - - - - -
- {{ol.db_field_txt}} - - - {{ol.value ? ol.value.fileName : '--'}} - - {{$t('StandardBreakdown')}} - - - {{$t('download')}} - - - {{ol.value}} - -- - - {{ol.value ? ol.value : '--'}} - {{ol.value ? ol.value:'--'}} -
+
+
+ {{ol.db_field_txt}} +
+
+
+ {{valItem.fileName}} + + +
+
+
+
- {{ol.db_field_txt}} + {{ol.db_field_txt}} + {{ol.db_field_txt}} {{ol.value ? ol.value : '--'}} @@ -153,9 +121,16 @@ -- - - {{ol.value ? ol.value : '--'}} + + + {{valItem.title}} + + -- {{ol.value ? ol.value : '--'}}
@@ -164,7 +139,7 @@
-
+
{{$t('DetailsPhasedImplementation')}}
+
+
+ {{item.name}} +
+
{ 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