Commit 444b3437 authored by 王晓倩's avatar 王晓倩

Merge remote-tracking branch 'origin/master'

parents 74a73389 6a83ae88
...@@ -135,7 +135,8 @@ export default { ...@@ -135,7 +135,8 @@ export default {
path: "/dataMonitoring/realtimedetail", path: "/dataMonitoring/realtimedetail",
query: { query: {
deviceId: this.obj.polyline.getExtData().lineData.pipeId, deviceId: this.obj.polyline.getExtData().lineData.pipeId,
deviceType:"0" //这里是传数字
deviceType:"0",
}, },
}); });
}, },
......
...@@ -167,7 +167,7 @@ export default { ...@@ -167,7 +167,7 @@ export default {
}, },
checkWork() { checkWork() {
this.obj.polyline.getExtData().class.view.$router.push({ this.obj.polyline.getExtData().class.view.$router.push({
path: "/basicsInfo/detail", path: "/workOrder/detail",
query: { query: {
orderId: this.obj.polyline.getExtData().lineData.orderId, orderId: this.obj.polyline.getExtData().lineData.orderId,
}, },
...@@ -191,9 +191,10 @@ export default { ...@@ -191,9 +191,10 @@ export default {
deviceMore() { deviceMore() {
console.log(this.obj.polyline.getExtData().lineData); console.log(this.obj.polyline.getExtData().lineData);
this.obj.polyline.getExtData().class.view.$router.push({ this.obj.polyline.getExtData().class.view.$router.push({
path: "/deviceAlarm/alarmdetail", path: "/dataMonitoring/alarmdetail",
query: { query: {
alarmId: this.obj.polyline.getExtData().lineData.alarmId, alarmId: this.obj.polyline.getExtData().lineData.alarmId,
deviceType:"管道"
}, },
}); });
}, },
......
...@@ -91,9 +91,10 @@ export default { ...@@ -91,9 +91,10 @@ export default {
moment, moment,
deviceMore() { deviceMore() {
this.data.class.view.$router.push({ this.data.class.view.$router.push({
path: "/realtimeData/realtimedetail", path: "/dataMonitoring/realtimedetail",
query: { query: {
deviceId: this.data.deviceId, deviceId: this.data.deviceId,
deviceType: this.data.deviceType,
}, },
}); });
}, },
......
...@@ -104,6 +104,16 @@ export default { ...@@ -104,6 +104,16 @@ export default {
data: {}, data: {},
map: null, map: null,
}, },
data() {
return {
deviceType: {
1: "调压箱",
2: "阀门井",
3: "流量计",
4: "智能燃气表",
},
};
},
computed: { computed: {
orderId() { orderId() {
// 如果已经生成过工单,就不能再次生成了 // 如果已经生成过工单,就不能再次生成了
...@@ -141,16 +151,17 @@ export default { ...@@ -141,16 +151,17 @@ export default {
// }, // },
deviceMore() { deviceMore() {
this.data.view.$router.push({ this.data.view.$router.push({
path: "/deviceAlarm/alarmdetail", path: "/dataMonitoring/alarmdetail",
query: { query: {
alarmId: this.data.alarmId, alarmId: this.data.alarmId,
dcviceType: this.deviceType[this.data.deviceType],
}, },
}); });
}, },
// 查看工单 // 查看工单
checkWork() { checkWork() {
this.data.view.$router.push({ this.data.view.$router.push({
path: "/basicsInfo/detail", path: "/workOrder/detail",
query: { query: {
orderId: this.data.orderId, orderId: this.data.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