Pārlūkot izejas kodu

修改厦门火调和新疆火调的编辑页

wangfumin 2 nedēļas atpakaļ
vecāks
revīzija
aaf57bec7a

+ 0 - 1
.env.offline

@@ -5,7 +5,6 @@ VITE_SERVICE_URL=http://localhost
 VITE_SWSS_URL=http://localhost
 VITE_LASER_URL=http://localhost
 VITE_FDKK_URL=http://localhost
-VITE_APP_APP = "fire"
 # Enable offline mode
 VITE_OFFLINE=true
 VITE_OFFLINE_DATA_PATH=./

+ 1 - 1
package.json

@@ -4,7 +4,7 @@
   "version": "0.0.0",
   "type": "module",
   "scripts": {
-    "dev": "vite --mode=fire",
+    "dev": "vite --mode=xmfire",
     "devxm": "vite --mode=xmfire",
     "devcjz": "vite --mode=cjzfire",
     "dev-offline": "vite --mode=offline",

+ 0 - 8
src/app/cjzfire/routeConfig.ts

@@ -44,13 +44,5 @@ export const routes: Routes = [
     path: "recycle",
     component: () => import("../fire/view/dispatch/index.vue"),
     meta: { title: "回收站", icon: "icon-del" },
-  },
-  {
-    path: '/fire/dispatch/fireDetails/:caseId',
-    name: 'fireDetails',
-    component: () => import('../fire/view/dispatch/fireDetails.vue'),
-    meta: {
-      title: '火灾详情'
-    }
   }
 ];

+ 0 - 8
src/app/xmfire/routeConfig.ts

@@ -35,13 +35,5 @@ export const routes: Routes = [
     path: "teaching",
     component: () => import("../fire/view/dispatch/index.vue"),
     meta: { title: "教学平台", icon: "iconfire_study" },
-  },
-  {
-    path: '/fire/dispatch/fireDetails/:caseId',
-    name: 'fireDetails',
-    component: () => import('../fire/view/dispatch/fireDetails.vue'),
-    meta: {
-      title: '火灾详情'
-    }
   }
 ];

+ 1 - 1
src/view/newFireCase/newFireDetails/components/headerTop.vue

@@ -61,7 +61,7 @@ const typeName = computed(() => {
 const renameVisible = ref(false);
 const renameTitle = ref("");
 const isPreview = computed(() => route.query.preview as string || '');
-const fromRoute = computed(() => appId || route.query.fromRoute as string);
+const fromRoute = computed(() => route.query.fromRoute as string || appId);
 // 标题:fire 使用 tmProject.projectName;criminal 使用 caseTitle
 const headerTitle = computed(() => {
   const cr: any = props.currentRecord || {};

+ 1 - 0
src/view/newFireCase/newFireDetails/index.vue

@@ -80,6 +80,7 @@ const pageTitle = computed(() => {
 // 加载案件基本信息
 const loadCaseInfo = async () => {
   try {
+    console.log(fromRoute.value, appId, import.meta.env.VITE_APP_APP, route.query.fromRoute, 'fromRoute.value')
     const caseInfo = await getCaseInfo(caseId.value!);
     if (caseInfo && fromRoute.value == 'fire') {
       currentRecord.value = caseInfo;