Browse Source

fix(device): mac length limit changed from 14 to 17

Casper Dai 3 năm trước cách đây
mục cha
commit
049eaaf507
2 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. 2 2
      src/views/device/index.vue
  2. 3 3
      src/views/platform/transfer/index.vue

+ 2 - 2
src/views/device/index.vue

@@ -40,8 +40,8 @@
         <span class="c-grid-form__label required">MAC:</span>
         <el-input
           v-model.trim="currObj.mac"
-          placeholder="ff:ff:ff:ff:ff"
-          maxlength="14"
+          placeholder="ff:ff:ff:ff:ff:ff"
+          maxlength="17"
           show-word-limit
         />
         <span class="c-grid-form__label required">地址:</span>

+ 3 - 3
src/views/platform/transfer/index.vue

@@ -243,14 +243,14 @@ export default {
     async transferOneHistory (history) {
       const loading = this.$showLoading()
       await this.transferHistories([history])
-      this.$refs.historyTableDialog.decrease(1)
+      this.$refs.historyTableDialog.getTable().decrease(1)
       this.$closeLoading(loading)
     },
     async transferAllHistories () {
       const { totalCount, pageSize } = this.$refs.deviceTableDialog.getTable().info()
       if (totalCount <= pageSize) {
         await this.transferHistories(this.$refs.deviceTableDialog.getTable().getData())
-        this.$refs.historyTableDialog.pageTo(1)
+        this.$refs.historyTableDialog.getTable().pageTo(1)
       } else {
         const loading = this.$showLoading()
         try {
@@ -259,7 +259,7 @@ export default {
             pageSize: totalCount
           })
           await this.transferHistories(data)
-          this.$refs.historyTableDialog.pageTo(1)
+          this.$refs.historyTableDialog.getTable().pageTo(1)
         } catch (e) {
           console.warn(e)
           this.$message({