|  |  | 
 |  |  |       <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"> | 
 |  |  | 
 |  |  |     /** 提交按钮 */ | 
 |  |  |     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(); | 
 |  |  |       }); | 
 |  |  | 
 |  |  |     }, | 
 |  |  |   }, | 
 |  |  | }; | 
 |  |  | </script> | 
 |  |  | </script> |