Commit b2387187 by xinla

TagEllipsis,g-footer-sticky等优化

1 parent a44b6307
...@@ -17,8 +17,7 @@ export default { ...@@ -17,8 +17,7 @@ export default {
}, },
// 空数据时显示的文本内容 // 空数据时显示的文本内容
emptyText: { emptyText: {
type: String, type: [Boolean, String], // Boolean必须在前,方便显式设置默认值, 具体规则参考vue3文档
default: '',
}, },
}, },
data() { data() {
...@@ -43,7 +42,7 @@ export default { ...@@ -43,7 +42,7 @@ export default {
<template> <template>
<div class="tag-ellipsis" v-if="_list?.length || emptyText"> <div class="tag-ellipsis" v-if="_list?.length || emptyText">
<div v-if="!_list?.length">{{ emptyText }}</div> <div v-if="!_list?.length">{{ typeof emptyText === 'string' ? emptyText : '暂无标签' }}</div>
<div class="tags" v-else-if="_list.length <= +limit"> <div class="tags" v-else-if="_list.length <= +limit">
<el-tag v-bind="elTagProps" v-for="(item, unique) in _list" :key="unique"> <el-tag v-bind="elTagProps" v-for="(item, unique) in _list" :key="unique">
......
...@@ -36,6 +36,7 @@ let components = { ...@@ -36,6 +36,7 @@ let components = {
RightToolbar: () => import('./components/RightToolbar.vue'), RightToolbar: () => import('./components/RightToolbar.vue'),
ButtonSync: () => import('./components/ButtonSync.vue'), ButtonSync: () => import('./components/ButtonSync.vue'),
TagEllipsis: () => import('./components/TagEllipsis.vue'), TagEllipsis: () => import('./components/TagEllipsis.vue'),
SelectTag: () => import('./components/SelectTag.vue'),
SelectUser: () => import('./components/SelectUser.vue'), SelectUser: () => import('./components/SelectUser.vue'),
SelectStaffForm: () => import('./components/SelectStaffForm.vue'), SelectStaffForm: () => import('./components/SelectStaffForm.vue'),
CoRemoteSelect: () => import('./components/CoRemoteSelect.vue'), CoRemoteSelect: () => import('./components/CoRemoteSelect.vue'),
......
...@@ -233,6 +233,7 @@ div:focus { ...@@ -233,6 +233,7 @@ div:focus {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
height: 60px; height: 60px;
z-index: 1;
bottom: 0; bottom: 0;
background: var(--bg-white); background: var(--bg-white);
box-shadow: 0px -4px 20px 0px var(--bg-black-9); box-shadow: 0px -4px 20px 0px var(--bg-black-9);
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
</el-table-column> </el-table-column>
<el-table-column label="入群标签" width="180px"> <el-table-column label="入群标签" width="180px">
<template #default="{ row }"> <template #default="{ row }">
<TagEllipsis :list="row.tags?.split(',')"></TagEllipsis> <TagEllipsis :list="row.tags?.split(',')" emptyText></TagEllipsis>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="活码客群数" align="center" width="120px" prop="chatGroupNum"> <el-table-column label="活码客群数" align="center" width="120px" prop="chatGroupNum">
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
<el-dialog v-if="realCodeDialog" title="实际群码" v-model="realCodeDialog" append-to-body width="70%"> <el-dialog v-if="realCodeDialog" title="实际群码" v-model="realCodeDialog" append-to-body width="70%">
<RealCode ref="realCode" :groupCodeId="openGroupCodeId" :status="openGroupCodeStatus"></RealCode> <RealCode ref="realCode" :groupCodeId="openGroupCodeId" :status="openGroupCodeStatus"></RealCode>
</el-dialog> </el-dialog>
<select-tag v-model:visible="showSelectTag" type="2" :selected="tagList" @success="getSelectTag"></select-tag> <SelectTag v-model:visible="showSelectTag" type="2" :selected="tagList" @success="getSelectTag"></SelectTag>
<el-dialog title="当前客群" v-model="detailDialog" append-to-body width="70%"> <el-dialog title="当前客群" v-model="detailDialog" append-to-body width="70%">
<el-table v-loading="loading" :data="tableList" style="width: 100%"> <el-table v-loading="loading" :data="tableList" style="width: 100%">
<el-table-column label="客群名称" align="center" min-width="100" prop="groupName" show-overflow-tooltip /> <el-table-column label="客群名称" align="center" min-width="100" prop="groupName" show-overflow-tooltip />
...@@ -220,10 +220,8 @@ ...@@ -220,10 +220,8 @@
import RealCode from './realCode' import RealCode from './realCode'
import { getList, remove, downloadBatch, download, getTableTotal } from '@/api/drainageCode/group' import { getList, remove, downloadBatch, download, getTableTotal } from '@/api/drainageCode/group'
import ShowTag from '@/components/common/ShowTag.vue'
import SelectTag from '@/components/SelectTag.vue'
export default { export default {
components: { RealCode, ShowTag, SelectTag }, components: { RealCode },
data() { data() {
return { return {
query: { query: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!