Files
starRiverProperty/frontend-source/decompiled/cwos-portal/static/js/102.b3ed0fe7e9daa3c0fb8e.js
T
反编译工作区 4f79e10bd6 chore: cleanup stray nested directories in frontend-source
Former-commit-id: 376f94edd602d3dfed1cbada6e08361ee7b08e73
2026-04-29 13:07:40 +08:00

1 line
4.6 KiB
JavaScript

webpackJsonp([102],{FL1v:function(t,e,a){(t.exports=a("FZ+f")(!1)).push([t.i,"\n.left[data-v-1d2091ce] {\n display: inline-block;\n margin-right: 20px;\n position: absolute;\n right: 110px;\n}\n",""])},PjOT:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Dd8w"),s=a.n(n),o=(a("yfAY"),a("x1DN")),l=a("vMX1"),i=a("MZdq"),r=a("xT6B"),c={mixins:[a("Bv8y").a],data:function(){return{formateDate:r.a,total:10,tableData:[],tableLoading:!1,statusOptions:[],form:{status:"",rowsOfPage:10,currentPage:1},statusList:[{label:"全部",value:""},{label:"已启用",value:"1"},{label:"已禁用",value:"2"}],authId:null,service:null}},created:function(){this.initAuth(),this.fetchData()},methods:{initAuth:function(){var t=this;this.$route.matched.forEach(function(e){e.meta&&e.meta.service&&(t.authId=e.meta.service.channel,t.service=e.meta.service)})},fetchData:function(){var t=this;this.tableLoading=!0,i.b.getChannelData(s()({},this.form,{applicationId:this.applicationIdStore})).then(function(e){setTimeout(function(){t.tableData=e.data,t.total=e.total,t.tableLoading=!1},500)}).catch(function(e){t.tableData=[],t.tableLoading=!1})},enable:function(t){var e=this;this.$set(t,"loading",!0),i.b.enable(t.dictId,this.applicationIdStore).then(function(a){e.$set(t,"loading",!1),e.fetchData(),e.$message.success(a.message)}).catch(function(a){e.$message.error(a.message),e.$set(t,"loading",!1),e.fetchData()})},disable:function(t){var e=this;this.$confirm("是否确定禁用?","确认禁用",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$set(t,"loading",!0),i.b.disable(t.dictId,e.applicationIdStore).then(function(a){e.$set(t,"loading",!1),e.fetchData(),e.$message.success(a.message)}).catch(function(a){e.$set(t,"loading",!1),e.$message.error(a.message),e.fetchData()})}).catch(function(){})}},components:{searchPage:l.a,cascader:o.a}},u={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-card",{attrs:{shadow:"hover"}},[a("el-form",{attrs:{inline:"","label-width":"70px"}},[a("el-form-item",{attrs:{label:"渠道状态"}},[a("el-select",{staticStyle:{width:"202px"},attrs:{placeholder:"全部"},on:{change:t.fetchData},model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},t._l(t.statusList,function(t,e){return a("el-option",{key:e,attrs:{label:t.label,value:t.value}})}),1)],1)],1),t._v(" "),a("search-page",{attrs:{pageSize:t.form.rowsOfPage,pageNum:t.form.currentPage,total:t.total},on:{"update:pageSize":function(e){return t.$set(t.form,"rowsOfPage",e)},"update:page-size":function(e){return t.$set(t.form,"rowsOfPage",e)},"update:pageNum":function(e){return t.$set(t.form,"currentPage",e)},"update:page-num":function(e){return t.$set(t.form,"currentPage",e)},change:t.fetchData}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tableLoading,expression:"tableLoading"}],staticClass:"table_expand",attrs:{data:t.tableData}},[a("el-table-column",{attrs:{type:"index",label:"序号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"dictId","show-overflow-tooltip":"",label:"渠道编码"}}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"渠道名称","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"createTime",label:"更新时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t.formateDate(new Date(e.row.createTime),"yyyy-MM-dd hh:mm:ss")))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("status-point",{attrs:{disabled:2==t.row.status,value:t.row.status}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"status",width:100,label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.status?a("el-button",{directives:[{name:"auth",rawName:"v-auth",value:{authId:t.authId,id:t.service.channelEnable},expression:"{ authId, id: service.channelEnable}"}],attrs:{size:"middle",type:"text",loading:e.row.loading},on:{click:function(a){return t.disable(e.row)}}},[t._v("禁用")]):a("el-button",{directives:[{name:"auth",rawName:"v-auth",value:{authId:t.authId,id:t.service.channelEnable},expression:"{ authId, id: service.channelEnable}"}],attrs:{size:"middle",type:"text",loading:e.row.loading},on:{click:function(a){return t.enable(e.row)}}},[t._v("启用")])]}}])})],1)],1)],1)],1)},staticRenderFns:[]};var d=a("VU/8")(c,u,!1,function(t){a("yjqZ")},"data-v-1d2091ce",null);e.default=d.exports},yjqZ:function(t,e,a){var n=a("FL1v");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("9b206f28",n,!0)}});