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
6.6 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-26385fb2"],{"9add":function(t,e,a){"use strict";a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return r})),a.d(e,"g",(function(){return i})),a.d(e,"f",(function(){return u})),a.d(e,"b",(function(){return o})),a.d(e,"d",(function(){return c})),a.d(e,"e",(function(){return l}));var n=a("b775");function s(t){return Object(n["a"])({url:"/mall/pms/PmsBrand/list",method:"post",data:t})}function r(t){return Object(n["a"])({url:"/mall/pms/PmsBrand/create",method:"post",data:t})}function i(t){return Object(n["a"])({url:"/mall/pms/PmsBrand/update/showStatus",method:"post",data:t})}function u(t){return Object(n["a"])({url:"/mall/pms/PmsBrand/update/factoryStatus",method:"post",data:t})}function o(t){return Object(n["a"])({url:"/mall/pms/PmsBrand/delete",method:"DELETE",data:t,headers:{"Content-Type":"application/json"}})}function c(t){return Object(n["a"])({url:"/mall/pms/PmsBrand/"+t,method:"get"})}function l(t,e){return Object(n["a"])({url:"/mall/pms/PmsBrand/update/"+t,method:"post",data:e})}},fe11:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-container"},[e("div",{staticClass:"main-content"},[e("el-card",{staticClass:"filter-container",attrs:{shadow:"never"}},[e("div",[e("i",{staticClass:"el-icon-search"}),e("span",[t._v("筛选搜索")]),e("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:"small"},on:{click:function(e){return t.searchBrandList()}}},[t._v(" 查询结果 ")])],1),e("div",{staticStyle:{"margin-top":"15px"}},[e("el-form",{attrs:{inline:!0,model:t.queryParams,size:"small","label-width":"140px"}},[e("el-form-item",{attrs:{label:"输入搜索:"}},[e("el-input",{staticStyle:{width:"203px"},attrs:{placeholder:"品牌名称/关键字"},model:{value:t.queryParams.params.name,callback:function(e){t.$set(t.queryParams.params,"name",e)},expression:"queryParams.params.name"}})],1)],1)],1)]),e("el-card",{staticClass:"operate-container",attrs:{shadow:"never"}},[e("i",{staticClass:"el-icon-tickets"}),e("span",[t._v("数据列表")]),e("el-button",{staticClass:"btn-add",attrs:{size:"mini"},on:{click:function(e){return t.addBrand()}}},[t._v(" 添加 ")])],1),e("div",{staticClass:"table-container"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"brandTable",staticStyle:{width:"100%"},attrs:{data:t.list,border:""}},[e("el-table-column",{attrs:{label:"序号",width:"100",type:"index",index:t.index+1,align:"center"}}),e("el-table-column",{attrs:{label:"品牌名称",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.name))]}}])}),e("el-table-column",{attrs:{label:"品牌首字母",width:"120",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.firstLetter))]}}])}),e("el-table-column",{attrs:{label:"操作",width:"200",align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-button",{attrs:{size:"mini"},on:{click:function(e){return t.handleUpdate(a.$index,a.row)}}},[t._v("编辑 ")]),e("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(e){return t.handleDelete(a.$index,a.row)}}},[t._v("删除 ")])]}}])})],1)],1),e("div",{staticClass:"pagination-container"},[e("el-pagination",{attrs:{background:"",layout:"total, sizes,prev, pager, next,jumper","page-size":t.queryParams.size,"page-sizes":[5,10,15],"current-page":t.queryParams.current,total:t.queryParams.total},on:{"update:currentPage":function(e){return t.$set(t.queryParams,"current",e)},"update:current-page":function(e){return t.$set(t.queryParams,"current",e)},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)])},s=[],r=a("9add"),i={name:"BrandList",data:function(){return{operates:[],operateType:null,listQuery:{keyword:null,pageNum:1,pageSize:10},queryParams:{current:1,size:10,total:0,params:{name:"",menuUrl:"",orgPath:"",userSid:""}},list:null,total:null,listLoading:!0,multipleSelection:[],index:0}},created:function(){this.ge