修改首页工作台跳转至设备管理逻辑

master
jinna 1 year ago
parent d1e2e7af80
commit c3cc0f86e0
  1. 9
      src/views/device/deviceSystem.vue
  2. 9
      src/views/workbench/index.vue

@ -3,7 +3,7 @@
<avue-crud :option="option" :table-loading="loading" :data="data" :search.sync="searchForm" :page.sync="page"
ref="crud" v-model="form" :permission="permissionList" :before-open="beforeOpen" :before-close="beforeClose"
@search-change="searchChange" @search-reset="searchReset" @current-change="currentChange"
@size-change="sizeChange" @refresh-change="refreshChange" @selection-change="selectionChange" @on-load="onLoad">
@size-change="sizeChange" @refresh-change="refreshChange" @selection-change="selectionChange" >
<template slot-scope="{row}" slot="produceTime">
{{ row.produceTime.substring(0, 10) }}
</template>
@ -463,6 +463,12 @@ export default {
...mapGetters(["userInfo", "permission"]),
},
mounted() {
if(this.$route.query.type){
this.searchForm = {
...this.searchForm,
runStatus:this.$route.query.type
}
}
this.role_id = this.userInfo.role_id
getChildList(1, 100, '1846792623628001282').then(res => {
this.treeOptions = res.data.data
@ -473,6 +479,7 @@ export default {
getChildList(1, 100, '1858710780677984257').then(res => {
this.periodArr = res.data.data
})
this.onLoad()
},
methods: {
//

@ -505,7 +505,7 @@ export default {
current:1,
size:10,
dataType: 1,//
statusSearch: '1,2,3,4,6,20,7',//5
statusSearch: '201,401,402,301,403,202,104',//5
}).then(res =>{
this.requirementList = res.data.data.records
})
@ -639,6 +639,13 @@ export default {
this.$router.push('/operation/hand')
}else if(item.name == '实验室巡检'){
this.$router.push("/labManagement/inspectionManagement")
}else if(item.name == '设备报警'){
this.$router.push({
path:'/device/deviceSystem',
query:{
type:'2'
}
})
}
}

Loading…
Cancel
Save