wenhongquan 3 years ago
parent
commit
a1114f84bc

+ 21 - 0
src/router/index.js

@@ -155,6 +155,13 @@ export const constantRoutes = [{
                 meta: { title: "养护计划", icon: "user" },
             },
             {
+                path: "maintain/detail/:id",
+                component: () =>
+                    import ("@/views/mb/maintain/detail/index"),
+                name: "mbmaintaindetail",
+                meta: { title: "养护计划详情", icon: "user" },
+            },
+            {
                 path: "detection",
                 component: () =>
                     import ("@/views/mb/detection/index"),
@@ -162,12 +169,26 @@ export const constantRoutes = [{
                 meta: { title: "检测计划", icon: "user" },
             },
             {
+                path: "detection/detail/:id",
+                component: () =>
+                    import ("@/views/mb/detection/detail/index"),
+                name: "mbdetectiondetail",
+                meta: { title: "检测计划详情", icon: "user" },
+            },
+            {
                 path: "task",
                 component: () =>
                     import ("@/views/mb/task/index"),
                 name: "mbtask",
                 meta: { title: "工单", icon: "user" },
             },
+            {
+                path: "task/detail/:id",
+                component: () =>
+                    import ("@/views/mb/task/detail/index"),
+                name: "mbtaskdetail",
+                meta: { title: "热线工单详情", icon: "user" },
+            },
         ],
     },
     {

+ 0 - 0
src/views/mb/detection/detail/index.vue


+ 2 - 2
src/views/mb/detection/index.vue

@@ -175,7 +175,7 @@ body {
 
   .item {
     background: #fff;
-    border: 1px solid #d1d9dd;
+    border: 1px solid rgba(209, 217, 221,0.4);
     padding: 10px 15px;
     font-size: 10px;
     border-radius: 5px;
@@ -184,7 +184,7 @@ body {
       font-weight: bold;
       position: relative;
       padding-bottom: 8px;
-      border-bottom: 1px solid #d1d9dd;
+      border-bottom: 1px solid rgba(209, 217, 221,0.4);
       .time {
         position: absolute;
         right: 0;

+ 0 - 0
src/views/mb/maintain/detail/index.vue


+ 2 - 2
src/views/mb/maintain/index.vue

@@ -148,7 +148,7 @@ body {
 
   .item {
     background: #fff;
-    border: 1px solid #d1d9dd;
+    border: 1px solid rgba(209, 217, 221,0.4);
     padding: 10px 15px;
     font-size: 10px;
     border-radius: 5px;
@@ -157,7 +157,7 @@ body {
       font-weight: bold;
       position: relative;
       padding-bottom: 8px;
-      border-bottom: 1px solid #d1d9dd;
+      border-bottom: 1px solid rgba(209, 217, 221,0.4);
       .time {
         position: absolute;
         right: 0;

+ 6 - 3
src/views/mb/task/index.vue

@@ -24,7 +24,7 @@
               style="padding: 10px 10px; padding-bottom: 0"
               v-for="item in tasklist"
             >
-              <div class="item">
+              <div class="item" @click="gotodetail(item)">
                 <div>
                   <div class="header">
                     <div>任务编号:{{ item.taskCode }}</div>
@@ -101,6 +101,9 @@ const option2 = computed(() => {
   }));
 });
 
+const gotodetail = (item) => {
+  router.push(`/mb/task/detail/${item.taskId}`);
+}
 const pagec = ref(1);
 const onLoad = () => {
   if (refreshing.value) {
@@ -144,7 +147,7 @@ body {
 
   .item {
     background: #fff;
-    border: 1px solid #d1d9dd;
+    border: 1px solid rgba(209, 217, 221,0.4);
     padding: 10px 15px;
     font-size: 10px;
     border-radius: 5px;
@@ -153,7 +156,7 @@ body {
       font-weight: bold;
       position: relative;
       padding-bottom: 8px;
-      border-bottom: 1px solid #d1d9dd;
+      border-bottom: 1px solid rgba(209, 217, 221,0.4);
       .time {
         position: absolute;
         right: 0;