Commit f0473aa4 authored by 王's avatar

登陆名称替换

parent c607f790
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
}; };
loginApi(json).then(res=>{ loginApi(json).then(res=>{
this.$store.dispatch('setToken',res.token); this.$store.dispatch('setToken',res.token);
this.$store.dispatch('setUserName',res.user_name); this.$store.dispatch('setUserName',res.desc);
this.$store.dispatch('setPermission',JSON.parse(res.roles.menu_ids)); this.$store.dispatch('setPermission',JSON.parse(res.roles.menu_ids));
window.location.href = '/' window.location.href = '/'
}) })
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
label="用户名"> label="用户名">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="role_id" prop="role_name"
label="角色"> label="角色">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -50,6 +50,10 @@ ...@@ -50,6 +50,10 @@
{{scope.row.status | adminStatus}} {{scope.row.status | adminStatus}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="desc"
label="备注">
</el-table-column>
<el-table-column <el-table-column
v-if="!$store.state.readonly" v-if="!$store.state.readonly"
label="操作"> label="操作">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment