"use strict";(self.webpackChunkmy_package_ext=self.webpackChunkmy_package_ext||[]).push([[9005],{29005:function(e,t,n){n.r(t),n.d(t,{default:function(){return a}}),t={name:"phone-config",props:["activeData"],data:function(){return{}},computed:{},watch:{},methods:{changeType:function(e){var t="^(0\\d{2,3}-)?([2-9]\\d{6,7})(-\\d{1,6})?$";"mobile"===e&&(t=this.activeData.extConfig.enableSelections?"(^[+]86\\s?1[3-9]\\d{9}$)|(^[+]852\\s?\\d{8}$)|(^[+]853\\s?\\d{8}$)|(^[+]886\\s?9\\d{8}$)":"^(0\\d{2,3}-)?([2-9]\\d{6,7})(-\\d{1,6})?$"),this.handlerReg(t)},changeEnable:function(e){this.handlerReg(e?"(^[+]86\\s?1[3-9]\\d{9}$)|(^[+]852\\s?\\d{8}$)|(^[+]853\\s?\\d{8}$)|(^[+]886\\s?9\\d{8}$)":"^1((34[0-8])|(8\\d{2})|(([35][0-35-9]|4[579]|66|7[35678]|9[1389])\\d{1}))\\d{7}$")},handlerReg:function(e){var t=this.activeData.__config__.regList;(t=t.filter((function(e){return"self"!==e.type}))).push({message:"".concat(this.activeData.__config__.label,"不符合格式"),pattern:e,type:"self"}),this.$set(this.activeData.__config__,"regList",t)}}};var a=(0,n(51900).Z)(t,(function(){var e=this,t=e._self._c;return t("el-form",{attrs:{"label-position":"top"}},[t("el-form-item",{attrs:{label:"号码类型"}},[t("el-radio-group",{on:{input:e.changeType},model:{value:e.activeData.extConfig.numberType,callback:function(t){e.$set(e.activeData.extConfig,"numberType",t)},expression:"activeData.extConfig.numberType"}},[t("el-radio",{attrs:{label:"mobile"}},[e._v("手机")]),e._v(" "),t("el-radio",{attrs:{label:"phone"}},[e._v("座机")])],1)],1),e._v(" "),"mobile"===e.activeData.extConfig.numberType?t("el-form-item",{attrs:{label:"启用地区选择"}},[t("el-checkbox",{on:{change:e.changeEnable},model:{value:e.activeData.extConfig.enableSelections,callback:function(t){e.$set(e.activeData.extConfig,"enableSelections",t)},expression:"activeData.extConfig.enableSelections"}},[e._v("启用")])],1):e._e()],1)}),[],!1,null,null,null).exports},51900:function(e,t,n){function a(e,t,n,a,i,o,s,r){var c,l,d="function"==typeof e?e.options:e;return t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),a&&(d.functional=!0),o&&(d._scopeId="data-v-"+o),s?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},d._ssrRegister=c):i&&(c=r?function(){i.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:i),c&&(d.functional?(d._injectStyles=c,l=d.render,d.render=function(e,t){return c.call(t),l(e,t)}):(t=d.beforeCreate,d.beforeCreate=t?[].concat(t,c):[c])),{exports:e,options:d}}n.d(t,{Z:function(){return a}})}}]);