You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
123 KiB
1 line
123 KiB
|
6 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-387c60c2","chunk-7f4c2ce9","chunk-22cea610"],{"0203":function(t,e,a){},"02b5":function(t,e,a){"use strict";a("4c1f")},"0512":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container"},[a("div",[a("div",{ref:"lxHeader"},[a("LxHeader",{staticStyle:{"margin-bottom":"10px",border:"0px","margin-top":"15px"},attrs:{icon:"md-apps",text:"图书类目"}},[a("div",{attrs:{slot:"content"},slot:"content"}),t._t("default",[a("div",[a("Input",{staticStyle:{width:"200px","margin-right":"10px"},attrs:{placeholder:"关键字搜索"},model:{value:t.searchFields.Name,callback:function(e){t.$set(t.searchFields,"Name",t._n(e))},expression:"searchFields.Name"}}),a("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:t.load}},[t._v("查询")]),a("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:function(e){return t.edit()}}},[t._v("新增")])],1)])],2)],1),a("div",{staticClass:"table-tree"},[a("el-table",{staticClass:"v-table",staticStyle:{width:"100%","margin-bottom":"20px"},attrs:{data:t.tableData,height:t.tableHeight,"row-key":"id",border:"","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{type:"index",align:"center"}}),a("el-table-column",{attrs:{prop:"name",label:"类型",sortable:""}}),a("el-table-column",{attrs:{prop:"sort",label:"排序",sortable:"",width:"180"}}),a("el-table-column",{attrs:{fixed:"right",label:"操作",width:"300"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"small",ghost:""},on:{click:function(a){return t.addchildren(e.row)}}},[t._v("下级")]),a("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"error",size:"small",ghost:""},on:{click:function(a){return t.del(e.row)}}},[t._v("删除")]),a("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"small",ghost:""},on:{click:function(a){return t.edit(e.row)}}},[t._v("编辑")])]}}])})],1)],1)]),a("el-dialog",{attrs:{title:"图书类目编辑",visible:t.dialogFormVisible,width:"60%"},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,"label-position":"right","label-width":t.formLabelWidth}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"父节点"}},[a("el-input",{attrs:{disabled:"",autocomplete:"off"},model:{value:t.form.pname,callback:function(e){t.$set(t.form,"pname",e)},expression:"form.pname"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:18}},[a("el-form-item",{attrs:{label:"名称",prop:"name"}},[a("el-input",{attrs:{autocomplete:"off"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"排序"}},[a("el-input",{attrs:{autocomplete:"off"},model:{value:t.form.sort,callback:function(e){t.$set(t.form,"sort",e)},expression:"form.sort"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},[a("el-option",{attrs:{label:"启用",value:"1"}}),a("el-option",{attrs:{label:"禁用",value:"0"}})],1)],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){return t.resetForm("form")}}},[t._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("form")}}},[t._v("确 定")])],1)],1)],1)},n=[],o=(a("b0c0"),a("d3b7"),a("25f0"),a("548e")),r=a("6889"),s={components:{LxHeader:o["a"]},created:function(){this.initLoad(),this.load()},mounted:function(){},data:function(){return{dialogFormVisible:!1,formLabelWidth:"120px",form:{name:"",id:"",pid:"0",status:"1",sort:0,pname:"根菜单"},rules:{name:[{required:!0,message:"请输入
|