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
7.4 KiB
1 line
7.4 KiB
![]()
6 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3643f555"],{"6b68":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",staticStyle:{"margin-top":"5px"}}),e("span",{staticStyle:{"margin-top":"5px"}},[t._v("数据列表")]),e("el-button",{staticClass:"btn-add",attrs:{size:"mini"},on:{click:function(e){return t.handleAddProductCate()}}},[t._v(" 添加 ")])],1),e("div",{staticClass:"table-container"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"productCateTable",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:"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-switch",{attrs:{"active-value":"1","inactive-value":"0"},on:{change:function(e){return t.handleShowStatusChange(a.$index,a.row)}},model:{value:a.row.showStatus,callback:function(e){t.$set(a.row,"showStatus",e)},expression:"scope.row.showStatus"}})]}}])}),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)])},r=[],s=a("d1f3"),i={name:"ProductCateList",filters:{levelFilter:function(t){return 0===t?"一级":1===t?"二级":void 0},disableNextLevel:function(t){return 0!==t}},data:function(){return{list:null,total:null,listLoading:!0,listQuery:{pageNum:1,pageSize:5},queryParams:{current:1,size:10,total:0,params:{name:"",menuUrl:"",orgPath:"",userSid:""}},parentId:0,index:0}},watch:{$route:function(t){this.resetParentId(),this.getList()}},created:function(){this.resetParentId(),this.getList()},methods:{resetParentId:function(){console.log("parentId>>>",this.$route.query.parentId),null!=this.$route.query.parentId?this.parentId=this.$route.query.parentId:this.parentId=0},handleAddProductCate:function(){this.$router.push({path:"/pms/addProductCate"})},getList:function(){var t=this;this.listLoading=!0,console.log("parentId>>>",this.parentId),console.log("listQuery>>>",this.listQuery),this.queryParams.params.userSid=window.sessionStorage.getItem("userSid"),this.queryParams.params.orgPath=window.sessionStorage.getIt
|