WXL
2025-04-11 ee8f1a0138b4b7de2389e31d2eb186167a1548f7
src/views/patient/patient/authRole.vue
@@ -29,11 +29,11 @@
      <el-table-column label="权限字符" align="center" prop="roleKey" />
      <el-table-column label="创建时间" align="center" prop="createTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.createTime) }}</span>
          <span>{{ formatTime(scope.row.createTime) }}</span>
        </template>
      </el-table-column>
    </el-table>
    <pagination v-show="total>0" :total="total" :page.sync="pageNum" :limit.sync="pageSize" />
    <el-form label-width="100px">
@@ -101,8 +101,8 @@
    /** 提交按钮 */
    submitForm() {
      const userId = this.form.userId;
      const roleIds = this.roleIds.join(",");
      updateAuthRole({ userId: userId, roleIds: roleIds }).then((response) => {
      // const roleIds = this.roleIds.join(",");
      updateAuthRole({ userId: userId, roleIds: this.roleIds }).then((response) => {
        this.$modal.msgSuccess("授权成功");
        this.close();
      });
@@ -114,4 +114,4 @@
    },
  },
};
</script>
</script>