1 line
7.5 KiB
JavaScript
1 line
7.5 KiB
JavaScript
![]() |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8e1a7a5c"],{"1b19":function(e,t,r){},"6d5c":function(e,t,r){"use strict";var a=r("1b19"),n=r.n(a);n.a},bf2b:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"outmain ba_f"},[e._m(0),r("el-button",{staticClass:"mar_t20",attrs:{type:"primary",size:"medium"},on:{click:e.handleEdit}},[e._v("新增帮助")]),r("div",{staticClass:"tabledata mar_t20"},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{"element-loading-text":e.elementLoadingText,data:e.list,stripe:""},on:{"selection-change":e.setSelectRows}},[r("el-table-column",{attrs:{type:"selection",width:"55"}}),r("el-table-column",{attrs:{prop:"sort",label:"排序"}}),r("el-table-column",{attrs:{prop:"title",label:"标题"}}),r("el-table-column",{attrs:{prop:"createdAt",label:"发布时间"}}),r("el-table-column",{attrs:{prop:"otherType",label:"帮助类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"flex"},["1"==t.row.otherType?r("div",[e._v("用户端")]):e._e(),"2"==t.row.otherType?r("div",[e._v("商户端")]):e._e()])]}}])}),r("el-table-column",{attrs:{prop:"display",label:"显示状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{},[r("el-switch",{attrs:{"active-value":"1","inactive-value":"2"},on:{change:function(r){return e.changeSwitch(t.row)}},model:{value:t.row.display,callback:function(r){e.$set(t.row,"display",r)},expression:"scope.row.display"}})],1)]}}])}),r("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"flex"},[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.handleEdit(t.row)}}},[e._v("编辑")]),r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.handleDelete(t.row)}}},[e._v("删除")])],1)]}}])})],1),r("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:e.page.total,"page-size":e.page.pagesize,"current-page":e.page.currentPage},on:{"update:currentPage":function(t){return e.$set(e.page,"currentPage",t)},"update:current-page":function(t){return e.$set(e.page,"currentPage",t)},"current-change":e.handleCurrentChange}}),r("edit",{ref:"edit",on:{fetchData:e.fetchData}})],1)],1)},n=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"shuju_title mar_b20"},[r("div",{staticClass:"shuju_title_text"},[r("span",[e._v("帮助中心")])])])}],i=(r("d81d"),r("96cf"),r("1da1")),s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{},[r("el-dialog",{attrs:{title:e.title,visible:e.dialogFormVisible,width:"1000px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t},close:e.close}},[r("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"排序",prop:"sort"}},[r("el-input",{attrs:{autocomplete:"off",type:"number",placeholder:"请输入排序"},model:{value:e.form.sort,callback:function(t){e.$set(e.form,"sort","string"===typeof t?t.trim():t)},expression:"form.sort"}})],1),r("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"添加"==this.title,expression:"this.title=='添加'"}],attrs:{label:"帮助类型",prop:"otherType",required:!0}},[r("el-radio",{attrs:{label:"1"},model:{value:e.form.otherType,callback:function(t){e.$set(e.form,"otherType",t)},expression:"form.otherType"}},[e._v("用户端")]),r("el-radio",{attrs:{label:"2"},model:{value:e.form.otherType,callback:function(t){e.$set(e.form,"otherType",t)},expression:"form.otherType"}},[e._v("商户端")])],1),r("el-form-item",{attrs:{label:"标题",prop:"title",required:!0}},[r("el-input",{attrs:{autocomplete:"off",placeholder:"请输入标题"},model:{value:e.form.title,callback:function(t){e.$set(e.form,"title","string"===typeof t?t.trim():t)},expression:"form.title"}})],1),r("el-form-item",{attrs:{label:"详情",prop:"body"}},[r("baidu-ueditor",{attrs:{content:e.form.b
|