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
23 KiB
1 lines
23 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-634deaf2"],{"31b4":function(t,e,r){"use strict";var n=r("9860"),o=r.n(n),a=r("b6bd"),i=r("2f62");function c(t){return(c="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 u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var l={name:"edit",components:{formCreate:o.a.$form()},computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},Object(i.e)("admin/userLevel",["taskId","levelId"])),props:{FromData:{type:Object,default:null},userEdit:{type:Number,default:0}},data:function(){return{modals:!1,type:0,config:{global:{upload:{props:{onSuccess:function(t,e){200===t.status?e.url=t.data.src:this.Message.error(t.msg)}}}}},isDisable:!1}},methods:{couponsType:function(){this.$parent.addType(this.type)},onSubmit:function(t){var e,r=this;(setTimeout((function(){r.isDisable=!1}),1e3),this.isDisable)||(this.isDisable=!0,e=t,Object(a.a)({url:this.FromData.action,method:this.FromData.method,data:e}).then((function(t){r.$parent.getList(),r.$Message.success(t.msg),r.modals=!1,setTimeout((function(){r.$emit("submitFail")}),1e3)})).catch((function(t){r.$Message.error(t.msg)})))},cancel:function(){this.type=0}}},f=(r("c262"),r("2877")),d=Object(f.a)(l,(function(){var t=this,e=t._self._c;return t.FromData?e("div",[e("Modal",{class:t.userEdit?"userEdit":"",attrs:{scrollable:"","footer-hide":"",closable:"",title:t.FromData.title,width:"700"},on:{"on-cancel":t.cancel},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[["/marketing/coupon/save.html"===t.FromData.action?e("div",{staticClass:"radio acea-row row-middle"},[e("div",{staticClass:"name ivu-form-item-content"},[t._v("优惠券类型")]),e("Radio-group",{on:{"on-change":t.couponsType},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[e("Radio",{attrs:{label:0}},[t._v("通用券")]),e("Radio",{attrs:{label:1}},[t._v("品类券")]),e("Radio",{attrs:{label:2}},[t._v("商品券")])],1)],1):t._e()],e("form-create",{ref:"fc",staticClass:"formBox",attrs:{option:t.config,rule:Array.from(t.FromData.rules),handleIcon:"false"},on:{"on-submit":t.onSubmit}})],2)],1):t._e()}),[],!1,null,"2850396f",null);e.a=d.exports},"73f5":function(t,e,r){"use strict";r.d(e,"D",(function(){return o})),r.d(e,"u",(function(){return a})),r.d(e,"q",(function(){return i})),r.d(e,"t",(function(){return c})),r.d(e,"v",(function(){return u})),r.d(e,"x",(function(){return s})),r.d(e,"j",(function(){return l})),r.d(e,"i",(function(){return f})),r.d(e,"U",(function(){return d})),r.d(e,"h",(function(){return h})),r.d(e,"z",(function(){return m})),r.d(e,"y",(function(){return p})),r.d(e,"A",(function(){return b})),r.d(e,"w",(function(){return g})),r.d(e,"m",(function(){return v})),r.d(e,"B",(function(){return y})),r.d(e,"s",(function(){return w})),r.d(e,"L",(function(){return O})),r.d(e,"M",(function(){return j})),r.d(e,"J",(function(){return _})),r.d(e,"K",(function(){return x})),r.d(e,"g",(function(){return F})),r.d(e,"G",(function(){return S})),r.d(e,"H",(function(){return L})),r.d(e,"I",(function(){return k})),r.d(e,"T",(function(){return E})),r.d(e,"O",(function(){return P})),r.d(e,"N",(function(){return C})),r.d(e,"e",(function(){return D})),r.d(e,"S",(function(){return $})),r.d(e,"o",(function(){return M})),r.d(e,"P",(function(){return T})),r.d(e,"Q",(function(){return I})),r.d(e,"R",(function(){return N})),r.d(e,"n",(function(){return G})),r.d(e,"r",(function(){return R})),r.d(e,"E",(function(){return A})),r.d(e,"p",(function(){return B})),r.d(e,"C",(function(){return z})),r.d(e,"f",(function(){return J})),r.d(e,"F",(function(){return U})),r.d(e,"b",(function(){return W})),r.d(e,"d",(function(){return Y})),r.d(e,"c",(function(){return q})),r.d(e,"a",(function(){return H})),r.d(e,"k",(function(){return K})),r.d(e,"l",(function(){return Q}));var n=r("b6bd");function o(t){return Object(n.a)({url:"merchant/store_list",method:"get",params:t})}function a(t){return Object(n.a)({url:"store/order/list",method:"get",params:t})}function i(t){return Object(n.a)({url:"store/order/chart",method:"get",params:t})}function c(t){return Object(n.a)({url:"store/order/header",method:"get"})}function u(t){return Object(n.a)({url:"store/recharge",method:"get",params:t})}function s(t){return Object(n.a)({url:"store/vip_order",method:"get",params:t})}function l(t){return Object(n.a)({url:"store/order/edit/".concat(t),method:"get"})}function f(t){return Object(n.a)({url:"store/order/distribution/".concat(t),method:"get"})}function d(t){return Object(n.a)({url:"store/order/write_update/".concat(t),method:"put"})}function h(t){return Object(n.a)({url:"store/order/info/".concat(t),method:"get"})}function m(t){return Object(n.a)({url:"order/remark/".concat(t.id),method:"put",data:t.remark})}function p(t){return Object(n.a)({url:"store/recharge/remark/".concat(t.id),method:"put",data:t.remark})}function b(t){return Object(n.a)({url:"store/vip/remark/".concat(t.id),method:"put",data:t.remark})}function g(t){return Object(n.a)({url:"store/refund/list",method:"get",params:t})}function v(t){return Object(n.a)({url:"/order/no_refund/".concat(t),method:"get"})}function y(t){return Object(n.a)({url:"/order/refund_integral/".concat(t),method:"get"})}function w(t,e){return Object(n.a)({url:"store/order/export/".concat(e),method:"post",data:t})}function O(t){return Object(n.a)({url:"store/finance_flow/list",method:"get",params:t})}function j(t,e){return Object(n.a)({url:"store/finance_flow/mark/".concat(t),method:"put",params:e})}function _(t){return Object(n.a)({url:"store/finance_flow/fund_record",method:"get",params:t})}function x(t){return Object(n.a)({url:"store/finance_flow/fund_record_info",method:"get",params:t})}function F(t){return Object(n.a)({url:"/export/storeFinanceRecord",method:"get",params:t})}function S(t){return Object(n.a)({url:"/store/extract/list",method:"get",params:t})}function L(t,e){return Object(n.a)({url:"store/extract/mark/".concat(t),method:"post",data:e})}function k(t,e){return Object(n.a)({url:"store/extract/verify/".concat(t),method:"post",data:e})}function E(t){return Object(n.a)({url:"store/extract/transfer/".concat(t),method:"get"})}function P(t){return Object(n.a)({url:"store/store",method:"get",params:t})}function C(t){return Object(n.a)({url:"store/store/get_info/".concat(t),method:"get"})}function D(t){return Object(n.a)({url:"city",method:"get",params:t})}function $(t,e){return Object(n.a)({url:"store/store/".concat(t),method:"post",data:e})}function M(){return Object(n.a)({url:"store/store/address",method:"get"})}function T(t){return Object(n.a)({url:"store/store/login/".concat(t),method:"get"})}function I(t,e){return Object(n.a)({url:"store/store/set_show/".concat(t,"/").concat(e),method:"put"})}function N(t){return Object(n.a)({url:"store/share/order",method:"post",params:t})}function G(t){return Object(n.a)({url:"store/home/header",method:"get",params:t})}function R(t){return Object(n.a)({url:"store/home/orderChart",method:"get",params:t})}function A(t){return Object(n.a)({url:"store/home/store",method:"get",params:t})}function B(t){return Object(n.a)({url:"store/home/operate",method:"get",params:t})}function z(t){return Object(n.a)({url:"store/store/reset_admin/".concat(t),method:"get"})}function J(t,e,r){return Object(n.a)({url:"export/storeFlowExport?store_id=".concat(t,"&keyword=").concat(e,"&data=").concat(r),method:"get"})}function U(t){return Object(n.a)({url:"/store/category",params:t,method:"get"})}function W(t){return Object(n.a)({url:"/store/category/create/".concat(t),method:"get"})}function Y(t){return Object(n.a)({url:"/store/category/tree/".concat(t),method:"get"})}function q(t){return Object(n.a)({url:"/store/category/set_show/".concat(t.id,"/").concat(t.is_show),method:"PUT"})}function H(t){return Object(n.a)({url:"store/category/cascader_list/".concat(t),method:"get"})}function K(t){return Object(n.a)({url:"/store/refund/detail/".concat(t),method:"get"})}function Q(t){return Object(n.a)({url:"/store/refund/refund/".concat(t),method:"get"})}},"7bc6":function(t,e,r){},c262:function(t,e,r){"use strict";r("c54c")},c54c:function(t,e,r){},cc66:function(t,e,r){"use strict";r.r(e);var n=r("2f62"),o=r("73f5");function a(t){return(a="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 i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),c=new D(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var m="suspendedStart",p="suspendedYield",b="executing",g="completed",v={};function y(){}function w(){}function O(){}var j={};f(j,u,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_($([])));x&&x!==r&&n.call(x,u)&&(j=x);var F=O.prototype=y.prototype=Object.create(j);function S(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==a(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=m;return function(a,i){if(o===b)throw Error("Generator is already running");if(o===g){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=E(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=b;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?g:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=g,n.method="throw",n.arg=s.arg)}}}function E(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,E(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function $(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(a(e)+" is not iterable")}return w.prototype=O,o(F,"constructor",{value:O,configurable:!0}),o(O,"constructor",{value:w,configurable:!0}),w.displayName=f(O,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,f(t,l,"GeneratorFunction")),t.prototype=Object.create(F),t},e.awrap=function(t){return{__await:t}},S(L.prototype),f(L.prototype,s,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new L(d(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(F),f(F,l,"Generator"),f(F,u,(function(){return this})),f(F,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=$,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:$(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function c(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){c(a,n,o,i,u,"next",t)}function u(t){c(a,n,o,i,u,"throw",t)}i(void 0)}))}}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){f(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var d={name:"product_productClassify",components:{editFrom:r("31b4").a},data:function(){return{treeSelect:[],FromData:null,grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,artFrom:{pid:0,is_show:"",page:1,name:"",limit:15,id:0},total:0,tableData:[]}},computed:l(l(l({},Object(n.e)("admin/layout",["isMobile"])),Object(n.e)("admin/userLevel",["categoryId"])),{},{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),mounted:function(){this.goodsCategory(),this.getList()},methods:{goodsCategory:function(){var t=this;Object(o.d)(0).then((function(e){t.treeSelect=e.data})).catch((function(e){t.$Message.error(e.msg)}))},getList:function(){var t=this;this.loading=!0,this.artFrom.is_show=this.artFrom.is_show||"",Object(o.F)(this.artFrom).then(function(){var e=u(i().mark((function e(r){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.data,t.tableData=n.list,t.total=n.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)}))},loadChildrenMethod:function(t){var e=t.row;return this.artFrom.pid=e.id,new Promise((function(t,r){Object(o.F)({pid:e.id}).then((function(e){var r=e.data.list;t(r)}))}))},pageChange:function(t){this.artFrom.page=t,this.getList()},addClass:function(){var t=this;this.$modalForm(Object(o.b)(0)).then((function(){t.artFrom.pid=0,t.getList(),t.goodsCategory()}))},edit:function(t){var e=this;this.$modalForm(Object(o.b)(t.id)).then((function(){e.artFrom.pid=0,e.getList(),e.goodsCategory()}))},findSupId:function(t,e,r){var n=function(t,e){if(t&&t.length>0)for(var o in t){if(t[o].id==e)return t[o].name=r.data.name,t[o].is_show=r.data.is_show,t[o].sort=r.data.sort,void(t[o].pic=r.data.pic);t[o].children&&t[o].children.length>0&&n(t[o].children,e)}};n(t,e)},onchangeIsShow:function(t){var e=this,r={id:t.id,is_show:t.is_show};Object(o.c)(r).then(function(){var t=u(i().mark((function t(r){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$Message.success(r.msg),e.artFrom.pid=0,e.getList();case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},handleCheckChange:function(t){var e="",r="";this.list=[],this.artFrom.pid=0,t.forEach((function(t,n){e+="".concat(t.id,","),r+="".concat(t.title,",")})),e=e.substring(0,e.length-1),r=r.substring(0,r.length-1),this.list.push({value:e,title:r}),this.artFrom.pid=e,this.getList()},del:function(t,e,r){var n=this,o={title:e,num:r,url:"store/category/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(o).then((function(t){n.$Message.success(t.msg),n.artFrom.pid=0,n.getList(),n.goodsCategory()})).catch((function(t){n.$Message.error(t.msg)}))},userSearchs:function(){this.artFrom.pid=0,this.artFrom.page=1,this.getList()}}},h=(r("f247"),r("2877")),m=Object(h.a)(d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"article-manager"},[e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[e("div",{staticClass:"new_card_pd"},[e("Form",{ref:"artFrom",attrs:{model:t.artFrom,"label-width":t.labelWidth,inline:"","label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[e("FormItem",{attrs:{label:"商品分类:",prop:"pid","label-for":"pid"}},[e("Select",{staticClass:"input-add",attrs:{clearable:""},on:{"on-change":t.userSearchs},model:{value:t.artFrom.id,callback:function(e){t.$set(t.artFrom,"id",e)},expression:"artFrom.id"}},t._l(t.treeSelect,(function(r){return e("Option",{key:r.id,attrs:{value:r.id}},[t._v(t._s(r.name))])})),1)],1),e("FormItem",{attrs:{label:"状态:","label-for":"is_show"}},[e("Select",{staticClass:"input-add",attrs:{placeholder:"请选择",clearable:""},on:{"on-change":t.userSearchs},model:{value:t.artFrom.is_show,callback:function(e){t.$set(t.artFrom,"is_show",e)},expression:"artFrom.is_show"}},[e("Option",{attrs:{value:"1"}},[t._v("显示")]),e("Option",{attrs:{value:"0"}},[t._v("隐藏")])],1)],1),e("FormItem",{attrs:{label:"分类名称:","label-for":"status2"}},[e("Input",{staticClass:"input-add mr14",attrs:{placeholder:"请输入"},model:{value:t.artFrom.name,callback:function(e){t.$set(t.artFrom,"name",e)},expression:"artFrom.name"}}),e("Button",{attrs:{type:"primary"},on:{click:function(e){return t.userSearchs()}}},[t._v("查询")])],1)],1)],1)]),e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("div",[e("Button",{directives:[{name:"auth",rawName:"v-auth",value:["product-save-cate"],expression:"['product-save-cate']"}],staticClass:"bnt",attrs:{type:"primary"},on:{click:t.addClass}},[t._v("添加分类")])],1),e("vxe-table",{ref:"xTable",staticClass:"ivu-mt",attrs:{data:t.tableData,"highlight-hover-row":"",loading:t.loading,"header-row-class-name":"false","row-id":"id","tree-config":{lazy:!0,children:"children",hasChild:"children",loadMethod:t.loadChildrenMethod,reserve:!0}}},[e("vxe-table-column",{attrs:{field:"id",title:"ID",tooltip:"",width:"80"}}),e("vxe-table-column",{attrs:{field:"name","tree-node":"",title:"分类名称","min-width":"250"}}),e("vxe-table-column",{attrs:{field:"sort",title:"排序","min-width":"100",tooltip:"true"}}),e("vxe-table-column",{attrs:{field:"is_show",title:"状态","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(r){var n=r.row;return[e("i-switch",{attrs:{value:n.is_show,"true-value":1,"false-value":0,size:"large"},on:{"on-change":function(e){return t.onchangeIsShow(n)}},model:{value:n.is_show,callback:function(e){t.$set(n,"is_show",e)},expression:"row.is_show"}},[e("span",{attrs:{slot:"open"},slot:"open"},[t._v("显示")]),e("span",{attrs:{slot:"close"},slot:"close"},[t._v("隐藏")])])]}}])}),e("vxe-table-column",{attrs:{field:"date",title:"操作",width:"150",align:"left"},scopedSlots:t._u([{key:"default",fn:function(r){var n=r.row,o=r.index;return[e("a",{on:{click:function(e){return t.edit(n)}}},[t._v("编辑")]),e("Divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.del(n,"删除商品分类",o)}}},[t._v("删除")])]}}])})],1)],1),e("edit-from",{ref:"edits",attrs:{FromData:t.FromData},on:{submitFail:t.userSearchs}})],1)}),[],!1,null,"ff43e804",null);e.default=m.exports},f247:function(t,e,r){"use strict";r("7bc6")}}]); |