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 line
17 KiB
1 line
17 KiB
4 months ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-60de971c"],{"411d":function(t,e,r){"use strict";r.r(e);var n=r("5d4b"),o=r("2f62"),a=r("c4c8");function i(t){return(i="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 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){c(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 c(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u={name:"index",components:{menusFrom:n.a},data:function(){return{grid:{xl:12,lg:12,md:12,sm:24,xs:24},grids:{xl:10,lg:10,md:12,sm:24,xs:24},brandData:{keyword:""},loading:!1,tableData:[],formValidate:{},titleFrom:""}},computed:l(l({},Object(o.e)("admin/layout",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),mounted:function(){this.getData()},methods:{search:function(){this.getData()},getData:function(){var t=this;this.loading=!0,Object(a.G)({brand_name:this.brandData.keyword}).then((function(e){t.loading=!1,t.tableData=e.data.list}))},loadChildrenMethod:function(t){var e=this,r=t.row;return new Promise((function(t,n){Object(a.G)({brand_name:e.brandData.keyword,pid:r.id}).then((function(e){var r=e.data.list;t(r)}))}))},menusAdd:function(){this.$refs.menusFrom.modals=!0,this.$refs.menusFrom.titleFrom="添加品牌分类",this.formValidate={sort:0},this.formValidate.fid=[0],this.formValidate.is_show=1,this.$refs.menusFrom.type=1},onchangeIsShow:function(t){var e=this;Object(a.F)(t.id,t.is_show).then((function(t){e.getData(),e.$Message.success(t.msg)})).catch((function(t){e.getData(),e.$Message.error(t.msg)}))},addE:function(t){this.$refs.menusFrom.modals=!0,this.$refs.menusFrom.titleFrom="添加品牌分类",this.formValidate={sort:0},this.formValidate.fid=t.is_show?t.fid_son:[],this.formValidate.is_show=1,this.$refs.menusFrom.type=3},edit:function(t){this.$refs.menusFrom.modals=!0,this.$refs.menusFrom.titleFrom="编辑品牌分类",this.formValidate=t,0==t.fid.length&&(this.formValidate.fid=[0]),this.$refs.menusFrom.type=2},del:function(t,e){var r=this,n={title:e,url:"product/brand/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(n).then((function(t){r.$Message.success(t.msg),r.$refs.menusFrom.getAddFrom(),r.getData()})).catch((function(t){r.$Message.error(t.msg)}))}}},f=(r("56c9"),r("2877")),d=Object(f.a)(u,(function(){var t=this,e=t._self._c;return e("div",[e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[e("div",{staticClass:"new_card_pd"},[e("Form",{ref:"brandData",attrs:{inline:"",model:t.brandData,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[e("FormItem",{attrs:{label:"品牌搜索:"}},[e("Input",{staticClass:"input-add",attrs:{placeholder:"请输入品牌名称"},model:{value:t.brandData.keyword,callback:function(e){t.$set(t.brandData,"keyword",e)},expression:"brandData.keyword"}}),e("Button",{attrs:{type:"primary"},on:{click:t.search}},[t._v("查询")])],1)],1)],1)]),e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("Button",{attrs:{ty
|