Commit e12ae0b6 authored by zhengke's avatar zhengke

修改

parent e795e675
......@@ -819,5 +819,14 @@ var tripUtils = {
);
}
},
//跳转到B2C页面
GotoB2CCustomer(B2BDomain, Id) {
if (B2BDomain) {
var url = "http://" + B2BDomain;
window.open(
url + "/#/customer" + '/' + encodeURIComponent(Id)
);
}
},
}
export default tripUtils;
......@@ -7,7 +7,10 @@
color: #409eff;
text-decoration: underline
}
.webSitePageName{
cursor: pointer;
color:#409eff;
}
</style>
<template>
<!--自定义页面-->
......@@ -30,6 +33,9 @@
<el-table :data="dataList" style="width: 100%" v-loading="loading"
:default-sort="{prop: 'date', order: 'descending'}">
<el-table-column prop="PageName" label="頁面名稱" sortable>
<template slot-scope="scope">
<span class="webSitePageName" @click="GoCustom(scope.row.Id)">{{scope.row.PageName}}</span>
</template>
</el-table-column>
<el-table-column prop="CreateByName" label="新增人員" sortable>
</el-table-column>
......@@ -74,9 +80,13 @@
PageName: '', //档案名称
Url: '', //档案路劲
},
//当前登录用户信息
CurrentUserInfo: {},
}
},
mounted() {
let userInfo = this.getLocalStorage();
this.CurrentUserInfo = userInfo;
this.getData();
},
methods: {
......@@ -141,7 +151,11 @@
});
},
//跳转预览
GoCustom(Id){
var B2BDomain = this.CurrentUserInfo.B2BDomain;
this.$tripUtils.GotoB2CCustomer(B2BDomain, Id);
}
}
}
......
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