“yueshang” 1 年間 前
コミット
f36a33531a
1 ファイル変更33 行追加49 行削除
  1. 33 49
      src/pages/mission/components/NoMisBox.vue

+ 33 - 49
src/pages/mission/components/NoMisBox.vue

@@ -1,11 +1,6 @@
 <template>
     <div>
         <div class="noMisBox" v-if="selects == 0 && arrList.length == 0">
-            <div class="settingBox">
-                <div class="setNow">
-              <span class="setnowspan" @click="goNetStructPicture">scd可视化</span>
-            </div>
-              </div>
             <img style="width: 220px;height: 220px;" src="../../../assets/image/create.png" alt="">
             <p style="text-align: center;width: 240px;">当前没有需要检测的任务</p>
             <p class="createMisp" @click="createMis">
@@ -17,57 +12,46 @@
 </template>
 
 <script>
-import { ref, onMounted } from "vue";
-import { useRouter } from "vue-router";
+import { ref, onMounted } from 'vue';
 export default {
-  props: {
-    btnSelect: {
-      type: Number,
-      require: true,
-    },
-    taskList: {
-      type: Array,
-      require: true,
-    },
-  },
-  setup(props, { emit }) {
-    let router = useRouter();
-    let selects = props.btnSelect;
-    let arrList = props.taskList;
-    function createMis() {
-      selects = 1;
-      emit("backToMission", selects);
-    }
-    function goNetStructPicture() {
-      router.push({
-        path: "/home/netStructPicture",
-        query: {
-          id: 4000002,
-          name: "UnitTest_检测任务",
+    props: {
+        btnSelect: {
+            type: Number,
+            require: true
         },
-      });
+        taskList: {
+            type: Array,
+            require: true
+        }
+    },
+    setup(props, { emit }) {
+        let selects = props.btnSelect
+        let arrList = props.taskList
+        function createMis() {
+            selects = 1
+            emit("backToMission", selects)
+        }
+
+        return {
+            createMis,
+            selects,
+            arrList,
+        }
     }
-    return {
-      createMis,
-      selects,
-      arrList,
-      goNetStructPicture,
-    };
-  },
-};
+}
 </script>
 
 <style scoped>
 .noMisBox {
-  width: 200px;
-  height: 200px;
-  margin: 80px auto;
-  text-align: center;
-  line-height: 20px;
+    width: 200px;
+    height: 200px;
+    margin: 80px auto;
+    text-align: center;
+    line-height: 20px;
 }
-.createMisp {
-  margin-left: 25px;
-  text-align: center;
-  line-height: 10px;
+.createMisp{
+    margin-left: 25px;
+    text-align: center;
+    line-height: 10px;
 }
 </style>