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 lines
6.8 KiB
1 lines
6.8 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-17ef7d0a"],{"0d2b":function(e,t,i){"use strict";var n=i("2a95");function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i("8237"),t.a={props:{options:{type:Array,default:function(){return[]}},value:{type:String|Number|Array,default:""},placeholder:{type:String,default:""},title:{type:String,default:""},type:{type:String,default:"text"},suffix:{type:String,default:""},prefix:{type:String,default:""},styleModel:{type:String,default:""},className:{type:String,default:""},field:{type:String,default:""},timerType:{type:String,default:"timerange"},timerFormat:{type:String,default:"HH:mm:ss"},info:{type:String,default:""},on:{type:Object,default:function(){return{}}},validate:{type:Object,default:function(){return{}}},errorsValidate:{type:Array,default:function(){return[]}}},data:function(){return{valueModel:this.value,errorMessage:"",exampleImage:{site_logo:"/statics/system/adminSet01.png",site_logo_square:"/statics/system/adminSet02.png",login_logo:"/statics/system/adminSet03.png",admin_login_slide:"/statics/system/adminSet04.png",start_login_logo:"/statics/system/adminSet05.png",wap_login_logo:"/statics/system/mobileSet01.png",wechat_share_img:"/statics/system/mobileSet02.png",pc_logo:"/statics/system/pcSet01.png",pay_weixin_client_cert:{text:'更多详情请查看:<br><a href="https://kf.qq.com/faq/161222NneAJf161222U7fARv.html" target="_blank" rel="noopener noreferrer">https://kf.qq.com/faq/161222NneAJf161222U7fARv.html</a>',image:"/statics/system/wxSet01.png"},pay_weixin_client_key:{text:'更多详情请查看:<br><a href="https://kf.qq.com/faq/161222NneAJf161222U7fARv.html" target="_blank" rel="noopener noreferrer">https://kf.qq.com/faq/161222NneAJf161222U7fARv.html</a>',image:"/statics/system/wxSet01.png"},terminal_number:"/statics/system/yilianyunPrinter.png",config_export_siid:"/statics/system/kuadi100Dump.png",product_poster_title:"/statics/system/productSharePoster.png",product_video_status:"/statics/system/productVideo.png"},exampleSize:{site_logo:364,site_logo_square:364,login_logo:364,admin_login_slide:364,start_login_logo:364,wap_login_logo:256,wechat_share_img:256,pc_logo:364,terminal_number:364,config_export_siid:364,product_poster_title:256}}},watch:{errorsValidate:{handler:function(e){var t=this;if(e){var i=e.find((function(e){return e.field===t.field}));this.errorMessage=i?i.message:""}else this.errorMessage=""},deep:!0}},methods:{getClassName:function(){var e=["input-build-"+this.field];return this.errorMessage&&e.push("ivu-form-item-error"),(this.validate[this.field]?this.validate[this.field].filter((function(e){return!0===e.required})):[]).length&&e.push("ivu-form-item-required"),e},changeEvent:function(e,t){"change"===e&&this.$emit("changeValue",{field:this.field,value:this.valueModel}),this.on[e]&&this.on[e](t),this.validator(e)},validator:function(e){var t=this;if((this.validate[this.field]?this.validate[this.field].filter((function(t){return t.trigger===e})):[]).length){var i=new n.a(this.validate),a=r({},this.field,this.valueModel);i.validate(a,(function(e,i){if(e){var n=e.find((function(e){return e.field===t.field}));t.errorMessage=n?n.message:""}else t.errorMessage=""}))}}}}},"620c":function(e,t,i){},d18b:function(e,t,i){"use strict";i.r(t);var n=i("0d2b"),a=i("d708"),r={name:"inputBuild",mixins:[n.a],props:{rows:{type:Number,default:2},disabled:{type:Boolean,default:!1},copyText:{type:String,default:!1},copy:{type:Boolean,default:!1},randToken:{type:Number,default:0},maxlength:{type:Number,default:0}},data:function(){return{baseURL:a.a.apiBaseURL.replace(/adminapi/,"")}},methods:{handleCopySuccess:function(){this.$Message.success("复制成功")},encodingAESKeyGen:function(){for(var e="",t=0;t<43;t++)e+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"[parseInt(61*Math.random()+1)];return e},token:function(){for(var e="",t=0;t<32;t++)e+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"[parseInt(61*Math.random()+1)];return e},randTokenClick:function(){var e=this;this.valueModel?this.$Modal.confirm({title:this.title+"值已存在是否重新生成?",onOk:function(){e.changeToken()}}):this.changeToken()},changeToken:function(){1===this.randToken?(this.valueModel=this.token(),this.$emit("changeValue",{field:this.field,value:this.valueModel})):2===this.randToken&&(this.valueModel=this.encodingAESKeyGen(),this.$emit("changeValue",{field:this.field,value:this.valueModel}))}}},s=(i("ea89"),i("2877")),o=Object(s.a)(r,(function(){var e=this,t=e._self._c;return t("div",[t("FormItem",{staticClass:"input-build",class:e.getClassName(),attrs:{label:e.title}},[t("div",{staticClass:"input-error-wrapper"},[t("Input",{style:e.styleModel,attrs:{prefix:e.prefix,name:e.field,placeholder:e.placeholder,maxlength:0!==e.maxlength?e.maxlength:null,rows:e.rows,disabled:e.disabled,type:e.type?e.type:"text",suffix:e.suffix},on:{"on-blur":function(t){return e.changeEvent("blur",t)},"on-keyup":function(t){return e.changeEvent("keyup",t)},"on-focus":function(t){return e.changeEvent("focus",t)},"on-click":function(t){return e.changeEvent("click",t)},"on-change":function(t){return e.changeEvent("change",t)}},model:{value:e.valueModel,callback:function(t){e.valueModel=t},expression:"valueModel"}}),e.copy?t("Button",{directives:[{name:"clipboard",rawName:"v-clipboard",value:e.valueModel,expression:"valueModel"},{name:"clipboard",rawName:"v-clipboard:success",value:e.handleCopySuccess,expression:"handleCopySuccess",arg:"success"}],attrs:{type:"primary"}},[e._v(e._s(e.copyText))]):e._e(),0!==e.randToken?t("Button",{attrs:{type:"primary"},on:{click:e.randTokenClick}},[e._v("随机生成")]):e._e(),e.errorMessage&&!e.copy?t("div",{staticClass:"error-wrapper"},[e._v(e._s(e.errorMessage))]):e._e()],1),e.info?t("div",{staticClass:"info-wrapper"},[e._v(e._s(e.info)+"\n "),e.exampleImage[e.field]?t("Poptip",{attrs:{placement:"bottom",trigger:"hover",width:e.exampleSize[e.field],transfer:!0,padding:"8px"}},[t("a",[e._v("查看示例")]),t("div",{staticClass:"exampleImg",class:364==e.exampleSize[e.field]?"on":"",attrs:{slot:"content"},slot:"content"},[t("img",{attrs:{src:e.baseURL+e.exampleImage[e.field],alt:""}})])]):e._e()],1):e._e()])],1)}),[],!1,null,"3c334895",null);t.default=o.exports},ea89:function(e,t,i){"use strict";i("620c")}}]); |