Bläddra i källkod

修改删除人员分组提示

chauncey 1 år sedan
förälder
incheckning
4fb62b2b2d
2 ändrade filer med 10 tillägg och 6 borttagningar
  1. 4 1
      src/views/message/constant.ts
  2. 6 5
      src/views/message/persongroup/UserGroup.vue

+ 4 - 1
src/views/message/constant.ts

@@ -9,4 +9,7 @@ export const statisticTypeName = [
     { value: 3, label: "季报" },
     { value: 4, label: "年报" },
     { value: 5, label: "自定义" },
-];
+];
+export const messageTypeName = [
+    { value: 1, label: "报表消息" }
+]

+ 6 - 5
src/views/message/persongroup/UserGroup.vue

@@ -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: '操作',