yangfeng
2024-01-08 8b9777c61dad679ea40d06a25f0e4e90da5f53cf
src/views/unifiedManage/userLevel/components/AddUserLevel.vue
@@ -85,12 +85,6 @@
          infomation: {}
        }
      }
    },
    editRow: {
      type: Object,
      default: () => {
        return {}
      }
    }
  },
  components: {},
@@ -207,7 +201,7 @@
      this.$refs[formName].validate((valid) => {
        console.log(valid)
        if (valid) {
          let submitFn = this.editRow.id ? updateRole : addRole
          let submitFn = this.editConfig.title === "编辑" ? updateRole : addRole
          let param = this.saveParams()
          submitFn(param).then((reply) => {
            if (reply && reply.code === 200) {
@@ -253,7 +247,7 @@
        subsystemIDs: subsystemIDs,
        role: {
          allMenu: allMenuIds.join(),
          id: this.editRow.id,
          id: this.editConfig.infomation.id,
          comment: data.comment || "",
          name: data.name || "",
          useType: 1