Commit 06ecba94 by xinla

--no commit message

1 parent b6ec03f1
<script> <script>
import * as api from '@/api/customer/group' import * as api from '@/api/customer/group'
// import * as api from '@/api/customer/tag' // import * as api from '@/api/customer/tag'
import SelectTag from '@/components/SelectTag' import SelectTag from '@/components/SelectTag'
export default { export default {
name: 'Group', name: 'Group',
components: { SelectTag }, components: { SelectTag },
data() { data() {
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
groupLeaderName: undefined, groupLeaderName: undefined,
tagIds: undefined, tagIds: undefined,
beginTime: undefined, beginTime: undefined,
endTime: undefined endTime: undefined,
}, },
// 日期范围 // 日期范围
dateRange: [], dateRange: [],
...@@ -36,9 +36,9 @@ ...@@ -36,9 +36,9 @@
selectedTag: [], // 选择的标签 selectedTag: [], // 选择的标签
tagDialogType: { tagDialogType: {
title: '选择标签', // 选择标签弹窗标题 title: '选择标签', // 选择标签弹窗标题
type: '' // 弹窗类型 type: '', // 弹窗类型
}, },
makeLabelCustomerList: [] makeLabelCustomerList: [],
} }
}, },
computed: {}, computed: {},
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
this.selectedTag = this.queryTag this.selectedTag = this.queryTag
this.tagDialogType = { this.tagDialogType = {
title: '选择标签', title: '选择标签',
type: 'query' type: 'query',
} }
this.dialogVisible = true this.dialogVisible = true
// this.$refs.selectTag.$forceUpdate() // this.$refs.selectTag.$forceUpdate()
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
curTags = data.tags.map((i, idx) => ({ curTags = data.tags.map((i, idx) => ({
name: i, name: i,
tagName: i, tagName: i,
tagId: data.tagIds[idx] tagId: data.tagIds[idx],
})) }))
} }
this.selectedTag = curTags this.selectedTag = curTags
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
chatId: this.makeLabelCustomerList.chatId, chatId: this.makeLabelCustomerList.chatId,
tagIds: selected.map((row) => { tagIds: selected.map((row) => {
return row.tagId return row.tagId
}) }),
} }
api api
.makeGroupTag(data) .makeGroupTag(data)
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id) this.ids = selection.map((item) => item.id)
this.multiple = !selection.length this.multiple = !selection.length
} },
// /** 导出按钮操作 */ // /** 导出按钮操作 */
// handleExport() { // handleExport() {
// const query = this.query; // const query = this.query;
...@@ -171,8 +171,8 @@ ...@@ -171,8 +171,8 @@
// }) // })
// .catch(function () {}); // .catch(function () {});
// } // }
} },
} }
</script> </script>
<template> <template>
...@@ -201,8 +201,7 @@ ...@@ -201,8 +201,7 @@
v-bind="pickerOptions" v-bind="pickerOptions"
range-separator="-" range-separator="-"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"></el-date-picker>
></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label=""> <el-form-item label="">
<!-- v-hasPermi="['customerManage:group:query']" --> <!-- v-hasPermi="['customerManage:group:query']" -->
...@@ -219,7 +218,7 @@ ...@@ -219,7 +218,7 @@
<div class="g-card-title mid-action"> <div class="g-card-title mid-action">
<div class=""> <div class="">
共 共
<span class="g-color" style="color: var(--color);">{{ total }}</span> <span class="g-color" style="color: var(--color)">{{ total }}</span>
个客户群 个客户群
</div> </div>
<div> <div>
...@@ -239,7 +238,7 @@ ...@@ -239,7 +238,7 @@
<el-table-column prop="tags" label="群标签" align="center"> <el-table-column prop="tags" label="群标签" align="center">
<template #default="{ row }"> <template #default="{ row }">
<div v-if="row.tags"> <div v-if="row.tags">
<TagEllipsis :list="row.tagNames"></TagEllipsis> <TagEllipsis :list="row.tags"></TagEllipsis>
</div> </div>
<span v-else>无标签</span> <span v-else>无标签</span>
</template> </template>
...@@ -252,10 +251,9 @@ ...@@ -252,10 +251,9 @@
@click=" @click="
$router.push({ $router.push({
path: './groupDetail', path: './groupDetail',
query: { chatId: scope.row.chatId } query: { chatId: scope.row.chatId },
}) })
" ">
>
查看详情 查看详情
</el-button> </el-button>
<!-- v-hasPermi="['customerManage:group:view']" --> <!-- v-hasPermi="['customerManage:group:view']" -->
...@@ -270,8 +268,7 @@ ...@@ -270,8 +268,7 @@
:total="total" :total="total"
v-model:page="query.pageNum" v-model:page="query.pageNum"
v-model:limit="query.pageSize" v-model:limit="query.pageSize"
@pagination="getList()" @pagination="getList()" />
/>
</div> </div>
<!-- 选择标签弹窗 --> <!-- 选择标签弹窗 -->
...@@ -281,8 +278,7 @@ ...@@ -281,8 +278,7 @@
type="2" type="2"
:title="tagDialogType.title" :title="tagDialogType.title"
:defaultValues="selectedTag" :defaultValues="selectedTag"
@success="submitSelectTag" @success="submitSelectTag"></SelectTag>
></SelectTag>
</div> </div>
</template> </template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!