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
15 KiB
1 line
15 KiB
2 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-35582ca6"],{"13d6":function(t,e,r){},2475:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("Modal",{attrs:{scrollable:"",title:t.title,"class-name":"vertical-center-modal",width:"950"},on:{"on-cancel":t.onCancel},model:{value:t.modal,callback:function(e){t.modal=e},expression:"modal"}},[r("Form",{ref:"formDynamic",staticClass:"attrFrom",attrs:{model:t.formDynamic,rules:t.rules,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[r("Row",{attrs:{gutter:24}},[r("Col",{attrs:{span:"24"}},[r("Col",{staticClass:"mb15",attrs:{span:"8"}},[r("FormItem",{attrs:{label:"分类名称:",prop:"rule_name"}},[r("Input",{attrs:{placeholder:"请输入分类名称",maxlength:20},model:{value:t.formDynamic.rule_name,callback:function(e){t.$set(t.formDynamic,"rule_name",e)},expression:"formDynamic.rule_name"}})],1)],1)],1),t._l(t.formDynamic.spec,(function(e,n){return r("Col",{key:n,staticClass:"noForm",attrs:{span:"23"}},[r("FormItem",[r("div",{staticClass:"acea-row row-middle"},[r("span",{staticClass:"mr5"},[t._v(t._s(e.value))]),r("Icon",{attrs:{type:"ios-close-circle"},on:{click:function(e){return t.handleRemove(n)}}})],1),r("div",{staticClass:"rulesBox"},[t._l(e.detail,(function(n,a){return r("Tag",{key:a,attrs:{type:"dot",closable:"",color:"primary",name:n},on:{"on-close":function(r){return t.handleRemove2(e.detail,a)}}},[t._v(t._s(n))])})),r("Input",{staticClass:"width20",attrs:{maxlength:"30","show-word-limit":"",search:"","enter-button":"添加",placeholder:"请输入属性名称"},on:{"on-search":function(r){return t.createAttr(e.detail.attrsVal,n)}},model:{value:e.detail.attrsVal,callback:function(r){t.$set(e.detail,"attrsVal",r)},expression:"item.detail.attrsVal"}})],2)])],1)})),t.isBtn?r("Col",{staticClass:"mt10",attrs:{span:"24"}},[r("Col",{staticClass:"mr15",attrs:{span:"8"}},[r("FormItem",{attrs:{label:"规格名称:"}},[r("Input",{attrs:{placeholder:"请输入规格名称",maxlength:"30","show-word-limit":""},model:{value:t.attrsName,callback:function(e){t.attrsName=e},expression:"attrsName"}})],1)],1),r("Col",{staticClass:"mt10 mr20",attrs:{span:"8"}},[r("FormItem",{attrs:{label:"规格值:"}},[r("Input",{attrs:{maxlength:"30","show-word-limit":"",placeholder:"请输入规格值"},model:{value:t.attrsVal,callback:function(e){t.attrsVal=e},expression:"attrsVal"}})],1)],1),r("Col",{staticClass:"mr20",attrs:{span:"8"}},[r("div",{staticClass:"sub"},[r("Button",{staticClass:"mr20",attrs:{type:"primary"},on:{click:t.createAttrName}},[t._v("确定")]),r("Button",{on:{click:t.offAttrName}},[t._v("取消")])],1)])],1):t._e(),t.spinShow?r("Spin",{attrs:{size:"large",fix:""}}):t._e()],2),t.isBtn?t._e():r("Button",{staticClass:"ml95 mt10",attrs:{type:"primary"},on:{click:t.addBtn}},[t._v("添加新规格")])],1),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("Button",{on:{click:t.cancle}},[t._v("取消")]),r("Button",{attrs:{type:"primary",loading:t.modal_loading},on:{click:function(e){return t.handleSubmit("formDynamic")}}},[t._v("确定")])],1)],1)},a=[],o=r("2f62"),c=r("c4c8");function i(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 u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(r,!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var l={name:"addAttr",data:function(){return{spinShow:!1,modal_loading:!1,grid:{xl:3,lg:3,md:12,sm:24,xs:24},modal:!1,index:1,rules:{rule_name:[{required:!0,message:"请输入分类名称",trigger:"blur"}]},for
|