对接手机端
This commit is contained in:
@@ -552,6 +552,12 @@ export const constantRouterMap = [
|
|||||||
name: 'phoneMySubscribe',
|
name: 'phoneMySubscribe',
|
||||||
component: () => import('@/views/phoneView/mySubscribe')
|
component: () => import('@/views/phoneView/mySubscribe')
|
||||||
},
|
},
|
||||||
|
//perhome办理流程
|
||||||
|
{
|
||||||
|
path: '/phonePreHomoMangement',
|
||||||
|
name: 'phonePreHomoMangement',
|
||||||
|
component: () => import('@/views/phoneView/preHomoMangement')
|
||||||
|
},
|
||||||
/* 手机端结束 */
|
/* 手机端结束 */
|
||||||
// {
|
// {
|
||||||
// path:'/vehicleinformation',
|
// path:'/vehicleinformation',
|
||||||
|
|||||||
@@ -7,11 +7,11 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-right">
|
<div class="header-right">
|
||||||
<div class="header-right-text">
|
<div class="header-right-text" @click="subscribeClick">
|
||||||
<img src="~@/assets/icon_link.png" alt="">
|
<img src="~@/assets/icon_link.png" alt="">
|
||||||
<span>{{$t('subscribe')}}</span>
|
<span>{{$t('subscribe')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-right-text">
|
<div class="header-right-text" @click="collectionClick">
|
||||||
<img src="~@/assets/icon_star.png" alt="">
|
<img src="~@/assets/icon_star.png" alt="">
|
||||||
<span>{{$t('Collection')}}</span>
|
<span>{{$t('Collection')}}</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -100,6 +100,8 @@
|
|||||||
<script>
|
<script>
|
||||||
import { getAction, postAction, downFile } from '@/api/manage'
|
import { getAction, postAction, downFile } from '@/api/manage'
|
||||||
import { kkFileView } from '@/utils/kkfileView'
|
import { kkFileView } from '@/utils/kkfileView'
|
||||||
|
import eventBUs from '../../common/event'
|
||||||
|
import { Toast } from 'vant'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'phoneDocumentDetails',
|
name: 'phoneDocumentDetails',
|
||||||
@@ -120,8 +122,9 @@
|
|||||||
finished: false,
|
finished: false,
|
||||||
pageNo: 0,
|
pageNo: 0,
|
||||||
dataGrad: [],
|
dataGrad: [],
|
||||||
textLoading: this.$t('loading')
|
textLoading: this.$t('loading'),
|
||||||
|
collectFlag: 0,
|
||||||
|
subscribeFlag: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -166,6 +169,36 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
collectionClick() {
|
||||||
|
let url = ''
|
||||||
|
if (this.collectFlag == 0 || !this.collectFlag) {
|
||||||
|
url = 'document/bussDocumentLibraryEO/addCollect'
|
||||||
|
} else {
|
||||||
|
url = 'document/bussDocumentLibraryEO/cancelCollect'
|
||||||
|
}
|
||||||
|
getAction(url, { id: this.$route.query.id }).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
Toast(this.$t('OperationSuccessful'))
|
||||||
|
} else {
|
||||||
|
Toast(this.$t('operationFailed'))
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
subscribeClick() {
|
||||||
|
let url = ''
|
||||||
|
if (this.subscribeFlag == 0 || !this.subscribeFlag) {
|
||||||
|
url = 'document/bussDocumentLibraryEO/addSubscribe'
|
||||||
|
} else {
|
||||||
|
url = 'document/bussDocumentLibraryEO/cancelSubscribe'
|
||||||
|
}
|
||||||
|
getAction(url, { id: this.$route.query.id }).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
Toast(this.$t('OperationSuccessful'))
|
||||||
|
} else {
|
||||||
|
Toast(this.$t('operationFailed'))
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
getPage() {
|
getPage() {
|
||||||
let query = {
|
let query = {
|
||||||
pageNo: this.pageNo,
|
pageNo: this.pageNo,
|
||||||
|
|||||||
@@ -3,12 +3,12 @@
|
|||||||
<div class="header-search">
|
<div class="header-search">
|
||||||
<van-icon @click="iconClick" class="icon" name="arrow-left"/>
|
<van-icon @click="iconClick" class="icon" name="arrow-left"/>
|
||||||
<span class="header-search-text">
|
<span class="header-search-text">
|
||||||
EDS1.2 EVO-G1.1-中国-03 Pre-Ho mo流程
|
EDS1.2 EVO-G1.1-中国-03 Pre-Homo流程
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="content-text" v-for="item in 8">
|
<div class="content-text" @click="handlingClick" v-for="item in 8">
|
||||||
<div class="content-text-left">
|
<div class="content-text-left">
|
||||||
<div class="content-text-top">
|
<div class="content-text-top">
|
||||||
<span class="content-text-top-left">
|
<span class="content-text-top-left">
|
||||||
@@ -42,6 +42,11 @@
|
|||||||
methods: {
|
methods: {
|
||||||
iconClick() {
|
iconClick() {
|
||||||
this.$router.go(-1)
|
this.$router.go(-1)
|
||||||
|
},
|
||||||
|
handlingClick() {
|
||||||
|
this.$router.push({
|
||||||
|
path: '/phonePreHomoMangement'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,66 @@
|
|||||||
|
<template>
|
||||||
|
<div class="box">
|
||||||
|
<div class="header-search">
|
||||||
|
<van-icon @click="iconClick" class="icon" name="arrow-left"/>
|
||||||
|
<span class="header-search-text">
|
||||||
|
EDS1.2 EVO-G1.1-中国-03 Pre-Homo流程
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'phonePreHomoMangement',
|
||||||
|
data() {
|
||||||
|
return {}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
document.title = 'NIO GRP'
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
iconClick() {
|
||||||
|
this.$router.go(-1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.box {
|
||||||
|
padding: 0 0.4rem 0.4rem 0.4rem;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-search {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
padding-top: 0.4rem;
|
||||||
|
background: #fff;
|
||||||
|
z-index: 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
font-size: 0.66rem;
|
||||||
|
width: 0.7rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-search-text {
|
||||||
|
font-size: 0.44rem;
|
||||||
|
font-family: PingFang SC-Medium, PingFang SC;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #040B29;
|
||||||
|
margin-left: 0.2rem;
|
||||||
|
word-break: break-all;
|
||||||
|
overflow: hidden;
|
||||||
|
display: -webkit-box;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
/*! autoprefixer: off */
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
/*! autoprefixer: on;*/
|
||||||
|
text-justify: inter-ideograph;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -161,6 +161,7 @@
|
|||||||
window.addEventListener('mousedown', this.handleonmousedown)
|
window.addEventListener('mousedown', this.handleonmousedown)
|
||||||
this.getQueryBy()
|
this.getQueryBy()
|
||||||
this.releaseData()
|
this.releaseData()
|
||||||
|
this.viewAdd()
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
sendValue: function(res) {
|
sendValue: function(res) {
|
||||||
@@ -193,6 +194,14 @@
|
|||||||
iconClick() {
|
iconClick() {
|
||||||
this.$router.go(-1)
|
this.$router.go(-1)
|
||||||
},
|
},
|
||||||
|
viewAdd() {
|
||||||
|
let query = {
|
||||||
|
problemKnowledgeBaseId: this.$route.query.id,
|
||||||
|
browsingUserId: this.userInfo().id
|
||||||
|
}
|
||||||
|
postAction('/problemKnowledgeBase/problemKnowledgeBaseBrowsingHistoryEO/add', query).then((res) => {
|
||||||
|
})
|
||||||
|
},
|
||||||
getQueryBy() {
|
getQueryBy() {
|
||||||
let query = {
|
let query = {
|
||||||
id: this.$route.query.id
|
id: this.$route.query.id
|
||||||
|
|||||||
@@ -369,7 +369,6 @@
|
|||||||
let fileSuffix = fileName.substring(index1, index2)
|
let fileSuffix = fileName.substring(index1, index2)
|
||||||
val.fileSuffix = fileSuffix
|
val.fileSuffix = fileSuffix
|
||||||
})
|
})
|
||||||
console.log(this.dataSourceFile)
|
|
||||||
} else {
|
} else {
|
||||||
this.dataSourceFile = []
|
this.dataSourceFile = []
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -376,7 +376,10 @@
|
|||||||
query: query
|
query: query
|
||||||
})
|
})
|
||||||
} else if (row.flowType == '21') {
|
} else if (row.flowType == '21') {
|
||||||
|
this.$router.push({
|
||||||
|
path: '/phoneHandlingPage',
|
||||||
|
query: query
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
Toast(this.$t('pleaseProcessThePC'))
|
Toast(this.$t('pleaseProcessThePC'))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user