Commit a9b14e77 authored by zhangyanni's avatar zhangyanni

错误提示

parent 47ef3eec
......@@ -976,9 +976,20 @@ const router = new Router({
component: duijiephoneBusinessDetail
},
{
path: '/phoneRequireDetail',
name: "duijiephoneRequireDetail",
component: duijiephoneRequireDetail
path:'/phoneRequireDetail',
name:"duijiephoneRequireDetail",
component:articleList,
children:[
{
name:"duijiephoneRequireDetail",
path:"/phoneRequireDetail",
components:{
default:resolve => require(['views/mobile/requirement/reqDetail.vue'], resolve).catch(routerUtils.catchImport),
other:resolve=>require(['views/bigbusiness/pages/requireDetail.vue'],resolve).catch(routerUtils.catchImport)
}
}
]
},
{
path: '/mobileSearchResult',
......
......@@ -665,17 +665,28 @@
};
api.getRequireDetailListAxios(params).then((res)=>{
if(res.code==0){
this.detailInfo = res.result;
this.detailInfo.targetList = res.result.targetLabel?res.result.targetLabel.split(','):"";
this.detailInfo.targetIndustryList = res.result.targetIndustryStr?res.result.targetIndustryStr.split(',').join(" | "):"";
this.detailInfo.sourceNationsList = res.result.sourceNationsStr?res.result.sourceNationsStr.join(" | "):"";
if(res.result.annexFileMap){
for(var i in res.result.annexFileMap){
this.detailInfo.annexFile = i;
if(res.result.requirementStatus=="RA03"){
this.detailInfo = res.result;
this.detailInfo.targetList = res.result.targetLabel?res.result.targetLabel.split(','):"";
this.detailInfo.targetIndustryList = res.result.targetIndustryStr?res.result.targetIndustryStr.split(',').join(" | "):"";
this.detailInfo.sourceNationsList = res.result.sourceNationsStr?res.result.sourceNationsStr.join(" | "):"";
if(res.result.annexFileMap){
for(var i in res.result.annexFileMap){
this.detailInfo.annexFile = i;
}
}
this.getUserInfoFunc();
this.getCompanyInfoById(res.result.businessId);
}else{
this.$alert(this.$t("commonTitle.requireSaleOuDialog"), {
confirmButtonText: this.$t("commonTips.confirm"),
center: true,
customClass: 'alertDialog',
callback: action => {
this.$router.push("/bigBusiness/list")
}
});
}
this.getUserInfoFunc();
this.getCompanyInfoById(res.result.businessId);
}else{
this.$message.error(res.msg);
}
......
<template>
<div :class="isMobile==1?'loginWrapper':'page-wrapper'"
<div :class="isMobile==1?'loginWrapper':isLeftShow?'page-wrapper-left':'page-wrapper'"
:style="{background:$route.name=='subjectList'?'#f6f6f6':'#fff'}">
<mobileTop v-if="isMobile==1"></mobileTop>
......@@ -10,18 +10,25 @@
<page-top v-show="istopShow" v-else :key='islogindata' :initStyle="isInit" :documentFront="documentFront" :pathfrom="pathfrom"
:isShow="isShow" :isOther="isOther" @aboutwebtn="aboutwebtn" :numone="numone"
@itemNav="sendItemNav"></page-top>
<page-left v-show="isLeftShow" :documentFront="documentFront" :pathfrom="pathfrom"></page-left>
</div>
<div class="loginformWrap" :style="{height:visible?'calc(100vh - 2.2rem)':'calc(100vh - 1rem)'}"
v-if="isMobile==1">
<router-view></router-view>
</div>
<div class="page-content popper-boundaries" v-else>
<div class="page-content popper-boundaries" v-if="isMobile==0&&!isLeftShow">
<router-view @itemBtn="sendbtns"/>
</div>
<div class="page-content-left popper-boundaries" ref="pageContent" v-if="isMobile==0&&isLeftShow">
<router-view/>
<p class="copyRight">@2020 All Copyright Reserved By Techcode.com 冀ICP备15012625号-1</p>
</div>
<tabCmpt v-if="visible&&isMobile==1" :isMargin="isMargin"></tabCmpt>
<PageBottom v-if="isMobile!=1" @itemBtn="sendbtn" @aboutwebtn="aboutwebtn" style="z-index: 1;position: relative;"></PageBottom>
<PageBottom v-if="isMobile!=1&&!isLeftShow" @itemBtn="sendbtn" @aboutwebtn="aboutwebtn" style="z-index: 1;position: relative;"></PageBottom>
</div>
</template>
......@@ -32,6 +39,7 @@
import PageBottom from '../../components/index/PageBottom';
import commonApi from '../../common/commonApi'
import {Toast} from 'mint-ui';
import PageLeft from '../../components/index/PageLeft';
export default {
name: "logined",
......@@ -39,7 +47,8 @@
mobileTop,
tabCmpt,
PageTop,
PageBottom
PageBottom,
PageLeft
},
data() {
return {
......@@ -55,6 +64,7 @@
pathfrom: "",
documentFront: "",
istopShow:true,
isLeftShow:false,
innerWidth:document.body.clientWidth
}
},
......@@ -162,12 +172,18 @@
this.publicFun.setUserInfoCookie("currentNav",6);
globalMsg.$emit("sendIndex",6)
}
if(this.$route.name=="duijiephoneRequireDetail"){
this.publicFun.setUserInfoCookie("currentNav",2);
globalMsg.$emit("sendIndex",2);
this.isLeftShow = true;
this.isShow = false;
}
}
}
},
created(){
if(this.isMobile==0){
if(this.isMobile==0){
this.getDocumentFunc();
if(this.indexwe==0||this.indexwe>2||this.indexwe==-2) {
this.isShow = true;
......@@ -185,6 +201,7 @@
this.isOther = true;
})
}
this.routerLinkFunc();
},
activated(){
if(this.isMobile==0){
......@@ -286,4 +303,22 @@
overflow: hidden;
}
}
.page-wrapper-left {
overflow: hidden;
.page-content-left {
width: calc(100% - 210px);
margin-left: 210px;
margin-top: 60px;
position: relative;
overflow: hidden;
}
.copyRight{
font-weight: 400;
color: #B8BBCD;
font-size: 12px;
background: #ECECF2;
height: 48px;
line-height: 48px;
}
}
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment