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
55317571
Commit
55317571
authored
Jun 02, 2025
by
liuzhaoh
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://app.bmetech.com/liuzhaohui/dctomproject
into dev
parents
2c83b467
ec65a27d
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
225 additions
and
196 deletions
+225
-196
map.png
src/assets/map.png
+0
-0
main.js
src/main.js
+19
-3
index.js
src/router/index.js
+1
-0
permissionChecker.js
src/utils/permissionChecker.js
+2
-2
AboutView.vue
src/views/AboutView/AboutView.vue
+76
-37
myAgency.vue
src/views/closeManage/myAgency.vue
+44
-60
myDone.vue
src/views/closeManage/myDone.vue
+49
-60
collectorList.vue
src/views/collectorList/collectorList.vue
+10
-10
index.vue
src/views/dustOverview/index.vue
+2
-12
suspendManagement.vue
...uipmentManagement/suspendManagement/suspendManagement.vue
+22
-11
index.vue
src/views/login/index.vue
+0
-1
No files found.
src/assets/map.png
View replaced file @
2c83b467
View file @
55317571
This diff is collapsed.
Click to expand it.
src/main.js
View file @
55317571
...
@@ -9,7 +9,7 @@ import "element-plus/dist/index.css";
...
@@ -9,7 +9,7 @@ import "element-plus/dist/index.css";
import
*
as
ElementPlusIconsVue
from
"@element-plus/icons-vue"
;
import
*
as
ElementPlusIconsVue
from
"@element-plus/icons-vue"
;
import
{
createPinia
}
from
"pinia"
;
import
{
createPinia
}
from
"pinia"
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
{
startPermissionCheck
}
from
'@/utils/permissionChecker'
;
import
{
startPermissionCheck
,
stopPermissionCheck
}
from
'@/utils/permissionChecker'
;
const
app
=
createApp
(
App
);
const
app
=
createApp
(
App
);
...
@@ -23,7 +23,23 @@ app
...
@@ -23,7 +23,23 @@ app
.
use
(
createPinia
())
.
use
(
createPinia
())
.
mount
(
"#app"
);
.
mount
(
"#app"
);
// 启动权限轮询检查,每5秒检查一次
// 监听路由变化,在登录页停止权限轮询,在其他页面启动权限轮询
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
if
(
to
.
path
===
'/login'
)
{
stopPermissionCheck
();
}
next
();
});
router
.
afterEach
((
to
)
=>
{
if
(
to
.
path
!==
'/login'
)
{
startPermissionCheck
(
5000
);
}
});
// 初始启动权限轮询检查
router
.
isReady
().
then
(()
=>
{
router
.
isReady
().
then
(()
=>
{
if
(
router
.
currentRoute
.
value
.
path
!==
'/login'
)
{
startPermissionCheck
(
5000
);
startPermissionCheck
(
5000
);
}
});
});
src/router/index.js
View file @
55317571
...
@@ -86,6 +86,7 @@ const routes = [
...
@@ -86,6 +86,7 @@ const routes = [
meta
:
{
title
:
'BME布袋监测'
,
icon
:
'collectorList'
},
meta
:
{
title
:
'BME布袋监测'
,
icon
:
'collectorList'
},
},
},
{
{
name
:
'alerts'
,
path
:
'/alerts'
,
path
:
'/alerts'
,
component
:
()
=>
import
(
'../views/AboutView/AboutView.vue'
),
component
:
()
=>
import
(
'../views/AboutView/AboutView.vue'
),
meta
:
{
title
:
'告警总览'
,
icon
:
'warnning'
},
meta
:
{
title
:
'告警总览'
,
icon
:
'warnning'
},
...
...
src/utils/permissionChecker.js
View file @
55317571
...
@@ -7,9 +7,9 @@ let previousPermissionData = null;
...
@@ -7,9 +7,9 @@ let previousPermissionData = null;
/**
/**
* 开始权限轮询检查
* 开始权限轮询检查
* @param {Number} interval - 轮询间隔,默认
5
000ms
* @param {Number} interval - 轮询间隔,默认
10
000ms
*/
*/
export
function
startPermissionCheck
(
interval
=
10
000
)
{
export
function
startPermissionCheck
(
interval
=
5
000
)
{
// 如果已经存在轮询,先清除
// 如果已经存在轮询,先清除
if
(
permissionInterval
)
{
if
(
permissionInterval
)
{
clearInterval
(
permissionInterval
);
clearInterval
(
permissionInterval
);
...
...
src/views/AboutView/AboutView.vue
View file @
55317571
...
@@ -107,6 +107,12 @@
...
@@ -107,6 +107,12 @@
:close-on-press-escape=
"false"
:close-on-press-escape=
"false"
>
>
<div
class=
"equd_body"
>
<div
class=
"equd_body"
>
<el-form
ref=
"ruleFormRef"
:model=
"equSubmitInfo"
:rules=
"rules"
class=
"equd_form"
>
<span
<span
>
是否要对
<span
class=
"bold"
>
{{ clickItem.name }}
</span
>
是否要对
<span
class=
"bold"
>
{{ clickItem.name }}
</span
>
不再告警:
</span
>
不再告警:
</span
...
@@ -117,26 +123,29 @@
...
@@ -117,26 +123,29 @@
<el-radio
value=
"0"
>
否
</el-radio>
<el-radio
value=
"0"
>
否
</el-radio>
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
<el-form-item
label=
"开始时间
"
>
<el-form-item
label=
"开始时间"
prop=
"startTime
"
>
<el-date-picker
<el-date-picker
v-model=
"equSubmitInfo.startTime"
v-model=
"equSubmitInfo.startTime"
type=
"datetime"
type=
"datetime"
placeholder=
"选择开始时间"
placeholder=
"选择开始时间"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"结束时间
"
>
<el-form-item
label=
"结束时间"
prop=
"endTime
"
>
<el-date-picker
<el-date-picker
v-model=
"equSubmitInfo.endTime"
v-model=
"equSubmitInfo.endTime"
type=
"datetime"
type=
"datetime"
placeholder=
"选择结束时间"
placeholder=
"选择结束时间"
/>
/>
</el-form-item>
</el-form-item>
</el-form>
</div>
</div>
<
template
#
footer
>
<
template
#
footer
>
<span
class=
"dialog-footer"
>
<span
class=
"dialog-footer"
>
<el-button
@
click=
"equDialog = false"
>
取消
</el-button>
<el-button
@
click=
"equDialog = false"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"equPending"
>
确认
</el-button>
<el-button
type=
"primary"
@
click=
"equPending(ruleFormRef)"
>
确认
</el-button>
</span>
</span>
</
template
>
</
template
>
</el-dialog>
</el-dialog>
...
@@ -150,9 +159,9 @@ import { useRoute, useRouter } from "vue-router";
...
@@ -150,9 +159,9 @@ import { useRoute, useRouter } from "vue-router";
import
{
getDataFun
,
postDataJSON
}
from
"@/request/method.js"
;
import
{
getDataFun
,
postDataJSON
}
from
"@/request/method.js"
;
import
moment
from
"moment"
;
import
moment
from
"moment"
;
const
router
=
useRouter
();
const
route
=
useRoute
();
const
route
=
useRoute
();
const
router
=
useRouter
();
const
formInline
=
ref
({
const
formInline
=
ref
({
eventName
:
""
,
eventName
:
""
,
name
:
""
,
name
:
""
,
...
@@ -171,8 +180,6 @@ const formInline = ref({
...
@@ -171,8 +180,6 @@ const formInline = ref({
:
[],
:
[],
});
});
const
currentPage
=
ref
(
1
);
const
currentPage
=
ref
(
1
);
const
pageSize
=
ref
(
20
);
const
pageSize
=
ref
(
20
);
const
equDialog
=
ref
(
false
);
const
equDialog
=
ref
(
false
);
...
@@ -225,6 +232,17 @@ const tableColumns = ref([
...
@@ -225,6 +232,17 @@ const tableColumns = ref([
},
},
]);
]);
const
ruleFormRef
=
ref
(
null
);
const
rules
=
{
startTime
:
[{
required
:
true
,
message
:
"请填写开始时间"
,
trigger
:
"blur"
}],
endTime
:
[
{
required
:
true
,
message
:
"请填写结束时间"
,
},
],
};
const
tableData
=
reactive
({
const
tableData
=
reactive
({
list
:
[],
list
:
[],
});
});
...
@@ -264,7 +282,7 @@ const onReset = () => {
...
@@ -264,7 +282,7 @@ const onReset = () => {
name
:
""
,
name
:
""
,
dusterName
:
""
,
dusterName
:
""
,
deviceType
:
""
,
deviceType
:
""
,
suspendFlag
:
"
2
"
,
suspendFlag
:
"
0
"
,
date
:
[],
date
:
[],
};
};
currentPage
.
value
=
1
;
currentPage
.
value
=
1
;
...
@@ -322,7 +340,8 @@ const equSubmitInfo = ref({
...
@@ -322,7 +340,8 @@ const equSubmitInfo = ref({
endTime
:
""
,
endTime
:
""
,
});
});
const
equPending
=
()
=>
{
const
equPending
=
async
(
formEl
)
=>
{
if
(
!
formEl
)
return
;
const
url
=
"/alarm/suspendDevice"
;
const
url
=
"/alarm/suspendDevice"
;
const
params
=
{
const
params
=
{
id
:
clickItem
.
value
.
id
,
id
:
clickItem
.
value
.
id
,
...
@@ -338,15 +357,33 @@ const equPending = () => {
...
@@ -338,15 +357,33 @@ const equPending = () => {
)
)
:
""
,
:
""
,
};
};
await
formEl
.
validate
((
valid
,
fields
)
=>
{
if
(
valid
)
{
return
getDataFun
(
url
,
params
).
then
((
res
)
=>
{
return
getDataFun
(
url
,
params
).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
==
1
)
{
if
(
res
&&
res
.
code
==
1
)
{
equDialog
.
value
=
false
;
equDialog
.
value
=
false
;
getAlarmList
();
getAlarmList
();
}
}
});
});
}
else
{
}
});
};
};
onMounted
(
async
()
=>
{
onMounted
(
async
()
=>
{
if
(
route
.
query
)
{
const
{
deviceName
,
suspendStartTime
,
suspendEndTime
}
=
route
.
query
;
if
(
deviceName
)
{
formInline
.
value
.
dusterName
=
deviceName
;
}
if
(
suspendStartTime
)
{
formInline
.
value
.
date
[
0
]
=
suspendStartTime
;
}
if
(
deviceName
)
{
formInline
.
value
.
date
[
1
]
=
suspendEndTime
;
}
}
getTypeList
();
getTypeList
();
getAlarmList
();
getAlarmList
();
});
});
...
@@ -553,10 +590,12 @@ onBeforeUnmount(() => {});
...
@@ -553,10 +590,12 @@ onBeforeUnmount(() => {});
}
}
.equWarnDialog
{
.equWarnDialog
{
.equd_body
{
.equd_body
{
.equd_form
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
}
.bold
{
.bold
{
font-weight
:
bold
;
font-weight
:
bold
;
}
}
...
...
src/views/closeManage/myAgency.vue
View file @
55317571
...
@@ -8,15 +8,15 @@
...
@@ -8,15 +8,15 @@
<el-form-item
label=
"发生位置:"
>
<el-form-item
label=
"发生位置:"
>
<el-input
v-model=
"formInline.keyword"
placeholder=
"请输入"
></el-input>
<el-input
v-model=
"formInline.keyword"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"所属
区域
:"
>
<el-form-item
label=
"所属
工序
:"
>
<el-select
v-model=
"formInline.
branchFactoryIds
"
<el-select
v-model=
"formInline.
productionLineId
"
placeholder=
"请选择"
placeholder=
"请选择"
style=
"width: 180px"
style=
"width: 180px"
>
>
<el-option
v-for=
"(item, index) in basicConfiguration.
branchFactory
List"
<el-option
v-for=
"(item, index) in basicConfiguration.
productLine
List"
:key=
"item.
branchFactory
Id"
:key=
"item.
productionLine
Id"
:label=
"item.
branchFactory
"
:label=
"item.
productionLineName
"
:value=
"item.
branchFactory
Id"
:value=
"item.
productionLine
Id"
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -135,9 +135,9 @@
...
@@ -135,9 +135,9 @@
<div
class=
"label-title"
>
告警信息
</div>
<div
class=
"label-title"
>
告警信息
</div>
<div
class=
"alarm-content"
>
<div
class=
"alarm-content"
>
<div
class=
"content-item"
>
<div
class=
"content-item"
>
<span
class=
"name"
>
所属
区域
:
</span>
<span
class=
"name"
>
所属
工序
:
</span>
<span
class=
"value"
>
{{
<span
class=
"value"
>
{{
workSheetDetail?.
branchFactory
|| "--"
workSheetDetail?.
productionLine
|| "--"
}}
</span>
}}
</span>
</div>
</div>
<div
class=
"content-item"
>
<div
class=
"content-item"
>
...
@@ -601,9 +601,9 @@
...
@@ -601,9 +601,9 @@
<el-form-item
label=
"第几行:"
>
<el-form-item
label=
"第几行:"
>
<el-select
v-model=
"bagRow"
placeholder=
"请选择第几行"
@
change=
"getCol"
>
<el-select
v-model=
"bagRow"
placeholder=
"请选择第几行"
@
change=
"getCol"
>
<el-option
<el-option
v-for=
"item in rowList"
:key=
"item
.id
"
v-for=
"item in rowList"
:key=
"item"
:label=
"item
.name
"
:label=
"item"
:value=
"item
.id
"
:value=
"item"
>
>
</el-option>
</el-option>
</el-select>
</el-select>
...
@@ -611,9 +611,9 @@
...
@@ -611,9 +611,9 @@
<el-form-item
label=
"第几列:"
>
<el-form-item
label=
"第几列:"
>
<el-select
v-model=
"bagCol"
placeholder=
"请选择第几列"
>
<el-select
v-model=
"bagCol"
placeholder=
"请选择第几列"
>
<el-option
<el-option
v-for=
"item in colList"
:key=
"item
.id
"
v-for=
"item in colList"
:key=
"item"
:label=
"item
.name
"
:label=
"item"
:value=
"item
.id
"
:value=
"item"
>
>
</el-option>
</el-option>
</el-select>
</el-select>
...
@@ -736,7 +736,7 @@ const getBagRowLine = (no) => {
...
@@ -736,7 +736,7 @@ const getBagRowLine = (no) => {
const
params
=
{
const
params
=
{
deviceNo
:
no
deviceNo
:
no
}
}
getDataFun
(
(
url
,
params
).
then
(
res
=>
{
getDataFun
(
url
,
params
).
then
(
res
=>
{
if
(
res
.
code
===
1
)
{
if
(
res
.
code
===
1
)
{
rowLineMap
.
value
=
res
.
data
;
rowLineMap
.
value
=
res
.
data
;
res
.
data
.
forEach
(
item
=>
{
res
.
data
.
forEach
(
item
=>
{
...
@@ -744,13 +744,12 @@ const getBagRowLine = (no) => {
...
@@ -744,13 +744,12 @@ const getBagRowLine = (no) => {
});
});
}
}
})
})
)
}
}
const
getCol
=
()
=>
{
const
getCol
=
()
=>
{
rowLineMap
.
value
.
forEach
(
item
=>
{
rowLineMap
.
value
.
forEach
(
item
=>
{
if
(
item
.
row
===
bagRow
.
value
)
{
if
(
item
.
row
===
bagRow
.
value
)
{
colList
.
value
.
push
(
item
.
columns
)
;
colList
.
value
=
item
.
columns
;
}
}
});
});
}
}
...
@@ -819,7 +818,7 @@ const dispatchHandle = async (url,param) => {
...
@@ -819,7 +818,7 @@ const dispatchHandle = async (url,param) => {
const
basicConfiguration
=
reactive
({
const
basicConfiguration
=
reactive
({
ticketEventName
:
[{
name
:
'全部'
,
id
:
''
}],
ticketEventName
:
[{
name
:
'全部'
,
id
:
''
}],
eventTypeList
:
[],
eventTypeList
:
[],
branchFactoryList
:
[{
branchFactory
:
'全部'
,
branchFactoryId
:
''
}],
productLineList
:
[{
productionLineName
:
'全部'
,
productionLineId
:
''
}],
deviceList
:
[]
deviceList
:
[]
});
});
...
@@ -996,6 +995,11 @@ const changeBag = (data)=>{
...
@@ -996,6 +995,11 @@ const changeBag = (data)=>{
const
tableData
=
ref
([]);
const
tableData
=
ref
([]);
const
tableColumns
=
ref
([
const
tableColumns
=
ref
([
{
prop
:
'index'
,
label
:
'序号'
,
width
:
'6%'
},
{
{
prop
:
'workTicketNo'
,
prop
:
'workTicketNo'
,
label
:
'编号'
,
label
:
'编号'
,
...
@@ -1017,7 +1021,7 @@ const tableColumns = ref([
...
@@ -1017,7 +1021,7 @@ const tableColumns = ref([
width
:
'10%'
width
:
'10%'
},
},
{
{
prop
:
'
deviceTyp
e'
,
prop
:
'
typeNam
e'
,
label
:
'设备类型'
,
label
:
'设备类型'
,
width
:
'10%'
width
:
'10%'
},
},
...
@@ -1027,11 +1031,11 @@ const tableColumns = ref([
...
@@ -1027,11 +1031,11 @@ const tableColumns = ref([
width
:
'10%'
width
:
'10%'
},
},
{
{
prop
:
'
branchFactory'
,
label
:
'所属区域
'
,
width
:
'10%'
},
prop
:
'
productionLine'
,
label
:
'所属工序
'
,
width
:
'10%'
},
{
prop
:
'warnTypeName'
,
label
:
'类型'
,
width
:
'10%'
},
{
prop
:
'warnTypeName'
,
label
:
'类型'
,
width
:
'10%'
},
{
prop
:
'createTime'
,
label
:
'发生时间'
,
width
:
'10%'
},
{
prop
:
'createTime'
,
label
:
'发生时间'
,
width
:
'10%'
},
{
prop
:
'desc'
,
label
:
'闭环状态'
,
width
:
'10%'
},
{
prop
:
'desc'
,
label
:
'闭环状态'
,
width
:
'10%'
},
{
prop
:
'
person
'
,
label
:
'处理人'
,
width
:
'10%'
},
{
prop
:
'
handleUser
'
,
label
:
'处理人'
,
width
:
'10%'
},
{
prop
:
'level'
,
label
:
'级别'
,
width
:
'5%'
},
{
prop
:
'level'
,
label
:
'级别'
,
width
:
'5%'
},
{
{
prop
:
"operation"
,
prop
:
"operation"
,
...
@@ -1040,33 +1044,8 @@ const tableColumns = ref([
...
@@ -1040,33 +1044,8 @@ const tableColumns = ref([
},
},
]);
]);
const
permissionBranchFactory
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'branchFactoryList'
))
||
[];
const
customerId
=
getToken
(
'customerId'
);
const
customerId
=
getToken
(
'customerId'
);
const
getBranchTypeList
=
()
=>
{
const
url
=
'/transaction/getBranchFactory'
;
const
params
=
{
customerId
}
getDataFun
(
url
,
params
).
then
(
res
=>
{
if
(
res
&&
res
.
code
===
1
)
{
const
branchFactory
=
res
.
data
;
if
(
permissionBranchFactory
.
length
===
0
)
{
basicConfiguration
.
branchFactoryList
=
[];
}
else
if
(
permissionBranchFactory
.
length
===
1
&&
permissionBranchFactory
[
0
]
==
0
)
{
basicConfiguration
.
branchFactoryList
=
basicConfiguration
.
branchFactoryList
.
concat
(
branchFactory
);
}
else
{
basicConfiguration
.
branchFactoryList
=
branchFactory
.
filter
((
item
)
=>
permissionBranchFactory
.
includes
(
item
.
branchFactoryId
)
);
basicConfiguration
.
branchFactoryList
.
unshift
({
branchFactory
:
'全部'
,
branchFactoryId
:
''
});
}
}
});
}
const
getWarnAndTicketConfigMap
=
()
=>
{
const
getWarnAndTicketConfigMap
=
()
=>
{
const
url
=
'/system/getWarnAndTicketConfigMap'
;
const
url
=
'/system/getWarnAndTicketConfigMap'
;
const
params
=
{
const
params
=
{
...
@@ -1092,18 +1071,6 @@ let realBtn = '';
...
@@ -1092,18 +1071,6 @@ let realBtn = '';
const
searchData
=
()
=>
{
const
searchData
=
()
=>
{
currentPage
.
value
=
1
;
currentPage
.
value
=
1
;
pageSize
.
value
=
20
;
pageSize
.
value
=
20
;
if
(
!
formInline
.
value
.
branchFactoryIds
)
{
if
(
permissionBranchFactory
.
length
===
0
)
{
realBtn
=
-
1
;
}
else
if
(
permissionBranchFactory
.
length
===
1
&&
permissionBranchFactory
[
0
]
==
0
)
{
realBtn
=
''
;
}
else
{
realBtn
=
permissionBranchFactory
.
join
(
','
);
}
}
else
{
realBtn
=
formInline
.
value
.
branchFactoryIds
;
}
getTableData
();
getTableData
();
}
}
...
@@ -1120,7 +1087,7 @@ const getTableData = ()=> {
...
@@ -1120,7 +1087,7 @@ const getTableData = ()=> {
pageSize
:
pageSize
.
value
,
pageSize
:
pageSize
.
value
,
handleState
:
1
,
handleState
:
1
,
belongTo
:
1
,
belongTo
:
1
,
isDc
t
om
:
1
,
isDc
T
om
:
1
,
deviceType
:
formInline
.
value
.
deviceType
deviceType
:
formInline
.
value
.
deviceType
}
}
tableData
.
value
=
[];
tableData
.
value
=
[];
...
@@ -1131,6 +1098,17 @@ const getTableData = ()=> {
...
@@ -1131,6 +1098,17 @@ const getTableData = ()=> {
total
.
value
=
res
.
data
.
total
;
total
.
value
=
res
.
data
.
total
;
disposeType
(
list
);
disposeType
(
list
);
tableData
.
value
=
list
;
tableData
.
value
=
list
;
tableData
.
value
.
forEach
(
item
=>
{
item
.
handleUser
=
''
;
item
.
handleUsers
.
forEach
((
ele
,
eIndex
)
=>
{
if
(
eIndex
>
0
)
{
item
.
handleUser
+=
','
+
ele
.
userName
;
}
else
{
item
.
handleUser
+=
ele
.
userName
;
}
});
});
}
}
});
});
}
}
...
@@ -1215,7 +1193,7 @@ const disposeWorkSheetDetail = (obj)=> {
...
@@ -1215,7 +1193,7 @@ const disposeWorkSheetDetail = (obj)=> {
}
}
onMounted
(()
=>
{
onMounted
(()
=>
{
get
BranchTypeList
();
get
ProDuctLine
();
getWarnAndTicketConfigMap
();
getWarnAndTicketConfigMap
();
getDeviceType
();
getDeviceType
();
searchData
();
searchData
();
...
@@ -1224,6 +1202,12 @@ onMounted(()=>{
...
@@ -1224,6 +1202,12 @@ onMounted(()=>{
const
formModel
=
ref
({
const
formModel
=
ref
({
selectReason
:
[],
selectReason
:
[],
});
});
const
getProDuctLine
=
()
=>
{
const
url
=
'/transaction/getProductionLine'
;
getData
(
url
).
then
(
res
=>
{
basicConfiguration
.
productLineList
=
res
.
data
;
});
}
const
currentPage
=
ref
(
1
);
const
currentPage
=
ref
(
1
);
...
...
src/views/closeManage/myDone.vue
View file @
55317571
...
@@ -8,15 +8,15 @@
...
@@ -8,15 +8,15 @@
<el-form-item
label=
"发生位置:"
>
<el-form-item
label=
"发生位置:"
>
<el-input
v-model=
"formInline.keyword"
placeholder=
"请输入"
></el-input>
<el-input
v-model=
"formInline.keyword"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"所属
区域
:"
>
<el-form-item
label=
"所属
工序
:"
>
<el-select
v-model=
"formInline.
branchFactoryIds
"
<el-select
v-model=
"formInline.
productionLineId
"
placeholder=
"请选择"
placeholder=
"请选择"
style=
"width: 180px"
style=
"width: 180px"
>
>
<el-option
v-for=
"(item, index) in basicConfiguration.
branchFactory
List"
<el-option
v-for=
"(item, index) in basicConfiguration.
productLine
List"
:key=
"item.
branchFactory
Id"
:key=
"item.
productionLine
Id"
:label=
"item.
branchFactory
"
:label=
"item.
productionLineName
"
:value=
"item.
branchFactory
Id"
:value=
"item.
productionLine
Id"
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -77,14 +77,14 @@
...
@@ -77,14 +77,14 @@
<span
class=
"view-btn"
@
click=
"handleView(row)"
>
<span
class=
"view-btn"
@
click=
"handleView(row)"
>
查看
查看
</span>
</span>
<span
class=
"table-btn"
>
|
</span>
<!--
<span
class=
"table-btn"
>
|
</span>
<span
class=
"view-btn"
@
click=
"handleReject(row)"
>
<span
class=
"view-btn"
@
click=
"handleReject(row)"
>
驳回
驳回
</span>
</span>
<span
class=
"table-btn"
>
|
</span>
<span
class=
"table-btn"
>
|
</span>
<span
class=
"view-btn"
@
click=
"changeBag(row)"
>
<span
class=
"view-btn"
@
click=
"changeBag(row)"
>
更换布袋
更换布袋
</span>
</span>
-->
</
template
>
</
template
>
</common-table>
</common-table>
</div>
</div>
...
@@ -123,9 +123,9 @@
...
@@ -123,9 +123,9 @@
<div
class=
"label-title"
>
告警信息
</div>
<div
class=
"label-title"
>
告警信息
</div>
<div
class=
"alarm-content"
>
<div
class=
"alarm-content"
>
<div
class=
"content-item"
>
<div
class=
"content-item"
>
<span
class=
"name"
>
所属
区域
:
</span>
<span
class=
"name"
>
所属
工序
:
</span>
<span
class=
"value"
>
{{
<span
class=
"value"
>
{{
workSheetDetail.
branchFactory
|| "--"
workSheetDetail.
productionLine
|| "--"
}}
</span>
}}
</span>
</div>
</div>
<div
class=
"content-item"
>
<div
class=
"content-item"
>
...
@@ -711,9 +711,9 @@
...
@@ -711,9 +711,9 @@
<el-form-item
label=
"第几行:"
>
<el-form-item
label=
"第几行:"
>
<el-select
v-model=
"bagRow"
placeholder=
"请选择第几行"
@
change=
"getCol"
>
<el-select
v-model=
"bagRow"
placeholder=
"请选择第几行"
@
change=
"getCol"
>
<el-option
<el-option
v-for=
"item in rowList"
:key=
"item
.id
"
v-for=
"item in rowList"
:key=
"item"
:label=
"item
.name
"
:label=
"item"
:value=
"item
.id
"
:value=
"item"
>
>
</el-option>
</el-option>
</el-select>
</el-select>
...
@@ -721,9 +721,9 @@
...
@@ -721,9 +721,9 @@
<el-form-item
label=
"第几列:"
>
<el-form-item
label=
"第几列:"
>
<el-select
v-model=
"bagCol"
placeholder=
"请选择第几列"
>
<el-select
v-model=
"bagCol"
placeholder=
"请选择第几列"
>
<el-option
<el-option
v-for=
"item in colList"
:key=
"item
.id
"
v-for=
"item in colList"
:key=
"item"
:label=
"item
.name
"
:label=
"item"
:value=
"item
.id
"
:value=
"item"
>
>
</el-option>
</el-option>
</el-select>
</el-select>
...
@@ -817,7 +817,7 @@ const getBagRowLine = (no) => {
...
@@ -817,7 +817,7 @@ const getBagRowLine = (no) => {
const
params
=
{
const
params
=
{
deviceNo
:
no
deviceNo
:
no
}
}
getDataFun
(
(
url
,
params
).
then
(
res
=>
{
getDataFun
(
url
,
params
).
then
(
res
=>
{
if
(
res
.
code
===
1
)
{
if
(
res
.
code
===
1
)
{
rowLineMap
.
value
=
res
.
data
;
rowLineMap
.
value
=
res
.
data
;
res
.
data
.
forEach
(
item
=>
{
res
.
data
.
forEach
(
item
=>
{
...
@@ -825,13 +825,12 @@ const getBagRowLine = (no) => {
...
@@ -825,13 +825,12 @@ const getBagRowLine = (no) => {
});
});
}
}
})
})
)
}
}
const
getCol
=
()
=>
{
const
getCol
=
()
=>
{
rowLineMap
.
value
.
forEach
(
item
=>
{
rowLineMap
.
value
.
forEach
(
item
=>
{
if
(
item
.
row
===
bagRow
.
value
)
{
if
(
item
.
row
===
bagRow
.
value
)
{
colList
.
value
.
push
(
item
.
columns
)
;
colList
.
value
=
item
.
columns
;
}
}
});
});
}
}
...
@@ -902,12 +901,19 @@ const getIndex = (index) => {
...
@@ -902,12 +901,19 @@ const getIndex = (index) => {
const
basicConfiguration
=
reactive
({
const
basicConfiguration
=
reactive
({
ticketEventName
:
[],
ticketEventName
:
[],
branchFactoryList
:
[{
branchFactory
:
"全部"
,
branchFactoryId
:
""
}
],
deviceList
:
[
],
deviceList
:
[]
productLineList
:
[{
productionLineName
:
'全部'
,
productionLineId
:
''
}],
});
});
const
workSheetDetail
=
ref
(
null
);
const
workSheetDetail
=
ref
(
null
);
const
getProDuctLine
=
()
=>
{
const
url
=
'/transaction/getProductionLine'
;
getData
(
url
).
then
(
res
=>
{
basicConfiguration
.
productLineList
=
res
.
data
;
});
}
const
getColor
=
computed
(()
=>
{
const
getColor
=
computed
(()
=>
{
return
(
level
)
=>
{
return
(
level
)
=>
{
if
(
level
==
2
)
{
if
(
level
==
2
)
{
...
@@ -1044,6 +1050,11 @@ const changeBag = (data)=>{
...
@@ -1044,6 +1050,11 @@ const changeBag = (data)=>{
const
tableData
=
ref
([]);
const
tableData
=
ref
([]);
const
tableColumns
=
ref
([
const
tableColumns
=
ref
([
{
prop
:
'index'
,
label
:
'序号'
,
width
:
'6%'
},
{
{
prop
:
'workTicketNo'
,
prop
:
'workTicketNo'
,
label
:
'编号'
,
label
:
'编号'
,
...
@@ -1065,7 +1076,7 @@ const tableColumns = ref([
...
@@ -1065,7 +1076,7 @@ const tableColumns = ref([
width
:
'10%'
width
:
'10%'
},
},
{
{
prop
:
'
deviceTyp
e'
,
prop
:
'
typeNam
e'
,
label
:
'设备类型'
,
label
:
'设备类型'
,
width
:
'10%'
width
:
'10%'
},
},
...
@@ -1075,11 +1086,12 @@ const tableColumns = ref([
...
@@ -1075,11 +1086,12 @@ const tableColumns = ref([
width
:
'10%'
width
:
'10%'
},
},
{
{
prop
:
'
branchFactory'
,
label
:
'所属区域
'
,
width
:
'10%'
},
prop
:
'
productionLine'
,
label
:
'所属工序
'
,
width
:
'10%'
},
{
prop
:
'warnTypeName'
,
label
:
'类型'
,
width
:
'10%'
},
{
prop
:
'warnTypeName'
,
label
:
'类型'
,
width
:
'10%'
},
{
prop
:
'createTime'
,
label
:
'发生时间'
,
width
:
'10%'
},
{
prop
:
'createTime'
,
label
:
'发生时间'
,
width
:
'10%'
},
{
prop
:
'desc'
,
label
:
'闭环状态'
,
width
:
'10%'
},
{
prop
:
'desc'
,
label
:
'闭环状态'
,
width
:
'10%'
},
{
prop
:
'person'
,
label
:
'处理人'
,
width
:
'10%'
},
{
prop
:
'handleUser'
,
label
:
'处理人'
,
width
:
'10%'
},
{
prop
:
'finishTime'
,
label
:
'完成时间'
,
width
:
'10%'
},
{
prop
:
'level'
,
label
:
'级别'
,
width
:
'5%'
},
{
prop
:
'level'
,
label
:
'级别'
,
width
:
'5%'
},
{
{
prop
:
"operation"
,
prop
:
"operation"
,
...
@@ -1088,32 +1100,10 @@ const tableColumns = ref([
...
@@ -1088,32 +1100,10 @@ const tableColumns = ref([
},
},
]);
]);
const
permissionBranchFactory
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'branchFactoryList'
))
||
[];
const
customerId
=
getToken
(
'customerId'
);
const
getBranchTypeList
=
()
=>
{
const
customerId
=
getToken
(
'customerId'
);
const
url
=
'/transaction/getBranchFactory'
;
const
params
=
{
customerId
}
getDataFun
(
url
,
params
).
then
(
res
=>
{
if
(
res
&&
res
.
code
===
1
)
{
const
branchFactory
=
res
.
data
;
if
(
permissionBranchFactory
.
length
===
0
)
{
basicConfiguration
.
branchFactoryList
=
[];
}
else
if
(
permissionBranchFactory
.
length
===
1
&&
permissionBranchFactory
[
0
]
==
0
)
{
basicConfiguration
.
branchFactoryList
=
basicConfiguration
.
branchFactoryList
.
concat
(
branchFactory
);
}
else
{
basicConfiguration
.
branchFactoryList
=
branchFactory
.
filter
((
item
)
=>
permissionBranchFactory
.
includes
(
item
.
branchFactoryId
)
);
basicConfiguration
.
branchFactoryList
.
unshift
({
branchFactory
:
'全部'
,
branchFactoryId
:
''
});
}
}
});
}
const
getWarnAndTicketConfigMap
=
()
=>
{
const
getWarnAndTicketConfigMap
=
()
=>
{
const
url
=
'/system/getWarnAndTicketConfigMap'
;
const
url
=
'/system/getWarnAndTicketConfigMap'
;
...
@@ -1134,17 +1124,6 @@ const searchData = ()=>{
...
@@ -1134,17 +1124,6 @@ const searchData = ()=>{
currentPage
.
value
=
1
;
currentPage
.
value
=
1
;
pageSize
.
value
=
20
;
pageSize
.
value
=
20
;
if
(
!
formInline
.
value
.
branchFactoryIds
)
{
if
(
permissionBranchFactory
.
length
===
0
)
{
realBtn
=
-
1
;
}
else
if
(
permissionBranchFactory
.
length
===
1
&&
permissionBranchFactory
[
0
]
==
0
)
{
realBtn
=
''
;
}
else
{
realBtn
=
permissionBranchFactory
.
join
(
','
);
}
}
else
{
realBtn
=
formInline
.
value
.
branchFactoryIds
;
}
getTableData
();
getTableData
();
}
}
...
@@ -1163,7 +1142,7 @@ const getTableData = ()=> {
...
@@ -1163,7 +1142,7 @@ const getTableData = ()=> {
pageSize
:
pageSize
.
value
,
pageSize
:
pageSize
.
value
,
handleState
:
2
,
handleState
:
2
,
belongTo
:
1
,
belongTo
:
1
,
isDc
t
om
:
1
,
isDc
T
om
:
1
,
deviceType
:
formInline
.
value
.
deviceType
deviceType
:
formInline
.
value
.
deviceType
}
}
tableData
.
value
=
[];
tableData
.
value
=
[];
...
@@ -1174,6 +1153,16 @@ const getTableData = ()=> {
...
@@ -1174,6 +1153,16 @@ const getTableData = ()=> {
total
.
value
=
res
.
data
.
total
;
total
.
value
=
res
.
data
.
total
;
disposeType
(
list
);
disposeType
(
list
);
tableData
.
value
=
list
;
tableData
.
value
=
list
;
tableData
.
value
.
forEach
(
item
=>
{
item
.
handleUser
=
''
;
item
.
handleUsers
.
forEach
((
ele
,
eIndex
)
=>
{
if
(
eIndex
>
0
)
{
item
.
handleUser
+=
','
+
ele
.
userName
;
}
else
{
item
.
handleUser
+=
ele
.
userName
;
}
});
});
}
}
});
});
}
}
...
@@ -1225,7 +1214,7 @@ const getDeviceType =() => {
...
@@ -1225,7 +1214,7 @@ const getDeviceType =() => {
}
}
onMounted
(()
=>
{
onMounted
(()
=>
{
get
BranchTypeList
();
get
ProDuctLine
();
getWarnAndTicketConfigMap
();
getWarnAndTicketConfigMap
();
getDeviceType
();
getDeviceType
();
searchData
();
searchData
();
...
...
src/views/collectorList/collectorList.vue
View file @
55317571
...
@@ -82,13 +82,13 @@
...
@@ -82,13 +82,13 @@
<el-dialog
<el-dialog
class=
"dustListDialog"
class=
"dustListDialog"
v-model=
"dustLineisShow"
v-model=
"dustLineisShow"
title=
"
仓室数量设置
"
title=
"
更换周期分析
"
width=
"1000px"
width=
"1000px"
:close-on-click-modal=
"false"
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
:close-on-press-escape=
"false"
>
>
<div
class=
"input-group"
>
<div
class=
"input-group"
>
<span>
仓室编号
:
</span>
<span>
除尘器名称
:
</span>
<el-select
<el-select
v-model=
"selectDustNo"
v-model=
"selectDustNo"
@
change=
"changeDust"
@
change=
"changeDust"
...
@@ -149,12 +149,12 @@ const tableColumns = ref([
...
@@ -149,12 +149,12 @@ const tableColumns = ref([
{
{
prop
:
"compart"
,
prop
:
"compart"
,
label
:
"仓室"
,
label
:
"仓室"
,
width
:
"
8
%"
,
width
:
"
10
%"
,
},
},
{
{
prop
:
"bagLocation"
,
prop
:
"bagLocation"
,
label
:
"布袋位置(排/列)"
,
label
:
"布袋位置(排/列)"
,
width
:
"
8
%"
,
width
:
"
6
%"
,
},
},
{
{
prop
:
"bagChangeNextTime"
,
prop
:
"bagChangeNextTime"
,
...
@@ -169,13 +169,13 @@ const tableColumns = ref([
...
@@ -169,13 +169,13 @@ const tableColumns = ref([
{
{
prop
:
"bagChangeAuthor"
,
prop
:
"bagChangeAuthor"
,
label
:
"更换人"
,
label
:
"更换人"
,
width
:
"8%"
,
width
:
"5%"
,
},
{
prop
:
"dusterName"
,
label
:
"所属除尘器"
,
width
:
"8%"
,
},
},
// {
// prop: "dusterName",
// label: "所属除尘器",
// width: "8%",
// },
{
{
prop
:
"bagChangePeriod"
,
prop
:
"bagChangePeriod"
,
label
:
"更换周期(与上次更换比)"
,
label
:
"更换周期(与上次更换比)"
,
...
...
src/views/dustOverview/index.vue
View file @
55317571
...
@@ -341,8 +341,6 @@ const handleRoomSettingConfirm = (data) => {
...
@@ -341,8 +341,6 @@ const handleRoomSettingConfirm = (data) => {
ElMessage
.
success
(
"更新仓室数量成功"
);
ElMessage
.
success
(
"更新仓室数量成功"
);
roomSettingVisible
.
value
=
false
;
roomSettingVisible
.
value
=
false
;
getData
();
getData
();
}
else
{
ElMessage
.
error
(
res
.
message
);
}
}
});
});
};
};
...
@@ -411,8 +409,6 @@ const setValveInfo = (data) => {
...
@@ -411,8 +409,6 @@ const setValveInfo = (data) => {
ElMessage
.
success
(
"更新电磁阀数量成功"
);
ElMessage
.
success
(
"更新电磁阀数量成功"
);
valveSettingVisible
.
value
=
false
;
valveSettingVisible
.
value
=
false
;
getData
();
getData
();
}
else
{
ElMessage
.
error
(
res
.
message
);
}
}
});
});
};
};
...
@@ -432,12 +428,10 @@ const handleSaveDustCollector = (data) => {
...
@@ -432,12 +428,10 @@ const handleSaveDustCollector = (data) => {
isAddDustCollectorVisible
.
value
=
false
;
isAddDustCollectorVisible
.
value
=
false
;
currentEditingDustCollector
.
value
=
null
;
currentEditingDustCollector
.
value
=
null
;
getData
();
getData
();
}
else
{
ElMessage
.
error
(
res
.
message
);
}
}
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
ElMessage
.
error
(
err
.
message
);
//
ElMessage.error(err.message);
});
});
}
else
{
}
else
{
// 新增模式
// 新增模式
...
@@ -448,12 +442,10 @@ const handleSaveDustCollector = (data) => {
...
@@ -448,12 +442,10 @@ const handleSaveDustCollector = (data) => {
currentEditingDustCollector
.
value
=
null
;
currentEditingDustCollector
.
value
=
null
;
isAddDustCollectorVisible
.
value
=
false
;
isAddDustCollectorVisible
.
value
=
false
;
refreshData
();
refreshData
();
}
else
{
ElMessage
.
error
(
res
.
message
);
}
}
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
ElMessage
.
error
(
err
.
message
);
//
ElMessage.error(err.message);
});
});
}
}
};
};
...
@@ -498,8 +490,6 @@ const getData = () => {
...
@@ -498,8 +490,6 @@ const getData = () => {
if
(
res
.
code
==
1
)
{
if
(
res
.
code
==
1
)
{
tableData
.
value
=
res
.
data
.
records
||
[];
tableData
.
value
=
res
.
data
.
records
||
[];
total
.
value
=
res
.
data
.
total
||
0
;
total
.
value
=
res
.
data
.
total
||
0
;
}
else
{
ElMessage
.
error
(
res
.
message
);
}
}
});
});
};
};
...
...
src/views/equipmentManagement/suspendManagement/suspendManagement.vue
View file @
55317571
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"设备类
别
"
>
<el-form-item
label=
"设备类
型
"
>
<el-select
v-model=
"formInline.deviceType"
style=
"width: 200px"
>
<el-select
v-model=
"formInline.deviceType"
style=
"width: 200px"
>
<el-option
<el-option
v-for=
"i in typeList.list"
v-for=
"i in typeList.list"
...
@@ -63,10 +63,8 @@
...
@@ -63,10 +63,8 @@
<template
#
index=
"
{ $index }">
<template
#
index=
"
{ $index }">
{{
getIndex
(
$index
)
}}
{{
getIndex
(
$index
)
}}
</
template
>
</
template
>
<
template
#
deviceName=
"{ row }"
>
<
template
#
operate=
"{ row }"
>
<span
class=
"health-score"
@
dblclick=
"openDialog(row.deviceName)"
>
{{
<span
class=
"health-score"
@
click=
"linkTo(row)"
>
挂起期间告警
</span>
row
.
deviceName
}}
</span>
</
template
>
</
template
>
<!-- <template #operation="{ row }">
<!-- <template #operation="{ row }">
<span class="view-btn" @click="handleView(row)">详情</span>
<span class="view-btn" @click="handleView(row)">详情</span>
...
@@ -82,7 +80,9 @@
...
@@ -82,7 +80,9 @@
import
{
ref
,
onMounted
,
onBeforeUnmount
,
computed
,
reactive
}
from
"vue"
;
import
{
ref
,
onMounted
,
onBeforeUnmount
,
computed
,
reactive
}
from
"vue"
;
import
CommonTable
from
"@/components/commonTable/index.vue"
;
import
CommonTable
from
"@/components/commonTable/index.vue"
;
import
{
getDataFun
,
postDataJSON
}
from
"@/request/method.js"
;
import
{
getDataFun
,
postDataJSON
}
from
"@/request/method.js"
;
import
{
useRoute
,
useRouter
}
from
"vue-router"
;
const
router
=
useRouter
();
const
formInline
=
ref
({
const
formInline
=
ref
({
projectId
:
""
,
projectId
:
""
,
deviceType
:
""
,
deviceType
:
""
,
...
@@ -98,11 +98,11 @@ const tableColumns = ref([
...
@@ -98,11 +98,11 @@ const tableColumns = ref([
label
:
"序号"
,
label
:
"序号"
,
width
:
"5%"
,
width
:
"5%"
,
},
},
{
//
{
prop
:
"projectName"
,
//
prop: "projectName",
label
:
"项目名称"
,
//
label: "项目名称",
width
:
"7%"
,
//
width: "7%",
},
//
},
{
{
prop
:
"deviceNo"
,
prop
:
"deviceNo"
,
label
:
"设备编号"
,
label
:
"设备编号"
,
...
@@ -159,7 +159,7 @@ const tableColumns = ref([
...
@@ -159,7 +159,7 @@ const tableColumns = ref([
width
:
"7%"
,
width
:
"7%"
,
},
},
{
{
prop
:
"
lastAlarmTim
e"
,
prop
:
"
operat
e"
,
label
:
"操作"
,
label
:
"操作"
,
width
:
"8%"
,
width
:
"8%"
,
},
},
...
@@ -267,6 +267,17 @@ const getManagementList = () => {
...
@@ -267,6 +267,17 @@ const getManagementList = () => {
});
});
};
};
const
linkTo
=
(
item
)
=>
{
router
.
push
({
path
:
"/alerts"
,
query
:
{
deviceName
:
item
.
deviceName
,
suspendStartTime
:
item
.
suspendStartTime
,
suspendEndTime
:
item
.
suspendEndTime
,
},
});
};
onMounted
(
async
()
=>
{
onMounted
(
async
()
=>
{
getNameList
();
getNameList
();
getTypeList
();
getTypeList
();
...
...
src/views/login/index.vue
View file @
55317571
...
@@ -1086,7 +1086,6 @@ export default {
...
@@ -1086,7 +1086,6 @@ export default {
path
:
this
.
redirect
||
"/"
,
path
:
this
.
redirect
||
"/"
,
query
:
this
.
otherQuery
,
query
:
this
.
otherQuery
,
});
});
startPermissionCheck
();
})
})
.
catch
((
e
)
=>
{
.
catch
((
e
)
=>
{
console
.
log
(
"error fetch verify code!!"
+
e
);
console
.
log
(
"error fetch verify code!!"
+
e
);
...
...
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