Commit c1003225 authored by 王晓倩's avatar 王晓倩

Merge branch 'master' of ssh://111.61.77.35:15/gengdidi/gassafety

parents b0b3f206 dc0dee11
...@@ -132,7 +132,58 @@ export const constantRoutes = [ ...@@ -132,7 +132,58 @@ export const constantRoutes = [
} }
] ]
}, },
{
path: '/inspectionPlan',
component: Layout,
hidden: true,
children: [
{
path: 'inspectiondetail',
component: (resolve) => require(['@/views/deviceInspection/inspectionPlan/inspectiondetail'], resolve),
name: 'inspectionPlan-inspectiondetail',
meta: { title: '详情' }
}
],
},
{
path: '/inspectionPlan',
component: Layout,
hidden: true,
children: [
{
path: 'index',
component: (resolve) => require(['@/views/deviceInspection/inspectionPlan/index'], resolve),
name: 'index',
meta: { title: '返回' }
}
]
},
{
path: '/deviceAlarm',
component: Layout,
hidden: true,
children: [
{
path: 'alarmdetail',
component: (resolve) => require(['@/views/dataMonitoring/deviceAlarm/alarmdetail'], resolve),
name: 'deviceAlarm-alarmdetail',
meta: { title: '详情' }
}
],
},
{
path: '/deviceAlarm',
component: Layout,
hidden: true,
children: [
{
path: 'index',
component: (resolve) => require(['@/views/dataMonitoring/deviceAlarm/index'], resolve),
name: 'index',
meta: { title: '返回' }
}
]
},
{ {
path: '/gen', path: '/gen',
component: Layout, component: Layout,
......
...@@ -288,7 +288,7 @@ export default { ...@@ -288,7 +288,7 @@ export default {
/** 工单详细信息跳转 */ /** 工单详细信息跳转 */
showDetail(row) { showDetail(row) {
this.$router.push({ this.$router.push({
path: '/basicsInfo/detail', path: '/deviceAlarm/alarmdetail',
query:{ query:{
orderId : row.orderId orderId : row.orderId
} }
......
...@@ -315,7 +315,7 @@ ...@@ -315,7 +315,7 @@
/** 详细信息跳转 */ /** 详细信息跳转 */
showDetail(row) { showDetail(row) {
this.$router.push({ this.$router.push({
path: '/basicsInfo/detail', path: '/inspectionPlan/inspectiondetail',
query:{ query:{
orderId : row.orderId orderId : row.orderId
} }
......
...@@ -170,7 +170,6 @@ ...@@ -170,7 +170,6 @@
<!-- </el-button> --> <!-- </el-button> -->
</div> </div>
<el-divider></el-divider>
</div> </div>
<!-- 归档 --> <!-- 归档 -->
...@@ -182,6 +181,7 @@ ...@@ -182,6 +181,7 @@
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(form.orderId)" @click="handleUpdate(form.orderId)"
v-hasPermi="['workOrder:basicsInfo:edit']" v-hasPermi="['workOrder:basicsInfo:edit']"
v-if="form.orderStatus == 0"
>修改</el-button> >修改</el-button>
<el-button <el-button
type="primary" type="primary"
...@@ -189,6 +189,7 @@ ...@@ -189,6 +189,7 @@
icon="el-icon-edit" icon="el-icon-edit"
@click="handleFinish(form.orderId)" @click="handleFinish(form.orderId)"
v-hasPermi="['workOrder:basicsInfo:editStatus']" v-hasPermi="['workOrder:basicsInfo:editStatus']"
v-if="form.orderStatus == 2"
>归档</el-button> >归档</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">
...@@ -239,7 +240,7 @@ ...@@ -239,7 +240,7 @@
<script> <script>
import { listBasicsInfo, getBasicsInfo, delBasicsInfo, addBasicsInfo, updateBasicsInfo, exportBasicsInfo } from "@/api/workOrder/basicsInfo"; import { listBasicsInfo, getBasicsInfo, delBasicsInfo, addBasicsInfo, updateBasicsInfo, updateOrderStatus, exportBasicsInfo } from "@/api/workOrder/basicsInfo";
import { deviceTree } from "@/api/device/deviceInfo"; import { deviceTree } from "@/api/device/deviceInfo";
import gaodeMap from "utils/gaodeMap.js"; import gaodeMap from "utils/gaodeMap.js";
import {map, DEVICE_TYPE} from "utils/gaodeMap.js"; import {map, DEVICE_TYPE} from "utils/gaodeMap.js";
...@@ -420,6 +421,9 @@ export default { ...@@ -420,6 +421,9 @@ export default {
// 节点单击事件 // 节点单击事件
handleNodeClick(data) { handleNodeClick(data) {
},
setUserId(val){
this.form.appointInspector = val;
}, },
// 取消按钮 // 取消按钮
cancel() { cancel() {
...@@ -477,7 +481,7 @@ export default { ...@@ -477,7 +481,7 @@ export default {
handleUpdate(res) { handleUpdate(res) {
// this.reset(); // this.reset();
this.getInspectorList(); this.getInspectorList();
getBasicsInfo(res).then(response => { getBasicsInfo(this.orderId).then(response => {
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
this.title = "工单信息修改"; this.title = "工单信息修改";
......
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