1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-765d853e"],{"0d5e":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"com-product-attr"},[n("el-tree",{attrs:{data:t.dataList,props:t.defaultProps},on:{"node-click":t.handleNodeClick}})],1)},r=[],c=n("5530"),i=(n("d81d"),n("b0c0"),n("e9c4"),n("b64b"),n("ac1f"),n("841c"),n("a573"),n("c4c8")),o={name:"searchParams",emits:["onInsertProductAttr"],props:{docAttr:{type:Object,default:function(){return{linkProduct:[]}}}},watch:{docAttr:{handler:function(t){void 0==t&&null==t||(this.queryForm.ids=JSON.stringify(t.linkProduct),this.search())},immediate:!0,deep:!0}},data:function(){return{defaultProps:{children:"children",label:"label"},dataList:[],queryForm:{page:1,pageSize:999,status:5,ids:""}}},mounted:function(){},methods:{onClose:function(t){var e=this;e.dialogVisible=!1,e.onBtnSearch()},handleNodeClick:function(t){t&&void 0==t.children&&this.$emit("onInsertProductAttr",t)},search:function(){var t=this;Object(i["a"])(t.queryForm).then((function(e){e&&(t.dataList=e.data.dataList.map((function(t){var e=JSON.parse(t.attrs),n=e.map((function(e){return Object(c["a"])(Object(c["a"])({label:e.name},e),{},{parent:{id:t.id,name:t.name}})}));return{label:t.name,children:n}})))}))},ChangePage:function(t){var e=this;e.queryForm.page=t,e.search()}}},u=o,d=(n("f3c0"),n("2877")),s=Object(d["a"])(u,a,r,!1,null,null,null);e["default"]=s.exports},"1fa3":function(t,e,n){},c4c8:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var a=n("b775");function r(t){return Object(a["a"])({url:"/product/search",method:"post",data:t})}},f3c0:function(t,e,n){"use strict";n("1fa3")}}]);
|