Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
DC-TOM
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘照晖
DC-TOM
Commits
36d99014
Commit
36d99014
authored
May 25, 2025
by
Cai Wei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(*): 合并冲突
parent
055e46c0
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
26 deletions
+31
-26
index.vue
src/layout/index.vue
+2
-2
dustOverview.js
src/request/api/dustOverview.js
+2
-1
addDustCollectorDialog.vue
src/views/dustOverview/components/addDustCollectorDialog.vue
+4
-2
valveSettingDialog.vue
src/views/dustOverview/components/valveSettingDialog.vue
+14
-15
index.vue
src/views/dustOverview/index.vue
+8
-6
index.vue
src/views/login/index.vue
+1
-0
No files found.
src/layout/index.vue
View file @
36d99014
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<template
#
dropdown
>
<template
#
dropdown
>
<el-dropdown-menu>
<el-dropdown-menu>
<el-dropdown-item
:icon=
"Plus"
@
click=
"logout"
>
退出登录
</el-dropdown-item>
<el-dropdown-item
@
click=
"logout"
>
退出登录
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown-menu>
</
template
>
</
template
>
</el-dropdown>
</el-dropdown>
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
</template>
</template>
<
script
>
<
script
>
import
menuCom
from
"./menuCom.vue"
;
import
menuCom
from
"./menuCom.vue"
;
import
{
CaretBottom
,
Plus
}
from
"@element-plus/icons-vue"
;
import
{
CaretBottom
}
from
"@element-plus/icons-vue"
;
import
{
useRoute
,
useRouter
}
from
'vue-router'
;
import
{
useRoute
,
useRouter
}
from
'vue-router'
;
import
{
watch
,
ref
,
onMounted
}
from
'vue'
;
import
{
watch
,
ref
,
onMounted
}
from
'vue'
;
import
{
getToken
}
from
'@/utils/auth'
;
import
{
getToken
}
from
'@/utils/auth'
;
...
...
src/request/api/dustOverview.js
View file @
36d99014
...
@@ -21,10 +21,11 @@ export function getCloseLoopNum() {
...
@@ -21,10 +21,11 @@ export function getCloseLoopNum() {
}
}
export
function
getProductionLine
()
{
export
function
getProductionLine
(
params
)
{
return
request
({
return
request
({
url
:
"/transaction/getProductionLine"
,
url
:
"/transaction/getProductionLine"
,
method
:
"get"
,
method
:
"get"
,
params
,
});
});
}
}
...
...
src/views/dustOverview/components/addDustCollectorDialog.vue
View file @
36d99014
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
<
script
setup
>
<
script
setup
>
import
{
ref
,
reactive
,
onMounted
,
watch
}
from
'vue'
;
import
{
ref
,
reactive
,
onMounted
,
watch
}
from
'vue'
;
import
{
getVisDusterList
,
getProductionLine
}
from
"@/request/api/dustOverview"
;
import
{
getVisDusterList
,
getProductionLine
}
from
"@/request/api/dustOverview"
;
import
{
getToken
}
from
"@/utils/auth"
;
const
props
=
defineProps
({
const
props
=
defineProps
({
modelValue
:
{
modelValue
:
{
type
:
Boolean
,
type
:
Boolean
,
...
@@ -226,7 +226,9 @@ const handleSearch = (query) => {
...
@@ -226,7 +226,9 @@ const handleSearch = (query) => {
};
};
const
productionLine
=
()
=>
{
const
productionLine
=
()
=>
{
getProductionLine
().
then
(
res
=>
{
getProductionLine
({
branchFactoryId
:
getToken
(
"dataBranchFactoryId"
)
}).
then
(
res
=>
{
processOptions
.
value
=
res
.
data
;
processOptions
.
value
=
res
.
data
;
})
})
}
}
...
...
src/views/dustOverview/components/valveSettingDialog.vue
View file @
36d99014
...
@@ -108,12 +108,8 @@ import { ref, watch, computed } from "vue";
...
@@ -108,12 +108,8 @@ import { ref, watch, computed } from "vue";
const
props
=
defineProps
({
const
props
=
defineProps
({
modelValue
:
Boolean
,
modelValue
:
Boolean
,
totalValves
:
{
data
:
{
type
:
Number
,
type
:
Object
,
required
:
true
},
statusData
:
{
type
:
Array
,
default
:
()
=>
[]
default
:
()
=>
[]
}
}
});
});
...
@@ -160,19 +156,22 @@ const validateValveCount = computed(() => {
...
@@ -160,19 +156,22 @@ const validateValveCount = computed(() => {
const
initializeState
=
()
=>
{
const
initializeState
=
()
=>
{
if
(
props
.
modelValue
)
{
if
(
props
.
modelValue
)
{
valveForm
.
value
.
total
=
props
.
totalValves
;
console
.
log
(
props
.
data
)
statusData
.
value
=
[...
props
.
statusData
];
// 深拷贝状态数据
// valveForm.value.total = props.totalValves;
errorMessage
.
value
=
""
;
// statusData.value = [...props.statusData]; // 深拷贝状态数据
// errorMessage.value = "";
// 如果有数据,默认选中第一个仓室
if
(
statusData
.
value
.
length
>
0
)
{
// // 如果有数据,默认选中第一个仓室
valveForm
.
value
.
roomNo
=
statusData
.
value
[
0
].
index
;
// if (statusData.value.length > 0) {
valveForm
.
value
.
valveCount
=
statusData
.
value
[
0
].
count
;
// valveForm.value.roomNo = statusData.value[0].index;
valveForm
.
value
.
distribution
=
statusData
.
value
[
0
].
count
;
// 默认布阀数量等于电磁阀数量
// valveForm.value.valveCount = statusData.value[0].count;
}
// valveForm.value.distribution = statusData.value[0].count; // 默认布阀数量等于电磁阀数量
// }
}
}
};
};
// getToken("customerId"),
// 当选中的仓室改变时,更新电磁阀分布数量
// 当选中的仓室改变时,更新电磁阀分布数量
const
handleRoomChange
=
(
roomIndex
)
=>
{
const
handleRoomChange
=
(
roomIndex
)
=>
{
const
selectedRoom
=
statusData
.
value
.
find
(
cell
=>
cell
.
index
===
roomIndex
);
const
selectedRoom
=
statusData
.
value
.
find
(
cell
=>
cell
.
index
===
roomIndex
);
...
...
src/views/dustOverview/index.vue
View file @
36d99014
...
@@ -151,8 +151,7 @@
...
@@ -151,8 +151,7 @@
<!-- 使用新的电磁阀数量设置弹窗组件 -->
<!-- 使用新的电磁阀数量设置弹窗组件 -->
<ValveSettingDialog
<ValveSettingDialog
v-model=
"valveSettingVisible"
v-model=
"valveSettingVisible"
:total-valves=
"valveForm.total"
:data=
"currentEditingRow"
:status-data=
"currentEditingRow?.status || []"
@
confirm=
"handleValveSettingConfirm"
@
confirm=
"handleValveSettingConfirm"
/>
/>
...
@@ -168,6 +167,7 @@
...
@@ -168,6 +167,7 @@
<
script
setup
>
<
script
setup
>
import
{
ref
,
onMounted
,
onBeforeUnmount
,
computed
,
watch
}
from
"vue"
;
import
{
ref
,
onMounted
,
onBeforeUnmount
,
computed
,
watch
}
from
"vue"
;
import
{
getDusterLeakNum
,
getHealthPercent
,
getCloseLoopNum
,
getProductionLine
,
getDusterList
,
postAddDuster
,
postUpdateDuster
,
postAddCompartAllocation
}
from
"@/request/api/dustOverview"
;
import
{
getDusterLeakNum
,
getHealthPercent
,
getCloseLoopNum
,
getProductionLine
,
getDusterList
,
postAddDuster
,
postUpdateDuster
,
postAddCompartAllocation
}
from
"@/request/api/dustOverview"
;
import
{
getToken
}
from
"@/utils/auth"
;
import
CommonTable
from
"@/components/commonTable/index.vue"
;
import
CommonTable
from
"@/components/commonTable/index.vue"
;
import
{
ElMessageBox
,
ElMessage
}
from
"element-plus"
;
import
{
ElMessageBox
,
ElMessage
}
from
"element-plus"
;
import
RoomSettingDialog
from
"./components/roomSettingDialog.vue"
;
import
RoomSettingDialog
from
"./components/roomSettingDialog.vue"
;
...
@@ -346,9 +346,9 @@ const handleRoomSettingConfirm = (data) => {
...
@@ -346,9 +346,9 @@ const handleRoomSettingConfirm = (data) => {
const
handleValveNumClick
=
(
row
)
=>
{
const
handleValveNumClick
=
(
row
)
=>
{
// 创建一个扁平化的状态数组用于电磁阀设置
// 创建一个扁平化的状态数组用于电磁阀设置
currentEditingRow
.
value
=
JSON
.
parse
(
JSON
.
stringify
(
row
));
currentEditingRow
.
value
=
JSON
.
parse
(
JSON
.
stringify
(
row
));
const
flattenedStatus
=
row
.
status
.
flat
().
map
(
item
=>
({...
item
}));
//
const flattenedStatus = row.status.flat().map(item => ({...item}));
currentEditingRow
.
value
.
status
=
flattenedStatus
;
//
currentEditingRow.value.status = flattenedStatus;
valveForm
.
value
.
total
=
row
.
valveNum
;
//
valveForm.value.total = row.valveNum;
valveSettingVisible
.
value
=
true
;
valveSettingVisible
.
value
=
true
;
};
};
...
@@ -436,7 +436,9 @@ const IcloseLoopNum = () => {
...
@@ -436,7 +436,9 @@ const IcloseLoopNum = () => {
}
}
const
IproductionLine
=
()
=>
{
const
IproductionLine
=
()
=>
{
getProductionLine
().
then
(
res
=>
{
getProductionLine
({
branchFactoryId
:
getToken
(
"dataBranchFactoryId"
)
}).
then
(
res
=>
{
productionLine
.
value
=
res
.
data
||
[];
productionLine
.
value
=
res
.
data
||
[];
// 默认显示全部
// 默认显示全部
productionLineFiltered
.
value
=
res
.
data
||
[];
productionLineFiltered
.
value
=
res
.
data
||
[];
...
...
src/views/login/index.vue
View file @
36d99014
...
@@ -1169,6 +1169,7 @@ $cursor: #ccc;
...
@@ -1169,6 +1169,7 @@ $cursor: #ccc;
border-bottom
:
1px
solid
#fff
;
border-bottom
:
1px
solid
#fff
;
background
:
#fff
;
background
:
#fff
;
}
}
}
}
</
style
>
</
style
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment