(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-13e6c518","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437"],{"55e7":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-spin",{attrs:{spinning:e.confirmLoading,tip:e.loadingTip}},[a("j-form-container",{attrs:{disabled:e.formDisabled}},[a("a-form",{attrs:{slot:"detail",form:e.form},slot:"detail"},[a("a-row",[a("a-col",{attrs:{span:24}},[a("a-form-item",{attrs:{label:"数据源名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["sourceId",e.validatorRules.sourceId],expression:"['sourceId', validatorRules.sourceId]"}],staticStyle:{width:"100%"},attrs:{"show-search":"",disabled:e.editDisabled,optionFilterProp:"children"},on:{change:e.sourceChange}},e._l(e.dataSources,(function(t,r){return a("a-select-option",{key:r.toString(),attrs:{value:t.id}},[e._v("\n "+e._s(t.instanceName)+"\n ")])})),1)],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-item",{attrs:{label:"用户",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["sourceOwner",e.validatorRules.sourceOwner],expression:"['sourceOwner',validatorRules.sourceOwner]"}],attrs:{"show-search":"",disabled:e.editDisabled,optionFilterProp:"children"},on:{change:e.sourceUserChange}},e._l(e.dataSourceUsers,(function(t,r){return a("a-select-option",{key:r.toString(),attrs:{value:t.userName}},[e._v("\n "+e._s(t.userName)+"\n ")])})),1)],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-item",{attrs:{label:"源表名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["tableName",e.validatorRules.tableName],expression:"['tableName',validatorRules.tableName]"}],attrs:{"show-search":"",disabled:e.editDisabled,optionFilterProp:"children"},on:{change:e.sourceTableChange}},e._l(e.dataSourceTables,(function(t,r){return a("a-select-option",{key:r.toString(),attrs:{value:t}},[e._v("\n "+e._s(t)+"\n ")])})),1)],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-item",{attrs:{label:"同步依据字段",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["fieldName",e.validatorRules.fieldName],expression:"['fieldName',validatorRules.fieldName]"}],attrs:{disabled:e.editDisabled}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-item",{attrs:{label:"统计依据字段",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["statisticalValue"],expression:"['statisticalValue']"}]})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-item",{attrs:{label:"统计依据类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["statisticalType"],expression:"['statisticalType']"}],attrs:{"show-search":"",optionFilterProp:"children"},on:{change:e.statisticalTypeChange}},e._l(e.statisticalTypes,(function(t,r){return a("a-select-option",{key:r.toString(),attrs:{value:t.id}},[e._v("\n "+e._s(t.name)+"\n ")])})),1)],1)],1)],1)],1)],1)],1)},s=[],i=a("0fea"),o=a("88bc"),n=a.n(o),l=(a("ca00"),a("c681")),c={name:"IdcTableUniqueFieldForm",components:{JFormContainer:l["default"],VNodes:{functional:!0,render:function(e,t){return t.props.vnodes}}},props:{formData:{type:Object,default:function(){},required:!1},formBpm:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1}},data:function(){return{form:this.$form.createForm(this),loadingTip:"加载中...",model:{},dataSources:[],dataSourceTables:[],queryParam:{},dataSourceUsers:[{userName:""},{userName:"IDCX"},{userName:"LEB"},{userName:"MAP"},{userName:"REB"},{userName:"SEGMENT"},{userName:"SEL1"},{userName:"SEL2"},{userName:"SEL3"},{userName:"STATIC"},{userName:"RMSMAN"},{userName:"RMSAUTO"},{userName:"public"},{userName:"IDCTEST"}],statisticalTypes:[{id:"1",name:"年月日"},{id:"2",name:"年月"},{id:"3",name:"秒"}],labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,editDisabled:!1,validatorRules:{sourceId:{rules:[{required:!0,message:"请选择数据源名称!"}]},sourceOwner:{rules:[{required:!0,message:"请选择用户!"}]},tableName:{rules:[{required:!0,message:"请选择源表名称!"}]},fieldName:{rules:[{required:!0,message:"请输入同步依据字段!"}]},statisticalValue:{rules:[{required:!0,message:"请输入统计依据字段!"}]},statisticalType:{rules:[{required:!0,message:"请选择统计依据类型!"}]}},url:{add:"/IdcTableUniqueField/idcTableUniqueField/add",edit:"/IdcTableUniqueField/idcTableUniqueField/edit",queryById:"/IdcTableUniqueField/idcTableUniqueField/queryById",queryDataSourceList:"/idc/dataSource/list",querySourceTableListBySourceId:"/SynchronizationStrategy/synchronizationStrategy/queryTableUniqueFieldBySourceIdAndOwner"}}},computed:{formDisabled:function(){return!0===this.formBpm?!1!==this.formData.disabled:this.disabled},showFlowSubmitButton:function(){return!0===this.formBpm&&!1===this.formData.disabled}},created:function(){this.showFlowData(),this.getDataSourceList()},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.visible=!0,this.form.resetFields(),this.model=Object.assign({},e),this.$nextTick((function(){t.form.setFieldsValue(n()(t.model,"fieldName","sourceId","tableName","sourceOwner","statisticalValue","statisticalType"))}))},getDataSourceList:function(){var e=this;Object(i["c"])(this.url.queryDataSourceList,{}).then((function(t){t.success&&(e.dataSources=t.result.records,e.dataSources.unshift({value:"",name:""}))}))},sourceChange:function(e){this.$set(this.model,"sourceId",e)},sourceTableChange:function(e){this.$set(this.model,"tableName",e)},statisticalTypeChange:function(e){this.$set(this.model,"statisticalType",e)},sourceUserChange:function(e){var t=this;this.confirmLoading=!0,this.loadingTip="加载源表中...",this.$set(this.model,"sourceOwner",e),this.dataSourceTables=[],this.model.sourceId&&Object(i["c"])(this.url.querySourceTableListBySourceId,{idcDataSourceId:this.model.sourceId,sourceOwner:e}).then((function(e){e.success&&(t.confirmLoading=!1,t.dataSourceTables=e.result,t.dataSourceTables.unshift(""))}))},showFlowData:function(){var e=this;if(!0===this.formBpm){var t={id:this.formData.dataId};Object(i["c"])(this.url.queryById,t).then((function(t){t.success&&e.edit(t.result)}))}},submitForm:function(){var e=this,t=this;this.form.validateFields((function(a,r){if(!a){t.confirmLoading=!0;var s="",o="";e.model.id?(s+=e.url.edit,o="put"):(s+=e.url.add,o="post");var n=Object.assign(e.model,r);Object(i["h"])(s,n,o).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1}))}}))}}},u=c,d=a("2877"),m=Object(d["a"])(u,r,s,!1,null,null,null);t["default"]=m.exports},"88bc":function(e,t,a){(function(t){var a=1/0,r=9007199254740991,s="[object Arguments]",i="[object Function]",o="[object GeneratorFunction]",n="[object Symbol]",l="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")();function d(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}function m(e,t){var a=-1,r=e?e.length:0,s=Array(r);while(++a0&&a(n)?t>1?S(n,t-1,a,r,s):f(s,n):r||(s[s.length]=n)}return s}function C(e,t){return e=Object(e),N(e,t,(function(t,a){return a in e}))}function N(e,t,a){var r=-1,s=t.length,i={};while(++r-1&&e%1==0&&e<=r}function _(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function U(e){return!!e&&"object"==typeof e}function k(e){return"symbol"==typeof e||U(e)&&b.call(e)==n}var x=T((function(e,t){return null==e?{}:C(e,m(S(t,1),F))}));e.exports=x}).call(this,a("c8ba"))}}]);