canyin-project/ybcy/views/channel/index20240524/static/js/chunk-9dce1922.bedf7bac.js

1 line
19 KiB
JavaScript
Raw Permalink Normal View History

2024-11-01 16:07:54 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9dce1922"],{a066:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"outmain ba_f heighthv pad_20 bor_rad5"},[e._m(0),a("div",{staticClass:"pad_20 flex-bet flex-y-top"},[a("el-form",{staticClass:"demo-form-inline searchform",attrs:{inline:!0,model:e.formInline}},[a("el-form-item",{attrs:{label:"广告标题"}},[a("el-input",{attrs:{size:"medium",placeholder:"请输入广告标题"},on:{input:e.onSearch},model:{value:e.formInline.name,callback:function(t){e.$set(e.formInline,"name",t)},expression:"formInline.name"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.onSearch}},[e._v("搜索")])],1)],1)],1),a("div",[a("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.handleEdit}},[e._v("添加广告")])],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:{data:e.list,"element-loading-text":e.elementLoadingText,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:"name",label:"标题","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"icon",label:"图片"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",{staticClass:"imgbox"},[a("img",{staticClass:"tabimg",attrs:{src:e.row.icon}})])]}}])}),a("el-table-column",{attrs:{prop:"createdAt",label:"发布时间","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"启用状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tooltip",{attrs:{content:1==t.row.display?"开启":"禁用",placement:"top"}},[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("广告管理")])])])}],s=(a("d81d"),a("b0c0"),a("96cf"),a("1da1")),r=a("e876"),o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"goodclassedit"},[a("el-dialog",{attrs:{title:e.title,visible:e.dialogFormVisible,width:"800px","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":"120px"}},[a("el-form-item",{attrs:{label:"排序"}},[a("el-input",{attrs:{type:"number",placeholder:"请输入排序"},model:{value:e.form.sort,callback:function(t){e.$set(e.form,"sort",t)},expression:"form.sort"}})],1),a("el-form-item",{attrs:{label:"广告标题",prop:"name",required:!0}},[a("el-input",{attrs:{placeholder:"请输入广告标题"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"图片",prop:"icon",required:!0}},[e.form.icon?a("div",{staticClass:"uploadSource bor_de rel flex"},[a("label",{staticClass:"statusLabe