(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-193fffd4"],{"119c":function(t,s,e){"use strict";var i=e("b6f1");t.exports=function(t,s){return!!t&&i(function(){s?t.call(null,function(){},1):t.call(null)})}},b745:function(t,s,e){"use strict";var i=e("b2f5"),a=e("648a"),r=e("db4b"),n=e("b6f1"),l=[].sort,o=[1,2,3];i(i.P+i.F*(n(function(){o.sort(void 0)})||!n(function(){o.sort(null)})||!e("119c")(l)),"Array",{sort:function(t){return void 0===t?l.call(r(this)):l.call(r(this),a(t))}})},d503:function(t,s,e){"use strict";e.r(s);var i,a=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("v-dialog",{attrs:{persistent:"","max-width":"600px"},model:{value:t.thisValue,callback:function(s){t.thisValue=s},expression:"thisValue"}},[e("v-card",[e("v-card-title",[e("span",{staticClass:"headline"},[t._v(t._s("add"===t.resType?"添加角色":"修改角色"))])]),e("v-card-text",[e("v-container",[e("v-form",{ref:"form",model:{value:t.valid,callback:function(s){t.valid=s},expression:"valid"}},[e("v-text-field",{attrs:{label:"角色名称*",placeholder:"输入角色名称",rules:[function(t){return!!t||"角色名称必填"}],required:""},model:{value:t.thisMsg.role_name,callback:function(s){t.$set(t.thisMsg,"role_name",s)},expression:"thisMsg.role_name"}}),e("v-text-field",{attrs:{label:"备注",placeholder:"输入备注信息"},model:{value:t.thisMsg.remarks,callback:function(s){t.$set(t.thisMsg,"remarks",s)},expression:"thisMsg.remarks"}}),e("v-text-field",{attrs:{label:"序号",placeholder:"输入序号"},model:{value:t.thisMsg.sort,callback:function(s){t.$set(t.thisMsg,"sort",s)},expression:"thisMsg.sort"}}),e("div",[e("span",[t._v("是否启用：")]),e("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#e1e1e1","inactive-value":0,"active-value":1},model:{value:t.thisMsg.status,callback:function(s){t.$set(t.thisMsg,"status",s)},expression:"thisMsg.status"}})],1)],1)],1)],1),e("v-card-actions",{staticClass:"justify-space-between"},[e("v-btn",{attrs:{color:"blue gray",text:""},on:{click:function(s){t.thisValue=!1}}},[t._v("取消")]),e("v-btn",{attrs:{color:"dark darken-1",loading:t.loading,text:""},on:{click:function(s){return t.doUpdate()}}},[t._v("保存")])],1)],1)],1)},r=[],n=(e("b745"),{props:{value:{type:Boolean,required:!0,default:!1},msg:{type:Object,required:!1,default:{role_name:"",remarks:"",sort:"",status:0}},type:{type:String,required:!0}},data:function(){return{valid:!0,resType:this.type,thisValue:this.value,thisMsg:JSON.parse(JSON.stringify(this.msg)),loading:!1}},watch:{value:function(t){this.thisValue=t},thisValue:function(t){this.$emit("change",t)},type:function(t){this.resType=t,"add"===t&&(this.thisMsg={role_name:"",remarks:"",sort:"",status:0})},msg:function(t){this.thisMsg=t}},mounted:function(){i=this},methods:{doUpdate:function(){this.$refs.form.validate()&&(this.loading=!0,this.$post("role/"+this.resType,{id:this.thisMsg.id||"",role_name:this.thisMsg.role_name,remarks:this.thisMsg.remarks,sort:this.thisMsg.sort,status:this.thisMsg.status},function(t){i.loading=!1,0==t.errno&&(i.$message({showClose:!0,message:t.errmsg,type:"success"}),i.thisValue=!1,i.$emit("changemsg",t))}))}}}),l=n,o=e("6691"),c=Object(o["a"])(l,a,r,!1,null,null,null);s["default"]=c.exports}}]);
//# sourceMappingURL=chunk-193fffd4.0e0b78d4.js.map