travel/service/public/static/js/chunk-3050cccd.e13bba0a.js

1 line
10 KiB
JavaScript
Raw Normal View History

2024-10-22 10:52:29 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3050cccd"],{"16c2":function(t,e,i){},b58d:function(t,e,i){"use strict";i("16c2")},deb2:function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"scheduling_head"},[i("div",{staticClass:"head_lable"},[t._v("产品编号:")]),t._l(t.liveroomList,(function(e,o){return i("div",{key:o,staticClass:"scheduling_tab",class:t.activeName==e.id?"active":"",on:{click:function(e){return t.handleClick(o)}}},[t._v(" "+t._s(e.name)+" ")])})),i("el-button",{staticStyle:{"margin-left":"210px"},attrs:{type:"primary"},on:{click:t.handleEdit}},[t._v("编辑")])],2),i("div",{staticClass:"scheduling_tab_pana"},t._l(t.roomWorksList,(function(e){return i("div",{staticClass:"table-list"},[i("div",{staticClass:"table-list_item"},[i("div",{staticClass:"tit"},[t._v(" "+t._s(e.date)+" ")])]),i("div",{staticClass:"table-list_item"},[i("div",{staticClass:"tit"},[t._v(" "+t._s(e.date_name)),i("i",{staticClass:"el-icon-circle-plus",on:{click:function(i){return t.handleAdds("",e.date)}}})])]),t._l(e.work,(function(o){return i("div",{staticClass:"table-list-box"},[i("div",{staticClass:"border",on:{dblclick:function(i){return t.handleAdds(o,e.date)}}},[i("div",{staticStyle:{"margin-bottom":"10px"}},[t._v(" AM "+t._s(t.extractTime(o.start))+"~"+t._s(t.extractTime(o.end))+" ")]),i("div",[t._v("主播:"+t._s(o.zhubo.name))]),i("div",[t._v("中控:"+t._s(o.zhongkong.name))]),i("div",[t._v("路线:"+t._s(o.route?o.route:"无"))])])])}))],2)})),0),t.addOrUpdateVisible?i("liveroom-update",{ref:"addOrUpdate",on:{update:t.saveProducts}}):t._e(),t.roomVisible?i("roomWorksUpdate",{ref:"roomUpdate",attrs:{title:t.title},on:{update:t.saveRoomWorks}}):t._e()],1)},r=[],a=i("5530"),s=i("c7eb"),n=i("1da1"),l=(i("99af"),i("ac1f"),i("466d"),i("b775"));function c(){return Object(l["a"])({url:"/admin/liveroom/index",method:"get"})}function d(t){return Object(l["a"])({url:"/admin/liveroom/roomWorks",method:"get",params:{live_room_id:t}})}function u(t){return Object(l["a"])({url:"/admin/liveroom/availableZhubo",method:"get",params:t})}function m(t){return Object(l["a"])({url:"/admin/liveroom/saveProducts",method:"post",data:t})}function f(t){return Object(l["a"])({url:"/admin/liveroom/saveRoomWorks",method:"post",data:t})}var h=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{title:"编辑直播间",visible:t.dialogVisible,width:"30%","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("el-form",{ref:"form",attrs:{model:t.form,"label-width":"80px"}},[i("el-form-item",{attrs:{label:"直播间id",prop:"product_ids"}},[i("el-input",{model:{value:t.form.product_ids,callback:function(e){t.$set(t.form,"product_ids",e)},expression:"form.product_ids"}})],1)],1),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:t.handleEdit}},[t._v("确 定")])],1)],1)},v=[],p={props:{},data:function(){return{dialogVisible:!1,form:{product_ids:"",live_room_id:""}}},methods:{init:function(t,e){this.dialogVisible=!0,this.form.product_ids=e,this.form.live_room_id=t,console.log(this.form)},handleClose:function(){this.dialogVisible=!1},handleEdit:function(){this.dialogVisible=!1,this.$emit("update",this.form)}}},b=p,_=i("2877"),g=Object(_["a"])(b,h,v,!1,null,"545e3cb5",null),k=g.exports,x=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{title:t.title,visible:t.dialogVisible,width:"30%","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("el-form",{ref:"form",attrs:{rules:t.rules,model:t.form,"label-width":"80px"}},[i("el-form-item",{attrs:{label:"直播间",prop:"live_room_id"}},[i("el-select",{attrs:{placeholder:"请选择直播间"},model:{value:t.form.live_room_id,callback:function(e){t.$set(t.form,"live_room_id",e)},expression:"form.live_