gjy 3 年 前
コミット
fb6c5386c3

+ 4 - 3
src/components/mapdrag/mapdrag.vue

@@ -210,12 +210,13 @@
         AMap.plugin(
           ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Geocoder', 'AMap.DistrictSearch'],
           function() {
+            var autocomplete
             if(AMap.Autocomplete){
-              var autocomplete = new AMap.Autocomplete({
+               autocomplete = new AMap.Autocomplete({
               input: 'searchValue',
             })
             }else{
-              var autocomplete = new AMap.AutoComplete({
+              autocomplete = new AMap.AutoComplete({
               input: 'searchValue',
             })
             }
@@ -232,7 +233,7 @@
               level: 'city',
               showbiz: false,
             });
-
+            console.log(autocomplete)
             AMap.event.addListener(autocomplete, 'select', function(e) {
               that.marker.setMap(that.map)
               if (e.poi.location) {

+ 3 - 1
src/views/warehouse/warehouseManagementList.vue

@@ -28,7 +28,9 @@
           " @click="handleDelete()">删除</ws-button>
         <ws-button v-if='list.length>0'
            @click="handlTask()">任务</ws-button>
-           <ws-button @click="outData(1)">导出</ws-button>
+           <ws-button v-hasPermission="
+           `warehouseManagement.warehouse.warehouseInfo.add`
+          " @click="outData(1)">导出</ws-button>
            <ws-button @click="outData(2)">打印</ws-button>
       </template>
       <template slot="left">