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.
wkcrm_web/dist/static/js/chunk-e8d6.5d166575.js

1 line
18 KiB

2 years ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-e8d6"],{"1dVj":function(e,t,i){},C3Po:function(e,t,i){"use strict";var a=i("QbLZ"),s=i.n(a),l=i("8GhS"),n=i("zsVz"),o=i("gVZb"),r=i("EP+0"),d=i("XAon"),c=i("3pgX"),f=i("Woz+"),m=i("bWDp"),u={name:"WkForm",components:{WkUserSelect:d.a,WkDepSelect:c.a,VDistpicker:f.a,XhFiles:l.f},mixins:[m.a],inheritAttrs:!1,props:{fieldFrom:{type:Object,default:function(){return{}}},fieldList:{type:Array,default:function(){return[]}},customClass:{type:String,default:"is-two-columns"}},data:function(){return{instance:null}},computed:{},watch:{},mounted:function(){var e=this;this.$nextTick(function(){e.instance=e.$refs.form})},beforeDestroy:function(){},methods:{}},p=(i("mYM5"),i("ou9j"),i("KHd+")),h=Object(p.a)(u,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",e._g(e._b({ref:"form",staticClass:"wk-form",class:e.customClass},"el-form",e.$attrs,!1),e.$listeners),[e._l(e.fieldList,function(t,a){return i("el-form-item",{key:a,class:[t.className||"","is-"+t.form_type],attrs:{prop:t.field}},[i("template",{slot:"label"},[e._v("\n "+e._s(t.name)+"\n "),i("span",{staticStyle:{color:"#999"}},[e._v("\n "+e._s(e.getTips(t))+"\n ")])]),e._v(" "),"text"==t.form_type?i("el-input",{attrs:{disabled:t.disabled,maxlength:100,placeholder:t.placeholder,type:t.form_type},on:{input:function(i){e.commonChange(t,a,i)}},model:{value:e.fieldFrom[t.field],callback:function(i){e.$set(e.fieldFrom,t.field,i)},expression:"fieldFrom[item.field]"}}):e._e(),e._v(" "),e.isTrimInput(t.form_type)?i("el-input",{attrs:{disabled:t.disabled,maxlength:100,placeholder:t.placeholder,type:"text"},on:{input:function(i){e.commonChange(t,a,i)}},model:{value:e.fieldFrom[t.field],callback:function(i){e.$set(e.fieldFrom,t.field,"string"==typeof i?i.trim():i)},expression:"fieldFrom[item.field]"}}):"number"==t.form_type?i("el-input-number",{attrs:{placeholder:t.placeholder,disabled:t.disabled,controls:!1},on:{input:function(i){e.commonChange(t,a,i)}},model:{value:e.fieldFrom[t.field],callback:function(i){e.$set(e.fieldFrom,t.field,i)},expression:"fieldFrom[item.field]"}}):"floatnumber"==t.form_type?i("el-input-number",{attrs:{placeholder:t.placeholder,disabled:t.disabled,controls:!1},on:{change:function(i){e.commonChange(t,a,i)}},model:{value:e.fieldFrom[t.field],callback:function(i){e.$set(e.fieldFrom,t.field,i)},expression:"fieldFrom[item.field]"}}):"textarea"==t.form_type?i("el-input",{attrs:{disabled:t.disabled,rows:3,autosize:{minRows:3},maxlength:800,placeholder:t.placeholder,type:t.form_type,resize:"none"},on:{input:function(i){e.commonChange(t,a,i)}},model:{value:e.fieldFrom[t.field],callback:function(i){e.$set(e.fieldFrom,t.field,i)},expression:"fieldFrom[item.field]"}}):["checkbox","select"].includes(t.form_type)?i("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled,clearable:t.clearable,placeholder:t.placeholder,multiple:"checkbox"===t.form_type},on:{change:function(i){e.commonChange(t,a,i)}},model:{value:e.fieldFrom[t.field],callback:function(i){e.$set(e.fieldFrom,t.field,i)},expression:"fieldFrom[item.field]"}},e._l(t.setting,function(t,a){return i("el-option",{key:a,attrs:{label:e.isEmptyValue(t.value)?t:t.label||t.name,value:e.isEmptyValue(t.value)?t:t.value}})})):"checkbox"==t.form_type?i("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled,clearable:t.clearable,placeholder:t.placeholder,multiple:""},on:{change:function(i){e.commonChange(t,a,i)}},model:{value:e.fieldFrom[t.field],callback:function(i){e.$set(e.fieldFrom,t.field,i)},expression:"fieldFrom[item.field]"}},e._l(t.setting,function(t,a){return i("el-option",{key:a,attrs:{label:e.isEmptyValue(t.value)?t:t.label||t.name,value:e.isEmptyValue(t.value)?t:t.value}})})):"date"==t.form_type?i("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled,clearable:"",type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},on:{change:function(i){e.commonChange(t,a,i)}},model:{value:e.fieldFrom[t.field],callback:function(i){e.$set(e.fieldFrom,t.field,i)},expression:"fie