loulijun2021
2022-06-21 206ec855ef1853430275f6a375142ec7789cc532
src/views/jcsz/jsqd.vue
@@ -975,7 +975,7 @@
          this.$nextTick(() => {
            $('input:checkbox').eq(0).prop('checked', true)// 自定义单选框回显
          })
        }, 1)
        }, 10)
        this.dialogFormRight.rightCurrentCode = this.dialogFormRight.rightPCArr[0].code
      }
      // 3.第三种情况PC未选中,APP已选中
@@ -986,7 +986,7 @@
          this.$nextTick(() => {
            $('input:checkbox').eq(1).prop('checked', true)// 自定义单选框回显
          })
        }, 1)
        }, 10)
        this.dialogFormRight.rightCurrentCode = this.dialogFormRight.rightAPPArr[0].code
      }
      // 4.第四种情况PC已选中,APP已选中
@@ -1000,7 +1000,7 @@
            $('input:checkbox').eq(0).prop('checked', true)// 自定义单选框回显
            $('input:checkbox').eq(1).prop('checked', true)// 自定义单选框回显
          })
        }, 1)
        }, 10)
        this.dialogFormRight.rightCurrentCode = this.dialogFormRight.rightPCArr[0].code
      }
      this.dialogFormRight.rightOperationArr.push({
@@ -1043,8 +1043,12 @@
        }
      })
      this.$nextTick(() => {
        this.$refs.rightPCRef.setCheckedKeys(this.dialogFormRight.rightPCArrSelected)
        this.$refs.rightAPPRef.setCheckedKeys(this.dialogFormRight.rightAPPArrSelected)
        if (this.$refs.rightPCRef) {
          this.$refs.rightPCRef.setCheckedKeys(this.dialogFormRight.rightPCArrSelected)
        }
        if (this.$refs.rightAPPRef) {
          this.$refs.rightAPPRef.setCheckedKeys(this.dialogFormRight.rightAPPArrSelected)
        }
      })
    },
    // 分配权限关闭事件
@@ -1054,8 +1058,12 @@
      this.dialogFormRight.rightAPPArr = []
      this.dialogFormRight.rightAPPArrSelected = []
      this.dialogFormRight.rightOperationArr = []
      this.$refs.rightPCRef.setCheckedKeys([])
      this.$refs.rightAPPRef.setCheckedKeys([])
      if (this.$refs.rightPCRef) {
        this.$refs.rightPCRef.setCheckedKeys([])
      }
      if (this.$refs.rightAPPRef) {
        this.$refs.rightAPPRef.setCheckedKeys([])
      }
    },
    // 权限对话框取消事件
    rightDialogVisibleCancel() {
@@ -1071,7 +1079,7 @@
          const children = []
          let flag = false // 表示children里有值push进去了
          item.children.forEach(it => {
            if (this.dialogFormRight.rightPCArrSelected.includes(it.code)) {
            if (this.dialogFormRight.rightPCArrSelected.includes(it.code) || this.dialogFormRight.rightPCArrSelected.includes('PC')) {
              flag = true
              children.push(
                { code: it.code, name: it.name, flag: 'Y' }
@@ -1090,7 +1098,7 @@
          const children = []
          let flag = false // 表示children里有值push进去了
          item.children.forEach(it => {
            if (this.dialogFormRight.rightAPPArrSelected.includes(it.code)) {
            if (this.dialogFormRight.rightAPPArrSelected.includes(it.code) || this.dialogFormRight.rightAPPArrSelected.includes('APP')) {
              flag = true
              children.push(
                { code: it.code, name: it.name, flag: 'Y' }