0.chunk.js
6.58 KB
webpackJsonp([0],{42:function(t,e,n){"use strict";function a(t){i||n(47)}Object.defineProperty(e,"__esModule",{value:!0});var r=n(43),c=n(54),i=!1,s=n(14),o=a,u=s(r.a,c.a,!1,o,"data-v-14e4fede",null);u.options.__file="src\\views\\layout.vue",e.default=u.exports},43:function(t,e,n){"use strict";var a=n(44),r=n(48),c=n(51);e.a={data:function(){var t=this;this.$createElement;return{columns:[{title:"skn",key:"skn",width:100},{title:"商品",width:180,render:function(t,e){var n=e.row;return t(r.a,{props:{src:n.src,skn:n.skn}})}},{title:"相似图",key:"imgs",render:function(e,n){var a=n.row,r=t;return e(c.a,{props:{list:a.images},on:{"on-change":r.onClickForOne}})}},{title:"操作",width:150,render:function(e,n){var a=n.row;return e("div",null,[e("i-button",{on:{click:function(){return t.onClickForAll(a)}}},["全部通过"])])}}],list:[{src:"http://mpic.tiankong.com/558/90b/55890bb5a495de65cb4e1058986d95dc/640.jpg",skn:"12134",images:[{src:"http://mpic.tiankong.com/558/90b/55890bb5a495de65cb4e1058986d95dc/640.jpg",isOk:1},{src:"http://mpic.tiankong.com/558/90b/55890bb5a495de65cb4e1058986d95dc/640.jpg?t=1",isOk:1},{src:"http://mpic.tiankong.com/558/90b/55890bb5a495de65cb4e1058986d95dc/640.jpg?t=1",isOk:1},{src:"http://mpic.tiankong.com/558/90b/55890bb5a495de65cb4e1058986d95dc/640.jpg?t=1",isOk:1},{src:"http://mpic.tiankong.com/558/90b/55890bb5a495de65cb4e1058986d95dc/640.jpg?t=1",isOk:1},{src:"http://mpic.tiankong.com/558/90b/55890bb5a495de65cb4e1058986d95dc/640.jpg?t=1",isOk:1},{src:"http://mpic.tiankong.com/558/90b/55890bb5a495de65cb4e1058986d95dc/640.jpg?t=1",isOk:1},{src:"http://mpic.tiankong.com/558/90b/55890bb5a495de65cb4e1058986d95dc/640.jpg?t=1",isOk:1},{src:"http://mpic.tiankong.com/558/90b/55890bb5a495de65cb4e1058986d95dc/640.jpg?t=1",isOk:1}]}],searchItem:{skn:"",startSkn:"",endSkn:""},pager:{total:0,pageSize:10,current:1}}},created:function(){this.api=new a.a,this.getList()},methods:{onPageChange:function(t){this.pager.current=t,this.getList()},onClickForSearch:function(){this.getList()},onClickForClear:function(){this.searchItem.skn="",this.searchItem.startSkn="",this.searchItem.endSkn=""},onClickForAll:function(t){this.api.confirmAll().then(function(t){})},onClickForOne:function(){console.log("huangtao"),this.getList()},getList:function(){this.api.list(Object.assign({},this.searchItem,this.pager)).then(function(t){})}},components:{ProductImage:r.a,CheckImage:c.a}}},44:function(t,e,n){"use strict";function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=n(4),c=(n.n(r),function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}()),i=r.create({baseURL:"/api/"}),s=function(){function t(){a(this,t),this.request=i}return c(t,[{key:"list",value:function(t){return this.request.post("/label/list",t).then(function(t){return t.data})}},{key:"confirm",value:function(t){return this.request.post("/label/confirm",t).then(function(t){return t.data})}},{key:"cancel",value:function(t){return this.request.post("/label/cancel",t).then(function(t){return t.data})}},{key:"confirmAll",value:function(t){return this.request.post("/label/all",t).then(function(t){return t.data})}}]),t}();e.a=s},45:function(t,e,n){"use strict";e.a={props:["skn","src"]}},46:function(t,e,n){"use strict";var a=n(44);e.a={props:["list"],created:function(){this.api=new a.a},methods:{onChange:function(t){var e=this;t.isOk?this.api.confirm(t).then(function(){e.$emit("on-change")}).catch(function(){}):this.api.cancel(t).then(function(){e.$emit("on-change")}).catch(function(){})}}}},47:function(t,e){},48:function(t,e,n){"use strict";function a(t){i||n(49)}var r=n(45),c=n(50),i=!1,s=n(14),o=a,u=s(r.a,c.a,!1,o,"data-v-cb514a2a",null);u.options.__file="src\\views\\components\\product-image.vue",e.a=u.exports},49:function(t,e){},50:function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"product-image"},[n("img",{attrs:{src:t.src,alt:"",width:"100%"}})])},r=[];a._withStripped=!0;var c={render:a,staticRenderFns:r};e.a=c},51:function(t,e,n){"use strict";function a(t){i||n(52)}var r=n(46),c=n(53),i=!1,s=n(14),o=a,u=s(r.a,c.a,!1,o,"data-v-14e3e544",null);u.options.__file="src\\views\\components\\check-image.vue",e.a=u.exports},52:function(t,e){},53:function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"check-image"},t._l(t.list,function(e){return n("div",{staticClass:"check-image-cell"},[n("img",{attrs:{src:e.src,width:"100%"}}),t._v(" "),n("Checkbox",{attrs:{value:1==e.isOk},on:{"on-change":function(n){t.onChange(e)}}},[t._v("检查")])],1)}))},r=[];a._withStripped=!0;var c={render:a,staticRenderFns:r};e.a=c},54:function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"layout"},[n("Layout",[n("Header",[n("Menu",{attrs:{mode:"horizontal",theme:"dark","active-name":"1"}},[n("div",{staticClass:"title"},[t._v("YOHO!人工智能平台")])])],1),t._v(" "),n("Content",{style:{padding:"0 50px"}},[n("Breadcrumb",{style:{margin:"20px 0"}},[n("BreadcrumbItem",[t._v("首页")]),t._v(" "),n("BreadcrumbItem",[t._v("标注")])],1),t._v(" "),n("Card",[n("div",[n("Form",{ref:"from",attrs:{inline:"","label-width":70}},[n("FormItem",{attrs:{label:"skn"}},[n("Input",{attrs:{type:"text",placeholder:"skn"},model:{value:t.searchItem.skn,callback:function(e){t.$set(t.searchItem,"skn",e)},expression:"searchItem.skn"}})],1),t._v(" "),n("FormItem",{attrs:{label:"开始skn"}},[n("Input",{attrs:{type:"text",placeholder:"skn"},model:{value:t.searchItem.startSkn,callback:function(e){t.$set(t.searchItem,"startSkn",e)},expression:"searchItem.startSkn"}})],1),t._v(" "),n("FormItem",{attrs:{label:"结束skn"}},[n("Input",{attrs:{type:"text",placeholder:"skn"},model:{value:t.searchItem.endSkn,callback:function(e){t.$set(t.searchItem,"endSkn",e)},expression:"searchItem.endSkn"}})],1),t._v(" "),n("Button",{attrs:{type:"primary"},on:{click:t.onClickForSearch}},[t._v("搜索")]),t._v(" "),n("Button",{attrs:{type:"error"},on:{click:t.onClickForClear}},[t._v("清除")])],1)],1),t._v(" "),n("Table",{attrs:{columns:t.columns,data:t.list}}),t._v(" "),n("Page",{staticStyle:{"margin-top":"20px","text-align":"right"},attrs:{total:t.pager.total,current:t.pager.current,"page-size":t.pager.pageSize},on:{"on-change":t.onPageChange}})],1)],1),t._v(" "),n("Footer",{staticClass:"layout-footer-center"},[t._v("2011-2018 © YOHO")])],1)],1)},r=[];a._withStripped=!0;var c={render:a,staticRenderFns:r};e.a=c}});