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
71 KiB
1 line
71 KiB
3 years ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7094"],{"/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),s=i("rfXi"),a=i.n(s),o=i("EJiy"),r=i.n(o),d=i("QbLZ"),c=i.n(d),u=i("6iAj"),f=i("4XAY"),h=i("a/5N"),p=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],tableData:[{}]}},computed:{isEmpty:function(){return Object(h.b)(this.field.fieldExtendList)},isList:function(){return!0},list:function(){return this.isEmpty?[]:this.field.fieldExtendList}},methods:{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("bvaz"),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(e){return[i("div",{staticClass:"input-box"})]}}])})}),e._v(" "),i("el-table-column",{attrs:{label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",[e._v("删除")])]}}])})],2)]],2),e._v(" "),e.isEmpty?e._e():i("div",{staticClass:"add-btn"},[i("el-button",{attrs:{type:"text"}},[i("i",{staticClass:"wk wk-l-plus"}),e._v("\n "+e._s(e.field.remark||"")+"\n ")])],1)],1)])},[],!1,null,"02ba5e94",null);$.options.__file="FieldDetailTable.vue";var N=$.exports,D=i("GlKA"),L=i("Wz3p"),S=i("pKHB"),T=i("UEfr"),P=i("7Qib"),I={name:"SettingDefault",components:{WkDistpicker:T.a},props:{field:{type:Object,requi
|