fix: BUG修改

This commit is contained in:
kun 2024-04-08 14:24:05 +08:00
parent d8c9b5062f
commit 8c7e68e975
3 changed files with 13 additions and 7 deletions

View File

@ -21,7 +21,7 @@ NODE_ENV = 'development'
# 七参数标准版(测试平台)
# VITE_API_URL = 'http://182.90.224.237:15551'
# agjt
VITE_API_URL = 'http://angang.xingzong.tech:9809'
VITE_API_URL = 'http://47.93.215.234:9809'
# 上传
VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url='

View File

@ -21,7 +21,7 @@ NODE_ENV = "production"
# 七参数标准版(测试平台)
# VITE_API_URL = 'http://182.90.224.237:15551'
# agjt
VITE_API_URL = 'http://angang.xingzong.tech:9809'
VITE_API_URL = 'http://47.93.215.234:9809'
# 打包
VITE_ULD_API_URL = 'http://jxj.zhgdyun.com:8012/onlinePreview?url='

View File

@ -15,8 +15,8 @@
</div>
<div class="over-time" v-if="item.overdueType"><span style="color: #e25f64">已逾期</span></div>
<div class="name">
整改结果<span :style="{ color: item.status ? rectification[item.status - 1].color : '' }">{{
item.status ? rectification[item.status - 1].name : ""
整改结果<span :style="{ color: item.status ? statusNameFilter(item.status).color : '' }">{{
item.status ? statusNameFilter(item.status).name : ""
}}</span>
</div>
<div class="name">检查人{{ item.inspectManName || "" }}</div>
@ -49,8 +49,8 @@ let rectification = ref([
{ id: 1, name: "无需整改", color: "#a1accb" },
{ id: 2, name: "待整改", color: "#698ed2" },
{ id: 3, name: "待复查", color: "#EEA959" },
{ id: 4, name: "合格", color: "#82FBEA" },
{ id: 5, name: "合格", color: "#a1accb" }
{ id: 4, name: "待核验", color: "#a1accb" },
{ id: 5, name: "合格", color: "#82FBEA" }
]);
let list = ref([]);
@ -61,7 +61,13 @@ let moreScroll = ref(true as any);
let pageNo = ref(1 as any);
let pageSize = ref(10 as any);
//
const statusNameFilter = (status:any):any => {
let findItem = rectification.value.find((item:any) => {
return item.id == status
})
return findItem;
}
//
const getSafeRecordList = async () => {
const res: any = await getQualityManageList({ projectSn: store.sn, pageNo: 1, pageSize: 10 });