Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
e12ae0b6
Commit
e12ae0b6
authored
Jul 09, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
e795e675
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
+25
-2
tripUtils.js
src/assets/utils/tripUtils.js
+9
-0
WebSiteCustomer.vue
src/components/WebSet/WebSiteCustomer.vue
+16
-2
No files found.
src/assets/utils/tripUtils.js
View file @
e12ae0b6
...
@@ -819,5 +819,14 @@ var tripUtils = {
...
@@ -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
;
export
default
tripUtils
;
src/components/WebSet/WebSiteCustomer.vue
View file @
e12ae0b6
...
@@ -7,7 +7,10 @@
...
@@ -7,7 +7,10 @@
color
:
#409eff
;
color
:
#409eff
;
text-decoration
:
underline
text-decoration
:
underline
}
}
.webSitePageName
{
cursor
:
pointer
;
color
:
#409eff
;
}
</
style
>
</
style
>
<
template
>
<
template
>
<!--自定义页面-->
<!--自定义页面-->
...
@@ -30,6 +33,9 @@
...
@@ -30,6 +33,9 @@
<el-table
:data=
"dataList"
style=
"width: 100%"
v-loading=
"loading"
<el-table
:data=
"dataList"
style=
"width: 100%"
v-loading=
"loading"
:default-sort=
"
{prop: 'date', order: 'descending'}">
:default-sort=
"
{prop: 'date', order: 'descending'}">
<el-table-column
prop=
"PageName"
label=
"頁面名稱"
sortable
>
<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>
<el-table-column
prop=
"CreateByName"
label=
"新增人員"
sortable
>
<el-table-column
prop=
"CreateByName"
label=
"新增人員"
sortable
>
</el-table-column>
</el-table-column>
...
@@ -74,9 +80,13 @@
...
@@ -74,9 +80,13 @@
PageName
:
''
,
//档案名称
PageName
:
''
,
//档案名称
Url
:
''
,
//档案路劲
Url
:
''
,
//档案路劲
},
},
//当前登录用户信息
CurrentUserInfo
:
{},
}
}
},
},
mounted
()
{
mounted
()
{
let
userInfo
=
this
.
getLocalStorage
();
this
.
CurrentUserInfo
=
userInfo
;
this
.
getData
();
this
.
getData
();
},
},
methods
:
{
methods
:
{
...
@@ -141,7 +151,11 @@
...
@@ -141,7 +151,11 @@
});
});
},
},
//跳转预览
GoCustom
(
Id
){
var
B2BDomain
=
this
.
CurrentUserInfo
.
B2BDomain
;
this
.
$tripUtils
.
GotoB2CCustomer
(
B2BDomain
,
Id
);
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment