Browse Source

luowei修改bug

luowei 2 years ago
parent
commit
871cd9d8ab
1 changed files with 4 additions and 6 deletions
  1. 4 6
      src/views/system/device/index.vue

+ 4 - 6
src/views/system/device/index.vue

@@ -244,6 +244,7 @@ export default {
       showSearch: true,
       // 总条数
       total: 0,
+      inparm: 0,
       // 【请填写功能名称】表格数据
       deviceList: [],
       devices: null,
@@ -418,19 +419,16 @@ export default {
       this.multiple = !selection.length
     },
     /** 新增按钮操作 */
-    handleAdd() {
+    handleAdd(val) {
       this.open = true;
       this.title = "新增";
       this.form.orgId = this.selectOrgId;
-      console.log(this.form.orgId)
-      // getHostByOrgId(this.form).then(response => {
-      //   this.form.hostId = null;
-      //   this.hostList = response.data;
-      // })
     },
     changeSelectDevice(val) {
       getDeviceType(val).then(response => {
         this.devices = response.data;
+        this.form.deviceType=null;
+        this.queryParams.deviceType=null;
       })
     },
     /** 修改按钮操作 */