This commit is contained in:
dhr
2025-09-24 16:37:09 +08:00
parent 80cca114a9
commit 9913a7854c
15 changed files with 1943 additions and 435 deletions

View File

@ -12,9 +12,6 @@
<div class="nav-tab" @click="handleInspection7">运维组织</div>
</div>
<!-- 页面标题 -->
<TitleComponent title="报修管理模块" subtitle="创建报修任务,跟进报修记录,管理维修进度"></TitleComponent>
<!-- 选项卡 -->
<div class="tabs-wrapper">
<div style="display: flex; align-items: center; gap: 10px">
@ -369,7 +366,6 @@
<script setup>
import { ref, computed, onMounted } from 'vue';
import router from '@/router';
import TitleComponent from './TitleComponent.vue';
import { ElMessage } from 'element-plus';
import { baoxiulist, baoxiuDetail, baoxiuRecord, updatebaoxiu } from '@/api/zhinengxunjian/baoxiou/index';
import { xunjianUserlist } from '@/api/zhinengxunjian/xunjian';
@ -498,10 +494,10 @@ const getUsersList = async () => {
const res = await xunjianUserlist();
// 根据接口返回格式成功码是200用户数据在rows数组中
if (res.code === 200 && res.rows && Array.isArray(res.rows)) {
// 映射用户数据,将id转换为字符串以避免大整数精度问题
// 映射用户数据,使用userId字段作为唯一标识并转换为字符串以避免大整数精度问题
usersList.value = res.rows.map((user) => ({
id: String(user.id),
name: user.userName
id: String(user.userId || ''),
name: user.userName || '未知用户'
}));
} else {
usersList.value = [];