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/static/js/chunk-4858.d691bf45.js

1 line
72 KiB

3 years ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4858"],{"/7ML":function(e,t,i){},"/tGF":function(e,t,i){},"/xxq":function(e,t,i){"use strict";var n=i("TX6L");i.n(n).a},"0Qre":function(e,t,i){"use strict";var n=i("dL33");i.n(n).a},"5jDI":function(e,t,i){"use strict";i.r(t);var n=i("jWXv"),l=i.n(n),a=i("rfXi"),s=i.n(a),o=i("EJiy"),r=i.n(o),c=i("QbLZ"),d=i.n(c),u=i("6iAj"),f=i("4XAY"),p=i("a/5N"),h=i("t7tB"),m=i("AET2"),v=i("8urS"),_=i("tsk7"),b=i("e5uV"),g=i("x3h8"),y=i("8U2t"),x=i("AEIj"),k=i("INrU"),C=i("9Ezw"),w=i("t2rG"),F=i.n(w),A=i("pGpU"),E=i("bZT/"),j={name:"FieldDetailTable",components:{draggable:F.a,FieldWrapper:C.a,FieldInput:function(){return Promise.resolve().then(i.bind(null,"t7tB"))},FieldTextarea:function(){return Promise.resolve().then(i.bind(null,"AET2"))},FieldSelect:function(){return Promise.resolve().then(i.bind(null,"8urS"))},FieldCheckbox:function(){return Promise.resolve().then(i.bind(null,"tsk7"))},FieldFile:function(){return Promise.resolve().then(i.bind(null,"e5uV"))},FieldBoolean:function(){return Promise.resolve().then(i.bind(null,"x3h8"))},FieldPercent:function(){return Promise.resolve().then(i.bind(null,"8U2t"))},FieldPosition:function(){return Promise.resolve().then(i.bind(null,"AEIj"))},FieldLocation:function(){return Promise.resolve().then(i.bind(null,"INrU"))},FieldWritingSign:function(){return Promise.resolve().then(i.bind(null,"GlKA"))},FieldDateInterval:function(){return Promise.resolve().then(i.bind(null,"Wz3p"))},FieldDescText:function(){return Promise.resolve().then(i.bind(null,"pKHB"))}},filters:{typeToComponentName:function(e){return Object(E.b)(e)}},mixins:[A.a],data:function(){return{dragListConfig:{delay:50,group:{name:"childList",put:["libList"],pull:!1},sort:!1,forceFallback:!0,fallbackClass:"draggingStyle",filter:".empty-box"},selectedPoint:[null,null]}},computed:{isEmpty:function(){return Object(p.b)(this.field.fieldExtendList)},isList:function(){return!0},list:function(){return this.isEmpty?[]:this.field.fieldExtendList},tableData:function(){var e=this,t={};return this.list.forEach(function(i){t[i.fieldName]=e.formatterDefaultValue(i)}),[t]}},methods:{formatterDefaultValue:function(e){return e.default_value?"boolean_value"===e.form_type?{0:"不选中",1:"选中"}[e.default_value]||"不选中":"datatime"===e.form_type||"date_interval"===e.form_type?e.default_value.join("-"):"checkbox"===e.form_type?e.default_value.join(","):"string"==typeof e.default_value?e.default_value:void 0:""},dragListEnd:function(e){},dragAdded:function(e){var t=this;this.$emit("child-drag-add",this.point,e),this.$nextTick(function(){t.selectedPoint=[e.newIndex,0]})}}},O=(i("g53C"),i("KHd+")),$=Object(O.a)(j,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("field-wrapper",{staticClass:"field-detail-table",attrs:{activate:e.activate,field:e.field,"control-flag":e.controlFlag},on:{click:e.emitClick,action:e.handleAction}},[i("div",{staticClass:"box",class:{"is-empty":e.isEmpty}},[i("draggable",{staticClass:"field-list",class:{"is-table":2===e.field.precisions},attrs:{list:e.list,options:e.dragListConfig},on:{end:e.dragListEnd,add:e.dragAdded}},[e.isEmpty?i("div",{staticClass:"empty-box"},[i("div",{staticClass:"empty-box-title"},[e._v("可拖拽添加多个字段")]),e._v(" "),i("div",{staticClass:"empty-box-desc"},[e._v("(不支持明细中添加明细字段)")])]):e._e(),e._v(" "),e.isEmpty||1!==e.field.precisions?e._e():e._l(e.list,function(t,n){return i(e._f("typeToComponentName")(t),{key:n,tag:"component",staticClass:"draggable-hook",attrs:{field:t,point:[n,0],"active-point":[null,null]},on:{click:e.emitClick}})}),e._v(" "),e.isEmpty||2!==e.field.precisions?e._e():[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,border:""}},[e._l(e.list,function(t,n){return i("el-table-column",{key:n,attrs:{prop:t.fieldName,label:t.name},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row,l=t.column;return[i("div",{staticClass:"input-box"},[e._v("\n "+e._s(n[l.property])+"\n ")])]}}])})}),e._v(" "),i("el-table-column",{attrs:{lab