提交 a026fe76 编写于 作者: “grape”'s avatar “grape”

路由

上级 39cd4518
......@@ -29,10 +29,12 @@ import { Component, Vue, Prop, Watch, Emit } from "vue-property-decorator";
/*
* title
*/
@Component({
name: "Bottom",
})
export default class Bottom extends Vue {
// @Prop({ default: "0" }) indexed: string | undefined;
myBtnImage: any = "#icon-a-wode24x24px-kehujinglixiaochengxu";
onchangeImage: any = "#icon-a-shouye-xuanzhong20x20px";
btnFlag: any = true
......@@ -41,14 +43,35 @@ export default class Bottom extends Vue {
{
img: "#icon-a-shouye-xuanzhong20x20px",
name: "首页",
flag: true
flag: true,
indexed:"0"
},
{
img: "#icon-a-wode24x24px-kehujinglixiaochengxu",
name: "我的",
flag: false
flag: false,
indexed:"1"
}
];
// Create(){
// console.log(this.indexed)+"==========";
// if(this.indexed==="0"){
// this.tabbar[1].img = "#icon-a-wode24x24px-kehujinglixiaochengxu";//将我的按钮置灰
// this.tabbar[1].flag = "false";//将我的按钮置灰
// this.tabbar[0].img = "#icon-a-shouye-xuanzhong20x20px";//将首页切换为蓝色
// this.tabbar[0].flag = true;
// this.tabbar[1].flag = false;
// this.onchangebtn()
// }else if(this.indexed==="1"){
// this.tabbar[0].img = "#icon-a-shouye20x20px";//将首页置灰
// this.tabbar[1].img = "#icon-a-wode-xuanzhong24x24px-kehujinglixiaochengxu";//将我的按钮直为蓝色
// this.tabbar[0].flag = false;
// this.tabbar[1].flag = true;
// this.onchangebtn()
// }
// }
btn(index: number) {
//alert(index);
......@@ -58,18 +81,22 @@ export default class Bottom extends Vue {
this.tabbar[0].img = "#icon-a-shouye-xuanzhong20x20px";//将首页切换为蓝色
this.tabbar[0].flag = true;
this.tabbar[1].flag = false;
this.btnFlag=true;
// this.indexed="0"
this.onchangebtn()
} else if (index == 1) {
this.tabbar[0].img = "#icon-a-shouye20x20px";//将首页置灰
this.tabbar[1].img = "#icon-a-wode-xuanzhong24x24px-kehujinglixiaochengxu";//将我的按钮直为蓝色
this.tabbar[0].flag = false;
this.tabbar[1].flag = true;
this.btnFlag=false;
// this.indexed="1"
this.onchangebtn()
}
}
//传给父组件
onchangebtn() {
this.btnFlag=!this.btnFlag
this.btnFlag=this.btnFlag
this.$emit('onchangebtn', this.btnFlag);
}
}
......
......@@ -63,9 +63,9 @@ import { Component, Vue, Prop, Watch, Emit } from "vue-property-decorator";
export default class CardPottom extends Vue {
pass="*****"
totalAmount ="30000.00"
useAmount ="20000.00"
unUseAmount = "10000.00"
totalAmount ="30000.00"
useAmount ="20000.00"
unUseAmount = "10000.00"
totalFinal = this.pass
useFinal = this.pass
unUseFinal = this.pass
......
......@@ -34,11 +34,13 @@ import { Component, Vue, Prop, Watch,Emit } from "vue-property-decorator";
export default class Tatle extends Vue {
@Prop({ default: "" }) tatle: string | undefined
@Prop({ default: true}) tatleflag : boolean|undefined
@Emit("retyen")
retyen(){}
// retyen(){
// this.$router.back();
// onClickReturn(){
// this.$emit("onClickReturn")
// }
retyen(){
this.$router.back();
}
}
</script>
<style scoped lang="scss">
......
......@@ -20,13 +20,13 @@ const customerRoutes = [
path: `${prefix}/AddUserView`,
component: () => import(/* webpackChunkName: "customer-mgt" */ "@/views/customer-mgt/AddUserView.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "新增客户" },
meta: { keepAlive: false, requiresAuth: true, name: "新增客户" },
},
{
path: `${prefix}/customer-info/customer-information-registration/customer-information-registration`,
component: () => import(/* webpackChunkName: "customer-mgt" */ "@/views/customer-mgt/customer-info/customer-information-registration/CustomerInformationRegistration.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "客户信息预登记" },
meta: { keepAlive: false, requiresAuth: true, name: "客户信息预登记" },
},
{
path: "/Overview",
......@@ -38,13 +38,13 @@ const customerRoutes = [
path: "/InfoChangeHistory",
component: () => import(/* webpackChunkName: "customer-mgt" */ "@/views/customer-mgt/customer-info/business-information/InfoChangeHistory.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "基本信息变动历史" },
meta: { keepAlive: false, requiresAuth: true, name: "基本信息变动历史" },
},
{
path: `${prefix}/customer-info/business-information/risk-information`,
component: () => import(/* webpackChunkName: "customer-mgt" */ "@/views/customer-mgt/customer-info/business-information/RiskInformation.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "风险信息" },
meta: { keepAlive: false, requiresAuth: true, name: "风险信息" },
},
{
path: "/EquityPledgeAndMovablePropertyPledge",
......@@ -62,7 +62,7 @@ const customerRoutes = [
path: "/Judgment",
component: () => import(/* webpackChunkName: "customer-mgt" */ "@/views/customer-mgt/customer-info/Operating-risk-information/Judgment.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "裁判文书" },
meta: { keepAlive: false, requiresAuth: true, name: "裁判文书" },
},
{
path: "/JudgmentDetail",
......@@ -82,7 +82,7 @@ const customerRoutes = [
path: "/FYGGList",
component: () => import(/* webpackChunkName: "customer-mgt" */ "@/views/customer-mgt/customer-info/Operating-risk-information/FYGGList.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "法院公告" },
meta: { keepAlive: false, requiresAuth: true, name: "法院公告" },
},
{
path: "/CFXXList",
......@@ -132,7 +132,7 @@ const customerRoutes = [
path: "/CourtAnnouncement",
component: () => import(/* webpackChunkName: "customer-mgt" */ "@/views/customer-mgt/customer-info/Operating-risk-information/CourtAnnouncement.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "开庭公告" },
meta: { keepAlive: false, requiresAuth: true, name: "开庭公告" },
},
{
path: "/AnnouncementInformationDetail",
......@@ -145,7 +145,7 @@ const customerRoutes = [
path: "/CaseProcess",
component: () => import(/* webpackChunkName: "customer-mgt" */ "@/views/customer-mgt/customer-info/Operating-risk-information/CaseProcess.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "案件流程" },
meta: { keepAlive: false, requiresAuth: true, name: "案件流程" },
},
{
path: "/CaseFlowInformationDetail",
......@@ -158,7 +158,7 @@ const customerRoutes = [
path: "/ExposureTable",
component: () => import(/* webpackChunkName: "customer-mgt" */ "@/views/customer-mgt/customer-info/Operating-risk-information/ExposureTable.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "曝光台" },
meta: { keepAlive: false, requiresAuth: true, name: "曝光台" },
},
{
path: "/ExposureTableInformationDetail",
......@@ -171,7 +171,7 @@ const customerRoutes = [
path: "/JudicialDeduction",
component: () => import(/* webpackChunkName: "customer-mgt" */ "@/views/customer-mgt/customer-info/Operating-risk-information/JudicialDeduction.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "司法查冻扣" },
meta: { keepAlive: false, requiresAuth: true, name: "司法查冻扣" },
},
{
path: "/JudicialFrozenDeductionInformationDetail",
......@@ -184,7 +184,7 @@ const customerRoutes = [
path: "/PublicOpinionInformation",
component: () => import(/* webpackChunkName: "customer-mgt" */ "@/views/customer-mgt/customer-info/Operating-risk-information/PublicOpinionInformation.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "舆情信息" },
meta: { keepAlive: false, requiresAuth: true, name: "舆情信息" },
},
{
path: "/EnterpriseMap",
......@@ -238,25 +238,25 @@ const customerRoutes = [
path: `${prefix}/customer-info/business-application-status/customer-management-information`,
component: () => import(/* webpackChunkName: "customer-mgt" */ "@/views/customer-mgt/customer-info/business-application-status/CustomerManagementInformation.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "客户经营信息" },
meta: { keepAlive: false, requiresAuth: true, name: "客户经营信息" },
},
{
path: "/CustomerPreliminaryScreeningHistory",
component: () => import(/* webpackChunkName: "customer-mgt" */ "@/views/customer-mgt/customer-info/business-application-status/CustomerPreliminaryScreeningHistory.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "客户初筛历史" },
meta: { keepAlive: false, requiresAuth: true, name: "客户初筛历史" },
},
{
path: "/CustomerRatings",
component: () => import(/* webpackChunkName: "customer-mgt" */ "@/views/customer-mgt/customer-info/business-application-status/CustomerRatings.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "客户近三年评级情况" },
meta: { keepAlive: false, requiresAuth: true, name: "客户近三年评级情况" },
},
{
path: "/FinancialInformation",
component: () => import(/* webpackChunkName: "customer-mgt" */ "@/views/customer-mgt/customer-info/business-application-status/FinancialInformation.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "财务信息" },
meta: { keepAlive: false, requiresAuth: true, name: "财务信息" },
},
{
path: "/FinancialInfoDetail",
......@@ -274,7 +274,7 @@ const customerRoutes = [
path: "/StockInformation",
component: () => import(/* webpackChunkName: "customer-mgt" */ "@/views/customer-mgt/customer-info/business-application-status/StockInformation.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "股票信息" },
meta: { keepAlive: false, requiresAuth: true, name: "股票信息" },
},
{
path: "/UnifiedCustomerCreditView",
......@@ -286,7 +286,7 @@ const customerRoutes = [
path: "/ProjectInfo",
component: () => import(/* webpackChunkName: "customer-mgt" */ "@/views/customer-mgt/customer-info/business-application-status/ProjectInfo.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "项目信息" },
meta: { keepAlive: false, requiresAuth: true, name: "项目信息" },
},
/*个人详情*/
{
......@@ -332,7 +332,7 @@ const customerRoutes = [
path: "/RiskWarning",
component: () => import(/* webpackChunkName: "customer-mgt" */ "@/views/customer-mgt/customer-info/risk-summary/RiskWarning.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "风险预警" },
meta: { keepAlive: false, requiresAuth: true, name: "风险预警" },
},
//预警详情信息
{
......@@ -345,20 +345,20 @@ const customerRoutes = [
path: `${prefix}/customer-info/history-information/customer-tagHistory`,
component: () => import(/* webpackChunkName: "customer-mgt" */ "@/views/customer-mgt/customer-info/history-information/CustomerTagHistory.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "客户标签历史" },
meta: { keepAlive: false, requiresAuth: true, name: "客户标签历史" },
},
{
path: `${prefix}/timeLine/customer-info/time-line/company-timeline`,
component: () => import(/* webpackChunkName: "customer-mgt" */ "@/views/customer-mgt/customer-info/timeLine/CompanyTimeLine.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "企业时光轴" },
meta: { keepAlive: false, requiresAuth: true, name: "企业时光轴" },
},
{
path: `${prefix}/timeLine/customer-info/time-line/enterprise-timeline`,
component: () => import(/* webpackChunkName: "customer-mgt" */ "@/views/customer-mgt/customer-info/timeLine/MarketTimeLine.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "营销时光轴" },
meta: { keepAlive: false, requiresAuth: true, name: "营销时光轴" },
},
// {
// path: `/MarketStatisticsDetail`,
......
......@@ -9,7 +9,7 @@ const depositInterestTrialRoutes = [
name: 'DepositInterestTrial',
component: () => import(/* webpackChunkName: "customer-mgt" */ "@/views/DepositInterestTrial/DepositInterestTrial.vue"),
props: propsConvert,
meta: { keepAlive: false, requiresAuth: true, name: "存款利息试算" },
meta: { keepAlive: true, requiresAuth: true, name: "存款利息试算" },
},
{
path: `/CountResult`,
......
......@@ -29,14 +29,14 @@ const routes: Array<RouteConfig> = [
{
path: "/",
redirect: `/login`,
meta: { keepAlive: true, requiresAuth: true },
meta: { keepAlive: false, requiresAuth: true },
},
{
path: "/login",
name:"login",
component: () => import(/* webpackChunkName: "login" */ "@/views/authentication/LoginView.vue"),
//component: () => import(/* webpackChunkName: "login" */ "@/components/common/Tool.vue"),
meta: { keepAlive: true, requiresAuth: true },
meta: { keepAlive: false, requiresAuth: true },
},
//...mainRoutes,
// ...customerRoutes,
......
......@@ -30,7 +30,7 @@ const loginRoutes = [
name: 'Mianview',
component: () => import(/* webpackChunkName: "customer-mgt" */ "@/views/main/MainView.vue"),
props: propsConvert,
meta: { keepAlive: false, requiresAuth: true, name: "主页" },
meta: { keepAlive: true, requiresAuth: true, name: "主页" },
}
,{
path: `/LoginByID`,
......
......@@ -15,7 +15,7 @@ const mainRoutes = [
path: `${prefix}`,
// redirect: `${prefix}/workbench`,
redirect: `${prefix}/PersonalMgtView`,
meta: { keepAlive: true, requiresAuth: true },
meta: { keepAlive: false, requiresAuth: true },
},
{
path: `${prefix}`,
......@@ -44,7 +44,7 @@ const mainRoutes = [
path: `marketing-mgt`,
component: () => import(/* webpackChunkName: "main" */ "@/views/marketing-mgt/personal/MarketingMgtView.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true },
meta: { keepAlive: false, requiresAuth: true },
},
{
path: "/ComMarketingPool",
......@@ -53,13 +53,13 @@ const mainRoutes = [
meta: { keepAlive: false, requiresAuth: true },
},
],
meta: { requiresAuth: true, name: "应用首页", keepAlive: true },
meta: { requiresAuth: true, name: "应用首页", keepAlive: false },
},
// {
// path: `${prefix}/self-stats`,
// component: () => import(/* webpackChunkName: "main" */ "@/views/main/PersonalStatsView.vue"),
// props: propsConvert,
// meta: { requiresAuth: true, name: "个人业务汇总", keepAlive: true },
// meta: { requiresAuth: true, name: "个人业务汇总", keepAlive: false },
// },
];
export default mainRoutes;
......@@ -7,7 +7,7 @@ const marketingRoutes = [
path: `${prefix}/index`,
component: () => import(/* webpackChunkName: "marketing" */ "@/views/marketing-mgt/personal/MarketingMgtView.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "工作台" },
meta: { keepAlive: false, requiresAuth: true, name: "工作台" },
},
//对公营销管理
{
......@@ -20,19 +20,19 @@ const marketingRoutes = [
path: `${prefix}/add-marketing`,
component: () => import(/* webpackChunkName: "marketing" */ "@/views/marketing-mgt/AddMarketing.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "添加营销" },
meta: { keepAlive: false, requiresAuth: true, name: "添加营销" },
},
{
path: "/MarketingMap",
component: () => import(/* webpackChunkName: "marketing" */ "@/views/marketing-mgt/personal/MarketingMap.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "营销地图" },
meta: { keepAlive: false, requiresAuth: true, name: "营销地图" },
},
{
path: "/MarketingList",
component: () => import(/* webpackChunkName: "marketing" */ "@/views/marketing-mgt/personal/MarketingList.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "营销列表" },
meta: { keepAlive: false, requiresAuth: true, name: "营销列表" },
},
{
path: "/JHDBDetail",
......@@ -45,38 +45,38 @@ const marketingRoutes = [
path: "/AddMarketPlan",
component: () => import(/* webpackChunkName: "marketing" */ "@/views/marketing-mgt/personal/AddMarketPlan.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "新增营销计划" },
meta: { keepAlive: false, requiresAuth: true, name: "新增营销计划" },
},
{
path: `${prefix}/market-plan`,
component: () => import(/* webpackChunkName: "marketing" */ "@/views/marketing-mgt/MarketPlan.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "营销计划" },
meta: { keepAlive: false, requiresAuth: true, name: "营销计划" },
},
{
path: `${prefix}/do-market-byphone`,
component: () => import(/* webpackChunkName: "marketing" */ "@/views/marketing-mgt/DoingMarketByPhone.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "电话营销详情" },
meta: { keepAlive: false, requiresAuth: true, name: "电话营销详情" },
},
{
path: `${prefix}/accurate-visitor`,
component: () => import(/* webpackChunkName: "marketing" */ "@/views/marketing-mgt/AccurateVisitors.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "精准访客汇报" },
meta: { keepAlive: false, requiresAuth: true, name: "精准访客汇报" },
},
{
path: `${prefix}/accurate-customer`,
component: () => import(/* webpackChunkName: "marketing" */ "@/views/marketing-mgt/AccurateCustomer.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "精准客户入围申报" },
meta: { keepAlive: false, requiresAuth: true, name: "精准客户入围申报" },
},
{
path: `${prefix}/put-reserve`,
component: () => import(/* webpackChunkName: "marketing" */ "@/views/marketing-mgt/PutInReserve.vue"),
props: propsConvert,
meta: { keepAlive: true, requiresAuth: true, name: "小微线条" },
meta: { keepAlive: false, requiresAuth: true, name: "小微线条" },
},
];
export default marketingRoutes;
......@@ -11,7 +11,7 @@
<Main v-if="showFlag"></Main>
<MyPage v-if="!showFlag"></MyPage>
<div >
<bottom-bar @onchangebtn="onchangebtn" ></bottom-bar>
<bottom-bar @onchangebtn="onchangebtn" ></bottom-bar>
</div>
</div>
......@@ -21,6 +21,7 @@ import { Component, Vue } from "vue-property-decorator";
import { ProductData } from '@/model/entity/ProductData'
import Main from "./Main.vue";
import MyPage from "../MyView/MyPage.vue";
import { log } from "mathjs";
@Component({
......@@ -32,10 +33,30 @@ components: {
})
export default class MainView extends Vue {
showFlag :boolean = true;
// indexed="0"
onchangebtn(value:any){
//子组件传来的值
this.showFlag=value
}
// beforeCreate(){
// console.log(this.$route.params.indexed);
// debugger
// this.indexed=this.$route.params.indexed
// }
// activated(){
// // console.log(this.$route.params.indexed);
// this.indexed=this.$route.params.indexed
// }
// deactivated(){
// // 离开home组件的那一刻就会打印
// console.log("讨厌!!你又走了")
// console.log("----------deactivated--------")
// }
}
</script>
<style scoped lang="scss">
......
......@@ -11,7 +11,7 @@
<div>
<div class="rarle">
<tatle-bar :tatle="tatleName" style="background: #0B54E0"></tatle-bar>
<tatle-bar :tatle="tatleName" style="background: #0B54E0" ></tatle-bar>
</div>
<van-row type="flex" class="iconImg">
<van-col span="24">
......@@ -129,6 +129,23 @@ export default class PersonLod extends Vue {
//参数
})
}
onClickReturn(){
// console.log("1111")
this.$router.push({
name: `Mianview`,
params: {
indexed: "1"
}
})
// debugger
// this.$router.push({
// name: "MainView",
// params: {
// indexed: "1"
// }
// });
}
}
</script>
<style scoped lang="scss">
......
......@@ -11,7 +11,7 @@
<div>
<div class="rarle">
<tatle-bar :tatle="tatleName" style="background: #0B54E0"></tatle-bar>
<tatle-bar :tatle="tatleName" style="background: #0B54E0" @onClickReturn="onClickReturn" ></tatle-bar>
</div>
<van-row type="flex" class="iconImg">
<van-col span="24">
......@@ -120,6 +120,10 @@ export default class PersonLod extends Vue {
//参数
})
}
onClickReturn(){
this.$router.back();
}
}
</script>
<style scoped lang="scss">
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册