gemercheung 7 meses atrás
pai
commit
ced5733439

+ 1 - 1
package.json

@@ -4,7 +4,7 @@
   "version": "0.0.0",
   "type": "module",
   "scripts": {
-    "dev": "vite --mode=fire",
+    "dev": "vite --mode=criminal",
     "build": "npm run build-quisk",
     "build-quisk": "vite build ./ --mode fire && vite build ./ --mode criminal && vite build ./ --mode xmfire && vite build ./ --mode ga",
     "build-fire": "vite build ./ --mode=fire",

+ 3 - 1
src/App.vue

@@ -1,6 +1,6 @@
 <template>
   <Locale>
-    <router-view v-slot="{ Component }">
+    <router-view v-slot="{ Component }" :class="['app-' + appId]">
       <component :is="Component" />
     </router-view>
     <div id="dialog"></div>
@@ -9,4 +9,6 @@
 
 <script setup lang="ts">
 import Locale from "@/config/locale.vue";
+import { computed } from "vue";
+const appId = computed(() => import.meta.env.VITE_APP_APP)
 </script>

+ 6 - 11
src/app/criminal/view/example/edit.vue

@@ -1,24 +1,19 @@
 <template>
   <el-form ref="form" label-width="84px">
+    {{ bindExample }}
     <el-form-item label="案件名称">
-      <el-input
-        v-model="bindExample.caseTitle"
-        maxlength="50"
-        placeholder="请输入案件名称"
-      />
+      <el-input v-model="bindExample.caseTitle" maxlength="50" placeholder="请输入案件名称" />
     </el-form-item>
     <el-form-item label="详细地址">
-      <el-input
-        v-model="bindExample.mapUrl"
-        placeholder="输入名称搜索"
-        clearable
-        disabled
-      >
+      <el-input v-model="bindExample.mapUrl" placeholder="输入名称搜索" clearable disabled>
         <template #append>
           <el-button :icon="Search" @click="searchAMapAddress" />
         </template>
       </el-input>
     </el-form-item>
+    <el-form-item label="首页显示">
+      <el-switch v-model="bindExample.mapShow" :disabled="!bindExample.latAndLong" />
+    </el-form-item>
   </el-form>
 </template>
 

+ 8 - 12
src/app/ga/view/example/edit.vue

@@ -1,29 +1,24 @@
 <template>
   <el-form ref="form" label-width="84px">
     <el-form-item label="案件名称">
-      <el-input
-        v-model="bindExample.caseTitle"
-        maxlength="50"
-        placeholder="请输入案件名称"
-      />
+      <el-input v-model="bindExample.caseTitle" maxlength="50" placeholder="请输入案件名称" />
     </el-form-item>
     <el-form-item label="详细地址">
-      <el-input
-        v-model="bindExample.mapUrl"
-        placeholder="输入名称搜索"
-        clearable
-        disabled
-      >
+      <el-input v-model="bindExample.mapShow" placeholder="输入名称搜索" clearable disabled>
         <template #append>
           <el-button :icon="Search" @click="searchAMapAddress" />
         </template>
       </el-input>
     </el-form-item>
+
+    <el-form-item label="大屏显示" class="mandatory">
+      <el-switch v-model="bindExample.mapShow" :disabled="!bindExample.latlng" />
+    </el-form-item>
   </el-form>
 </template>
 
 <script setup lang="ts">
-import { ref } from "vue";
+import { ref, watchEffect } from "vue";
 import { Example, setExample, addExample } from "@/app/criminal/store/example";
 import { ElMessage } from "element-plus";
 import { QuiskExpose } from "@/helper/mount";
@@ -33,6 +28,7 @@ import { selectMapImage } from "@/view/case/quisk";
 const props = defineProps<{ example?: Example }>();
 const bindExample = ref<Example>(props.example ? { ...props.example } : ({} as Example));
 
+
 defineExpose<QuiskExpose>({
   async submit() {
     if (!bindExample.value.caseTitle || !bindExample.value.caseTitle.trim()) {

+ 8 - 2
src/setSystem.ts

@@ -18,10 +18,16 @@ const modules = import.meta.glob("@/assets/style/theme/*.scss", {
   query: "?inline",
 });
 
-axios.get(getSysSetting).then((data) => {
+const appId = import.meta.env.VITE_APP_APP
+
+
+axios.get(getSysSetting, {
+  params: {
+    platformKey: appId
+  }
+}).then((data) => {
   systemData.value.name = data.data.title;
   systemData.value.color = data.data.themeColour;
-  // debugger
   localStorage.setItem('f-themeColour', data.data.themeColour)
   refresh();
 });

+ 1 - 1
src/view/case/editMenu.vue

@@ -27,7 +27,7 @@ import { alert } from "@/helper/message";
 
 const props = defineProps<{
   caseId: number;
-  title: string;
+  title?: string;
   prevMenu?: MenuItem[];
   lastMenu?: MenuItem[];
 }>();