bill 1 年之前
父節點
當前提交
a21033dfa3
共有 2 個文件被更改,包括 5 次插入5 次删除
  1. 2 2
      src/app/fire/view/dispatch/index.vue
  2. 3 3
      src/view/system/imageCropper.vue

+ 2 - 2
src/app/fire/view/dispatch/index.vue

@@ -13,7 +13,7 @@
         </el-button>
       </template>
       <template v-else>
-        <el-button type="primary" @click="openMap"> 查看地图案件分 </el-button>
+        <el-button type="primary" @click="openMap"> 查看地图案件分 </el-button>
         <el-button type="primary" @click="addHandler" v-pdpath="'add'">
           新增火调项目
         </el-button>
@@ -134,6 +134,6 @@ const addHandler = async () => {
   (await addFire({})) && pagging.refresh();
 };
 const openMap = () => {
-  location.href = "./map.html";
+  window.open("./map.html");
 };
 </script>

+ 3 - 3
src/view/system/imageCropper.vue

@@ -22,10 +22,10 @@
       />
     </div>
     <div class="control">
-      <div class="slider-demo-block">
+      <!-- <div class="slider-demo-block">
         <span class="demonstration">色相调整</span>
         <el-slider v-model="hue" :max="360" :min="0" show-input />
-      </div>
+      </div> -->
       <el-button type="primary" @click="cropperRef.rotateRight()"> 旋转 </el-button>
     </div>
   </div>
@@ -45,7 +45,7 @@ type CropperProps = {
 };
 const props = defineProps<CropperProps>();
 
-const hue = ref(90);
+const hue = ref(0);
 // 样式控制
 const sWidth = 500;
 const sHeight = (props.fixed[1] / props.fixed[0]) * sWidth;