修改文档详情的右上角按钮
This commit is contained in:
@@ -21,20 +21,23 @@
|
||||
<a-icon type="reload"/>
|
||||
{{$t('UpdateLog')}}
|
||||
</div>
|
||||
<div @click="DocumentSplitting" v-has="'bussLog:page'" class="operator-text-text"
|
||||
<div @click="DocumentSplitting" v-has="'bussLog:splitting'" class="operator-text-text"
|
||||
:title="$t('DocumentSplitting')">
|
||||
<a-icon type="codepen"/>
|
||||
{{$t('DocumentSplitting')}}
|
||||
</div>
|
||||
<div @click="UpdateLog" v-has="'bussLog:page'" class="operator-text-text" :title="$t('DocumentTranslation')">
|
||||
<div @click="DocumentTranslationClick" v-has="'bussLog:translation'" class="operator-text-text"
|
||||
:title="$t('DocumentTranslation')">
|
||||
<a-icon type="file-pdf"/>
|
||||
{{$t('DocumentTranslation')}}
|
||||
</div>
|
||||
<div @click="UpdateLog" v-has="'bussLog:page'" class="operator-text-text" :title="$t('DocumentComparison')">
|
||||
<div @click="DocumentComparisonClick" v-has="'bussLog:comparison'" class="operator-text-text"
|
||||
:title="$t('DocumentComparison')">
|
||||
<a-icon type="wallet"/>
|
||||
{{$t('DocumentComparison')}}
|
||||
</div>
|
||||
<div @click="UpdateLog" v-has="'bussLog:page'" class="operator-text-text" :title="$t('KnowledgeDatabase')">
|
||||
<div @click="KnowledgeDatabaseClick" v-has="'bussLog:database'" class="operator-text-text"
|
||||
:title="$t('KnowledgeDatabase')">
|
||||
<a-icon type="folder"/>
|
||||
{{$t('KnowledgeDatabase')}}
|
||||
</div>
|
||||
@@ -357,6 +360,46 @@
|
||||
},
|
||||
methods: {
|
||||
...mapGetters(['userInfo']),
|
||||
DocumentTranslationClick() {
|
||||
let serial_number = ''
|
||||
if (this.detailList.length > 0) {
|
||||
this.detailList[0][this.$t('essentialInformation')].forEach(res => {
|
||||
if (res.db_field_name == 'serial_number') {
|
||||
serial_number = res.value
|
||||
}
|
||||
})
|
||||
}
|
||||
let newUrl = this.$router.resolve({
|
||||
path: '/documentTranslation',
|
||||
query: {
|
||||
serial_number: serial_number
|
||||
}
|
||||
})
|
||||
window.open(newUrl.href, '_blank')
|
||||
},
|
||||
DocumentComparisonClick() {
|
||||
let serial_number = ''
|
||||
if (this.detailList.length > 0) {
|
||||
this.detailList[0][this.$t('essentialInformation')].forEach(res => {
|
||||
if (res.db_field_name == 'serial_number') {
|
||||
serial_number = res.value
|
||||
}
|
||||
})
|
||||
}
|
||||
let newUrl = this.$router.resolve({
|
||||
path: '/documentComparison',
|
||||
query: {
|
||||
serial_number: serial_number
|
||||
}
|
||||
})
|
||||
window.open(newUrl.href, '_blank')
|
||||
},
|
||||
KnowledgeDatabaseClick() {
|
||||
let newUrl = this.$router.resolve({
|
||||
path: '/problemknowledgeBase',
|
||||
})
|
||||
window.open(newUrl.href, '_blank')
|
||||
},
|
||||
getTitle(callback) {
|
||||
let _id = this.$route.query.documentId === undefined ? this.$route.query.id : this.$route.query.documentId
|
||||
getAction(this.url.getTitle, { id: _id }).then((res) => {
|
||||
@@ -459,10 +502,18 @@
|
||||
this.bussLogList()
|
||||
},
|
||||
DocumentSplitting() {
|
||||
let serial_number = ''
|
||||
if (this.detailList.length > 0) {
|
||||
this.detailList[0][this.$t('essentialInformation')].forEach(res => {
|
||||
if (res.db_field_name == 'serial_number') {
|
||||
serial_number = res.value
|
||||
}
|
||||
})
|
||||
}
|
||||
let newUrl = this.$router.resolve({
|
||||
path: '/docManage/splite',
|
||||
query: {
|
||||
serial_number: this.$route.query.serial_number
|
||||
serial_number: serial_number
|
||||
}
|
||||
})
|
||||
window.open(newUrl.href, '_blank')
|
||||
@@ -539,7 +590,7 @@
|
||||
}
|
||||
|
||||
.doc-detail-right {
|
||||
width: 800px;
|
||||
/*width: 800px;*/
|
||||
line-height: 68px;
|
||||
display: flex;
|
||||
|
||||
@@ -642,7 +693,7 @@
|
||||
font-weight: 400;
|
||||
color: #040B29;
|
||||
display: inline-block;
|
||||
width: 20%;
|
||||
width: 100px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
|
||||
@@ -137,7 +137,7 @@
|
||||
|
||||
},
|
||||
mounted() {
|
||||
if (this.$route.query.serial_number !== undefined) {
|
||||
if (this.$route.query.serial_number) {
|
||||
this.serialnumber = this.$route.query.serial_number
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user