canyin-project/ybcy/views/channel/index20240524/static/js/chunk-03ce8e11.0134c94a.js

1 line
8.8 KiB
JavaScript
Raw Permalink Normal View History

2024-11-01 16:07:54 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-03ce8e11"],{"648d":function(e,t,a){"use strict";var r=a("6f4c"),n=a.n(r);n.a},"6f4c":function(e,t,a){},"9d68":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"outmain ba_f"},[e._m(0),a("div",{staticClass:"flex-bet"},[a("el-button",{staticClass:"mar_t20",attrs:{type:"primary",size:"medium"},on:{click:e.handleEdit}},[e._v("新增公告")]),a("el-form",{staticClass:"demo-form-inline searchform",attrs:{inline:!0,model:e.formInline}},[a("div",{staticClass:"mar_t20"},[a("el-form-item",{staticClass:"mar_l20",attrs:{label:"公告类型"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.formInline.noticeType,callback:function(t){e.$set(e.formInline,"noticeType",t)},expression:"formInline.noticeType"}},e._l(e.ggOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.onSearch}},[e._v("搜索")])],1)],1)])],1),a("div",{staticClass:"tabledata mar_t20"},[a("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}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{prop:"sort",label:"排序"}}),a("el-table-column",{attrs:{prop:"title",label:"公告标题"}}),a("el-table-column",{attrs:{prop:"createdAt",label:"发布时间"}}),a("el-table-column",{attrs:{prop:"noticeType",label:"公告类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex"},["1"==t.row.noticeType?a("div",[e._v("前台公告")]):e._e(),"2"==t.row.noticeType?a("div",[e._v("后台公告")]):e._e()])]}}])}),a("el-table-column",{attrs:{prop:"display",label:"显示状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{},[a("el-switch",{attrs:{"active-value":"1","inactive-value":"2"},on:{change:function(a){return e.changeSwitch(t.row)}},model:{value:t.row.display,callback:function(a){e.$set(t.row,"display",a)},expression:"scope.row.display"}})],1)]}}])}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex"},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.handleEdit(t.row)}}},[e._v("编辑")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.handleDelete(t.row)}}},[e._v("删除")])],1)]}}])})],1),a("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}}),a("edit",{ref:"edit",on:{fetchData:e.fetchData}})],1)])},n=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"shuju_title mar_b20"},[a("div",{staticClass:"shuju_title_text"},[a("span",[e._v("公告管理")])])])}],i=(a("d81d"),a("96cf"),a("1da1")),o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{},[a("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}},[a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"排序",prop:"sort"}},[a("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),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"添加"==this.title,expression:"this.title=='添加'"}],attrs:{label:"公告类型",prop:"noticeType",required:!0}},[a("el-radio",{attrs:{label:"1"},model