Authored by htoooth

fix

webpackJsonp([0],{42:function(t,e,n){"use strict";function r(t){s||n(48)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(44),i=n(58),s=!1,c=n(14),o=r,u=c(a.a,i.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";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=n(4),i=(n.n(a),function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()),s=a.create({baseURL:"/api/"});s.interceptors.response.use(function(t){return 200!==t.data.code?Promise.reject(new Error("服务器出错")):t},function(t){return Promise.reject(t)});var c=function(){function t(){r(this,t),this.request=s}return i(t,[{key:"list",value:function(t){return this.request.post("/label/list",t).then(function(t){return t.data.data})}},{key:"confirm",value:function(t){return this.request.post("/label/confirm",t).then(function(t){return t.data.data})}},{key:"cancel",value:function(t){return this.request.post("/label/cancel",t).then(function(t){return t.data.data})}},{key:"confirmAll",value:function(t){return this.request.post("/label/all",t).then(function(t){return t.data.data})}},{key:"getSortList",value:function(){return this.request.post("/label/sortlist",{}).then(function(t){return t.data.data})}}]),t}();e.a=c},44:function(t,e,n){"use strict";var r=n(43),a=n(49),i=n(52),s=n(55);e.a={data:function(){var t=this;this.$createElement;return{columns:[{title:"商品",width:180,render:function(t,e){var n=e.row;return t(a.a,{props:{src:n.product.url,skn:n.product.productSkn}})}},{title:"相似图",key:"imgs",render:function(e,n){var r=n.row,a=t;return e(i.a,{props:{list:r.imageList},on:{"on-change":a.onClickForOne}})}},{title:"操作",width:150,render:function(e,n){var r=n.row;return e("div",null,[e("i-button",{on:{click:function(){return t.onClickForAll(r)}}},["全部通过"])])}}],list:[],searchItem:{productSkn:"",startSkn:"",endSkn:"",source:0,maxSortId:0,middleSortId:0},sortList:[],pager:{rows:0,size:10,page:1}}},created:function(){this.api=new r.a,this.getList()},methods:{onPageChange:function(t){this.pager.page=t,this.getList()},onClickForSearch:function(){this.getList()},onClickForClear:function(){this.searchItem.productSkn="",this.searchItem.startSkn="",this.searchItem.endSkn="",this.searchItem.source=0,this.sortList=[]},onClickForAll:function(t){var e=this,n=t.imageList.map(function(t){return t.imageId}),r={imageId:n,isMark:1,productId:t.product.productId};this.api.confirmAll(r).then(function(n){t.imageList.forEach(function(t){t.isMark=1}),e.$Message.info("更新成功")}).catch(function(){e.$Message.error("更新失败")})},onClickForOne:function(){},getList:function(){var t=this,e=this.$Message.loading({content:"查询中......",duration:0});this.api.list(Object.assign({},this.searchItem,this.pager)).then(function(n){t.list=n.boList,t.pager.page=n.page,t.pager.rows=n.rows,t.pager.size=n.size,t.$nextTick(function(){t.$refs.backtop.back()}),e()}).catch(function(){e(),t.$Message.error("查询失败")})}},components:{ProductImage:a.a,CheckImage:i.a,SelectCategory:s.a},watch:{sortList:{handler:function(t){this.searchItem.maxSortId=t[0]&&t[0].value||"",this.searchItem.midSortId=t[1]&&t[1].value||""},deep:!0}}}},45:function(t,e,n){"use strict";e.a={props:["src","skn"]}},46:function(t,e,n){"use strict";var r=n(43);e.a={props:["list"],created:function(){this.api=new r.a},methods:{onChange:function(t,e){var n=this,r=Object.assign({},t);r.imageId=[r.imageId],t.isMark?(r.isMark=0,this.api.cancel(r).then(function(){n.$emit("on-change"),t.isMark=0,n.$Message.info("更新成功")}).catch(function(){n.$Message.error("更新失败")})):(r.isMark=1,this.api.confirm(r).then(function(){n.$emit("on-change"),t.isMark=1,n.$Message.info("更新成功")}).catch(function(){n.$Message.error("更新失败")}))},splitUrl:function(t){return t=t.replace("{mode}",0),t=t.replace("{width}",150),t=t.replace("{height}",150)},onClick:function(t){this.onChange(t)}}}},47:function(t,e,n){"use strict";var r=n(43);e.a={props:{value:{type:Array,default:function(){return[]}}},data:function(){return{handleValue:this.value.map(function(t){return t.value}),categoryList:[]}},created:function(){this.api=new r.a,this.getSortList()},methods:{getSortList:function(){var t=this;this.api.getSortList().then(function(e){t.categoryList=e.list.map(function(t){var e={value:t.id,label:t.sortName};return t.subList&&(e.children=t.subList.map(function(t){return{value:t.id,label:t.sortName}})),e})})},selectChange:function(t){var e=(t.length,t[0]||""),n=t[1]||"",r=this.categoryList.find(function(t){return t.value==e})||{},a=r&&r.children&&r.children.find(function(t){return t.value==n})||{};this.$emit("input",[{value:e,label:r.label||""},{value:n,label:a.label||""}])}},watch:{value:function(t){this.handleValue=t.map(function(t){return t.value})}}}},48:function(t,e){},49:function(t,e,n){"use strict";function r(t){s||n(50)}var a=n(45),i=n(51),s=!1,c=n(14),o=r,u=c(a.a,i.a,!1,o,"data-v-cb514a2a",null);u.options.__file="src\\views\\components\\product-image.vue",e.a=u.exports},50:function(t,e){},51:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"product-image"},[n("span",[t._v(t._s(t.skn))]),t._v(" "),n("img",{attrs:{src:t.src,alt:"",width:"150px",height:"150px"}})])},a=[];r._withStripped=!0;var i={render:r,staticRenderFns:a};e.a=i},52:function(t,e,n){"use strict";function r(t){s||n(53)}var a=n(46),i=n(54),s=!1,c=n(14),o=r,u=c(a.a,i.a,!1,o,"data-v-14e3e544",null);u.options.__file="src\\views\\components\\check-image.vue",e.a=u.exports},53:function(t,e){},54:function(t,e,n){"use strict";var r=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("div",{on:{click:function(n){t.onClick(e,n)}}},[n("img",{attrs:{src:t.splitUrl(e.url),width:"150px",height:"150px"}})]),t._v(" "),n("Checkbox",{attrs:{value:1==e.isMark},on:{"on-change":function(n){t.onClick(e)}}},[t._v("检查")])],1)}))},a=[];r._withStripped=!0;var i={render:r,staticRenderFns:a};e.a=i},55:function(t,e,n){"use strict";function r(t){s||n(56)}var a=n(47),i=n(57),s=!1,c=n(14),o=r,u=c(a.a,i.a,!1,o,null,null);u.options.__file="src\\views\\components\\select-category.vue",e.a=u.exports},56:function(t,e){},57:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("Cascader",{attrs:{data:t.categoryList,value:t.handleValue,"change-on-select":""},on:{"on-change":t.selectChange}})},a=[];r._withStripped=!0;var i={render:r,staticRenderFns:a};e.a=i},58:function(t,e,n){"use strict";var r=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:"品类"}},[n("SelectCategory",{model:{value:t.sortList,callback:function(e){t.sortList=e},expression:"sortList"}})],1),t._v(" "),n("FormItem",{attrs:{label:"skn"}},[n("Input",{attrs:{type:"text",placeholder:"skn"},model:{value:t.searchItem.productSkn,callback:function(e){t.$set(t.searchItem,"productSkn",e)},expression:"searchItem.productSkn"}})],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("FormItem",{attrs:{label:"来源"}},[n("Select",{model:{value:t.searchItem.source,callback:function(e){t.$set(t.searchItem,"source",e)},expression:"searchItem.source"}},[n("Option",{attrs:{value:0}},[t._v("全部")]),t._v(" "),n("Option",{attrs:{value:1}},[t._v("有货")]),t._v(" "),n("Option",{attrs:{value:2}},[t._v("天猫")])],1)],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.rows,current:t.pager.page,"page-size":t.pager.size,"show-elevator":""},on:{"on-change":t.onPageChange}})],1)],1),t._v(" "),n("Footer",{staticClass:"layout-footer-center"},[t._v("2011-2018 © YOHO")])],1),t._v(" "),n("BackTop",{ref:"backtop"})],1)},a=[];r._withStripped=!0;var i={render:r,staticRenderFns:a};e.a=i}});
\ No newline at end of file
webpackJsonp([0],{42:function(t,e,n){"use strict";function r(t){s||(n(48),n(49))}Object.defineProperty(e,"__esModule",{value:!0});var a=n(44),i=n(59),s=!1,c=n(14),o=r,u=c(a.a,i.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";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=n(4),i=(n.n(a),function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()),s=a.create({baseURL:"/api/"});s.interceptors.response.use(function(t){return 200!==t.data.code?Promise.reject(new Error("服务器出错")):t},function(t){return Promise.reject(t)});var c=function(){function t(){r(this,t),this.request=s}return i(t,[{key:"list",value:function(t){return this.request.post("/label/list",t).then(function(t){return t.data.data})}},{key:"confirm",value:function(t){return this.request.post("/label/confirm",t).then(function(t){return t.data.data})}},{key:"cancel",value:function(t){return this.request.post("/label/cancel",t).then(function(t){return t.data.data})}},{key:"confirmAll",value:function(t){return this.request.post("/label/all",t).then(function(t){return t.data.data})}},{key:"getSortList",value:function(){return this.request.post("/label/sortlist",{}).then(function(t){return t.data.data})}}]),t}();e.a=c},44:function(t,e,n){"use strict";var r=n(43),a=n(50),i=n(53),s=n(56);e.a={data:function(){var t=this;this.$createElement;return{columns:[{title:"商品",width:180,render:function(t,e){var n=e.row;return t(a.a,{props:{src:n.product.url,skn:n.product.productSkn}})},className:"top"},{title:"相似图",key:"imgs",render:function(e,n){var r=n.row,a=t;return e(i.a,{props:{list:r.imageList},on:{"on-change":a.onClickForOne}})}},{title:"操作",width:150,render:function(e,n){var r=n.row;return e("div",null,[e("i-button",{on:{click:function(){return t.onClickForAll(r)}}},["全部通过"])])}}],list:[],searchItem:{productSkn:"",startSkn:"",endSkn:"",source:0,maxSortId:0,middleSortId:0},sortList:[],pager:{rows:0,size:10,page:1}}},created:function(){this.api=new r.a,this.getList()},methods:{onPageChange:function(t){this.pager.page=t,this.getList()},onClickForSearch:function(){this.getList()},onClickForClear:function(){this.searchItem.productSkn="",this.searchItem.startSkn="",this.searchItem.endSkn="",this.searchItem.source=0,this.sortList=[]},onClickForAll:function(t){var e=this,n=t.imageList.map(function(t){return t.imageId}),r={imageId:n,isMark:1,productId:t.product.productId};this.api.confirmAll(r).then(function(n){t.imageList.forEach(function(t){t.isMark=1}),e.$Message.info("更新成功")}).catch(function(){e.$Message.error("更新失败")})},onClickForOne:function(){},getList:function(){var t=this,e=this.$Message.loading({content:"查询中......",duration:0});this.api.list(Object.assign({},this.searchItem,this.pager)).then(function(n){t.list=n.boList,t.pager.page=n.page,t.pager.rows=n.rows,t.pager.size=n.size,t.$nextTick(function(){t.$refs.backtop.back()}),e()}).catch(function(){e(),t.$Message.error("查询失败")})}},components:{ProductImage:a.a,CheckImage:i.a,SelectCategory:s.a},watch:{sortList:{handler:function(t){this.searchItem.maxSortId=t[0]&&t[0].value||"",this.searchItem.midSortId=t[1]&&t[1].value||""},deep:!0}}}},45:function(t,e,n){"use strict";e.a={props:["src","skn"]}},46:function(t,e,n){"use strict";var r=n(43);e.a={props:["list"],created:function(){this.api=new r.a},methods:{onChange:function(t,e){var n=this,r=Object.assign({},t);r.imageId=[r.imageId],t.isMark?(r.isMark=0,this.api.cancel(r).then(function(){n.$emit("on-change"),t.isMark=0,n.$Message.info("更新成功")}).catch(function(){n.$Message.error("更新失败")})):(r.isMark=1,this.api.confirm(r).then(function(){n.$emit("on-change"),t.isMark=1,n.$Message.info("更新成功")}).catch(function(){n.$Message.error("更新失败")}))},splitUrl:function(t){return t=t.replace("{mode}",0),t=t.replace("{width}",150),t=t.replace("{height}",150)},onClick:function(t){this.onChange(t)}}}},47:function(t,e,n){"use strict";var r=n(43);e.a={props:{value:{type:Array,default:function(){return[]}}},data:function(){return{handleValue:this.value.map(function(t){return t.value}),categoryList:[]}},created:function(){this.api=new r.a,this.getSortList()},methods:{getSortList:function(){var t=this;this.api.getSortList().then(function(e){t.categoryList=e.list.map(function(t){var e={value:t.id,label:t.sortName};return t.subList&&(e.children=t.subList.map(function(t){return{value:t.id,label:t.sortName}})),e})})},selectChange:function(t){var e=(t.length,t[0]||""),n=t[1]||"",r=this.categoryList.find(function(t){return t.value==e})||{},a=r&&r.children&&r.children.find(function(t){return t.value==n})||{};this.$emit("input",[{value:e,label:r.label||""},{value:n,label:a.label||""}])}},watch:{value:function(t){this.handleValue=t.map(function(t){return t.value})}}}},48:function(t,e){},49:function(t,e){},50:function(t,e,n){"use strict";function r(t){s||n(51)}var a=n(45),i=n(52),s=!1,c=n(14),o=r,u=c(a.a,i.a,!1,o,"data-v-cb514a2a",null);u.options.__file="src\\views\\components\\product-image.vue",e.a=u.exports},51:function(t,e){},52:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"product-image"},[n("span",[t._v(t._s(t.skn))]),t._v(" "),n("img",{attrs:{src:t.src,alt:"",width:"150px",height:"150px"}})])},a=[];r._withStripped=!0;var i={render:r,staticRenderFns:a};e.a=i},53:function(t,e,n){"use strict";function r(t){s||n(54)}var a=n(46),i=n(55),s=!1,c=n(14),o=r,u=c(a.a,i.a,!1,o,"data-v-14e3e544",null);u.options.__file="src\\views\\components\\check-image.vue",e.a=u.exports},54:function(t,e){},55:function(t,e,n){"use strict";var r=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("div",{on:{click:function(n){t.onClick(e,n)}}},[n("img",{attrs:{src:t.splitUrl(e.url),width:"150px",height:"150px"}})]),t._v(" "),n("Checkbox",{attrs:{value:1==e.isMark},on:{"on-change":function(n){t.onClick(e)}}},[t._v("检查")])],1)}))},a=[];r._withStripped=!0;var i={render:r,staticRenderFns:a};e.a=i},56:function(t,e,n){"use strict";function r(t){s||n(57)}var a=n(47),i=n(58),s=!1,c=n(14),o=r,u=c(a.a,i.a,!1,o,null,null);u.options.__file="src\\views\\components\\select-category.vue",e.a=u.exports},57:function(t,e){},58:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("Cascader",{attrs:{data:t.categoryList,value:t.handleValue,"change-on-select":""},on:{"on-change":t.selectChange}})},a=[];r._withStripped=!0;var i={render:r,staticRenderFns:a};e.a=i},59:function(t,e,n){"use strict";var r=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:"品类"}},[n("SelectCategory",{model:{value:t.sortList,callback:function(e){t.sortList=e},expression:"sortList"}})],1),t._v(" "),n("FormItem",{attrs:{label:"skn"}},[n("Input",{attrs:{type:"text",placeholder:"skn"},model:{value:t.searchItem.productSkn,callback:function(e){t.$set(t.searchItem,"productSkn",e)},expression:"searchItem.productSkn"}})],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("FormItem",{attrs:{label:"来源"}},[n("Select",{model:{value:t.searchItem.source,callback:function(e){t.$set(t.searchItem,"source",e)},expression:"searchItem.source"}},[n("Option",{attrs:{value:0}},[t._v("全部")]),t._v(" "),n("Option",{attrs:{value:1}},[t._v("有货")]),t._v(" "),n("Option",{attrs:{value:2}},[t._v("天猫")])],1)],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.rows,current:t.pager.page,"page-size":t.pager.size,"show-elevator":""},on:{"on-change":t.onPageChange}})],1)],1),t._v(" "),n("Footer",{staticClass:"layout-footer-center"},[t._v("2011-2018 © YOHO")])],1),t._v(" "),n("BackTop",{ref:"backtop"})],1)},a=[];r._withStripped=!0;var i={render:r,staticRenderFns:a};e.a=i}});
\ No newline at end of file
... ...
... ... @@ -5,12 +5,12 @@
<title>Slowpoke 系统</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
<link rel="stylesheet" href="/main.60c7885bf96205920132.css">
<link rel="stylesheet" href="/main.cee7c8581786d3be7b60.css">
</head>
<body>
<div id="app"></div>
<script type="text/javascript" src="/vendors.60c7885bf96205920132.js"></script>
<script type="text/javascript" src="/vendors.cee7c8581786d3be7b60.js"></script>
<script type="text/javascript" src="/main.js"></script>
</body>
... ...
... ... @@ -29,10 +29,13 @@
font-size: 28px;
}
.ivu-table .top td[data-v-14e4fede] {
vertical-align: top;
}
.product-image[data-v-cb514a2a] {
width: 150px;
text-align: center;
vertical-align: top;
margin-top: 20px;
}
... ...