src/views/collaborativeApproval/notificationManagement/meetApplication/index.vue
@@ -127,7 +127,7 @@
            <el-option
                v-for="person in employees"
                :key="person.id"
                :label="`${person.staffName} (${person.postName})`"
                :label="person.postName ? `${person.staffName} (${person.postName})` : person.staffName"
                :value="person.id"
            />
          </el-select>
@@ -152,9 +152,9 @@
</template>
<script setup>
import {ref, reactive, onMounted} from 'vue'
import {ref, reactive, onMounted, markRaw} from 'vue'
import {ElMessage} from 'element-plus'
import {Plus, Document, Promotion, Bell} from '@element-plus/icons-vue'
import {Document, Promotion, Bell} from '@element-plus/icons-vue'
import {getRoomEnum, saveMeetingApplication} from '@/api/collaborativeApproval/meeting.js'
import {staffOnJobListPage} from "@/api/personnelManagement/staffOnJob.js";
@@ -167,19 +167,19 @@
    value: 'approval',
    name: '审批流程会议',
    desc: '需要经过多级审批的会议申请',
    icon: Document
    icon: markRaw(Document)
  },
  {
    value: 'department',
    name: '部门级会议',
    desc: '部门内部会议申请流程',
    icon: Promotion
    icon: markRaw(Promotion)
  },
  {
    value: 'notification',
    name: '会议通知',
    desc: '无需审批直接发布的会议通知',
    icon: Bell
    icon: markRaw(Bell)
  }
])
@@ -307,7 +307,12 @@
    size: -1,
    staffState: 1
  }).then(res => {
    employees.value = res.data.records.sort((a, b) => a.postName.localeCompare(b.postName))
    console.log(res.data.records,"这个是返回的数据地址")
    employees.value = res.data.records.sort((a, b) => {
      const nameA = a.postName || ''
      const nameB = b.postName?.trim() || ''
      return nameA.localeCompare(nameB)
    })
  })
})
</script>