Ver Fonte

update views/charge/AddStation.vue

wudebin há 5 meses atrás
pai
commit
274cd20676
1 ficheiros alterados com 7 adições e 1 exclusões
  1. 7 1
      Strides-Admin/src/views/charge/AddStation.vue

+ 7 - 1
Strides-Admin/src/views/charge/AddStation.vue

@@ -343,7 +343,11 @@
             Save
           </el-button>
         </div>
-        <audit-view :audit="addForm.audit"/>
+        <audit-view
+          v-if="chargeBoxPk"
+          url="dawn/api/v1/charge-box/audit-pages"
+          :params="{chargeBoxPk}"
+          :audit="addForm.audit"/>
       </div>
     </el-form>
   </div>
@@ -480,6 +484,7 @@
           connectorPk: '',
           chargeTypePk: ''
         },
+        chargeBoxPk: "",
         isEdit: false,
         enableEVCPID: settings.enableEVCPID
       }
@@ -487,6 +492,7 @@
     created() {
       this.getRegisterOptions()
       if (this.$route.params.id) {
+        this.chargeBoxPk = this.$route.params.id;
         this.isEdit = true;
         this.getChargeTypes();
         this.getStationInfo();