Commit 7ec1f7df by crushh

update: dist

parent bfc3c67d
...@@ -40,14 +40,6 @@ const attractFlowLinkRouter = [ ...@@ -40,14 +40,6 @@ const attractFlowLinkRouter = [
component: _import('salesleads/actCodeManage/staffActCode', 'actCodeRecord') component: _import('salesleads/actCodeManage/staffActCode', 'actCodeRecord')
}, },
{ {
path: '/attractFlowLinkInfos/:id',
name: '详情引流链接',
meta: {
type: 'info'
},
component: _import('salesleads/actCodeManage/attractFlowLink', 'info')
},
{
path: '/ladingPageList', path: '/ladingPageList',
name: '落地页列表', name: '落地页列表',
component: _import('salesleads/actCodeManage/attractFlowLink/landingPage', 'list'), component: _import('salesleads/actCodeManage/attractFlowLink/landingPage', 'list'),
......
...@@ -164,37 +164,40 @@ export default { ...@@ -164,37 +164,40 @@ export default {
{ {
text: '数据', text: '数据',
visible: row => { visible: row => {
if (this.$getButtonLimit(this.$buttonCode.dataLink)) { return this.$getButtonLimit(this.$buttonCode.dataLink);
return true; },
} props: {
limitCode: this.$buttonCode.dataLink
}, },
handler: row => this.goDetail(row, 'second') handler: row => this.goDetail(row, 'second')
}, },
{ {
text: '详情', text: '详情',
visible: row => { visible: row => {
if (this.$getButtonLimit(this.$buttonCode.infoLink)) { return this.$getButtonLimit(this.$buttonCode.infoLink);
return true; },
} props: {
limitCode: this.$buttonCode.infoLink
}, },
handler: row => this.goDetail(row, 'first') handler: row => this.goDetail(row, 'first')
}, },
{ {
text: '链接', text: '链接',
visible: row => { visible: row => {
// return row.linkType == 2; return this.$getButtonLimit(this.$buttonCode.downLink) && row.linkType == 2;
if (this.$getButtonLimit(this.$buttonCode.downLink) && row.linkType == 2) { },
return true; props: {
} limitCode: this.$buttonCode.downLink
}, },
handler: row => this.goLink(row) handler: row => this.goLink(row)
}, },
{ {
text: '编辑', text: '编辑',
visible: row => { visible: row => {
if (this.$getButtonLimit(this.$buttonCode.editLink)) { return this.$getButtonLimit(this.$buttonCode.editLink);
return true; },
} props: {
limitCode: this.$buttonCode.editLink
}, },
handler: row => this.goEdit(row) handler: row => this.goEdit(row)
} }
...@@ -282,17 +285,14 @@ export default { ...@@ -282,17 +285,14 @@ export default {
this.$router.push('/ladingPageList'); this.$router.push('/ladingPageList');
}, },
goDetail(row, type) { goDetail(row, type) {
if (type == 'second') this.$router.push(`attractFlowLinkInfo/${row.linkId}?type=${type}`); this.$router.push(`attractFlowLinkInfo/${row.linkId}?type=${type}`);
if (type == 'first') this.$router.push(`attractFlowLinkInfos/${row.linkId}?type=${type}`);
}, },
goLink(row) { goLink(row) {
this.linkUrl = row.linkUrl; this.linkUrl = row.linkUrl;
this.imageName = `${row.linkId}_${row.name}`; this.imageName = `${row.linkId}_${row.name}`;
this.show = true; this.show = true;
console.log(row);
}, },
goEdit(row) { goEdit(row) {
console.log(row);
this.$router.push(`attractFlowLinkEdit/${row.linkId}`); this.$router.push(`attractFlowLinkEdit/${row.linkId}`);
} }
} }
......
...@@ -34,10 +34,10 @@ ...@@ -34,10 +34,10 @@
</el-tabs> </el-tabs>
</div> </div>
<el-tabs v-model="activeName" type="card" @tab-click="handleClick"> <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
<el-tab-pane label="详情信息" name="first"> <el-tab-pane label="详情信息" name="first" v-if="$getButtonLimit(this.$buttonCode.infoLink)" :limit-code="$buttonCode.infoLink">
<act-code-detail-info type="actLink" :enterprise-id="link.enterpriseId" :welcome-id="link.welcomeId"></act-code-detail-info> <act-code-detail-info type="actLink" :enterprise-id="link.enterpriseId" :welcome-id="link.welcomeId"></act-code-detail-info>
<dm-sub-title>落地页配置</dm-sub-title> <dm-sub-title>落地页配置</dm-sub-title>
<div class="m-t-15" v-show="page.pageTitle"> <div class="m-t-15">
<div class="flex"> <div class="flex">
<div class="welcome-left-view"> <div class="welcome-left-view">
<el-descriptions :column="1"> <el-descriptions :column="1">
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
</div> </div>
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="数据统计" name="second"> <el-tab-pane label="数据统计" name="second" v-if="$getButtonLimit(this.$buttonCode.dataLink)" :limit-code="$buttonCode.dataLink">
<div class="statistics"> <div class="statistics">
<dm-sub-title> <dm-sub-title>
<div class="title"> <div class="title">
......
...@@ -239,7 +239,7 @@ export default { ...@@ -239,7 +239,7 @@ export default {
lookRecords(row) { lookRecords(row) {
const { clerkId, linkId, hmId } = row; const { clerkId, linkId, hmId } = row;
const startTime = this.dateDefault && this.dateDefault.length ? this.dateDefault[0] + ' 00:00:00' : undefined; const startTime = this.dateDefault && this.dateDefault.length ? this.dateDefault[0] + ' 00:00:00' : undefined;
const endTime = this.dateDefault && this.dateDefault.length ? this.dateDefault[1] + '23:59:59' : undefined; const endTime = this.dateDefault && this.dateDefault.length ? this.dateDefault[1] + ' 23:59:59' : undefined;
let query = { linkId, clerkId, hmId }; let query = { linkId, clerkId, hmId };
startTime ? (query.startTime = startTime) : ''; startTime ? (query.startTime = startTime) : '';
endTime ? (query.endTime = endTime) : ''; endTime ? (query.endTime = endTime) : '';
......
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