|
|
@@ -52,7 +52,7 @@
|
|
|
:key="index"
|
|
|
style="display: flex; align-items: center"
|
|
|
>
|
|
|
- <span class="dot"></span>{{ getLabel(item.type, item.statisticType) }}
|
|
|
+ <span class="dot"></span>{{ getLabel(item.type, item.statisticType, item.messageType) }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-if="refGroup && refGroup.length > 3" @click="showAll = !showAll" class="more-button">
|
|
|
@@ -90,21 +90,22 @@ import viewIcon from '@/assets/images/reportmessage/view.png';
|
|
|
import editIcon from '@/assets/images/reportmessage/edit.png';
|
|
|
import deleteIcon from '@/assets/images/reportmessage/delete.png';
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus';
|
|
|
-import { typeName, statisticTypeName } from '@/views/message/constant';
|
|
|
+import { typeName, statisticTypeName, messageTypeName } from '@/views/message/constant';
|
|
|
const drawer = ref(false);
|
|
|
const drawerTitle = ref<string>('新建人员分组');
|
|
|
const handleCreateGroup = () => {
|
|
|
drawer.value = true;
|
|
|
drawerTitle.value = '新建人员分组';
|
|
|
};
|
|
|
-const getLabel = (type, statisticType) => {
|
|
|
+const getLabel = (type, statisticType, messageType) => {
|
|
|
const typeLabel = typeName.find((item) => item.value === type)?.label;
|
|
|
const statisticTypeLabel = statisticTypeName.find((item) => item.value === statisticType)?.label;
|
|
|
- return `${typeLabel} - ${statisticTypeLabel}`;
|
|
|
+ const messageTypeLabel = messageTypeName.find((item) => item.value === messageType)?.label;
|
|
|
+ return `${messageTypeLabel}-${typeLabel} - ${statisticTypeLabel}`;
|
|
|
};
|
|
|
const errorVisible = ref<boolean>(false);
|
|
|
const showAll = ref<boolean>(false);
|
|
|
-const refGroup = ref<Array<{ type: number; statisticType: number }>>();
|
|
|
+const refGroup = ref<Array<{ type: number; statisticType: number; messageType: number }>>();
|
|
|
const actionColumn: BasicColumn = reactive({
|
|
|
width: 224,
|
|
|
title: '操作',
|