whj 7 bulan lalu
induk
melakukan
ac1ef07abf

+ 7 - 2
src/views/idle-assets-map/IdleAssetsStoreMap.vue

@@ -11,8 +11,8 @@
           @click="handleClick(i)">{{ item.name }}</div>
       </a-col>
       <a-col :span="20">
-        <img v-if="key" :src="img1" width="100%" alt="">
-        <img v-else :src="img2" width="100%" alt="">
+        <img v-if="key" :src="img1" width="100%" alt="" >
+        <img v-else :src="img2" width="100%" alt="" @click="handleClickImg">
       </a-col>
     </a-row>
   </a-card>
@@ -42,6 +42,11 @@ export default {
     },
     handleClick (i) {
       this.key = i
+    },
+    handleClickImg (e) {
+      console.log(e.offsetX, e.offsetY)
+      console.log(e.target.width, e.target.height)
+      // console.log(e.offsetX, e.offsetY)
     }
   }
 }

+ 1 - 1
src/views/store/store/Store.vue

@@ -55,7 +55,7 @@
     </div>
 
     <div class="table-operator" style="margin-bottom: 8px;">
-      <a-button v-if="$auth('store-stores-add')" type="primary" icon="plus" @click="$refs.baseModal.base()">新增</a-button>
+      <a-button type="primary" icon="plus" @click="$refs.baseModal.base()">新增</a-button>
       <!--      <a-button style="margin-left: 8px" v-if="$auth('store-stores-export')" type="primary" icon="download" @click="doExport">导出</a-button>-->
       <a-dropdown v-action:edit v-if="selectedRowKeys.length > 0 && $auth('store-stores-del')">
         <a-menu slot="overlay">