芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/nectar.sdektun.com/assets/form-BrTAoijP.js
import{V as c}from"./VForm-C3kZ1XFr.js";import{_ as a,a as m,b as e,d as r,w as p,r as i,o as u}from"./index-Bl6SGUXe.js";const _={components:{VForm:c},data(){return{create:!0,modelid:this.$route.params.id,model:{descripcion:""},roles:[],mockdata:[{idRol:1,descripcion:"Administrador"},{idRol:2,nombre:"Cobranza"}]}},methods:{fillRoles(o){this.roles=o}},mounted(){this.$restapi.get(this.$routes.roles.list).then(o=>{this.fillRoles(this.mockdata)}).catch(o=>{this.fillRoles(this.mockdata)})}},h={class:"card"},f={class:"card-body"},V=e("h5",null,"Agregar rol de usuario",-1),b={class:"form-group row"},k=e("label",{class:"col-sm-3 col-form-label"},"Descripción",-1),v={class:"col-sm-9"};function R(o,t,g,x,s,$){const l=i("form-input"),d=i("VForm");return u(),m("div",h,[e("div",f,[V,r(d,{action:o.$routes.users,id:s.modelid,model:s.model},{inputs:p(()=>[e("div",b,[k,e("div",v,[r(l,{modelValue:s.model.nombre,"onUpdate:modelValue":t[0]||(t[0]=n=>s.model.nombre=n),type:"text",required:!0},null,8,["modelValue"])])])]),_:1},8,["action","id","model"])])])}const C=a(_,[["render",R]]);export{C as default};