chunk-1525e9da.b70d7fd7.js 2.6 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1525e9da"],{3592:function(t,e,a){},be23:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-list-content"},[e("div",{staticClass:"auth-tree"},[e("el-button",{staticClass:"add-btn",attrs:{type:"primary",size:"small"}},[t._v("添加权限")]),e("el-tree",{attrs:{data:t.data,props:t.defaultProps,"node-key":"id","default-expand-all":"","expand-on-click-node":!1,"render-content":t.renderContent}})],1),e("el-dialog",{attrs:{title:"添加权限",visible:t.treeDialog,"close-on-click-modal":!1,width:"400px"},on:{"update:visible":function(e){t.treeDialog=e}}},[e("div",{staticClass:"recharge-modal-content"},[e("el-form",{ref:"rechargeForm",staticClass:"demo-form",attrs:{model:t.form,rules:t.rules,"label-width":"80px"}},[e("el-form-item",{attrs:{label:"充值金额"}},[e("el-input",{attrs:{placeholder:"充值金额",size:"small"},model:{value:t.form.rechargeAmount,callback:function(e){t.$set(t.form,"rechargeAmount",e)},expression:"form.rechargeAmount"}})],1),e("el-form-item",{attrs:{label:"确认密码"}},[e("el-input",{attrs:{type:"password",placeholder:"确认密码",size:"small"},model:{value:t.form.confirmPassword,callback:function(e){t.$set(t.form,"confirmPassword",e)},expression:"form.confirmPassword"}})],1)],1)],1),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{size:"small"},on:{click:t.resetForm}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.confirmFn}},[t._v("充值")])],1)])],1)},l=[];a("f16c");let r=1e3;var n={name:"auth-tree",data(){return{data:[],defaultProps:{children:"children",label:"authName"},form:{endId:"1",parentId:"",authName:"",frontUrl:"",backUrl:""}}},mounted(){this.init()},methods:{init(){this._list()},_list(){this.$service.sassAuth.authList({endId:1}).then(t=>{this.data=t})},append(t){const e={id:r++,label:"testtest",children:[]};t.children||this.$set(t,"children",[]),t.children.push(e)},remove(t,e){const a=t.parent,s=a.data.children||a.data,l=s.findIndex(t=>t.id===e.id);s.splice(l,1)},renderContent(t,{node:e,data:a,store:s}){return t("span",{class:"custom-tree-node"},[t("span",{class:"tree-label"},[e.label]),t("span",{class:"tree-btn-wrap"},[t("el-button",{attrs:{size:"small",type:"text"},on:{click:()=>this.append(a)}},["修改"]),t("el-button",{attrs:{size:"small",type:"text"},on:{click:()=>this.remove(e,a)}},["删除"])])])}}},o=n,i=(a("c60c"),a("1805")),c=Object(i["a"])(o,s,l,!1,null,"69cf869a",null);e["default"]=c.exports},c60c:function(t,e,a){"use strict";a("3592")}}]);