工作278:控制数据从字典表获取
生活随笔
收集整理的這篇文章主要介紹了
工作278:控制数据从字典表获取
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
<el-form-item prop="role" label="角色" :label-width="formLabelWidth"><el-select v-model="form.role" placeholder="請選擇角色"><el-option v-for="role in rolelist" :label="role.text" :value="role.value"></el-option></el-select></el-form-item>
open的時候接口獲取
open(){/*更具字典表去查詢對應的一個用戶角色的權限信息*/getAction("/dict/list",{dict_code: "role"}).then(res=>{this.rolelist=res.dataconsole.log(this.rolelist)})},?
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎勵來咯,堅持創(chuàng)作打卡瓜分現(xiàn)金大獎總結
以上是生活随笔為你收集整理的工作278:控制数据从字典表获取的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 宠物商店 - MLDN 李兴华老师
- 下一篇: access转换MySQL教程,如何将A