Commit f1dd56f1 authored by 耿迪迪's avatar 耿迪迪

报警查看工单 gengdidi

parent 114b0c9e
...@@ -236,6 +236,16 @@ ...@@ -236,6 +236,16 @@
</el-dialog> </el-dialog>
</div> </div>
</div> </div>
<el-dialog
title = "工单信息"
lock-scroll
:visible.sync="dialogVisible"
width="70%"
>
<div style="height:80vh;overflow:auto">
<workOrder :linkOrderId="form.orderId"/>
</div>
</el-dialog>
</div> </div>
</template> </template>
...@@ -248,14 +258,17 @@ ...@@ -248,14 +258,17 @@
import { map, DEVICE_TYPE } from "utils/gaodeMap.js"; import { map, DEVICE_TYPE } from "utils/gaodeMap.js";
import { inspectorList } from "@/api/system/user"; import { inspectorList } from "@/api/system/user";
import echarts from 'echarts'; import echarts from 'echarts';
import workOrder from "../../workOrder/detail/index.vue"
export default { export default {
props:["resourceId"], props:["resourceId"],
name: "DeviceAlarm", name: "DeviceAlarm",
components: { components: {
workOrder
}, },
data() { data() {
return { return {
dialogVisible: false,
dataListdetail: [], dataListdetail: [],
alarmId:'', alarmId:'',
// 折线图标题 // 折线图标题
...@@ -656,12 +669,13 @@ export default { ...@@ -656,12 +669,13 @@ export default {
}, },
/** 详细信息跳转 */ /** 详细信息跳转 */
showDetail(orderId) { showDetail(orderId) {
this.$router.push({ /*this.$router.push({
path: '/workOrder/detail', path: '/workOrder/detail',
query:{ query:{
orderId : orderId orderId : orderId
} }
}) //带参跳转 }) //带参跳转*/
this.dialogVisible = true;
}, },
getDetail (){ getDetail (){
getDeviceAlarm(this.alarmId).then(response =>{ getDeviceAlarm(this.alarmId).then(response =>{
......
...@@ -209,6 +209,17 @@ ...@@ -209,6 +209,17 @@
</el-dialog> </el-dialog>
</div> </div>
</div> </div>
<el-dialog
title = "工单信息"
lock-scroll
:visible.sync="dialogVisible"
width="70%"
>
<div style="height:80vh;overflow:auto">
<workOrder :linkOrderId="form.orderId"/>
</div>
</el-dialog>
</div> </div>
</template> </template>
...@@ -221,14 +232,17 @@ ...@@ -221,14 +232,17 @@
import { inspectorList } from "@/api/system/user"; import { inspectorList } from "@/api/system/user";
import { deviceTree } from "@/api/device/deviceInfo"; import { deviceTree } from "@/api/device/deviceInfo";
import { deviceNodeTree } from "@/api/device/deviceInfo"; import { deviceNodeTree } from "@/api/device/deviceInfo";
import workOrder from "../../workOrder/detail/index.vue"
export default { export default {
props:["resourceId"], props:["resourceId"],
name: "InspectionPlanDetail", name: "InspectionPlanDetail",
components: { components: {
workOrder
}, },
data() { data() {
return { return {
dialogVisible: false,
// 遮罩层 // 遮罩层
loading: true, loading: true,
// 导出遮罩层 // 导出遮罩层
...@@ -540,12 +554,13 @@ ...@@ -540,12 +554,13 @@
}, },
/** 详细信息跳转 */ /** 详细信息跳转 */
showDetail(orderId) { showDetail(orderId) {
this.$router.push({ /*this.$router.push({
path: '/workOrder/detail', path: '/workOrder/detail',
query: { query: {
orderId: orderId orderId: orderId
} }
}) //带参跳转 }) //带参跳转*/
this.dialogVisible = true;
}, },
/** 归档按钮操作 */ /** 归档按钮操作 */
handleFinish(res) { handleFinish(res) {
......
...@@ -104,7 +104,8 @@ ...@@ -104,7 +104,8 @@
<el-form ref="form" v-model="form" :rules="rules" label-width="100px" style="height: 30px;width: 100%;"> <el-form ref="form" v-model="form" :rules="rules" label-width="100px" style="height: 30px;width: 100%;">
<el-form-item label="工单编号:" prop="orderId"> <el-form-item label="工单编号:" prop="orderId">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="showDetail(form.orderId)">{{form.orderId}}</el-button> <font v-if="resourceId != undefined">{{form.orderId}}</font>
<el-button type="text" @click="showDetail(form.orderId)" v-if="resourceId == undefined">{{form.orderId}}</el-button>
</template> </template>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -351,12 +352,13 @@ ...@@ -351,12 +352,13 @@
</div> </div>
<el-dialog <el-dialog
title = "工单信息"
lock-scroll lock-scroll
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="70%" width="70%"
> >
<div style="height:80vh;overflow:auto"> <div style="height:80vh;overflow:auto">
<workOrder :orderIdByHidden="form.orderId"/> <workOrder :linkOrderId="form.orderId"/>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<div style="padding-top: 10px;background: #fff;height: 100%;"> <div style="padding-top: 10px;background: #fff;height: 100%;">
<el-row> <el-row>
<el-col :span="24" style="padding-left: 15px;margin-bottom: -10px;"> <el-col :span="24" style="padding-left: 15px;margin-bottom: -10px;">
<div v-if="orderIdByHidden == undefined" style="height: 45px;" @click="$router.go(-1)"> <div v-if="linkOrderId == undefined" style="height: 45px;" @click="$router.go(-1)">
<el-button size="medium" type="text" style="font-size: 18px; color: rgb(7, 63, 112);float: left;">返回 <el-button size="medium" type="text" style="font-size: 18px; color: rgb(7, 63, 112);float: left;">返回
</el-button> </el-button>
<div style="float: left;margin-top: 8px;margin-left: 5px;"><img src="../../../assets/logo/fanhui.png" <div style="float: left;margin-top: 8px;margin-left: 5px;"><img src="../../../assets/logo/fanhui.png"
...@@ -46,9 +46,12 @@ ...@@ -46,9 +46,12 @@
<el-col :span="6"> <el-col :span="6">
<el-form ref="form" v-model="form" :rules="rules" style="width: 100%;"> <el-form ref="form" v-model="form" :rules="rules" style="width: 100%;">
<el-form-item label="工单类型:" prop="orderType" style="margin-bottom: 0px;"> <el-form-item label="工单类型:" prop="orderType" style="margin-bottom: 0px;">
<el-button type="text" v-if="form.orderType == 1" @click="detailInfos(form.orderType)">巡检信息</el-button> <font v-if="form.orderType == 1 && linkOrderId != undefined">巡检信息</font>
<el-button type="text" v-if="form.orderType == 2" @click="detailInfos(form.orderType)">隐患信息</el-button> <font v-if="form.orderType == 2 && linkOrderId != undefined">隐患信息</font>
<el-button type="text" v-if="form.orderType == 3" @click="detailInfos(form.orderType)">报警信息</el-button> <font v-if="form.orderType == 3 && linkOrderId != undefined">报警信息</font>
<el-button type="text" v-if="form.orderType == 1 && linkOrderId == undefined" @click="detailInfos(form.orderType)">巡检信息</el-button>
<el-button type="text" v-if="form.orderType == 2 && linkOrderId == undefined" @click="detailInfos(form.orderType)">隐患信息</el-button>
<el-button type="text" v-if="form.orderType == 3 && linkOrderId == undefined" @click="detailInfos(form.orderType)">报警信息</el-button>
</el-form-item> </el-form-item>
<el-form-item label="工单编号:" prop="orderId" style="margin-bottom: 0px;"> <el-form-item label="工单编号:" prop="orderId" style="margin-bottom: 0px;">
<font>{{form.orderId}}</font> <font>{{form.orderId}}</font>
...@@ -250,9 +253,9 @@ ...@@ -250,9 +253,9 @@
<div class="" style="width: 95%;margin-left: 50px;text-align: center;margin-top: 10px;"> <div class="" style="width: 95%;margin-left: 50px;text-align: center;margin-top: 10px;">
<el-button style="margin-bottom: 15px;margin-top: 10px;" type="primary" size="normal" icon="el-icon-edit" @click="handleUpdate(form.orderId)" <el-button style="margin-bottom: 15px;margin-top: 10px;" type="primary" size="normal" icon="el-icon-edit" @click="handleUpdate(form.orderId)"
v-hasPermi="['workOrder:basicsInfo:edit']" v-if="form.orderStatus == 0 && orderIdByHidden == undefined">修改</el-button> v-hasPermi="['workOrder:basicsInfo:edit']" v-if="form.orderStatus == 0 && linkOrderId == undefined">修改</el-button>
<el-button style="margin-bottom: 15px;margin-top: 10px;" type="primary" size="normal" icon="el-icon-edit" @click="handleFinish(form.orderId)" <el-button style="margin-bottom: 15px;margin-top: 10px;" type="primary" size="normal" icon="el-icon-edit" @click="handleFinish(form.orderId)"
v-hasPermi="['workOrder:basicsInfo:editStatus']" v-if="form.orderStatus == 2 && orderIdByHidden == undefined">归档</el-button> v-hasPermi="['workOrder:basicsInfo:editStatus']" v-if="form.orderStatus == 2 && linkOrderId == undefined">归档</el-button>
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="100px"> <el-form ref="form" :model="form" :rules="rules" label-width="100px">
<div v-if="this.title == '工单信息修改'"> <div v-if="this.title == '工单信息修改'">
...@@ -295,6 +298,7 @@ ...@@ -295,6 +298,7 @@
</div> </div>
</div> </div>
<el-dialog <el-dialog
title="巡检信息"
lock-scroll lock-scroll
:visible.sync="inspectionDialogVisible" :visible.sync="inspectionDialogVisible"
width="70%" width="70%"
...@@ -305,6 +309,7 @@ ...@@ -305,6 +309,7 @@
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="隐患信息"
lock-scroll lock-scroll
:visible.sync="hiddenTroubleDialogVisible" :visible.sync="hiddenTroubleDialogVisible"
width="70%" width="70%"
...@@ -315,6 +320,7 @@ ...@@ -315,6 +320,7 @@
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="报警信息"
lock-scroll lock-scroll
:visible.sync="alarmDialogVisible" :visible.sync="alarmDialogVisible"
width="70%" width="70%"
...@@ -338,7 +344,7 @@ ...@@ -338,7 +344,7 @@
import alarm from "../../dataMonitoring/alarmdetail/index.vue"; import alarm from "../../dataMonitoring/alarmdetail/index.vue";
export default { export default {
props:["orderIdByHidden"], props:["linkOrderId"],
name: "BasicsInfo", name: "BasicsInfo",
components: { components: {
inspection, inspection,
...@@ -420,8 +426,8 @@ ...@@ -420,8 +426,8 @@
created() { created() {
// 如果是跳转来的,则接受初始化参数 // 如果是跳转来的,则接受初始化参数
// this.user_id = this.$route.query.id; //详细信息页接收参数 // this.user_id = this.$route.query.id; //详细信息页接收参数
if(this.orderIdByHidden){ if(this.linkOrderId){
this.orderId = this.orderIdByHidden; this.orderId = this.linkOrderId;
}else{ }else{
this.orderId = this.$route.query.orderId; this.orderId = this.$route.query.orderId;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment