|
@@ -130,11 +130,18 @@
|
|
|
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
@import 'channelManage';
|
|
@import 'channelManage';
|
|
|
|
+::v-deep .ant-tag .anticon-close {
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ color: red;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|
|
<template>
|
|
<template>
|
|
<div class="channelManage config-project">
|
|
<div class="channelManage config-project">
|
|
<a-card>
|
|
<a-card>
|
|
<div class="table-page-search-wrapper">
|
|
<div class="table-page-search-wrapper">
|
|
|
|
+ <a-tag closable @close="closeLog" style="margin-bottom:15px;font-size: 16px;">
|
|
|
|
+ {{ accountName }}
|
|
|
|
+ </a-tag>
|
|
<a-form layout="inline" :form="form" hide-required-mark :selfUpdate="true" @submit="handleQueryList">
|
|
<a-form layout="inline" :form="form" hide-required-mark :selfUpdate="true" @submit="handleQueryList">
|
|
<a-row :gutter="24">
|
|
<a-row :gutter="24">
|
|
<a-col :md="8" :sm="8" :xxl="6">
|
|
<a-col :md="8" :sm="8" :xxl="6">
|
|
@@ -157,9 +164,7 @@
|
|
</a-col>
|
|
</a-col>
|
|
</a-row>
|
|
</a-row>
|
|
</a-form>
|
|
</a-form>
|
|
- <a-tag closable @close="closeLog">
|
|
|
|
- {{accountId}}
|
|
|
|
- </a-tag>
|
|
|
|
|
|
+
|
|
<!-- <a-row :gutter="24">
|
|
<!-- <a-row :gutter="24">
|
|
<a-col :md="8" :sm="8" :xxl="6">
|
|
<a-col :md="8" :sm="8" :xxl="6">
|
|
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
|
|
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
|
|
@@ -242,6 +247,10 @@
|
|
:footer="null"
|
|
:footer="null"
|
|
@cancel="visibleChannel = false"
|
|
@cancel="visibleChannel = false"
|
|
>
|
|
>
|
|
|
|
+ <div style="width:100%;display:flex;margin-bottom:15px;font-weight:700;font-size:16px">
|
|
|
|
+ <span style="width:200px">项目:{{ projectName }}</span>
|
|
|
|
+ <span>使用层级:{{ usageLevel == 'account' ? '账户' : usageLevel == 'plan' ? '计划' : '组' }}</span>
|
|
|
|
+ </div>
|
|
<a-table
|
|
<a-table
|
|
:columns="detailColumns"
|
|
:columns="detailColumns"
|
|
:dataSource="dataDetailSource"
|
|
:dataSource="dataDetailSource"
|
|
@@ -432,7 +441,13 @@ let TTcolumns = [
|
|
{
|
|
{
|
|
title: '下载链接',
|
|
title: '下载链接',
|
|
dataIndex: 'url',
|
|
dataIndex: 'url',
|
|
- scopedSlots: { customRender: 'url' },
|
|
|
|
|
|
+ customRender: function(text) {
|
|
|
|
+ if (text) {
|
|
|
|
+ return text
|
|
|
|
+ } else {
|
|
|
|
+ return '-'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
align: 'center',
|
|
align: 'center',
|
|
key: 'url',
|
|
key: 'url',
|
|
width: 300
|
|
width: 300
|
|
@@ -440,7 +455,13 @@ let TTcolumns = [
|
|
{
|
|
{
|
|
title: '调起链接',
|
|
title: '调起链接',
|
|
dataIndex: 'schemaUri',
|
|
dataIndex: 'schemaUri',
|
|
- scopedSlots: { customRender: 'schemaUri' },
|
|
|
|
|
|
+ customRender: function(text) {
|
|
|
|
+ if (text) {
|
|
|
|
+ return text
|
|
|
|
+ } else {
|
|
|
|
+ return '-'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
align: 'center',
|
|
align: 'center',
|
|
key: 'schemaUri',
|
|
key: 'schemaUri',
|
|
width: 300
|
|
width: 300
|
|
@@ -448,7 +469,13 @@ let TTcolumns = [
|
|
{
|
|
{
|
|
title: '第三方点击监测链接',
|
|
title: '第三方点击监测链接',
|
|
dataIndex: 'clickTrackUrl',
|
|
dataIndex: 'clickTrackUrl',
|
|
- scopedSlots: { customRender: 'clickTrackUrl' },
|
|
|
|
|
|
+ customRender: function(text) {
|
|
|
|
+ if (text) {
|
|
|
|
+ return text
|
|
|
|
+ } else {
|
|
|
|
+ return '-'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
align: 'center',
|
|
align: 'center',
|
|
key: 'clickTrackUrl',
|
|
key: 'clickTrackUrl',
|
|
width: 300
|
|
width: 300
|
|
@@ -456,7 +483,13 @@ let TTcolumns = [
|
|
{
|
|
{
|
|
title: '第三方actionBar监测链接',
|
|
title: '第三方actionBar监测链接',
|
|
dataIndex: 'actionbarClickUrl',
|
|
dataIndex: 'actionbarClickUrl',
|
|
- scopedSlots: { customRender: 'actionbarClickUrl' },
|
|
|
|
|
|
+ customRender: function(text) {
|
|
|
|
+ if (text) {
|
|
|
|
+ return text
|
|
|
|
+ } else {
|
|
|
|
+ return '-'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
align: 'center',
|
|
align: 'center',
|
|
key: 'actionbarClickUrl',
|
|
key: 'actionbarClickUrl',
|
|
width: 300
|
|
width: 300
|
|
@@ -508,21 +541,21 @@ let TTcolumns = [
|
|
// align: 'center',
|
|
// align: 'center',
|
|
// key: 'usageTimes'
|
|
// key: 'usageTimes'
|
|
// },
|
|
// },
|
|
- // {
|
|
|
|
- // title: '是否循环',
|
|
|
|
- // dataIndex: 'isCycle',
|
|
|
|
- // customRender: function(text) {
|
|
|
|
- // if (text == 1) {
|
|
|
|
- // return '是'
|
|
|
|
- // } else if (text == 0) {
|
|
|
|
- // return '否'
|
|
|
|
- // } else {
|
|
|
|
- // return text
|
|
|
|
- // }
|
|
|
|
- // },
|
|
|
|
- // align: 'center',
|
|
|
|
- // key: 'isCycle'
|
|
|
|
- // },
|
|
|
|
|
|
+ {
|
|
|
|
+ title: '是否循环',
|
|
|
|
+ dataIndex: 'isCycle',
|
|
|
|
+ customRender: function(text) {
|
|
|
|
+ if (text == 1) {
|
|
|
|
+ return '是'
|
|
|
|
+ } else if (text == 0) {
|
|
|
|
+ return '否'
|
|
|
|
+ } else {
|
|
|
|
+ return text
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ align: 'center',
|
|
|
|
+ key: 'isCycle'
|
|
|
|
+ },
|
|
// {
|
|
// {
|
|
// title: '循环次数',
|
|
// title: '循环次数',
|
|
// dataIndex: 'cycleTimes',
|
|
// dataIndex: 'cycleTimes',
|
|
@@ -547,12 +580,19 @@ let TTcolumns = [
|
|
]
|
|
]
|
|
|
|
|
|
let detailColumns = [
|
|
let detailColumns = [
|
|
|
|
+ // {
|
|
|
|
+ // title: '渠道号',
|
|
|
|
+ // dataIndex: 'channelCode',
|
|
|
|
+ // scopedSlots: { customRender: 'channelCode' },
|
|
|
|
+ // align: 'center',
|
|
|
|
+ // key: 'channelCode'
|
|
|
|
+ // },
|
|
{
|
|
{
|
|
- title: '渠道号',
|
|
|
|
- dataIndex: 'channelCode',
|
|
|
|
- scopedSlots: { customRender: 'channelCode' },
|
|
|
|
|
|
+ title: '渠道号名称',
|
|
|
|
+ dataIndex: 'channelName',
|
|
|
|
+ scopedSlots: { customRender: 'channelName' },
|
|
align: 'center',
|
|
align: 'center',
|
|
- key: 'channelCode'
|
|
|
|
|
|
+ key: 'channelName'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '使用范围',
|
|
title: '使用范围',
|
|
@@ -569,13 +609,13 @@ let detailColumns = [
|
|
align: 'center',
|
|
align: 'center',
|
|
key: 'usageRange'
|
|
key: 'usageRange'
|
|
},
|
|
},
|
|
- {
|
|
|
|
- title: '项目名称',
|
|
|
|
- dataIndex: 'projectName',
|
|
|
|
- scopedSlots: { customRender: 'projectName' },
|
|
|
|
- align: 'center',
|
|
|
|
- key: 'projectName'
|
|
|
|
- },
|
|
|
|
|
|
+ // {
|
|
|
|
+ // title: '项目名称',
|
|
|
|
+ // dataIndex: 'projectName',
|
|
|
|
+ // scopedSlots: { customRender: 'projectName' },
|
|
|
|
+ // align: 'center',
|
|
|
|
+ // key: 'projectName'
|
|
|
|
+ // },
|
|
{
|
|
{
|
|
title: '账户名称',
|
|
title: '账户名称',
|
|
dataIndex: 'authName',
|
|
dataIndex: 'authName',
|
|
@@ -626,11 +666,14 @@ export default {
|
|
productId: '',
|
|
productId: '',
|
|
projectId: '',
|
|
projectId: '',
|
|
accountId: '',
|
|
accountId: '',
|
|
|
|
+ accountName: '',
|
|
|
|
+ projectName: '',
|
|
selectedRowKeys: [],
|
|
selectedRowKeys: [],
|
|
visibleChannel: false,
|
|
visibleChannel: false,
|
|
visibleAddItem: false,
|
|
visibleAddItem: false,
|
|
visibleItem: false,
|
|
visibleItem: false,
|
|
channelCode: '',
|
|
channelCode: '',
|
|
|
|
+ usageLevel: '',
|
|
channelType: 'a',
|
|
channelType: 'a',
|
|
createType: 1,
|
|
createType: 1,
|
|
indexAll: 0,
|
|
indexAll: 0,
|
|
@@ -696,7 +739,7 @@ export default {
|
|
this.dataDetailLoading = true
|
|
this.dataDetailLoading = true
|
|
var params = {}
|
|
var params = {}
|
|
params.accountId = localStorage.getItem('channelInfoAccountId')
|
|
params.accountId = localStorage.getItem('channelInfoAccountId')
|
|
- ? localStorage.getItem('channelInfoAccountId')
|
|
|
|
|
|
+ ? JSON.parse(localStorage.getItem('channelInfoAccountId')).accountId
|
|
: null
|
|
: null
|
|
params.projectId = localStorage.getItem('channelInfoProjectId')
|
|
params.projectId = localStorage.getItem('channelInfoProjectId')
|
|
? localStorage.getItem('channelInfoProjectId')
|
|
? localStorage.getItem('channelInfoProjectId')
|
|
@@ -764,7 +807,7 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
moment,
|
|
moment,
|
|
- closeLog(){
|
|
|
|
|
|
+ closeLog() {
|
|
this.$router.replace('/autoLaunch/channelAdmin')
|
|
this.$router.replace('/autoLaunch/channelAdmin')
|
|
this.$bus.$emit('remove', '/autoLaunch/channelDetailList')
|
|
this.$bus.$emit('remove', '/autoLaunch/channelDetailList')
|
|
},
|
|
},
|
|
@@ -791,7 +834,7 @@ export default {
|
|
id: data.id,
|
|
id: data.id,
|
|
state: checked ? 1 : 0
|
|
state: checked ? 1 : 0
|
|
}
|
|
}
|
|
- getAction('/channel/updateChannel', paramsData)
|
|
|
|
|
|
+ getAction('/channel/updateChannelState', paramsData)
|
|
.then(result => {
|
|
.then(result => {
|
|
if (result.code === 200) {
|
|
if (result.code === 200) {
|
|
const paramsData = this.form.getFieldsValue()
|
|
const paramsData = this.form.getFieldsValue()
|
|
@@ -893,8 +936,21 @@ export default {
|
|
this.visibleChannel = true
|
|
this.visibleChannel = true
|
|
this.dataDetailLoading = true
|
|
this.dataDetailLoading = true
|
|
this.channelCode = item.channelCode
|
|
this.channelCode = item.channelCode
|
|
|
|
+ this.usageLevel = item.usageLevel
|
|
|
|
+ // dataIndex: 'usageLevel',
|
|
|
|
+ // customRender: function(text) {
|
|
|
|
+ // if (text == 'account') {
|
|
|
|
+ // return '账户'
|
|
|
|
+ // } else if (text == 'plan') {
|
|
|
|
+ // return '计划'
|
|
|
|
+ // } else if (text == 'group') {
|
|
|
|
+ // return '组'
|
|
|
|
+ // } else {
|
|
|
|
+ // return text
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
var params = {}
|
|
var params = {}
|
|
- params.accountId = localStorage.getItem('channelInfoAccountId')
|
|
|
|
|
|
+ params.accountId = JSON.parse(localStorage.getItem('channelInfoAccountId')).accountId
|
|
params.channelCode = item.channelCode
|
|
params.channelCode = item.channelCode
|
|
params.pageNo = this.ipaginationDetail.current
|
|
params.pageNo = this.ipaginationDetail.current
|
|
params.pageSize = this.ipaginationDetail.pageSize
|
|
params.pageSize = this.ipaginationDetail.pageSize
|
|
@@ -931,7 +987,7 @@ export default {
|
|
channelCode: data.channelCode,
|
|
channelCode: data.channelCode,
|
|
channelName: data.channelName,
|
|
channelName: data.channelName,
|
|
accountId: localStorage.getItem('channelInfoAccountId')
|
|
accountId: localStorage.getItem('channelInfoAccountId')
|
|
- ? localStorage.getItem('channelInfoAccountId')
|
|
|
|
|
|
+ ? JSON.parse(localStorage.getItem('channelInfoAccountId')).accountId
|
|
: null,
|
|
: null,
|
|
projectId: localStorage.getItem('channelInfoProjectId')
|
|
projectId: localStorage.getItem('channelInfoProjectId')
|
|
? localStorage.getItem('channelInfoProjectId')
|
|
? localStorage.getItem('channelInfoProjectId')
|
|
@@ -1055,7 +1111,9 @@ export default {
|
|
const paramsData = this.form.getFieldsValue()
|
|
const paramsData = this.form.getFieldsValue()
|
|
this.handleGetTableList(paramsData)
|
|
this.handleGetTableList(paramsData)
|
|
if (localStorage.getItem('channelInfoAccountId')) {
|
|
if (localStorage.getItem('channelInfoAccountId')) {
|
|
- this.accountId = localStorage.getItem('channelInfoAccountId')
|
|
|
|
|
|
+ this.accountId = JSON.parse(localStorage.getItem('channelInfoAccountId')).accountId
|
|
|
|
+ this.accountName = JSON.parse(localStorage.getItem('channelInfoAccountId')).accountName
|
|
|
|
+ this.projectName = JSON.parse(localStorage.getItem('channelInfoAccountId')).projectName
|
|
} else {
|
|
} else {
|
|
this.accountId = null
|
|
this.accountId = null
|
|
}
|
|
}
|