ZZJ
2022-04-29 5ee0d36e051d591f930ba93ba660e45f10710c3f
src/views/equipmentManagement/equipmentList/components/AddBox.vue
@@ -250,21 +250,30 @@
    },
    async submit() {
      let res = {};
      if (this.addObj.type == "cluster") {
        const res = await addCluster({
        res = await addCluster({
          clusterPwd: this.auth_password,
          clusterId: this.addObj.id,
        });
      } else {
        const res = await addDeviceToUser({
        res = await addDeviceToUser({
          clusterPwd: this.auth_password,
          deviceId: this.addObj.id,
          clusterId: this.addObj.cid,
        });
      }
      if (res && res.success) {
        this.$notify({
          type: "success",
          message: "添加成功",
        });
        this.close();
      }
    },
    showBox(type, id, cid) {
      console.log(cid);
      this.auth_password = "";
      this.showPasswordBox = true;
      this.addObj = {
        type,