tangning пре 1 месец
родитељ
комит
4b22239e74

+ 1 - 1
package.json

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

+ 5 - 0
src/view/case/drawMap/creatMap.vue

@@ -190,6 +190,11 @@ const initMap = async () => {
     poiPicker.onCityReady(function() {
         poiPicker.searchByKeyword('');
     });
+    
+    map.on('click', (e)=>{
+      map.clearMap()
+      locateByCoordinates(e.lnglat.lat, e.lnglat.lng)
+    })
 });
 
 }

+ 4 - 4
src/view/mediaLibrary/index.vue

@@ -74,10 +74,10 @@
         </template>
       </el-table-column>
       <el-table-column label="操作" width="240px" v-slot:default="{ row }">
-        <span class="oper-span" v-if="row.useType != 'animation'" @click="downloadMediaHandler(row)" v-pdpath="'view'">下载</span>
-        <span class="oper-span" v-if="row.useType != 'animation'" @click="downloadHashHandler(row)" v-pdpath="'view'">hash</span>
-        <span class="oper-span" v-if="row.useType != 'animation'" @click="editMediaHandler(row)" v-pdpath="'view'">编辑</span>
-        <span class="oper-span delBtn delete-oper" v-if="row.useType != 'animation'" @click="confirmDelete(row)" v-pdpath="'view'"> 删除 </span>
+        <span class="oper-span" :class="{ disable: row.status == 1 }" v-if="row.useType != 'animation'" @click="downloadMediaHandler(row)" v-pdpath="'view'">下载</span>
+        <span class="oper-span" :class="{ disable: row.status == 1 }" v-if="row.useType != 'animation'" @click="downloadHashHandler(row)" v-pdpath="'view'">hash</span>
+        <span class="oper-span" :class="{ disable: row.status == 0 }" v-if="row.useType != 'animation'" @click="editMediaHandler(row)" v-pdpath="'view'">编辑</span>
+        <span class="oper-span delBtn delete-oper" :class="{ disable: row.status === 1 }" v-if="row.useType != 'animation'" @click="confirmDelete(row)" v-pdpath="'view'"> 删除 </span>
       </el-table-column>
     </el-table>
 

+ 4 - 0
src/view/newFireCase/newFireDetails/components/creatMap.vue

@@ -193,6 +193,10 @@ const initMap = async () => {
     poiPicker.onCityReady(function() {
         poiPicker.searchByKeyword('');
     });
+    map.on('click', (e)=>{
+      map.clearMap()
+      locateByCoordinates(e.lnglat.lat, e.lnglat.lng)
+    })
 });
 
 }

+ 3 - 3
src/view/newFireCase/newdispatch/editCrimical.vue

@@ -1,7 +1,7 @@
 <template>
   <el-form ref="form" label-width="84px">
     <!-- {{ bindExample }} -->
-    <el-form-item label="案件名称">
+    <el-form-item label="案件名称" class="mandatory">
       <el-input v-model="bindExample.caseTitle" maxlength="100" placeholder="请输入案件名称" />
     </el-form-item>
     <el-form-item label="详细地址">
@@ -11,9 +11,9 @@
         </template>
       </el-input>
     </el-form-item>
-    <el-form-item label="首页显示">
+    <!-- <el-form-item label="首页显示">
       <el-switch v-model="bindExample.mapShow" :disabled="!bindExample.latAndLong" />
-    </el-form-item>
+    </el-form-item> -->
   </el-form>
   <!-- 地图弹窗(使用与 basicInfo.vue 相同的 creatMap 组件) -->
   <creatMap v-model="showMapDialog" :caseId="bindExample.caseId" @confirm="handleMapConfirm" />