Browse Source

feat: save

gemercheung 9 months ago
parent
commit
2a5a31f3c7
3 changed files with 10 additions and 3 deletions
  1. 1 1
      package.json
  2. 7 0
      src/app/fire/routeConfig.ts
  3. 2 2
      src/app/map/App.vue

+ 1 - 1
package.json

@@ -11,7 +11,7 @@
     "build-criminal": "vite build ./ --mode=criminal",
     "build-xmfire": "vite build ./ --mode=xmfire",
     "build-ga": "vite build ./ --mode=ga",
-    "build-all": "npm-run-all --parallel build-fire  build-criminal build-xmfire build-ga",
+    "build-all": "npm-run-all --parallel build-fire build-criminal build-xmfire build-ga",
     "preview": "vite preview"
   },
   "dependencies": {

+ 7 - 0
src/app/fire/routeConfig.ts

@@ -5,6 +5,7 @@ export const FireRouteName = {
   ...RouteName,
   dispatch: "dispatch",
   teaching: "teaching",
+  recycle: "caseRecovery",
 } as const;
 
 export const menuRouteNames = [
@@ -33,4 +34,10 @@ export const routes: Routes = [
     component: () => import("./view/dispatch/index.vue"),
     meta: { title: "教学平台", icon: "iconfire_study" },
   },
+  {
+    name: FireRouteName.recycle,
+    path: "recycle",
+    component: () => import("./view/dispatch/index.vue"),
+    meta: { title: "回收站", icon: "icon-del" },
+  },
 ];

+ 2 - 2
src/app/map/App.vue

@@ -18,7 +18,7 @@
     <div class="left">
       <el-form-item label="" class="filter">
         <com-company
-          v-model="(state.deptId as any as string)"
+          v-model="state.deptId"
           :id="state.caseId"
           hideAll
         />
@@ -130,7 +130,7 @@ const keywordSearch = ref("");
 const list = ref<any>([]);
 const searchList = ref<any>([]);
 const state = reactive({
-  deptId: params.deptId || "",
+  deptId: String(params.deptId) || "",
   caseId: "",
 });