You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
5.9 KiB
1 lines
5.9 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-667548d1"],{"1c08":function(t,e,n){"use strict";var r=n("f909"),i=n.n(r);i.a},"575d":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"goodList"},[n("Form",{ref:"formValidate",staticClass:"tabform",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition,inline:""}},[n("FormItem",{attrs:{label:"视频搜索:","label-for":"store_name"}},[n("Input",{staticClass:"input-add mr14",attrs:{placeholder:"请输入视频简介/ID"},model:{value:t.formValidate.keyword,callback:function(e){t.$set(t.formValidate,"keyword",e)},expression:"formValidate.keyword"}}),n("Button",{attrs:{type:"primary"},on:{click:function(e){return t.userSearchs()}}},[t._v("查询")])],1)],1),n("Table",{ref:"table",staticClass:"mr-20",attrs:{"no-data-text":"暂无数据","no-filtered-data-text":"暂无筛选结果",columns:t.columns,data:t.tableList,loading:t.loading},scopedSlots:t._u([{key:"image",fn:function(t){var e=t.row;return[n("viewer",[n("div",{staticClass:"tabBox_img"},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.image,expression:"row.image"}]})])])]}},{key:"desc",fn:function(e){var r=e.row;return[n("Tooltip",{attrs:{"max-width":"200",placement:"bottom"}},[n("span",{staticClass:"line2"},[t._v(t._s(r.desc))]),n("p",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(r.desc))])])]}}])}),n("div",{staticClass:"acea-row row-right page"},[n("Page",{attrs:{total:t.total,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1)],1)},i=[],o=n("a34a"),a=n.n(o),c=n("2f62"),u=n("b7be");function s(t,e,n,r,i,o,a){try{var c=t[o](a),u=c.value}catch(s){return void n(s)}c.done?e(u):Promise.resolve(u).then(r,i)}function d(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){s(o,r,i,a,c,"next",t)}function c(t){s(o,r,i,a,c,"throw",t)}a(void 0)}))}}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(n,!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var g={name:"index",data:function(){return{formValidate:{page:1,limit:10,keyword:""},total:0,loading:!1,grid:{xl:10,lg:10,md:12,sm:24,xs:24},tableList:[],currentid:0,videoRow:{},columns:[{title:"ID",key:"id",width:80},{title:"视频",slot:"image",minWidth:90},{title:"视频介绍",slot:"desc",minWidth:150}],images:[]}},computed:f({},Object(c["e"])("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:120},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){var t=this,e={width:60,align:"center",render:function(e,n){var r=n.row.id,i=!1;i=t.currentid===r;var o=t;return e("div",[e("Radio",{props:{value:i},on:{"on-change":function(){if(o.currentid=r,t.videoRow=n.row,t.videoRow.id){if("video"===t.$route.query.fodder){var e={image:t.videoRow.image,video_id:t.videoRow.id,video_url:t.videoRow.video_url};form_create_helper.set("video",e),form_create_helper.close("video")}}else t.$Message.warning("请先选择商品")}}})])}};this.columns.unshift(e)},mounted:function(){this.getList()},methods:{pageChange:function(t){this.formValidate.page=t,this.getList()},getList:function(){var t=this;this.loading=!0,Object(u["e"])(this.formValidate).then(function(){var e=d(a.a.mark((function e(n){var r;return a.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=n.data,t.tableList=r.list,t.total=n.data.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},userSearchs:function(){this.formValidate.page=1,this.getList()},clear:function(){this.videoRow.id="",this.currentid=""}}},v=g,h=(n("1c08"),n("2877")),p=Object(h["a"])(v,r,i,!1,null,"6695f056",null);e["default"]=p.exports},b7be:function(t,e,n){"use strict";n.d(e,"e",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"g",(function(){return a})),n.d(e,"i",(function(){return c})),n.d(e,"h",(function(){return u})),n.d(e,"k",(function(){return s})),n.d(e,"j",(function(){return d})),n.d(e,"b",(function(){return l})),n.d(e,"f",(function(){return f})),n.d(e,"c",(function(){return m})),n.d(e,"a",(function(){return g}));var r=n("b6bd");function i(t){return Object(r["a"])({url:"/marketing/video/index",method:"get",params:t})}function o(t){return Object(r["a"])({url:"/marketing/video/info/".concat(t),method:"get"})}function a(t,e){return Object(r["a"])({url:"/marketing/video/save/".concat(e),method:"post",data:t})}function c(t){return Object(r["a"])({url:"/marketing/video/set_status/".concat(t.id,"/").concat(t.status),method:"get"})}function u(t){return Object(r["a"])({url:"/marketing/video/set_recommend/".concat(t.id,"/").concat(t.recommend),method:"get"})}function s(t){return Object(r["a"])({url:"/marketing/video/verify/".concat(t.id,"/").concat(t.verify),method:"get"})}function d(t){return Object(r["a"])({url:"/marketing/video/take_down/".concat(t),method:"get"})}function l(t){return Object(r["a"])({url:"/marketing/video/comment",method:"get",params:t})}function f(t,e){return Object(r["a"])({url:"/marketing/video/comment/reply/".concat(e),method:"post",data:t})}function m(t,e){return Object(r["a"])({url:"/marketing/video/comment/reply/".concat(e),method:"get",params:t})}function g(t){return Object(r["a"])({url:"/marketing/video/comment/fictitious/".concat(t),method:"get"})}},f909:function(t,e,n){}}]); |