1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7104a05c"],{"575d":function(t,e,i){"use strict";i.r(e);var r=i("a34a"),a=i.n(r),o=i("2f62"),n=i("b7be");function s(t,e,i,r,a,o,n){try{var s=t[o](n),l=s.value}catch(t){return void i(t)}s.done?e(l):Promise.resolve(l).then(r,a)}function l(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,r)}return i}function c(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var d={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:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?l(i,!0).forEach((function(e){c(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):l(i).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},Object(o.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,i){var r=i.row.id,a=!1;a=t.currentid===r;var o=t;return e("div",[e("Radio",{props:{value:a},on:{"on-change":function(){if(o.currentid=r,t.videoRow=i.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(n.Kb)(this.formValidate).then(function(){var e,i=(e=a.a.mark((function e(i){var r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=i.data,t.tableList=r.list,t.total=i.data.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})),function(){var t=this,i=arguments;return new Promise((function(r,a){var o=e.apply(t,i);function n(t){s(o,r,a,n,l,"next",t)}function l(t){s(o,r,a,n,l,"throw",t)}n(void 0)}))});return function(t){return i.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=""}}},u=(i("a243"),i("2877")),f=Object(u.a)(d,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"goodList"},[i("Form",{ref:"formValidate",staticClass:"tabform",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition,inline:""}},[i("FormItem",{attrs:{label:"视频搜索:","label-for":"store_name"}},[i("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"}}),i("Button",{attrs:{type:"primary"},on:{click:function(e){return t.userSearchs()}}},[t._v("查询")])],1)],1),i("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[i("viewer",[i("div",{staticClass:"tabBox_img"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.image,expression:"row.image"}]})])])]}},{key:"desc",fn:function(e){var r=e.row;return[i("Tooltip",{attrs:{"max-width":"200",placement:"bottom"}},[i("span",{staticClass:"line2"},[t._v(t._s(r.desc))]),i("p",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(r.desc))])])]}}])}),i("div",{staticClass:"acea-row row-right page"},[i("Page",{attrs:{total:t.total,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1)],1)}),[],!1,null,"71fc664e",null);e.default=f.exports},"978d":function(t,e,i){},a243:function(t,e,i){"use strict";var r=i("978d");i.n(r).a}}]);
|