提交本地代码
This commit is contained in:
parent
8ea8098a93
commit
dfd41d0e95
|
@ -5,7 +5,7 @@
|
|||
<el-card>
|
||||
<el-form :inline="true">
|
||||
<el-form-item label="厂区">
|
||||
<el-select v-model="factoryArea" placeholder="请选择厂区" style="width: 200px;"
|
||||
<el-select v-model="factoryArea" placeholder="请选择厂区" style="width: 230px;"
|
||||
@change="handleChangeFactory">
|
||||
<el-option v-for="dict in factory_area" :key="dict.value" :label="dict.label"
|
||||
:value="dict.value" />
|
||||
|
@ -69,7 +69,7 @@ import closeImg from '@/assets/images/closeImg.png'
|
|||
import { listBuildingDashboard } from "@/api/safetyReview"
|
||||
|
||||
const router = useRouter()
|
||||
const factoryArea = ref('MFA厂区')
|
||||
const factoryArea = ref('前驱车工厂(MFA)')
|
||||
const { proxy } = getCurrentInstance()
|
||||
const { factory_area } = proxy.useDict("factory_area")
|
||||
// 属地弹出层
|
||||
|
@ -262,21 +262,21 @@ const getListBuildingDashboard = () => {
|
|||
}
|
||||
listBuildingDashboard(searchParams).then(res => {
|
||||
if (res.code == 200) {
|
||||
if (factoryArea.value == 'MFA厂区') {
|
||||
if (factoryArea.value == '前驱车工厂(MFA)') {
|
||||
res.data.forEach(itemRes => {
|
||||
const curBuildingIndex = mfaPathData.value.findIndex(key => key.text === itemRes.buildingNo)
|
||||
if (curBuildingIndex !== -1) mfaPathData.value[curBuildingIndex] = { ...mfaPathData.value[curBuildingIndex], ...itemRes };
|
||||
});
|
||||
initMFA()
|
||||
}
|
||||
if (factoryArea.value == '电池工厂') {
|
||||
if (factoryArea.value == '发动机与电池工厂') {
|
||||
res.data.forEach(itemRes => {
|
||||
const curBuildingIndex = dianchiPathData.value.findIndex(key => key.text === itemRes.buildingNo)
|
||||
if (curBuildingIndex !== -1) dianchiPathData.value[curBuildingIndex] = { ...dianchiPathData.value[curBuildingIndex], ...itemRes };
|
||||
});
|
||||
initDianchi()
|
||||
}
|
||||
if (factoryArea.value == 'MRA工厂') {
|
||||
if (factoryArea.value == '后驱车工厂(MRA)') {
|
||||
res.data.forEach(itemRes => {
|
||||
const curBuildingIndex = mraPathData.value.findIndex(key => key.text === itemRes.buildingNo)
|
||||
if (curBuildingIndex !== -1) mraPathData.value[curBuildingIndex] = { ...mraPathData.value[curBuildingIndex], ...itemRes };
|
||||
|
|
Loading…
Reference in New Issue
Block a user