(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7111e3e2"],{"92dd":function(t,e,i){"use strict";i.r(e);var r=i("2f62"),n=i("c4c8");function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(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 a(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?s(Object(i),!0).forEach((function(e){c(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function c(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var l={name:"specs",data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,columns1:[{title:"ID",key:"id",width:80},{title:"参数模板名称",key:"name",minWidth:100},{title:"排序",key:"sort",width:100},{title:"创建时间",key:"add_time",minWidth:100},{title:"操作",slot:"action",fixed:"right",minWidth:120}],specsFrom:{page:1,limit:15,name:""},list:[],total:0}},computed:a(a({},Object(r.e)("admin/layout",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.getList()},methods:{specsSearchs:function(){this.specsFrom.page=1,this.list=[],this.getList()},add:function(){this.$router.push({path:"/admin/product/ensure/create/0"})},getList:function(){var t=this;this.loading=!0,Object(n.wb)(this.specsFrom).then((function(e){var i=e.data;t.list=i.list,t.total=i.count,t.loading=!1})).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},pageChange:function(t){this.specsFrom.page=t,this.getList()},edit:function(t){this.$router.push({path:"/admin/product/ensure/create/"+t})},del:function(t,e,i){var r=this,n={title:e,num:i,url:"product/specs/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(n).then((function(t){r.$Message.success(t.msg),r.list.splice(i,1),r.list.length||(r.specsFrom.page=1==r.specsFrom.page?1:r.specsFrom.page-1),r.getList()})).catch((function(t){r.$Message.error(t.msg)}))}}},u=(i("b48d"),i("2877")),p=Object(u.a)(l,(function(){var t=this,e=t._self._c;return e("div",[e("Card",{attrs:{bordered:!1,"dis-hover":"",padding:0}},[e("div",{staticClass:"new_card_pd"},[e("Form",{ref:"specsFrom",attrs:{inline:"",model:t.specsFrom,"label-width":75,"label-position":"right"},nativeOn:{submit:function(t){t.preventDefault()}}},[e("Row",{attrs:{gutter:24,type:"flex",justify:"end"}},[e("Col",{attrs:{span:"24"}},[e("FormItem",{attrs:{label:"参数搜索："}},[e("Input",{staticClass:"input-add",attrs:{placeholder:"请输入参数模板名称",clearable:""},model:{value:t.specsFrom.name,callback:function(e){t.$set(t.specsFrom,"name",e)},expression:"specsFrom.name"}}),e("Button",{attrs:{type:"primary"},on:{click:t.specsSearchs}},[t._v("查询")])],1)],1)],1)],1)],1)]),e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("div",{staticClass:"flex-y-center"},[e("Button",{attrs:{type:"primary"},on:{click:t.add}},[t._v("添加参数模板")]),e("div",{staticClass:"fs-12 pl-14 flex-y-center"},[e("Icon",{staticStyle:{color:"#f90","font-size":"18px"},attrs:{type:"ios-alert-outline"}}),e("span",{staticClass:"pl-4"},[t._v("支持统一维护商品参数及属性信息，新增商品时可配置并展示于详情页，帮助用户了解商品，提升转化。")])],1)],1),e("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns1,data:t.list,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"icons",fn:function(t){var i=t.row;return[e("viewer",[e("div",{staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:i.icon,expression:"row.icon"}]})])])]}},{key:"action",fn:function(i){var r=i.row,n=i.index;return[e("a",{on:{click:function(e){return t.edit(r.id)}}},[t._v("编辑")]),e("Divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.del(r,"删除商品参数",n)}}},[t._v("删除")])]}}])}),e("div",{staticClass:"acea-row row-right page"},[e("Page",{attrs:{total:t.total,"show-elevator":"","show-total":"","page-size":t.specsFrom.limit},on:{"on-change":t.pageChange}})],1)],1)],1)}),[],!1,null,"1fa6d198",null);e.default=p.exports},b48d:function(t,e,i){"use strict";i("f204")},f204:function(t,e,i){}}]);