Commit 8893e273 by chenyu

update: 添加获取会员标签详情

parent 4e95f39f
......@@ -42,8 +42,9 @@
:prop="item.code"
v-for="item in selectedFields" :key="item.code"
:fixed="item.code == 'name' ? true : false"
:label="item.name">
<template slot-scope="scope">
:label="item.name"
width="200">
<template slot-scope="scope">
<!-- 基本信息 -->
<template v-if="item.code == 'name'">
<div @click="linkDetail(scope.row.memberId, scope.row.isWeixinMember)" style="cursor: pointer;" class="tablecontent-cell">
......@@ -241,30 +242,35 @@
</template>
</template>
</el-table-column>
<el-table-column label-class-name="table-header__handle">
<template slot="header">
<span>操作</span>
<i class="el-icon-setting" @click="showDefined"></i>
</template>
<template slot-scope="scope">
<a
rel="nofollow noopener noreferrer"
target="_blank"
v-if="scope.row.isWeixinMember"
:href="'/member/#/wechatmemberDetail?memberId=' + scope.row.memberId + '&channel=wxMember&fromPage=memberGroup'"
class="el-button el-button--text"
>查看</a
>
<a
rel="nofollow noopener noreferrer"
target="_blank"
v-else
:href="'/member/#/posmemberDetail?memberId=' + scope.row.memberId + '&channel=posMember&fromPage=memberGroup'"
class="el-button el-button--text"
>查看</a
>
</template>
</el-table-column>
<el-table-column label="添加标签时间" width="200">
<template slot-scope="{ $index }">
<div :index="$index">{{ updateTime ? dateformat(new Date(updateTime), 'yyyy-MM-dd hh:mm:ss') : '' }}</div>
</template>
</el-table-column>
<el-table-column label-class-name="table-header__handle" fixed="right" width="120">
<template slot="header">
<span>操作</span>
<i class="el-icon-setting" @click="showDefined"></i>
</template>
<template slot-scope="scope">
<a
rel="nofollow noopener noreferrer"
target="_blank"
v-if="scope.row.isWeixinMember"
:href="'/member/#/wechatmemberDetail?memberId=' + scope.row.memberId + '&channel=wxMember&fromPage=memberGroup'"
class="el-button el-button--text"
>查看</a
>
<a
rel="nofollow noopener noreferrer"
target="_blank"
v-else
:href="'/member/#/posmemberDetail?memberId=' + scope.row.memberId + '&channel=posMember&fromPage=memberGroup'"
class="el-button el-button--text"
>查看</a
>
</template>
</el-table-column>
</el-table>
</div>
<div class="block common-wrap__page text-right" v-if="tagDetailList.length != 0">
......@@ -297,6 +303,7 @@
</template>
<script>
import './manualTagDetail.less';
import { dateformat } from '@/utils/formatTime';
import navCrumb from '@/components/nav/nav.vue';
import userDefined from '@/components/userDefined.vue';
import errMsg from '@/common/js/error';
......@@ -321,9 +328,9 @@ export default {
requestProject: 'member-tag'
}
},
dateformat,
tagItemName: '',
tagId: '',
updateTime: '',
// tagDetailList 表格
sortableFlag: false, // 表格可排序
tagDetailList: [],
......@@ -378,7 +385,7 @@ export default {
},
{
name: '标签值设置',
path: `/manualTagValueEdit?tagId=${this.tagId}`
path: `/manualTagValueEdit?tagId=${this.$route.query.tagId}`
},
{
name: '会员标签详情',
......@@ -537,6 +544,20 @@ export default {
console.log(e, 'error of get group detail');
}).finally(_=>that.loading = false);
},
getTagItemInfo(id) {
const that = this;
getRequest('/memberTag/get-member-tag-item', {id})
.then(res => {
const resData=res.data;
if (resData.errorCode===1 && res.data.result) {
that.tagItemName = res.data.result.tagItemName;
that.updateTime = res.data.result.updateTime;
}
})
.catch(e => {
console.log(e, 'error of tagItem info');
})
},
clearSearch() {
this.pageParam.search = '';
this.pageParam.pageNum = 1;
......@@ -635,17 +656,16 @@ export default {
}
},
mounted() {
const {tagItemName ,tagItemId, tagId}=this.$route.query;
const { tagItemId }=this.$route.query;
let local = window.location.origin;
if (local.indexOf('localhost') != -1) {
local = 'http://gicdev.demogic.com';
}
this.tagItemName=tagItemName;
this.pageParam.tagItemId=tagItemId;
this.tagId=tagId;
this.downTagDetailListPop.params.tagItemId = tagItemId;
this.downTagDetailListPop.excelUrl = local + this.downTagDetailListPop.excelUrl;
this.canDownMemberList();
this.getTagItemInfo(tagItemId)
// 获取自定义字段
this.getFieldsList();
document.getElementById('app').style.zIndex = 'auto';
......
......@@ -369,7 +369,7 @@ export default {
},
// 跳转会员标签人数详情页面
toTagDetail(row){
this.$router.push(`/manualTagValueEditInfo?tagId=${row.tagId}&tagItemId=${row.tagItemId}&tagItemName=${row.tagItemName}`)
this.$router.push(`/manualTagValueEditInfo?tagId=${row.tagId}&tagItemId=${row.tagItemId}`)
},
// 显示导入会员的弹窗
showImportPop(index, row) {
......
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