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
14 KiB
1 line
14 KiB
3 years ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-767c6316"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),Math.easeInOutQuad=function(e,t,a,n){return e/=n/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,a){var i=o(),s=e-i,c=20,u=0;t="undefined"===typeof t?500:t;var d=function e(){u+=c;var o=Math.easeInOutQuad(u,i,s,t);r(o),u<t?n(e):a&&"function"===typeof a&&a()};d()}},"25f4":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"custom-page"},[a("div",{staticClass:"toolbar"},[a("el-button",{attrs:{type:"success",size:"mini"},on:{click:e.addBar}},[e._v("添加页面")])],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData.records,border:"","row-key":"id"}},[a("el-table-column",{attrs:{prop:"name",label:"页面名称"}}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间"}}),a("el-table-column",{attrs:{prop:"status",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.preventDefault(),e.renovation(t.row)}}},[e._v(" 装修 ")]),a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.preventDefault(),e.checkRow(t.row)}}},[e._v(" 查看 ")]),a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.preventDefault(),e.editRow(t.row)}}},[e._v(" 修改 ")]),a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.preventDefault(),e.deleteRow(t.row)}}},[e._v(" 删除 ")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableData.total>0,expression:"tableData.total > 0"}],attrs:{limit:e.formParams.pageSize,page:e.formParams.start,total:Number(e.tableData.total)},on:{"update:limit":function(t){return e.$set(e.formParams,"pageSize",t)},"update:page":function(t){return e.$set(e.formParams,"start",t)},pagination:e.getProductCategory}}),a("edit-dialog",{ref:"edit",attrs:{"dialog-visible":e.dialog.isVisible,type:e.dialog.type},on:{close:e.editClose,success:e.getProductCategory}})],1)},r=[],o=(a("96cf"),a("1da1")),i=a("6d0e"),s=a("333d"),c=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{staticClass:"group-dialog",attrs:{"close-on-click-modal":!1,title:e.title,type:e.type,visible:e.isVisible,width:"60%",top:"50px"},on:{"update:visible":function(t){e.isVisible=t}}},[a("div",{staticClass:"add-dialog-component"},[a("el-form",{ref:"form",attrs:{model:e.params,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"页面名称"}},[a("el-input",{attrs:{disabled:e.isCheck},model:{value:e.params.name,callback:function(t){e.$set(e.params,"name",t)},expression:"params.name"}})],1)],1),a("div",{staticClass:"add-btn-wrap"},[a("el-button",{staticClass:"add",attrs:{type:"primary",size:"small"},on:{click:e.onSubmit}},[e._v("确定")]),a("el-button",{staticClass:"add",attrs:{size:"small"},on:{click:e.close}},[e._v("取消")])],1)],1)])},u=[],d=(a("c740"),a("a434"),1e3),l={props:{dialogVisible:{type:Boolean,default:!1},type:{type:String,default:"add"}},data:function(){return{params:{config:"",isCustom:!0,isDelete:0,name:""},treeData:[]}},computed:{isVisible:{get:function(){return this.dialogVisible},set:function(){this.close(),this.reset()}},title:function(){var e={add:"添加页面",edit:"修改页面",check:"查看页面"};return e[this.type]},isCheck:function(){return"check"===this.type}},methods:{close:function(){this.$emit("close")},reset:function(){this.params={config:"",isCustom:!0,isDelete:0,name:""},this.treeData=[]},addCustom:function(){this.treeData.push({pla
|