修改UAT提出的优化点
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
activeTab: this.$route.query.activeTab,
|
||||
searchFlowType: this.$route.query.searchFlowType,
|
||||
checked: this.$route.query.checked,
|
||||
selectModel: this.$route.query.selectModel
|
||||
selectModel: this.$route.query.selectModel,
|
||||
}
|
||||
})
|
||||
} else {
|
||||
@@ -82,6 +82,7 @@
|
||||
taskDefinitionKey: this.$route.query.taskDefinitionKey,
|
||||
projectName: this.$route.query.projectName,
|
||||
id: item.id,
|
||||
TaskKeyName:this.$route.query.TaskKeyName,
|
||||
isDisplay: this.isDisplay
|
||||
}
|
||||
})
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
{{queryForm.deliveryResult}}
|
||||
</div>
|
||||
</van-collapse-item>
|
||||
<van-collapse-item :title="$t('taskHandling')" v-if="!isDisplay" name="4">
|
||||
<van-collapse-item :title="$route.query.TaskKeyName" v-if="!isDisplay" name="4">
|
||||
<van-form @submit="onSubmit" ref="form">
|
||||
<div class="resultofhandlingClass"
|
||||
v-if="$route.query.taskDefinitionKey == 'Task Review' ||
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
<template>
|
||||
<div class="box">
|
||||
<iframe :src="url" frameborder="0" marginwidth="0"
|
||||
id="iframeEle"
|
||||
width="100%" height="100%"></iframe>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { kkFileView } from '@/utils/kkfileView'
|
||||
|
||||
export default {
|
||||
name: 'phoneProblemKnowledgeBaseFile',
|
||||
data() {
|
||||
return {
|
||||
url: ''
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
document.title = 'NIO GRP'
|
||||
// this.url = 'http://10.0.3.22:8012/onlinePreview?url=aHR0cDovL2xvY2FsaG9zdDo4MDEyL2RlbW8vR0JUXzQxNjMwXzIwMjJfQ04ucGRm'
|
||||
this.url = kkFileView(this.$route.query.fileName,this.$route.query.fileId)
|
||||
},
|
||||
methods: {}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
html {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
body {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.box {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#iframeEle {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
@@ -104,7 +104,7 @@
|
||||
</van-step>
|
||||
</van-steps>
|
||||
</van-collapse-item>
|
||||
<van-collapse-item :title="$t('taskHandling')" name="4" v-if="!queryData.isDisplay">
|
||||
<van-collapse-item :title="$route.query.TaskKeyName" name="4" v-if="!queryData.isDisplay">
|
||||
<van-form @submit="onSubmit" ref="form">
|
||||
<div class="resultofhandlingClass" style="margin-bottom: 0.1rem">
|
||||
<span>{{$t('resultofhandling')}}</span>
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
|
||||
import { mapGetters } from 'vuex'
|
||||
import { kkFileView } from '@/utils/kkfileView'
|
||||
import { Dialog } from 'vant'
|
||||
|
||||
export default {
|
||||
name: 'phoneRecentBrowsing',
|
||||
@@ -72,6 +73,10 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
isBrowser() {
|
||||
const userAgent = window.navigator.userAgent.toLowerCase()
|
||||
return userAgent.includes('lark') || userAgent.includes('feishu')
|
||||
},
|
||||
recentBrowsingClick(item) {
|
||||
if (item.browseType == 'Document Library') {
|
||||
this.$router.push({
|
||||
@@ -81,7 +86,25 @@
|
||||
}
|
||||
})
|
||||
} else if (item.browseType == 'Regulatory Monthly Report') {
|
||||
kkFileView(item.title, item.fileId)
|
||||
if (!this.isBrowser()) {
|
||||
Dialog.alert({
|
||||
message: '未授权用户 <br> Unauthorized User',
|
||||
theme: 'round-button',
|
||||
}).then(() => {
|
||||
// on close
|
||||
});
|
||||
return
|
||||
}
|
||||
let url = kkFileView(item.title, item.fileId)
|
||||
if (url) {
|
||||
this.$router.push({
|
||||
path: '/phoneProblemKnowledgeBaseFile',
|
||||
query: {
|
||||
fileName: item.title,
|
||||
fileId: item.fileId
|
||||
}
|
||||
})
|
||||
}
|
||||
} else if (item.browseType == 'Knowledge sharing') {
|
||||
this.$router.push({
|
||||
path: '/phoneProblemKnowledgeBase',
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
:placeholder="$t('phoneSearch')"/>
|
||||
</form>
|
||||
</div>
|
||||
<div class="content-box-value">
|
||||
<div class="content-box-value" @click="documentDetailsClick">
|
||||
<div class="left-img">
|
||||
<img src="~@/assets/wendang.png" alt="">
|
||||
</div>
|
||||
@@ -21,11 +21,11 @@
|
||||
'已存储'+documentLibraryTotal+'个文档'}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-right" @click="documentDetailsClick">
|
||||
<div class="text-right">
|
||||
{{$t('goToCheck')}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-box-value">
|
||||
<div class="content-box-value" @click="phoneProblemKnowledgeBaseClick">
|
||||
<div class="left-img">
|
||||
<img src="~@/assets/icon_wiki.png" alt="">
|
||||
</div>
|
||||
@@ -36,11 +36,11 @@
|
||||
'已存储'+problemKnowledgeBaseTotal+'个知识分享'}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-right" @click="phoneProblemKnowledgeBaseClick">
|
||||
<div class="text-right">
|
||||
{{$t('goToCheck')}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-box-value">
|
||||
<div class="content-box-value" @click="processManagementClick">
|
||||
<div class="left-img">
|
||||
<img src="~@/assets/yuebao.png" alt="">
|
||||
</div>
|
||||
@@ -51,7 +51,7 @@
|
||||
'已存储'+monthlyReportRegulationsTotal+'个法规月报'}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-right" @click="processManagementClick">
|
||||
<div class="text-right">
|
||||
{{$t('goToCheck')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="box">
|
||||
<div class="fixed">
|
||||
<div class="header-search">
|
||||
<!-- <van-icon @click="iconClick" class="icon" name="arrow-left"/>-->
|
||||
<!-- <van-icon @click="iconClick" class="icon" name="arrow-left"/>-->
|
||||
<!-- <van-dropdown-menu v-if="activeTab == 'documentLibrary'">-->
|
||||
<!-- <van-dropdown-item @change="selectModelChange" v-model="selectModel" :options="option"/>-->
|
||||
<!-- </van-dropdown-menu>-->
|
||||
@@ -200,6 +200,7 @@
|
||||
import { getAction, postAction, downloadFile } from '@/api/manage'
|
||||
import { Base64 } from 'js-base64'
|
||||
import { kkFileView } from '@/utils/kkfileView'
|
||||
import { Dialog } from 'vant'
|
||||
|
||||
export default {
|
||||
name: 'phoneSearchList',
|
||||
@@ -343,6 +344,10 @@
|
||||
postAction('/phone/recentBrowse/add', query).then((res) => {
|
||||
})
|
||||
},
|
||||
isBrowser() {
|
||||
const userAgent = window.navigator.userAgent.toLowerCase()
|
||||
return userAgent.includes('lark') || userAgent.includes('feishu')
|
||||
},
|
||||
dataClick(item) {
|
||||
if (item.module_type_flag == 'WDK') {
|
||||
this.recentBrowseAdd('Document Library', item.id.slice(0, 32))
|
||||
@@ -368,8 +373,26 @@
|
||||
}
|
||||
})
|
||||
} else if (item.module_type_flag == 'FGYB') {
|
||||
if (!this.isBrowser()) {
|
||||
Dialog.alert({
|
||||
message: '未授权用户 <br> Unauthorized User',
|
||||
theme: 'round-button',
|
||||
}).then(() => {
|
||||
// on close
|
||||
});
|
||||
return
|
||||
}
|
||||
this.recentBrowseAdd('Regulatory Monthly Report', item.id)
|
||||
kkFileView(item.file_name, item.file_id)
|
||||
let url = kkFileView(item.file_name, item.file_id)
|
||||
if (url) {
|
||||
this.$router.push({
|
||||
path: '/phoneProblemKnowledgeBaseFile',
|
||||
query: {
|
||||
fileName: item.file_name,
|
||||
fileId: item.file_id
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
</div>
|
||||
<div class="content-box">
|
||||
<div class="regulatory" v-if="activeTab == 'regulatoryCertification'">
|
||||
<!-- <div class="content-box-text">-->
|
||||
<!-- {{$t('regulatoryCertificationProcessData')}}-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="content-box-text">-->
|
||||
<!-- {{$t('regulatoryCertificationProcessData')}}-->
|
||||
<!-- </div>-->
|
||||
<div class="regulatory-box">
|
||||
<div class="content-box-data" @click="regulationListIssuanceClick">
|
||||
<div class="content-box-data-text">
|
||||
@@ -64,9 +64,9 @@
|
||||
</div>
|
||||
|
||||
<div class="parameter" v-else-if="activeTab == 'parametercollection'">
|
||||
<!-- <div class="content-box-text">-->
|
||||
<!-- {{$t('authenticationParameterCollectionData')}}-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="content-box-text">-->
|
||||
<!-- {{$t('authenticationParameterCollectionData')}}-->
|
||||
<!-- </div>-->
|
||||
<van-list
|
||||
v-model="loading"
|
||||
:finished="finished"
|
||||
@@ -170,6 +170,9 @@
|
||||
},
|
||||
mounted() {
|
||||
document.title = 'NIO GRP'
|
||||
if (this.$route.query.activeTab) {
|
||||
this.activeTab = this.$route.query.activeTab
|
||||
}
|
||||
this.getProcessDataCount()
|
||||
},
|
||||
methods: {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user