bri-components 1.2.27 → 1.2.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- webpackJsonpbri_components([0],{197:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(410),a=n(431),i=n(0)(r.a,a.a,!1,null,null,null);t.default=i.exports},410:function(e,t,n){"use strict";var r=n(2),a=n.n(r),i=n(3),o=n(194),l=n(429);t.a={name:"cascaderTable",mixins:[i.default],components:{DshBtnModal:o.a,DshCascaderTable:l.a},props:{},data:function(){return{isEnlarge:!1,timer:null,operationMap:{canExport:{name:"导出",type:"canExport",icon:"md-share-alt",size:"small",btnType:"text",event:"clickExport"},canEnlarge:{name:"全屏展示",type:"canEnlarge",icon:"md-expand",size:"small",btnType:"text",event:"clickEnlarge"},canLink:{customIcon:"bico-Cascadetable"}}}},computed:{treeColumns:function(){return this.curVal&&this.curVal._treeForm?this.curVal._treeForm:this.propsObj._treeForm},subColumns:function(){return this.propsObj._subForm},operationBtns:function(){return this.propsObj._isExport?["canExport","canEnlarge"]:["canEnlarge"]},modalPropsObj:function(){return{title:this.propsObj._name,fullscreen:!0,showSlotClose:!1,closable:!0}}},created:function(){},methods:{clickExport:function(e){e.disabled=!0,this.handleExport(e)},clickEnlarge:function(){this.isEnlarge=!0},change:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["change"].concat(a()(t)))},handleExport:function(e){var t=this;this.$https({url:{module:"sheet",name:"exportCascaderTableExcel"},params:{_key:this.controlKey,_id:this.value._id},callback:function(n){t.timer=setInterval(function(){t.getJobStatusData(e,n.jobId,n.excel_url)},1e3)}})},getJobStatusData:function(e,t,n){var r=this;this.$https({url:{module:"sheet",name:"getJobStatus"},params:{jobId:t},callback:function(t){e.disabled=!1,"completed"===t.status?(clearInterval(r.timer),window.location.href=t.url):"failed"===t.status&&(clearInterval(r.timer),r.$Message.info({content:"操作失败,请稍后再试"}))},error:function(t){e.disabled=!1,r.timer=null}})}}}},411:function(e,t,n){"use strict";var r=n(12),a=n.n(r),i=n(23),o=n.n(i),l=n(1),s=n.n(l),c=n(2),d=n.n(c),h=n(90);t.a={name:"DshCascaderTable",components:{DshListUnit:h.a},props:{useCol:{type:Boolean,default:!1},canEdit:{type:Boolean,default:!0},data:{type:Object,default:function(){return{tree:[],list:[],rowDefault:{},_treeForm:[]}}},treeColumns:{type:Array,default:function(){return[]}},subColumns:{type:Array,default:function(){return[]}},propsObj:{type:Object,default:function(){return{}}}},data:function(){return{widthMap:this.$getModFieldPropertyMap("width"),boxWidth:0,getColOperationNames:function(e){return["createCol"].concat(d()(e.level>1&&!0===e.canDelete?["deleteCol"]:[]))},allOperationMap:{clickTh:{name:"点击列的表头",type:"clickTh",event:"clickTh"},createCol:{name:"添加一列",type:"createCol",icon:"md-add",event:"createCol"},deleteCol:{name:"删除该列",type:"deleteCol",icon:"md-trash",color:"red",event:"deleteCol"},clickNode:{name:"点击节点",type:"clickNode",event:"clickNode"},blurNode:{name:"节点失去焦点",type:"blurNode",event:"blurNode"},changeNode:{name:"改变节点值",type:"changeNode",event:"changeNode"},createBrotherNode:{name:"添加同级节点",type:"createBrotherNode",icon:"md-add",event:"createBrotherNode"},createChildNode:{name:"添加子节点",type:"createChildNode",icon:"md-add",event:"createChildNode"},deleteSelfAndChildNodes:{name:"删除该节点",type:"deleteSelfAndChildNodes",icon:"md-trash",color:"red",divided:!0,event:"deleteSelfAndChildNodes"},deleteChildNodes:{name:"删除所有子节点",type:"deleteChildNodes",icon:"md-trash",color:"red",event:"deleteChildNodes"},clearNode:{name:"清除该节点内容",type:"clearNode",icon:"md-trash",divided:!0,event:"clearNode"},clearChildNodes:{name:"清除所有子节点内容",type:"clearChildNodes",icon:"md-trash",event:"clearChildNodes"},changeVal:{name:"改变输入框值",type:"changeVal",event:"changeVal"}}}},computed:{selfPropsObj:function(){return s()({_disabledBtns:!1},this.propsObj)},disabledBtns:function(){return this.selfPropsObj._disabledBtns},treeData:function(){return this.transforBriTreeData()},columns:function(){return this.transformColumns(this.treeColumns)},rows:function(){return this.transformRows()},rowColumnsArr:function(){return this.transformRowColumnsArr()},operationMap:function(){return this.canEdit?this.$categoryMapToMap(this.allOperationMap,void 0,void 0,this.disabledBtns?["changeVal"]:void 0):{}},getThStyle:function(){return function(e){var t=this.columns.length,n=this.widthMap[e._type];"number"==e._type?n=110:"reference"===e._type&&(n=200+(e._name?14*e._name.length:36));var r="tree"===e.colType?Math.min(Math.max(this.boxWidth/t,80),160):"summary"===e.colType?100:Math.max(this.boxWidth/t,n),a="tree"===e.colType?{backgroundColor:"f0f0f0",textAlign:"center",fontSize:"14px"}:"summary"===e.colType?{backgroundColor:"#eeeeee",textAlign:"right"}:{textAlign:e._align||"left"};return r=e._width||r,s()({width:r+"px",minWidth:r+"px",maxWidth:r+"px",height:"44px",padding:"5px 5px",cursor:"pointer",lineHeight:"20px"},a)}}},created:function(){this.init()},mounted:function(){var e=this;setTimeout(function(){e.$el.querySelector(".DshCascaderTable-wrap-center-list").addEventListener("scroll",function(t){e.$el.querySelector(".DshCascaderTable-wrap-center-top").scrollLeft=t.srcElement.scrollLeft},!1),e.boxWidth=e.$refs.DshCascaderTable.clientWidth},0)},methods:{init:function(){var e=this;this.treeColumns.forEach(function(t,n){e.$set(t,"level",n+1),e.$set(t,"canDelete",!0)});!function t(n){n.forEach(function(n){n.children.length?t(n.children):e.subColumns.forEach(function(t){e.$set(n,t._key,n[t._key])})})}(this.data.tree)},clickTh:function(e,t){this.$emit("clickTh",t)},createCol:function(e,t,n,r){"tree"===t.colType&&t.level===this.treeColumns.length&&(this.treeColumns.push({_id:this.$ObjectID().str,_key:this.$randomB36("Field"),_type:"textarea",_name:this.$numToChinese(this.treeColumns.length+1)+"级表头",level:this.treeColumns.length+1,canDelete:!0,_treeSubForm:[]}),this.data._treeForm=this.treeColumns,this.change("createCol",t,null))},deleteCol:function(e,t,n,r){"tree"===t.colType&&!1!==t.canDelete&&(this.isDeleteColStatus=!0,this.treeColumns.pop(),this.data._treeForm=this.treeColumns,this.change("deleteCol",t,null))},clickNode:function(e,t,n,r){var a=this;"tree"===t.colType?(r.isEdit=!0,this.$nextTick(function(){a.$refs[""+t._id+n._id][0]&&a.$refs[""+t._id+n._id][0].focus()})):"summary"===t.colType&&this.$Modal.warning({title:"该汇总单元格自动计算,不准手动输入!",closable:!0,onOk:function(){},onCancel:function(){}})},blurNode:function(e,t,n,r){r.isEdit=!1},changeNode:function(e,t,n,r){this.change("changeNode",t,n,r)},createBrotherNode:function(e,t,n,r){var a=this.getNodeData(t,n,r),i=this.getNewNode(a.level,a.brotherList);a.brotherList.splice(a.index+1,0,i),this.change("createBrotherNode",r,t,a)},createChildNode:function(e,t,n,r){var a=this.getNodeData(t,n,r),i=this.getNewNode(a.level+1,a.childList);a.childList.splice(a.childList.length,0,i),this.change("createChildNode",r,t,a)},deleteSelfAndChildNodes:function(e,t,n,r){var a=this.getNodeData(t,n,r);if(a.brotherList.splice(a.index,1),!a.brotherList.length){var i=this.getNewNode(a.level,a.brotherList);a.brotherList.push(i)}this.change("deleteSelfAndChildNodes",r,t,a)},deleteChildNodes:function(e,t,n,r){var a=this.getNodeData(t,n,r);a.childList.splice(0);var i=this.getNewNode(a.level+1,a.childList);a.childList.push(i),this.change("deleteChildNodes",r,t,a)},clearNode:function(e,t,n,r){var a=this.getNodeData(t,n,r);a.data.name="",this.change("clearNode",r,t,a)},clearChildNodes:function(e,t,n,r){var a=this.getNodeData(t,n,r);this.clearNodeToLeaf(a.childList),this.change("clearChildNodes",r,t,a)},changeVal:function(e,t,n,r){this.change("changeVal",t,n,r)},transformColumns:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.treeColumns,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.subColumns;return e.reduce(function(e,t,n){return e.concat(s()({},t,{colType:"tree"}),t._treeSubForm.map(function(e){return s()({},e,{nodeKey:t._key,colType:"summary"})}))},[]).concat(t.filter(function(e){return"hide"!==e._displayType}).map(function(t){return s()({},t,{nodeKey:e[e.length-1]._key,colType:"data"})}))},transforBriTreeData:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.treeColumns,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.subColumns;t.forEach(function(e,t){e.canDelete=!0,e.level=t+1});return function r(a){a.forEach(function(a){var i=t[a.level-1];if(e.$setObj(a,{_key:i._key,level:i.level,isEdit:!1,isLeaf:!1,total:1}),a.level===t.length){if(e.isDeleteColStatus){var o=a.children[0];n.forEach(function(e){a[e._key]=o[e._key]})}a.children=[],a.isLeaf=!0}else if(a.level===t.length-1&&a.children.length>1&&(t[a.level].canDelete=!1),a.children.length)r(a.children);else{var l=e.getNewNode(a.level+1,a.children);n.forEach(function(e){l[e._key]=a[e._key],delete a[e._key]}),a.children.push(l),r(a.children)}})}(this.data.tree),this.isDeleteColStatus=!1,this.data.tree},transformRowColumnsArr:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.treeData,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.treeColumns;return function t(r,a){return r.reduce(function(r,a,i){return 0===i&&0!==r.length||r.push(e.transformColumns(n.slice(a.level-1))),a.children.length?t(a.children,r):r},a)}(t,[])},transformRows:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.treeData,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.treeColumns;return function t(r,i){return r.reduce(function(r,i,l){0===l&&0!==r.length||r.push({_id:e.$ObjectID().str});var s=n[i.level-1],c=r[r.length-1];if(o()(c,a()({},s._key,i)),i.children.length){var d=r.length-1,h=t(i.children,r);return i.total=h.length-d,h}return r},i)}(t,[])},clearNodeToLeaf:function(e){!function e(t){t.forEach(function(t){t.name="",t.children.length&&e(t.children)})}(e)},getNodeData:function(e,t,n){var r=this.getParentNode(e,t,n);return{level:n.level,data:e[n._key],childList:e[n._key].children,brotherList:r.children,index:r.children.findIndex(function(t){return t._id===e[n._key]._id})}},getParentNode:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.treeColumns;if(1===n.level)return{children:this.treeData};var i=a[n.level-2];return function e(t,n){return t[i._key]||e(r.rows[n-1],n-1)}(e,t)},getNewNode:function(e,t){var n=this.$deepCopy(this.data.rowDefault);this.subColumns.forEach(function(e){n[e._key]=n[e._key]});var r=this.$numToChinese(e);return s()({_id:this.$ObjectID().str,name:r+"级节点"+(t.length+1),level:e,children:[]},n)},getSummaryVal:function(e,t){if(e._calField&&e._operator){var n=this.subColumns.find(function(t){return t._key===e._calField});if(n){var r=function t(n,r){return n.reduce(function(n,r){return r.children.length?t(r.children,n):(n.push(r[e._calField]||0),n)},r)}(t[e.nodeKey].children,[]);return this.$calNumList(r,e._operator,n)}return"来源列"+e._calField+"被删除"}return e._calField||e._operator?e._calField?"未选择算法":"未选择来源列":"未选择来源列和算法"},getTdStyle:function(e,t){return s()({},this.getThStyle(e),{backgroundColor:t&&t[e.nodeKey]?"":"#fff"})},geTdRowspan:function(e,t){return t[e.nodeKey||e._key]&&t[e.nodeKey||e._key].total||1},geTdColspan:function(e,t){return 1},getNodeOperationNames:function(e,t,n){return 0===n.children.length?["createBrotherNode","deleteSelfAndChildNodes","clearNode"]:["createBrotherNode","createChildNode","deleteSelfAndChildNodes","deleteChildNodes","clearNode","clearChildNodes"]},enterText:function(e){var t=new RegExp(/\n/g);return e.replace(t,"<br/>")},change:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["change",this.data].concat(d()(t)))}}}},429:function(e,t,n){"use strict";var r=n(411),a=n(430),i=n(0)(r.a,a.a,!1,null,null,null);t.a=i.exports},430:function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"DshCascaderTable",staticClass:"DshCascaderTable"},[n("div",{class:{"DshCascaderTable-wrap":!0,"DshCascaderTable-readonly":!e.canEdit}},[n("div",{staticClass:"DshCascaderTable-wrap-center"},[n("div",{staticClass:"DshCascaderTable-wrap-center-top"},[n("div",{staticClass:"DshCascaderTable-wrap-center-top-inner"},[n("table",{staticClass:"table",attrs:{border:"1",cellspacing:"0",bordercolor:"#E7EDF8"}},[n("tbody",[n("tr",{staticClass:"table-col"},e._l(e.columns,function(t,r){return n("th",{key:t._id,staticClass:"td-tree",style:e.getThStyle(t),on:{click:function(n){return e.$dispatchEvent(e.operationMap.clickTh,t)}}},[n("span",[t._required?n("i",{staticStyle:{color:"red"}},[e._v("*")]):e._e(),e._v("\n "+e._s(t._name)+"\n ")]),e._v(" "),e.useCol&&"tree"===t.colType&&t.level===e.treeColumns.length&&e.$getOperationList(e.getColOperationNames(t)).length?n("dsh-dropdown",{staticClass:"td-tree-dropdown",attrs:{menuClass:"td-tree-dropdown-list",trigger:"hover",list:e.$getOperationList(e.getColOperationNames(t))},on:{click:function(n){return e.$dispatchEvent(n,t,r,e.columns)}},nativeOn:{click:function(e){e.stopPropagation()}}},[n("a",{attrs:{href:"javascript:void(0)"}},[n("Icon",{attrs:{type:"md-add-circle",size:"20"}})],1)]):e._e()],1)}),0)])])])]),e._v(" "),n("div",{staticClass:"DshCascaderTable-wrap-center-list"},[n("div",{staticClass:"DshCascaderTable-wrap-center-list-inner"},[n("table",{staticClass:"table",attrs:{border:"1",cellspacing:"0",bordercolor:"#E7EDF8"}},[n("tbody",[e.rows.length?e._l(e.rows,function(t,r){return n("tr",{key:t._id,staticClass:"table-row"},[e._l(e.rowColumnsArr[r],function(a){return[["tree","summary"].includes(a.colType)?n("td",{key:a._key,class:"td-"+a.colType,style:e.getTdStyle(a,t),attrs:{rowspan:e.geTdRowspan(a,t),colspan:e.geTdColspan(a,t)},on:{click:function(n){return e.$dispatchEvent(e.operationMap.clickNode,a,t,t[a._key])}}},["tree"===a.colType?[t[a._key].isEdit?n("Input",{ref:""+a._id+t._id,refInFor:!0,staticClass:"textarea",attrs:{type:"textarea",autosize:{minRows:3*e.geTdRowspan(a,t)-1,maxRows:100}},on:{"on-blur":function(n){return e.$dispatchEvent(e.operationMap.blurNode,a,t,t[a._key])},"on-change":function(n){return e.$dispatchEvent(e.operationMap.changeNode,a,t,t[a._key])}},model:{value:t[a._key].name,callback:function(n){e.$set(t[a._key],"name",n)},expression:"row[col._key].name"}}):[n("bri-tooltip",{attrs:{transfer:!0,content:e.enterText(t[a._key].name)}},[n("span",{staticClass:"dsh-ellipsis",staticStyle:{"word-break":"break-word"},domProps:{innerHTML:e._s(e.enterText(t[a._key].name))}})]),e._v(" "),e.$getOperationList(e.getNodeOperationNames(a,t,t[a._key])).length?n("dsh-dropdown",{staticClass:"td-tree-dropdown",attrs:{menuClass:"td-tree-dropdown-list",trigger:"hover",list:e.$getOperationList(e.getNodeOperationNames(a,t,t[a._key]))},on:{click:function(n){return e.$dispatchEvent(n,t,r,a)}},nativeOn:{click:function(e){e.stopPropagation()}}},[n("a",{attrs:{href:"javascript:void(0)"}},[n("Icon",{attrs:{type:"md-add-circle",size:"20"}})],1)]):e._e()]]:"summary"===a.colType?[n("span",[e._v(e._s(e.getSummaryVal(a,t)))])]:e._e()],2):n("td",{key:a._key+"",style:e.getTdStyle(a,t)},[n("dsh-list-unit",{attrs:{canEdit:e.canEdit,rowIndex:r,formData:t[a.nodeKey],formItem:a},on:{change:function(n){return e.$dispatchEvent(e.operationMap.changeVal,a,t,arguments)}}})],1)]})],2)}):n("tr",{staticClass:"table-nodata"},[n("td",{attrs:{colspan:e.columns.length}},[e._v("暂无内容……")])])],2)])])])])])])},staticRenderFns:[]};t.a=r},431:function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"cascaderTable"},[e.isUnitShow?n("span",{staticClass:"cascaderTable-unit"},[n("dsh-icons",{attrs:{list:e.$getOperationList(["canLink"])}}),e._v(" "),n("span",{staticClass:"cascaderTable-unit-text"},[e._v("\n "+e._s(e.curVal&&e.curVal.tree.length)+"行\n ")])],1):["_default"===e.propsObj._key?n("dsh-btn-modal",[n("dsh-cascader-table",{attrs:{canEdit:e.finalCanEdit,treeColumns:e.treeColumns,subColumns:e.subColumns,data:e.curVal,propsObj:e.propsObj},on:{change:e.change}})],1):[n("dsh-buttons",{staticClass:"cascaderTable-btns",attrs:{itemClass:"cascaderTable-btns-item",list:e.$getOperationList(e.operationBtns)},on:{click:function(t){return e.$dispatchEvent(t)}}}),e._v(" "),n("dsh-cascader-table",{attrs:{useCol:"",canEdit:e.finalCanEdit,treeColumns:e.treeColumns,subColumns:e.subColumns,data:e.curVal,propsObj:e.propsObj},on:{change:e.change}}),e._v(" "),n("dsh-modal",{attrs:{mode:"custom",propsObj:e.modalPropsObj},model:{value:e.isEnlarge,callback:function(t){e.isEnlarge=t},expression:"isEnlarge"}},[n("dsh-cascader-table",{attrs:{useCol:"",canEdit:e.finalCanEdit,treeColumns:e.treeColumns,subColumns:e.subColumns,data:e.curVal,propsObj:e.propsObj},on:{change:e.change}})],1)]]],2)},staticRenderFns:[]};t.a=r}});
1
+ webpackJsonpbri_components([0],{197:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(404),a=n(416),i=n(0)(r.a,a.a,!1,null,null,null);t.default=i.exports},404:function(e,t,n){"use strict";var r=n(2),a=n.n(r),i=n(3),o=n(194),l=n(414);t.a={name:"cascaderTable",mixins:[i.default],components:{DshBtnModal:o.a,DshCascaderTable:l.a},props:{},data:function(){return{isEnlarge:!1,timer:null,operationMap:{canExport:{name:"导出",type:"canExport",icon:"md-share-alt",size:"small",btnType:"text",event:"clickExport"},canEnlarge:{name:"全屏展示",type:"canEnlarge",icon:"md-expand",size:"small",btnType:"text",event:"clickEnlarge"},canLink:{customIcon:"bico-Cascadetable"}}}},computed:{treeColumns:function(){return this.curVal&&this.curVal._treeForm?this.curVal._treeForm:this.propsObj._treeForm},subColumns:function(){return this.propsObj._subForm},operationBtns:function(){return this.propsObj._isExport?["canExport","canEnlarge"]:["canEnlarge"]},modalPropsObj:function(){return{title:this.propsObj._name,fullscreen:!0,showSlotClose:!1,closable:!0}}},created:function(){},methods:{clickExport:function(e){e.disabled=!0,this.handleExport(e)},clickEnlarge:function(){this.isEnlarge=!0},change:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["change"].concat(a()(t)))},handleExport:function(e){var t=this;this.$https({url:{module:"sheet",name:"exportCascaderTableExcel"},params:{_key:this.controlKey,_id:this.value._id},callback:function(n){t.timer=setInterval(function(){t.getJobStatusData(e,n.jobId,n.excel_url)},1e3)}})},getJobStatusData:function(e,t,n){var r=this;this.$https({url:{module:"sheet",name:"getJobStatus"},params:{jobId:t},callback:function(t){e.disabled=!1,"completed"===t.status?(clearInterval(r.timer),window.location.href=t.url):"failed"===t.status&&(clearInterval(r.timer),r.$Message.info({content:"操作失败,请稍后再试"}))},error:function(t){e.disabled=!1,r.timer=null}})}}}},405:function(e,t,n){"use strict";var r=n(12),a=n.n(r),i=n(23),o=n.n(i),l=n(1),s=n.n(l),c=n(2),d=n.n(c),h=n(90);t.a={name:"DshCascaderTable",components:{DshListUnit:h.a},props:{useCol:{type:Boolean,default:!1},canEdit:{type:Boolean,default:!0},data:{type:Object,default:function(){return{tree:[],list:[],rowDefault:{},_treeForm:[]}}},treeColumns:{type:Array,default:function(){return[]}},subColumns:{type:Array,default:function(){return[]}},propsObj:{type:Object,default:function(){return{}}}},data:function(){return{widthMap:this.$getModFieldPropertyMap("width"),boxWidth:0,getColOperationNames:function(e){return["createCol"].concat(d()(e.level>1&&!0===e.canDelete?["deleteCol"]:[]))},allOperationMap:{clickTh:{name:"点击列的表头",type:"clickTh",event:"clickTh"},createCol:{name:"添加一列",type:"createCol",icon:"md-add",event:"createCol"},deleteCol:{name:"删除该列",type:"deleteCol",icon:"md-trash",color:"red",event:"deleteCol"},clickNode:{name:"点击节点",type:"clickNode",event:"clickNode"},blurNode:{name:"节点失去焦点",type:"blurNode",event:"blurNode"},changeNode:{name:"改变节点值",type:"changeNode",event:"changeNode"},createBrotherNode:{name:"添加同级节点",type:"createBrotherNode",icon:"md-add",event:"createBrotherNode"},createChildNode:{name:"添加子节点",type:"createChildNode",icon:"md-add",event:"createChildNode"},deleteSelfAndChildNodes:{name:"删除该节点",type:"deleteSelfAndChildNodes",icon:"md-trash",color:"red",divided:!0,event:"deleteSelfAndChildNodes"},deleteChildNodes:{name:"删除所有子节点",type:"deleteChildNodes",icon:"md-trash",color:"red",event:"deleteChildNodes"},clearNode:{name:"清除该节点内容",type:"clearNode",icon:"md-trash",divided:!0,event:"clearNode"},clearChildNodes:{name:"清除所有子节点内容",type:"clearChildNodes",icon:"md-trash",event:"clearChildNodes"},changeVal:{name:"改变输入框值",type:"changeVal",event:"changeVal"}}}},computed:{selfPropsObj:function(){return s()({_disabledBtns:!1},this.propsObj)},disabledBtns:function(){return this.selfPropsObj._disabledBtns},treeData:function(){return this.transforBriTreeData()},columns:function(){return this.transformColumns(this.treeColumns)},rows:function(){return this.transformRows()},rowColumnsArr:function(){return this.transformRowColumnsArr()},operationMap:function(){return this.canEdit?this.$categoryMapToMap(this.allOperationMap,void 0,void 0,this.disabledBtns?["changeVal"]:void 0):{}},getThStyle:function(){return function(e){var t=this.columns.length,n=this.widthMap[e._type];"number"==e._type?n=110:"reference"===e._type&&(n=200+(e._name?14*e._name.length:36));var r="tree"===e.colType?Math.min(Math.max(this.boxWidth/t,80),160):"summary"===e.colType?100:Math.max(this.boxWidth/t,n),a="tree"===e.colType?{backgroundColor:"f0f0f0",textAlign:"center",fontSize:"14px"}:"summary"===e.colType?{backgroundColor:"#eeeeee",textAlign:"right"}:{textAlign:e._align||"left"};return r=e._width||r,s()({width:r+"px",minWidth:r+"px",maxWidth:r+"px",height:"44px",padding:"5px 5px",cursor:"pointer",lineHeight:"20px"},a)}}},created:function(){this.init()},mounted:function(){var e=this;setTimeout(function(){e.$el.querySelector(".DshCascaderTable-wrap-center-list").addEventListener("scroll",function(t){e.$el.querySelector(".DshCascaderTable-wrap-center-top").scrollLeft=t.srcElement.scrollLeft},!1),e.boxWidth=e.$refs.DshCascaderTable.clientWidth},0)},methods:{init:function(){var e=this;this.treeColumns.forEach(function(t,n){e.$set(t,"level",n+1),e.$set(t,"canDelete",!0)});!function t(n){n.forEach(function(n){n.children.length?t(n.children):e.subColumns.forEach(function(t){e.$set(n,t._key,n[t._key])})})}(this.data.tree)},clickTh:function(e,t){this.$emit("clickTh",t)},createCol:function(e,t,n,r){"tree"===t.colType&&t.level===this.treeColumns.length&&(this.treeColumns.push({_id:this.$ObjectID().str,_key:this.$randomB36("Field"),_type:"textarea",_name:this.$numToChinese(this.treeColumns.length+1)+"级表头",level:this.treeColumns.length+1,canDelete:!0,_treeSubForm:[]}),this.data._treeForm=this.treeColumns,this.change("createCol",t,null))},deleteCol:function(e,t,n,r){"tree"===t.colType&&!1!==t.canDelete&&(this.isDeleteColStatus=!0,this.treeColumns.pop(),this.data._treeForm=this.treeColumns,this.change("deleteCol",t,null))},clickNode:function(e,t,n,r){var a=this;"tree"===t.colType?(r.isEdit=!0,this.$nextTick(function(){a.$refs[""+t._id+n._id][0]&&a.$refs[""+t._id+n._id][0].focus()})):"summary"===t.colType&&this.$Modal.warning({title:"该汇总单元格自动计算,不准手动输入!",closable:!0,onOk:function(){},onCancel:function(){}})},blurNode:function(e,t,n,r){r.isEdit=!1},changeNode:function(e,t,n,r){this.change("changeNode",t,n,r)},createBrotherNode:function(e,t,n,r){var a=this.getNodeData(t,n,r),i=this.getNewNode(a.level,a.brotherList);a.brotherList.splice(a.index+1,0,i),this.change("createBrotherNode",r,t,a)},createChildNode:function(e,t,n,r){var a=this.getNodeData(t,n,r),i=this.getNewNode(a.level+1,a.childList);a.childList.splice(a.childList.length,0,i),this.change("createChildNode",r,t,a)},deleteSelfAndChildNodes:function(e,t,n,r){var a=this.getNodeData(t,n,r);if(a.brotherList.splice(a.index,1),!a.brotherList.length){var i=this.getNewNode(a.level,a.brotherList);a.brotherList.push(i)}this.change("deleteSelfAndChildNodes",r,t,a)},deleteChildNodes:function(e,t,n,r){var a=this.getNodeData(t,n,r);a.childList.splice(0);var i=this.getNewNode(a.level+1,a.childList);a.childList.push(i),this.change("deleteChildNodes",r,t,a)},clearNode:function(e,t,n,r){var a=this.getNodeData(t,n,r);a.data.name="",this.change("clearNode",r,t,a)},clearChildNodes:function(e,t,n,r){var a=this.getNodeData(t,n,r);this.clearNodeToLeaf(a.childList),this.change("clearChildNodes",r,t,a)},changeVal:function(e,t,n,r){this.change("changeVal",t,n,r)},transformColumns:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.treeColumns,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.subColumns;return e.reduce(function(e,t,n){return e.concat(s()({},t,{colType:"tree"}),t._treeSubForm.map(function(e){return s()({},e,{nodeKey:t._key,colType:"summary"})}))},[]).concat(t.filter(function(e){return"hide"!==e._displayType}).map(function(t){return s()({},t,{nodeKey:e[e.length-1]._key,colType:"data"})}))},transforBriTreeData:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.treeColumns,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.subColumns;t.forEach(function(e,t){e.canDelete=!0,e.level=t+1});return function r(a){a.forEach(function(a){var i=t[a.level-1];if(e.$setObj(a,{_key:i._key,level:i.level,isEdit:!1,isLeaf:!1,total:1}),a.level===t.length){if(e.isDeleteColStatus){var o=a.children[0];n.forEach(function(e){a[e._key]=o[e._key]})}a.children=[],a.isLeaf=!0}else if(a.level===t.length-1&&a.children.length>1&&(t[a.level].canDelete=!1),a.children.length)r(a.children);else{var l=e.getNewNode(a.level+1,a.children);n.forEach(function(e){l[e._key]=a[e._key],delete a[e._key]}),a.children.push(l),r(a.children)}})}(this.data.tree),this.isDeleteColStatus=!1,this.data.tree},transformRowColumnsArr:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.treeData,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.treeColumns;return function t(r,a){return r.reduce(function(r,a,i){return 0===i&&0!==r.length||r.push(e.transformColumns(n.slice(a.level-1))),a.children.length?t(a.children,r):r},a)}(t,[])},transformRows:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.treeData,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.treeColumns;return function t(r,i){return r.reduce(function(r,i,l){0===l&&0!==r.length||r.push({_id:e.$ObjectID().str});var s=n[i.level-1],c=r[r.length-1];if(o()(c,a()({},s._key,i)),i.children.length){var d=r.length-1,h=t(i.children,r);return i.total=h.length-d,h}return r},i)}(t,[])},clearNodeToLeaf:function(e){!function e(t){t.forEach(function(t){t.name="",t.children.length&&e(t.children)})}(e)},getNodeData:function(e,t,n){var r=this.getParentNode(e,t,n);return{level:n.level,data:e[n._key],childList:e[n._key].children,brotherList:r.children,index:r.children.findIndex(function(t){return t._id===e[n._key]._id})}},getParentNode:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.treeColumns;if(1===n.level)return{children:this.treeData};var i=a[n.level-2];return function e(t,n){return t[i._key]||e(r.rows[n-1],n-1)}(e,t)},getNewNode:function(e,t){var n=this.$deepCopy(this.data.rowDefault);this.subColumns.forEach(function(e){n[e._key]=n[e._key]});var r=this.$numToChinese(e);return s()({_id:this.$ObjectID().str,name:r+"级节点"+(t.length+1),level:e,children:[]},n)},getSummaryVal:function(e,t){if(e._calField&&e._operator){var n=this.subColumns.find(function(t){return t._key===e._calField});if(n){var r=function t(n,r){return n.reduce(function(n,r){return r.children.length?t(r.children,n):(n.push(r[e._calField]||0),n)},r)}(t[e.nodeKey].children,[]);return this.$calNumList(r,e._operator,n)}return"来源列"+e._calField+"被删除"}return e._calField||e._operator?e._calField?"未选择算法":"未选择来源列":"未选择来源列和算法"},getTdStyle:function(e,t){return s()({},this.getThStyle(e),{backgroundColor:t&&t[e.nodeKey]?"":"#fff"})},geTdRowspan:function(e,t){return t[e.nodeKey||e._key]&&t[e.nodeKey||e._key].total||1},geTdColspan:function(e,t){return 1},getNodeOperationNames:function(e,t,n){return 0===n.children.length?["createBrotherNode","deleteSelfAndChildNodes","clearNode"]:["createBrotherNode","createChildNode","deleteSelfAndChildNodes","deleteChildNodes","clearNode","clearChildNodes"]},enterText:function(e){var t=new RegExp(/\n/g);return e.replace(t,"<br/>")},change:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["change",this.data].concat(d()(t)))}}}},414:function(e,t,n){"use strict";var r=n(405),a=n(415),i=n(0)(r.a,a.a,!1,null,null,null);t.a=i.exports},415:function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"DshCascaderTable",staticClass:"DshCascaderTable"},[n("div",{class:{"DshCascaderTable-wrap":!0,"DshCascaderTable-readonly":!e.canEdit}},[n("div",{staticClass:"DshCascaderTable-wrap-center"},[n("div",{staticClass:"DshCascaderTable-wrap-center-top"},[n("div",{staticClass:"DshCascaderTable-wrap-center-top-inner"},[n("table",{staticClass:"table",attrs:{border:"1",cellspacing:"0",bordercolor:"#E7EDF8"}},[n("tbody",[n("tr",{staticClass:"table-col"},e._l(e.columns,function(t,r){return n("th",{key:t._id,staticClass:"td-tree",style:e.getThStyle(t),on:{click:function(n){return e.$dispatchEvent(e.operationMap.clickTh,t)}}},[n("span",[t._required?n("i",{staticStyle:{color:"red"}},[e._v("*")]):e._e(),e._v("\n "+e._s(t._name)+"\n ")]),e._v(" "),e.useCol&&"tree"===t.colType&&t.level===e.treeColumns.length&&e.$getOperationList(e.getColOperationNames(t)).length?n("dsh-dropdown",{staticClass:"td-tree-dropdown",attrs:{menuClass:"td-tree-dropdown-list",trigger:"hover",list:e.$getOperationList(e.getColOperationNames(t))},on:{click:function(n){return e.$dispatchEvent(n,t,r,e.columns)}},nativeOn:{click:function(e){e.stopPropagation()}}},[n("a",{attrs:{href:"javascript:void(0)"}},[n("Icon",{attrs:{type:"md-add-circle",size:"20"}})],1)]):e._e()],1)}),0)])])])]),e._v(" "),n("div",{staticClass:"DshCascaderTable-wrap-center-list"},[n("div",{staticClass:"DshCascaderTable-wrap-center-list-inner"},[n("table",{staticClass:"table",attrs:{border:"1",cellspacing:"0",bordercolor:"#E7EDF8"}},[n("tbody",[e.rows.length?e._l(e.rows,function(t,r){return n("tr",{key:t._id,staticClass:"table-row"},[e._l(e.rowColumnsArr[r],function(a){return[["tree","summary"].includes(a.colType)?n("td",{key:a._key,class:"td-"+a.colType,style:e.getTdStyle(a,t),attrs:{rowspan:e.geTdRowspan(a,t),colspan:e.geTdColspan(a,t)},on:{click:function(n){return e.$dispatchEvent(e.operationMap.clickNode,a,t,t[a._key])}}},["tree"===a.colType?[t[a._key].isEdit?n("Input",{ref:""+a._id+t._id,refInFor:!0,staticClass:"textarea",attrs:{type:"textarea",autosize:{minRows:3*e.geTdRowspan(a,t)-1,maxRows:100}},on:{"on-blur":function(n){return e.$dispatchEvent(e.operationMap.blurNode,a,t,t[a._key])},"on-change":function(n){return e.$dispatchEvent(e.operationMap.changeNode,a,t,t[a._key])}},model:{value:t[a._key].name,callback:function(n){e.$set(t[a._key],"name",n)},expression:"row[col._key].name"}}):[n("bri-tooltip",{attrs:{transfer:!0,content:e.enterText(t[a._key].name)}},[n("span",{staticClass:"dsh-ellipsis",staticStyle:{"word-break":"break-word"},domProps:{innerHTML:e._s(e.enterText(t[a._key].name))}})]),e._v(" "),e.$getOperationList(e.getNodeOperationNames(a,t,t[a._key])).length?n("dsh-dropdown",{staticClass:"td-tree-dropdown",attrs:{menuClass:"td-tree-dropdown-list",trigger:"hover",list:e.$getOperationList(e.getNodeOperationNames(a,t,t[a._key]))},on:{click:function(n){return e.$dispatchEvent(n,t,r,a)}},nativeOn:{click:function(e){e.stopPropagation()}}},[n("a",{attrs:{href:"javascript:void(0)"}},[n("Icon",{attrs:{type:"md-add-circle",size:"20"}})],1)]):e._e()]]:"summary"===a.colType?[n("span",[e._v(e._s(e.getSummaryVal(a,t)))])]:e._e()],2):n("td",{key:a._key+"",style:e.getTdStyle(a,t)},[n("dsh-list-unit",{attrs:{canEdit:e.canEdit,rowIndex:r,formData:t[a.nodeKey],formItem:a},on:{change:function(n){return e.$dispatchEvent(e.operationMap.changeVal,a,t,arguments)}}})],1)]})],2)}):n("tr",{staticClass:"table-nodata"},[n("td",{attrs:{colspan:e.columns.length}},[e._v("暂无内容……")])])],2)])])])])])])},staticRenderFns:[]};t.a=r},416:function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"cascaderTable"},[e.isUnitShow?n("span",{staticClass:"cascaderTable-unit"},[n("dsh-icons",{attrs:{list:e.$getOperationList(["canLink"])}}),e._v(" "),n("span",{staticClass:"cascaderTable-unit-text"},[e._v("\n "+e._s(e.curVal&&e.curVal.tree.length)+"行\n ")])],1):["_default"===e.propsObj._key?n("dsh-btn-modal",[n("dsh-cascader-table",{attrs:{canEdit:e.finalCanEdit,treeColumns:e.treeColumns,subColumns:e.subColumns,data:e.curVal,propsObj:e.propsObj},on:{change:e.change}})],1):[n("dsh-buttons",{staticClass:"cascaderTable-btns",attrs:{itemClass:"cascaderTable-btns-item",list:e.$getOperationList(e.operationBtns)},on:{click:function(t){return e.$dispatchEvent(t)}}}),e._v(" "),n("dsh-cascader-table",{attrs:{useCol:"",canEdit:e.finalCanEdit,treeColumns:e.treeColumns,subColumns:e.subColumns,data:e.curVal,propsObj:e.propsObj},on:{change:e.change}}),e._v(" "),n("dsh-modal",{attrs:{mode:"custom",propsObj:e.modalPropsObj},model:{value:e.isEnlarge,callback:function(t){e.isEnlarge=t},expression:"isEnlarge"}},[n("dsh-cascader-table",{attrs:{useCol:"",canEdit:e.finalCanEdit,treeColumns:e.treeColumns,subColumns:e.subColumns,data:e.curVal,propsObj:e.propsObj},on:{change:e.change}})],1)]]],2)},staticRenderFns:[]};t.a=r}});
@@ -1 +1 @@
1
- webpackJsonpbri_components([1],{198:function(t,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var l=n(412),e=n(432),s=n(0)(l.a,e.a,!1,null,null,null);a.default=s.exports},412:function(t,a,n){"use strict";var l=n(2),e=n.n(l),s=n(3),o=n(194),r=n(195);a.a={name:"flatTable",mixins:[s.default],components:{DshBtnModal:o.a,BriFlatTable:r.a},props:{},data:function(){return{isEnlarge:!1,operationMap:{canEnlarge:{name:"全屏展示",type:"canEnlarge",icon:"md-expand",size:"small",btnType:"text",event:"enlarge"}}}},computed:{curVal:function(){return this.value[this.controlKey]||{list:[],oldList:[],rowDefault:{}}},columns:function(){return this.propsObj._subForm},modalPropsObj:function(){return{title:this.propsObj._name,fullscreen:!0,showSlotClose:!1,closable:!0}}},created:function(){},methods:{validate:function(){return this.$refs.dshFatTable.validate()},enlarge:function(){this.isEnlarge=!0},change:function(){for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];this.$emit.apply(this,["change"].concat(e()(a)))}}}},432:function(t,a,n){"use strict";var l={render:function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{staticClass:"flatTable"},[t.multipleMode?void 0:[t.isUnitShow?[n("span",{staticClass:"flatTable-unit"},[n("dsh-icons",{attrs:{list:[{customIcon:"bico-internaltable"}]}}),t._v(" "),n("span",{staticClass:"flatTable-unit-text"},[t._v("\n "+t._s(t.curVal.list.length)+"行\n ")])],1)]:["_default"===t.propsObj._key?n("dsh-btn-modal",[n("bri-flat-table",{attrs:{canEdit:t.finalCanEdit,columns:t.columns,data:t.curVal.list,rowDefault:t.curVal.rowDefault,outObj:t.value,propsObj:t.propsObj},on:{change:t.change}})],1):[n("dsh-buttons",{staticClass:"flatTable-btns",attrs:{itemClass:"flatTable-btns-item",list:t.$getOperationList(["canEnlarge"])},on:{click:function(a){return t.$dispatchEvent(a)}}}),t._v(" "),n("bri-flat-table",{ref:"dshFatTable",attrs:{canEdit:t.finalCanEdit,columns:t.columns,data:t.curVal.list,oldData:t.curVal.oldList,rowDefault:t.curVal.rowDefault,outObj:t.value,propsObj:t.propsObj},on:{change:t.change}}),t._v(" "),n("dsh-modal",{attrs:{mode:"custom",propsObj:t.modalPropsObj},model:{value:t.isEnlarge,callback:function(a){t.isEnlarge=a},expression:"isEnlarge"}},[n("bri-flat-table",{attrs:{canEdit:t.finalCanEdit,columns:t.columns,data:t.curVal.list,oldData:t.curVal.oldList,rowDefault:t.curVal.rowDefault,outObj:t.value,propsObj:t.propsObj},on:{change:t.change}})],1)]]]],2)},staticRenderFns:[]};a.a=l}});
1
+ webpackJsonpbri_components([1],{198:function(t,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var l=n(406),e=n(417),s=n(0)(l.a,e.a,!1,null,null,null);a.default=s.exports},406:function(t,a,n){"use strict";var l=n(2),e=n.n(l),s=n(3),o=n(194),r=n(195);a.a={name:"flatTable",mixins:[s.default],components:{DshBtnModal:o.a,BriFlatTable:r.a},props:{},data:function(){return{isEnlarge:!1,operationMap:{canEnlarge:{name:"全屏展示",type:"canEnlarge",icon:"md-expand",size:"small",btnType:"text",event:"enlarge"}}}},computed:{curVal:function(){return this.value[this.controlKey]||{list:[],oldList:[],rowDefault:{}}},columns:function(){return this.propsObj._subForm},modalPropsObj:function(){return{title:this.propsObj._name,fullscreen:!0,showSlotClose:!1,closable:!0}}},created:function(){},methods:{validate:function(){return this.$refs.dshFatTable.validate()},enlarge:function(){this.isEnlarge=!0},change:function(){for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];this.$emit.apply(this,["change"].concat(e()(a)))}}}},417:function(t,a,n){"use strict";var l={render:function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{staticClass:"flatTable"},[t.multipleMode?void 0:[t.isUnitShow?[n("span",{staticClass:"flatTable-unit"},[n("dsh-icons",{attrs:{list:[{customIcon:"bico-internaltable"}]}}),t._v(" "),n("span",{staticClass:"flatTable-unit-text"},[t._v("\n "+t._s(t.curVal.list.length)+"行\n ")])],1)]:["_default"===t.propsObj._key?n("dsh-btn-modal",[n("bri-flat-table",{attrs:{canEdit:t.finalCanEdit,columns:t.columns,data:t.curVal.list,rowDefault:t.curVal.rowDefault,outObj:t.value,propsObj:t.propsObj},on:{change:t.change}})],1):[n("dsh-buttons",{staticClass:"flatTable-btns",attrs:{itemClass:"flatTable-btns-item",list:t.$getOperationList(["canEnlarge"])},on:{click:function(a){return t.$dispatchEvent(a)}}}),t._v(" "),n("bri-flat-table",{ref:"dshFatTable",attrs:{canEdit:t.finalCanEdit,columns:t.columns,data:t.curVal.list,oldData:t.curVal.oldList,rowDefault:t.curVal.rowDefault,outObj:t.value,propsObj:t.propsObj},on:{change:t.change}}),t._v(" "),n("dsh-modal",{attrs:{mode:"custom",propsObj:t.modalPropsObj},model:{value:t.isEnlarge,callback:function(a){t.isEnlarge=a},expression:"isEnlarge"}},[n("bri-flat-table",{attrs:{canEdit:t.finalCanEdit,columns:t.columns,data:t.curVal.list,oldData:t.curVal.oldList,rowDefault:t.curVal.rowDefault,outObj:t.value,propsObj:t.propsObj},on:{change:t.change}})],1)]]]],2)},staticRenderFns:[]};a.a=l}});
@@ -1 +1 @@
1
- webpackJsonpbri_components([2],{196:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=n(409),e=n(428),a=n(0)(s.a,e.a,!1,null,null,null);i.default=a.exports},409:function(t,i,n){"use strict";var s=n(2),e=n.n(s),a=n(1),c=n.n(a),l=n(3);i.a={name:"BriLabels",mixins:[l.default],data:function(){return{listData:[],isVisible:!1,renderList:!1}},computed:{selfPropsObj:function(){return c()({_labelType:"entity",_onlySelect:!1,_originLabels:[]},this.propsObj,this.commonDealPropsObj)},labelType:function(){return this.selfPropsObj._labelType},onlySelect:function(){return this.selfPropsObj._onlySelect},originLabels:function(){return this.selfPropsObj._originLabels},inputIcon:function(){return this.isVisible?"ios-arrow-up":"ios-arrow-down"},showVal:function(){return this.$isEmptyData(this.curValList)?this.emptyShowVal:this.curValList.map(function(t){return t.name}).join("、")}},created:function(){},methods:{clickInput:function(){this.finalCanEdit&&(this.renderList||(this.isCore?this.listData=this.originLabels.map(function(t){return c()({},t,{isEdit:!1})}):this.getListData()),this.renderList=!0,this.isVisible=!this.isVisible)},clickEditInput:function(t){t.stopPropagation()},clickEditIcon:function(t){t.isEdit=!0,this.$forceUpdate()},clickConfirm:function(t){t.name&&(t.isEdit=!1,this.$forceUpdate())},clickItem:function(t){this.curValList.some(function(i){return i._key===t._key})?this.curValList=this.curValList.filter(function(i){return i._key!==t._key}):this.curValList=[].concat(e()(this.curValList),[t])},clickAddItem:function(){this.listData.push({_key:this.$randomB36("Labels"),isEdit:!0,name:"",labelType:this.labelType})},clickDeleteItem:function(t){this.curValList=this.curValList.filter(function(i){return i._key!==t._key})},clickClear:function(){this.curValList=[]},getListData:function(){var t=this;this.$https({url:{module:"sheet",name:"memberAll"},params:{search:{entityKey:this.entityKey,modKey:this.modKey,fieldKey:this.fieldKey,labelType:this.labelType},pagination:{page:1,pagesize:999}},callback:function(i){t.listData=i.list.map(function(t){return c()({},t,{isEdit:!1})})}})}}}},428:function(t,i,n){"use strict";var s={render:function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("div",{staticClass:"BriLabels"},[t.canEdit?[n("Dropdown",{staticClass:"BriLabels-dropdown",attrs:{trigger:"custom",placement:"bottom-start",visible:t.isVisible,transfer:""},on:{"on-clickoutside":t.clickInput},scopedSlots:t._u([{key:"list",fn:function(){return[n("DropdownMenu",{staticClass:"BriLabels-dropdown-menu"},[t._l(t.listData,function(i){return n("DropdownItem",{key:i._key,class:{item:!0,"item-active":!!t.curValList.find(function(t){return t._key===i._key})},nativeOn:{click:function(n){return t.clickItem(i)}}},[i.isEdit?n("div",{staticClass:"item-edit"},[n("Input",{nativeOn:{click:function(i){return t.clickEditInput(i)}},scopedSlots:t._u([{key:"suffix",fn:function(){return[n("Icon",{attrs:{color:"#3DB8C5",custom:"bri bri-duigou"},nativeOn:{click:function(n){return n.stopPropagation(),t.clickConfirm(i)}}})]},proxy:!0}],null,!0),model:{value:i.name,callback:function(n){t.$set(i,"name",n)},expression:"listItem.name"}})],1):n("div",{staticClass:"item-show"},[t._v("\n "+t._s(i.name)+"\n "),n("span",{staticClass:"item-show-icons"},[i.coreLabel?t._e():n("Icon",{staticClass:"item-show-icons-edit",attrs:{custom:"bri bri-bianji"},on:{click:function(n){return n.stopPropagation(),t.clickEditIcon(i)}}})],1)])])}),t._v(" "),t.onlySelect?t._e():n("div",{staticClass:"btns"},[n("bri-button",{staticClass:"btns-add",attrs:{propsObj:{btnType:"default",icon:"md-add"}},nativeOn:{click:function(i){return i.stopPropagation(),t.clickAddItem.apply(null,arguments)}}},[t._v("添加选项")])],1)],2)]},proxy:!0}],null,!1,3071421276)},[n("bri-control-input",{class:Object.assign({},t.commonClass,{"BriLabels-edit":!0}),attrs:{canEdit:t.finalCanEdit,value:t.curValList,inputIcon:t.inputIcon,propsObj:t.selfPropsObj},on:{deleteItem:t.clickDeleteItem,clear:t.clickClear},nativeOn:{click:function(i){return t.clickInput.apply(null,arguments)}}})],1)]:[n("bri-tooltip",{attrs:{content:t.showVal,maxWidth:"200",transfer:!0}},[n("div",{class:Object.assign({},t.commonClass,{"BriLabels-show":!0})},[t.$isEmptyData(t.curValList)?[t._v("\n "+t._s(t.emptyShowVal)+"\n ")]:n("dsh-tags",{staticClass:"text",attrs:{list:t.curValList}})],2)])]],2)},staticRenderFns:[]};i.a=s}});
1
+ webpackJsonpbri_components([2],{196:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=n(403),e=n(413),a=n(0)(s.a,e.a,!1,null,null,null);i.default=a.exports},403:function(t,i,n){"use strict";var s=n(2),e=n.n(s),a=n(1),c=n.n(a),l=n(3);i.a={name:"BriLabels",mixins:[l.default],data:function(){return{listData:[],isVisible:!1,renderList:!1}},computed:{selfPropsObj:function(){return c()({_labelType:"entity",_onlySelect:!1,_originLabels:[]},this.propsObj,this.commonDealPropsObj)},labelType:function(){return this.selfPropsObj._labelType},onlySelect:function(){return this.selfPropsObj._onlySelect},originLabels:function(){return this.selfPropsObj._originLabels},inputIcon:function(){return this.isVisible?"ios-arrow-up":"ios-arrow-down"},showVal:function(){return this.$isEmptyData(this.curValList)?this.emptyShowVal:this.curValList.map(function(t){return t.name}).join("、")}},created:function(){},methods:{clickInput:function(){this.finalCanEdit&&(this.renderList||(this.isCore?this.listData=this.originLabels.map(function(t){return c()({},t,{isEdit:!1})}):this.getListData()),this.renderList=!0,this.isVisible=!this.isVisible)},clickEditInput:function(t){t.stopPropagation()},clickEditIcon:function(t){t.isEdit=!0,this.$forceUpdate()},clickConfirm:function(t){t.name&&(t.isEdit=!1,this.$forceUpdate())},clickItem:function(t){this.curValList.some(function(i){return i._key===t._key})?this.curValList=this.curValList.filter(function(i){return i._key!==t._key}):this.curValList=[].concat(e()(this.curValList),[t])},clickAddItem:function(){this.listData.push({_key:this.$randomB36("Labels"),isEdit:!0,name:"",labelType:this.labelType})},clickDeleteItem:function(t){this.curValList=this.curValList.filter(function(i){return i._key!==t._key})},clickClear:function(){this.curValList=[]},getListData:function(){var t=this;this.$https({url:{module:"sheet",name:"memberAll"},params:{search:{entityKey:this.entityKey,modKey:this.modKey,fieldKey:this.fieldKey,labelType:this.labelType},pagination:{page:1,pagesize:999}},callback:function(i){t.listData=i.list.map(function(t){return c()({},t,{isEdit:!1})})}})}}}},413:function(t,i,n){"use strict";var s={render:function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("div",{staticClass:"BriLabels"},[t.canEdit?[n("Dropdown",{staticClass:"BriLabels-dropdown",attrs:{trigger:"custom",placement:"bottom-start",visible:t.isVisible,transfer:""},on:{"on-clickoutside":t.clickInput},scopedSlots:t._u([{key:"list",fn:function(){return[n("DropdownMenu",{staticClass:"BriLabels-dropdown-menu"},[t._l(t.listData,function(i){return n("DropdownItem",{key:i._key,class:{item:!0,"item-active":!!t.curValList.find(function(t){return t._key===i._key})},nativeOn:{click:function(n){return t.clickItem(i)}}},[i.isEdit?n("div",{staticClass:"item-edit"},[n("Input",{nativeOn:{click:function(i){return t.clickEditInput(i)}},scopedSlots:t._u([{key:"suffix",fn:function(){return[n("Icon",{attrs:{color:"#3DB8C5",custom:"bri bri-duigou"},nativeOn:{click:function(n){return n.stopPropagation(),t.clickConfirm(i)}}})]},proxy:!0}],null,!0),model:{value:i.name,callback:function(n){t.$set(i,"name",n)},expression:"listItem.name"}})],1):n("div",{staticClass:"item-show"},[t._v("\n "+t._s(i.name)+"\n "),n("span",{staticClass:"item-show-icons"},[i.coreLabel?t._e():n("Icon",{staticClass:"item-show-icons-edit",attrs:{custom:"bri bri-bianji"},on:{click:function(n){return n.stopPropagation(),t.clickEditIcon(i)}}})],1)])])}),t._v(" "),t.onlySelect?t._e():n("div",{staticClass:"btns"},[n("bri-button",{staticClass:"btns-add",attrs:{propsObj:{btnType:"default",icon:"md-add"}},nativeOn:{click:function(i){return i.stopPropagation(),t.clickAddItem.apply(null,arguments)}}},[t._v("添加选项")])],1)],2)]},proxy:!0}],null,!1,3071421276)},[n("bri-control-input",{class:Object.assign({},t.commonClass,{"BriLabels-edit":!0}),attrs:{canEdit:t.finalCanEdit,value:t.curValList,inputIcon:t.inputIcon,propsObj:t.selfPropsObj},on:{deleteItem:t.clickDeleteItem,clear:t.clickClear},nativeOn:{click:function(i){return t.clickInput.apply(null,arguments)}}})],1)]:[n("bri-tooltip",{attrs:{content:t.showVal,maxWidth:"200",transfer:!0}},[n("div",{class:Object.assign({},t.commonClass,{"BriLabels-show":!0})},[t.$isEmptyData(t.curValList)?[t._v("\n "+t._s(t.emptyShowVal)+"\n ")]:n("dsh-tags",{staticClass:"text",attrs:{list:t.curValList}})],2)])]],2)},staticRenderFns:[]};i.a=s}});
@@ -1 +1 @@
1
- webpackJsonpbri_components([3],{400:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(404),o=n(425),s=n(0)(i.a,o.a,!1,null,null,null);e.default=s.exports},404:function(t,e,n){"use strict";var i=n(1),o=n.n(i),s=n(414),r=n.n(s);e.a={name:"DshCrossTable",props:{data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},propsObj:{type:Object,default:function(){return{}}},operationList:{type:Array,default:function(){return[]}},noDataText:{type:String,default:"暂无内容..."},changedFields:{type:Array,default:function(){return[]}}},data:function(){return{selections:[],allChecked:!1,selectionList:[],rowWidth:0,colWidth:0,titleWidth:200,showTable:!1,currentPage:1,pagesize:10,pagesizeOpts:[50,30,20,15,10],showTotal:!0,total:0,pageHeightScreen:[5,10,15]}},computed:{selfPropsObj:function(){return o()({showCheck:!0,showIndex:!0,showAction:!0},this.propsObj)},columnList:function(){return this.columns.filter(function(t){return"operation"!==t.type})},operationCol:function(){var t=this;return{title:"操作",_name:"操作",type:"expend",width:150,renderBodyCell:function(e,n){return t.operationList.length<3?n("dsh-buttons",{props:{list:t.operationList},on:{click:function(n){t.$dshEmit(n,e.row,e.row)}}}):n("div",{style:{display:"flex",justifyContent:"center"}},[n("dsh-buttons",{style:{display:"inline-block"},props:{list:t.operationList.slice(0,2)},on:{click:function(n){t.$dshEmit(n,e.row,e.row)}}}),n("dsh-dropdown",{props:{dropdownObj:{icon:"ios-more",size:22,color:"#E9ECF4",showDropdownItemIcon:!1},list:t.operationList.slice(2)},on:{click:function(n){t.$dshEmit(n,e.row,e.row)}}},[n("dsh-buttons",{props:{list:[{name:"更多>>",type:"more",btnType:"text",size:"small"}]}})])])}}},renderTableBoxStyle:function(){var t="";return this.tableExpend?t+="padding-bottom:38px;":t+="padding-bottom:0px;",this.tableSelection&&this.tableIndex?t+="padding-top:77px":this.tableSelection||this.tableIndex?t+="padding-top:39px":t+="padding-top:0px",t},selectIds:{get:function(){return this.selections.map(function(t){return t._id})},set:function(t){this.selections=this.data.filter(function(e){return t.includes(e._id)})}},isSelectAll:{get:function(){return this.data.length>0&&this.selectIds.length===this.data.length},set:function(t){this.selections=t?this.data:[]}}},created:function(){},mounted:function(){this.init()},methods:{init:function(){this.initTableData()},initTableData:function(){var t=this;this.$nextTick(function(){t.initTableWidth()})},initTableWidth:function(){var t=this;r()().listenTo(document.getElementById("DshCrossTable-right"),function(e){var n=t.$refs["DshCrossTable-right"].clientWidth,i=n/240,o=t.data.length;i>=o?(t.rowWidth=n,t.colWidth=(n-10)/o):t.rowWidth=240*o,t.showTable=!0})},tableScroll:function(t){var e=document.getElementsByClassName("DshCrossTable-left")[0],n=document.getElementsByClassName("DshCrossTable-left-body")[0],i=document.getElementsByClassName("DshCrossTable-right-header")[0]||{},o=document.getElementsByClassName("DshCrossTable-right-footer")[0]||{};n.scrollTop=t.srcElement.scrollTop,this.selfPropsObj.showCheck&&this.selfPropsObj.showIndex&&(0!==t.srcElement.scrollTop?(i.style.boxShadow="0px 0px 5px 0px #dddddd",o.style.boxShadow="0px 0px 5px 0px #dddddd"):i.style.boxShadow=o.style.boxShadow="none"),i.scrollLeft=o.scrollLeft=t.srcElement.scrollLeft,0!==t.srcElement.scrollLeft?e.style.boxShadow="0px 0px 3px 0px #dddddd":e.style.boxShadow="none"},clickRow:function(t){this.$emit("clickRow",t)},clickRowCheckbox:function(t){this.curRow=t,this.curRow.bool=!this.selectIds.includes(t._id)},selectAll:function(t){this.$emit("selectAll",this.selectIds,this.selections,t),this.changeSelect()},select:function(t){this.$emit("select",this.selectIds,this.selections,this.curRow,this.curRow.bool),this.changeSelect()},changeSelect:function(){this.$emit("selectChange",this.selectIds,this.selections)}},watch:{data:function(t,e){this.init()}}}},405:function(t,e,n){"use strict";(t.exports={}).forEach=function(t,e){for(var n=0;n<t.length;n++){var i=e(t[n]);if(i)return i}}},406:function(t,e,n){"use strict";var i=t.exports={};i.isIE=function(t){return!!function(){var t=navigator.userAgent.toLowerCase();return-1!==t.indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/")}()&&(!t||t===function(){var t=3,e=document.createElement("div"),n=e.getElementsByTagName("i");do{e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e"}while(n[0]);return t>4?t:void 0}())},i.isLegacyOpera=function(){return!!window.opera}},414:function(t,e,n){"use strict";var i=n(405).forEach,o=n(415),s=n(416),r=n(417),l=n(418),a=n(419),c=n(406),d=n(420),u=n(422),h=n(423),f=n(424);function p(t){return Array.isArray(t)||void 0!==t.length}function b(t){if(Array.isArray(t))return t;var e=[];return i(t,function(t){e.push(t)}),e}function g(t){return t&&1===t.nodeType}function m(t,e,n){var i=t[e];return void 0!==i&&null!==i||void 0===n?i:n}t.exports=function(t){var e;if((t=t||{}).idHandler)e={get:function(e){return t.idHandler.get(e,!0)},set:t.idHandler.set};else{var n=r(),v=l({idGenerator:n,stateHandler:u});e=v}var y=t.reporter;y||(y=a(!1===y));var w=m(t,"batchProcessor",d({reporter:y})),x={};x.callOnAdd=!!m(t,"callOnAdd",!0),x.debug=!!m(t,"debug",!1);var C,k=s(e),T=o({stateHandler:u}),_=m(t,"strategy","object"),S=m(t,"important",!1),E={reporter:y,batchProcessor:w,stateHandler:u,idHandler:e,important:S};if("scroll"===_&&(c.isLegacyOpera()?(y.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),_="object"):c.isIE(9)&&(y.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),_="object")),"scroll"===_)C=f(E);else{if("object"!==_)throw new Error("Invalid strategy name: "+_);C=h(E)}var D={};return{listenTo:function(t,n,o){function s(t){var e=k.get(t);i(e,function(e){e(t)})}function r(t,e,n){k.add(e,n),t&&n(e)}if(o||(o=n,n=t,t={}),!n)throw new Error("At least one element required.");if(!o)throw new Error("Listener required.");if(g(n))n=[n];else{if(!p(n))return y.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=b(n)}var l=0,a=m(t,"callOnAdd",x.callOnAdd),c=m(t,"onReady",function(){}),d=m(t,"debug",x.debug);i(n,function(t){u.getState(t)||(u.initState(t),e.set(t));var h=e.get(t);if(d&&y.log("Attaching listener to element",h,t),!T.isDetectable(t))return d&&y.log(h,"Not detectable."),T.isBusy(t)?(d&&y.log(h,"System busy making it detectable"),r(a,t,o),D[h]=D[h]||[],void D[h].push(function(){++l===n.length&&c()})):(d&&y.log(h,"Making detectable..."),T.markBusy(t,!0),C.makeDetectable({debug:d,important:S},t,function(t){if(d&&y.log(h,"onElementDetectable"),u.getState(t)){T.markAsDetectable(t),T.markBusy(t,!1),C.addListener(t,s),r(a,t,o);var e=u.getState(t);if(e&&e.startSize){var f=t.offsetWidth,p=t.offsetHeight;e.startSize.width===f&&e.startSize.height===p||s(t)}D[h]&&i(D[h],function(t){t()})}else d&&y.log(h,"Element uninstalled before being detectable.");delete D[h],++l===n.length&&c()}));d&&y.log(h,"Already detecable, adding listener."),r(a,t,o),l++}),l===n.length&&c()},removeListener:k.removeListener,removeAllListeners:k.removeAllListeners,uninstall:function(t){if(!t)return y.error("At least one element is required.");if(g(t))t=[t];else{if(!p(t))return y.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");t=b(t)}i(t,function(t){k.removeAllListeners(t),C.uninstall(t),u.cleanState(t)})},initDocument:function(t){C.initDocument&&C.initDocument(t)}}}},415:function(t,e,n){"use strict";t.exports=function(t){var e=t.stateHandler.getState;return{isDetectable:function(t){var n=e(t);return n&&!!n.isDetectable},markAsDetectable:function(t){e(t).isDetectable=!0},isBusy:function(t){return!!e(t).busy},markBusy:function(t,n){e(t).busy=!!n}}}},416:function(t,e,n){"use strict";t.exports=function(t){var e={};function n(n){var i=t.get(n);return void 0===i?[]:e[i]||[]}return{get:n,add:function(n,i){var o=t.get(n);e[o]||(e[o]=[]),e[o].push(i)},removeListener:function(t,e){for(var i=n(t),o=0,s=i.length;o<s;++o)if(i[o]===e){i.splice(o,1);break}},removeAllListeners:function(t){var e=n(t);e&&(e.length=0)}}}},417:function(t,e,n){"use strict";t.exports=function(){var t=1;return{generate:function(){return t++}}}},418:function(t,e,n){"use strict";t.exports=function(t){var e=t.idGenerator,n=t.stateHandler.getState;return{get:function(t){var e=n(t);return e&&void 0!==e.id?e.id:null},set:function(t){var i=n(t);if(!i)throw new Error("setId required the element to have a resize detection state.");var o=e.generate();return i.id=o,o}}}},419:function(t,e,n){"use strict";t.exports=function(t){function e(){}var n={log:e,warn:e,error:e};if(!t&&window.console){var i=function(t,e){t[e]=function(){var t=console[e];if(t.apply)t.apply(console,arguments);else for(var n=0;n<arguments.length;n++)t(arguments[n])}};i(n,"log"),i(n,"warn"),i(n,"error")}return n}},420:function(t,e,n){"use strict";var i=n(421);function o(){var t={},e=0,n=0,i=0;return{add:function(o,s){s||(s=o,o=0),o>n?n=o:o<i&&(i=o),t[o]||(t[o]=[]),t[o].push(s),e++},process:function(){for(var e=i;e<=n;e++)for(var o=t[e],s=0;s<o.length;s++)(0,o[s])()},size:function(){return e}}}t.exports=function(t){var e=(t=t||{}).reporter,n=i.getOption(t,"async",!0),s=i.getOption(t,"auto",!0);s&&!n&&(e&&e.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var r,l=o(),a=!1;function c(){for(a=!0;l.size();){var t=l;l=o(),t.process()}a=!1}function d(){r=function(t){return function(t){return setTimeout(t,0)}(t)}(c)}return{add:function(t,e){!a&&s&&n&&0===l.size()&&d(),l.add(t,e)},force:function(t){a||(void 0===t&&(t=n),r&&(function(t){clearTimeout(t)}(r),r=null),t?d():c())}}}},421:function(t,e,n){"use strict";(t.exports={}).getOption=function(t,e,n){var i=t[e];if((void 0===i||null===i)&&void 0!==n)return n;return i}},422:function(t,e,n){"use strict";var i="_erd";function o(t){return t[i]}t.exports={initState:function(t){return t[i]={},o(t)},getState:o,cleanState:function(t){delete t[i]}}},423:function(t,e,n){"use strict";var i=n(406);t.exports=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,o=t.stateHandler.getState;if(!e)throw new Error("Missing required dependency: reporter.");function s(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function r(t){return o(t).object}return{makeDetectable:function(t,r,l){l||(l=r,r=t,t=null),(t=t||{}).debug,i.isIE(8)?l(r):function(r,l){var a=s(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),c=!1,d=window.getComputedStyle(r),u=r.offsetWidth,h=r.offsetHeight;function f(){function n(){if("static"===d.position){r.style.setProperty("position","relative",t.important?"important":"");var n=function(e,n,i,o){var s=i[o];"auto"!==s&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(s)&&(e.warn("An element that is positioned static has style."+o+"="+s+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+o+" will be set to 0. Element: ",n),n.style.setProperty(o,"0",t.important?"important":""))};n(e,r,d,"top"),n(e,r,d,"right"),n(e,r,d,"bottom"),n(e,r,d,"left")}}""!==d.position&&(n(),c=!0);var s=document.createElement("object");s.style.cssText=a,s.tabIndex=-1,s.type="text/html",s.setAttribute("aria-hidden","true"),s.onload=function(){c||n(),function t(e,n){if(!e.contentDocument){var i=o(e);return i.checkForObjectDocumentTimeoutId&&window.clearTimeout(i.checkForObjectDocumentTimeoutId),void(i.checkForObjectDocumentTimeoutId=setTimeout(function(){i.checkForObjectDocumentTimeoutId=0,t(e,n)},100))}n(e.contentDocument)}(this,function(t){l(r)})},i.isIE()||(s.data="about:blank"),o(r)&&(r.appendChild(s),o(r).object=s,i.isIE()&&(s.data="about:blank"))}o(r).startSize={width:u,height:h},n?n.add(f):f()}(r,l)},addListener:function(t,e){function n(){e(t)}if(i.isIE(8))o(t).object={proxy:n},t.attachEvent("onresize",n);else{var s=r(t);if(!s)throw new Error("Element is not detectable by this strategy.");s.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(t){if(o(t)){var e=r(t);e&&(i.isIE(8)?t.detachEvent("onresize",e.proxy):t.removeChild(e),o(t).checkForObjectDocumentTimeoutId&&window.clearTimeout(o(t).checkForObjectDocumentTimeoutId),delete o(t).object)}}}}},424:function(t,e,n){"use strict";var i=n(405).forEach;t.exports=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,o=t.stateHandler.getState,s=(t.stateHandler.hasState,t.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!e)throw new Error("Missing required dependency: reporter.");var r=function(){var t=document.createElement("div");t.style.cssText=d(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var e=document.createElement("div");e.style.cssText=d(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),e.appendChild(t),document.body.insertBefore(e,document.body.firstChild);var n=500-e.clientWidth,i=500-e.clientHeight;return document.body.removeChild(e),{width:n,height:i}}(),l="erd_scroll_detection_scrollbar_style",a="erd_scroll_detection_container";function c(t){!function(t,e,n){if(!t.getElementById(e)){var i=n+"_animation",o=n+"_animation_active",s="/* Created by the element-resize-detector library. */\n";s+="."+n+" > div::-webkit-scrollbar { "+d(["display: none"])+" }\n\n",s+="."+o+" { "+d(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+i,"animation-name: "+i])+" }\n",s+="@-webkit-keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,i){i=i||function(e){t.head.appendChild(e)};var o=t.createElement("style");o.innerHTML=n,o.id=e,i(o)}(s+="@keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(t,l,a)}function d(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function u(t,n,i){if(t.addEventListener)t.addEventListener(n,i);else{if(!t.attachEvent)return e.error("[scroll] Don't know how to add event listeners.");t.attachEvent("on"+n,i)}}function h(t,n,i){if(t.removeEventListener)t.removeEventListener(n,i);else{if(!t.detachEvent)return e.error("[scroll] Don't know how to remove event listeners.");t.detachEvent("on"+n,i)}}function f(t){return o(t).container.childNodes[0].childNodes[0].childNodes[0]}function p(t){return o(t).container.childNodes[0].childNodes[0].childNodes[1]}return c(window.document),{makeDetectable:function(t,l,c){function h(){if(t.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(s.get(l),"Scroll: "),e.log.apply)e.log.apply(null,n);else for(var i=0;i<n.length;i++)e.log(n[i])}}function b(t){var e=o(t).container.childNodes[0],n=window.getComputedStyle(e);return!n.width||-1===n.width.indexOf("px")}function g(){var t=window.getComputedStyle(l),e={};return e.position=t.position,e.width=l.offsetWidth,e.height=l.offsetHeight,e.top=t.top,e.right=t.right,e.bottom=t.bottom,e.left=t.left,e.widthCSS=t.width,e.heightCSS=t.height,e}function m(){if(h("storeStyle invoked."),o(l)){var t=g();o(l).style=t}else h("Aborting because element has been uninstalled")}function v(t,e,n){o(t).lastWidth=e,o(t).lastHeight=n}function y(){return 2*r.width+1}function w(){return 2*r.height+1}function x(t){return t+10+y()}function C(t){return t+10+w()}function k(t,e,n){var i=f(t),o=p(t),s=x(e),r=C(n),l=function(t){return 2*t+y()}(e),a=function(t){return 2*t+w()}(n);i.scrollLeft=s,i.scrollTop=r,o.scrollLeft=l,o.scrollTop=a}function T(){var t=o(l).container;if(!t){(t=document.createElement("div")).className=a,t.style.cssText=d(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),o(l).container=t,function(t){t.className+=" "+a+"_animation_active"}(t),l.appendChild(t);var e=function(){o(l).onRendered&&o(l).onRendered()};u(t,"animationstart",e),o(l).onAnimationStart=e}return t}function _(){if(h("Injecting elements"),o(l)){!function(){var n=o(l).style;if("static"===n.position){l.style.setProperty("position","relative",t.important?"important":"");var i=function(t,e,n,i){var o=n[i];"auto"!==o&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(o)&&(t.warn("An element that is positioned static has style."+i+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",e),e.style[i]=0)};i(e,l,n,"top"),i(e,l,n,"right"),i(e,l,n,"bottom"),i(e,l,n,"left")}}();var n=o(l).container;n||(n=T());var i=r.width,s=r.height,c=d(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),f=d(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(function(t,e,n,i){return t=t?t+"px":"0",e=e?e+"px":"0",n=n?n+"px":"0",["left: "+t,"top: "+e,"right: "+(i=i?i+"px":"0"),"bottom: "+n]}(-(1+i),-(1+s),-s,-i))),p=d(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),b=d(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),g=d(["position: absolute","left: 0","top: 0"]),m=d(["position: absolute","width: 200%","height: 200%"]),v=document.createElement("div"),y=document.createElement("div"),w=document.createElement("div"),x=document.createElement("div"),C=document.createElement("div"),k=document.createElement("div");v.dir="ltr",v.style.cssText=c,v.className=a,y.className=a,y.style.cssText=f,w.style.cssText=p,x.style.cssText=g,C.style.cssText=b,k.style.cssText=m,w.appendChild(x),C.appendChild(k),y.appendChild(w),y.appendChild(C),v.appendChild(y),n.appendChild(v),u(w,"scroll",_),u(C,"scroll",S),o(l).onExpandScroll=_,o(l).onShrinkScroll=S}else h("Aborting because element has been uninstalled");function _(){var t=o(l);t&&t.onExpand?t.onExpand():h("Aborting expand scroll handler: element has been uninstalled")}function S(){var t=o(l);t&&t.onShrink?t.onShrink():h("Aborting shrink scroll handler: element has been uninstalled")}}function S(){function r(e,n,i){var o=function(t){return f(t).childNodes[0]}(e),s=x(n),r=C(i);o.style.setProperty("width",s+"px",t.important?"important":""),o.style.setProperty("height",r+"px",t.important?"important":"")}function a(i){var a=l.offsetWidth,d=l.offsetHeight,u=a!==o(l).lastWidth||d!==o(l).lastHeight;h("Storing current size",a,d),v(l,a,d),n.add(0,function(){if(u)if(o(l))if(c()){if(t.debug){var n=l.offsetWidth,i=l.offsetHeight;n===a&&i===d||e.warn(s.get(l),"Scroll: Size changed before updating detector elements.")}r(l,a,d)}else h("Aborting because element container has not been initialized");else h("Aborting because element has been uninstalled")}),n.add(1,function(){o(l)?c()?k(l,a,d):h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")}),u&&i&&n.add(2,function(){o(l)?c()?i():h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")})}function c(){return!!o(l).container}function d(){h("notifyListenersIfNeeded invoked");var t=o(l);return void 0===o(l).lastNotifiedWidth&&t.lastWidth===t.startSize.width&&t.lastHeight===t.startSize.height?h("Not notifying: Size is the same as the start size, and there has been no notification yet."):t.lastWidth===t.lastNotifiedWidth&&t.lastHeight===t.lastNotifiedHeight?h("Not notifying: Size already notified"):(h("Current size not notified, notifying..."),t.lastNotifiedWidth=t.lastWidth,t.lastNotifiedHeight=t.lastHeight,void i(o(l).listeners,function(t){t(l)}))}function u(){h("Scroll detected."),b(l)?h("Scroll event fired while unrendered. Ignoring..."):a(d)}if(h("registerListenersAndPositionElements invoked."),o(l)){o(l).onRendered=function(){if(h("startanimation triggered."),b(l))h("Ignoring since element is still unrendered...");else{h("Element rendered.");var t=f(l),e=p(l);0!==t.scrollLeft&&0!==t.scrollTop&&0!==e.scrollLeft&&0!==e.scrollTop||(h("Scrollbars out of sync. Updating detector elements..."),a(d))}},o(l).onExpand=u,o(l).onShrink=u;var g=o(l).style;r(l,g.width,g.height)}else h("Aborting because element has been uninstalled")}function E(){if(h("finalizeDomMutation invoked."),o(l)){var t=o(l).style;v(l,t.width,t.height),k(l,t.width,t.height)}else h("Aborting because element has been uninstalled")}function D(){c(l)}function A(){h("Installing..."),o(l).listeners=[],function(){var t=g();o(l).startSize={width:t.width,height:t.height},h("Element start size",o(l).startSize)}(),n.add(0,m),n.add(1,_),n.add(2,S),n.add(3,E),n.add(4,D)}c||(c=l,l=t,t=null),t=t||{},h("Making detectable..."),function(t){return!function(t){var e=t.getRootNode&&t.getRootNode().contains(t);return t===t.ownerDocument.body||t.ownerDocument.body.contains(t)||e}(t)||null===window.getComputedStyle(t)}(l)?(h("Element is detached"),T(),h("Waiting until element is attached..."),o(l).onRendered=function(){h("Element is now attached"),A()}):A()},addListener:function(t,e){if(!o(t).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");o(t).listeners.push(e)},uninstall:function(t){var e=o(t);e&&(e.onExpandScroll&&h(f(t),"scroll",e.onExpandScroll),e.onShrinkScroll&&h(p(t),"scroll",e.onShrinkScroll),e.onAnimationStart&&h(e.container,"animationstart",e.onAnimationStart),e.container&&t.removeChild(e.container))},initDocument:c}}},425:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"DshCrossTable"},[n("div",{staticClass:"DshCrossTable-left",style:t.renderTableBoxStyle},[t.selfPropsObj.showCheck&&t.selfPropsObj.showIndex?n("div",{staticClass:"DshCrossTable-left-header"},[n("table",{attrs:{cellspacing:"0",cellpadding:"0"}},[t.selfPropsObj.showCheck?n("tr",{staticClass:"DshCrossTable-row"},[n("td",{staticClass:"DshCrossTable-col DshCrossTable-col-checkbox",style:{background:"#f4f4f4"}},[n("Checkbox",{on:{"on-change":t.selectAll},model:{value:t.isSelectAll,callback:function(e){t.isSelectAll=e},expression:"isSelectAll"}})],1)]):t._e(),t._v(" "),t.selfPropsObj.showIndex?n("tr",{staticClass:"DshCrossTable-row"},[n("td",{staticClass:"DshCrossTable-col DshCrossTable-col-index",style:{background:"#f4f4f4"}},[n("div",{staticClass:"td-content"},[t._v("序号")])])]):t._e()])]):t._e(),t._v(" "),n("div",{staticClass:"DshCrossTable-left-body"},[n("div",{style:{height:"10000px"}},[n("table",{attrs:{cellspacing:"0",cellpadding:"0"}},[t._l(t.columnList.filter(function(t){return!0===t.isHead}),function(e){return n("tr",{key:e._key},[n("td",{staticClass:"DshCrossTable-col DshCrossTable-col-content",style:{background:"#f4f4f4",textAlign:"center",fontWeight:500}},[n("bri-tooltip",{attrs:{transfer:"",content:e.title}},[n("div",{staticClass:"td-content dsh-ellipsis"},[t._v("\n "+t._s(e.title)+"\n ")])])],1)])}),t._v(" "),t._l(t.columnList.filter(function(t){return!t.isHead}),function(e){return n("tr",{key:e._key},[n("td",{staticClass:"DshCrossTable-col DshCrossTable-col-content",style:{background:"#F7F9FD"}},[n("bri-tooltip",{attrs:{transfer:"",content:e.title}},[n("div",{staticClass:"td-content dsh-ellipsis"},[t._t("col",function(){return[t.changedFields.includes(e._key)?n("div",{staticClass:"crossTable-col"},[n("span",{staticClass:"crossTable-col-title"},[t._v(t._s(e.title))]),t._v(" "),n("span",{staticClass:"crossTable-col-sign"},[t._v("变更")])]):[t._v("\n "+t._s(e.title)+"\n ")]]},{col:e})],2)])],1)])})],2)])]),t._v(" "),t.operationCol&&t.selfPropsObj.showAction?n("div",{staticClass:"DshCrossTable-left-footer"},[n("table",{attrs:{cellspacing:"0",cellpadding:"0"}},[n("tr",{staticClass:"DshCrossTable-row"},[n("td",{staticClass:"DshCrossTable-col DshCrossTable-col-operation",style:{background:"#f4f4f4"}},[n("div",{staticClass:"td-content"},[t._v("操作")])])])])]):t._e()]),t._v(" "),n("div",{ref:"DshCrossTable-right",staticClass:"DshCrossTable-right",style:t.renderTableBoxStyle,attrs:{id:"DshCrossTable-right"}},[t.selfPropsObj.showCheck&&t.selfPropsObj.showIndex?n("div",{staticClass:"DshCrossTable-right-header"},[n("table",{style:{width:t.rowWidth+10+"px"},attrs:{cellspacing:"0",cellpadding:"0"}},[t.selfPropsObj.showCheck?n("tr",{staticClass:"DshCrossTable-row"},[n("CheckboxGroup",{staticStyle:{height:"40px"},on:{"on-change":t.select},model:{value:t.selectIds,callback:function(e){t.selectIds=e},expression:"selectIds"}},t._l(t.data,function(e,i){return n("td",{key:e._id,staticClass:"DshCrossTable-td-checkbox",style:{background:"#f4f4f4",textAlign:"center"}},[n("Checkbox",{staticClass:"td-content",staticStyle:{display:"inline-block",width:"100%"},attrs:{label:e._id},nativeOn:{click:function(n){return t.clickRowCheckbox(e,i)}}},[t._v(t._s(""))])],1)}),0)],1):t._e(),t._v(" "),t.selfPropsObj.showIndex?n("tr",t._l(t.data,function(e,i){return n("td",{key:e._id,staticClass:"DshCrossTable-td-index",style:{background:"#f4f4f4",textAlign:"center"},on:{click:function(n){return t.clickRow(e,i)}}},[n("div",{staticClass:"td-content"},[t._v(t._s(i+1))])])}),0):t._e()])]):t._e(),t._v(" "),t.showTable?n("div",{staticClass:"DshCrossTable-right-body",on:{scroll:function(e){return t.tableScroll(e)}}},[t.data.length?n("table",{style:{width:t.rowWidth+"px"},attrs:{cellspacing:"0",cellpadding:"0"}},[t._l(t.columnList.filter(function(t){return!0===t.isHead}),function(e){return n("tr",{key:e._key},t._l(t.data,function(i){return n("td",{key:i._id,staticClass:"DshCrossTable-td-content",style:{width:t.colWidth?t.colWidth+"px":"200px",background:"#f4f4f4",textAlign:"center",fontWeight:500}},[n("div",{staticClass:"td-content"},[t._v("\n "+t._s(i[e._key])+"\n ")])])}),0)}),t._v(" "),t._l(t.columnList.filter(function(t){return!t.isHead}),function(e,i){return n("tr",{key:e._key},t._l(t.data,function(o,s){return n("td",{key:o._id,staticClass:"DshCrossTable-td-content",style:{width:t.colWidth?t.colWidth+"px":"200px",background:t.changedFields.includes(e._key)&&2===t.data.length&&1===s?"#FFECED":s%2==0?"":"#F7F9FD",color:t.changedFields.includes(e._key)&&2===t.data.length&&1===s?"red":void 0},on:{click:function(e){return t.clickRow(o,s)}}},[e.renderBodyCell?n("div",{staticClass:"td-content"},[n("dsh-list-render",{attrs:{row:o,index:s,render:e.renderBodyCell}})],1):e.formatter?n("div",{staticClass:"td-content",domProps:{innerHTML:t._s(e.formatter(o,i,0,e._key))}}):n("div",{staticClass:"td-content"},[t._v(t._s(o[e._key]))])])}),0)})],2):n("div",{staticClass:"dsh-subtip"},[t._v(t._s(t.noDataText))])]):t._e(),t._v(" "),t.operationCol&&t.selfPropsObj.showAction?n("div",{staticClass:"DshCrossTable-right-footer"},[n("table",{style:{width:t.rowWidth+10+"px"},attrs:{cellspacing:"0",cellpadding:"0"}},[n("tr",{staticClass:"DshCrossTable-row"},t._l(t.data,function(e,i){return n("td",{key:e._id,staticClass:"DshCrossTable-td-operation",style:{background:"#f4f4f4"}},[n("div",{staticClass:"td-content"},[n("dsh-list-render",{attrs:{row:e,index:i,render:t.operationCol.renderBodyCell}})],1)])}),0)])]):t._e()])])},staticRenderFns:[]};e.a=i}});
1
+ webpackJsonpbri_components([3],{400:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(408),o=n(430),s=n(0)(i.a,o.a,!1,null,null,null);e.default=s.exports},408:function(t,e,n){"use strict";var i=n(1),o=n.n(i),s=n(419),r=n.n(s);e.a={name:"DshCrossTable",props:{data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},propsObj:{type:Object,default:function(){return{}}},operationList:{type:Array,default:function(){return[]}},noDataText:{type:String,default:"暂无内容..."},changedFields:{type:Array,default:function(){return[]}}},data:function(){return{selections:[],allChecked:!1,selectionList:[],rowWidth:0,colWidth:0,titleWidth:200,showTable:!1,currentPage:1,pagesize:10,pagesizeOpts:[50,30,20,15,10],showTotal:!0,total:0,pageHeightScreen:[5,10,15]}},computed:{selfPropsObj:function(){return o()({showCheck:!0,showIndex:!0,showAction:!0},this.propsObj)},columnList:function(){return this.columns.filter(function(t){return"operation"!==t.type})},operationCol:function(){var t=this;return{title:"操作",_name:"操作",type:"expend",width:150,renderBodyCell:function(e,n){return t.operationList.length<3?n("dsh-buttons",{props:{list:t.operationList},on:{click:function(n){t.$dshEmit(n,e.row,e.row)}}}):n("div",{style:{display:"flex",justifyContent:"center"}},[n("dsh-buttons",{style:{display:"inline-block"},props:{list:t.operationList.slice(0,2)},on:{click:function(n){t.$dshEmit(n,e.row,e.row)}}}),n("dsh-dropdown",{props:{dropdownObj:{icon:"ios-more",size:22,color:"#E9ECF4",showDropdownItemIcon:!1},list:t.operationList.slice(2)},on:{click:function(n){t.$dshEmit(n,e.row,e.row)}}},[n("dsh-buttons",{props:{list:[{name:"更多>>",type:"more",btnType:"text",size:"small"}]}})])])}}},renderTableBoxStyle:function(){var t="";return this.tableExpend?t+="padding-bottom:38px;":t+="padding-bottom:0px;",this.tableSelection&&this.tableIndex?t+="padding-top:77px":this.tableSelection||this.tableIndex?t+="padding-top:39px":t+="padding-top:0px",t},selectIds:{get:function(){return this.selections.map(function(t){return t._id})},set:function(t){this.selections=this.data.filter(function(e){return t.includes(e._id)})}},isSelectAll:{get:function(){return this.data.length>0&&this.selectIds.length===this.data.length},set:function(t){this.selections=t?this.data:[]}}},created:function(){},mounted:function(){this.init()},methods:{init:function(){this.initTableData()},initTableData:function(){var t=this;this.$nextTick(function(){t.initTableWidth()})},initTableWidth:function(){var t=this;r()().listenTo(document.getElementById("DshCrossTable-right"),function(e){var n=t.$refs["DshCrossTable-right"].clientWidth,i=n/240,o=t.data.length;i>=o?(t.rowWidth=n,t.colWidth=(n-10)/o):t.rowWidth=240*o,t.showTable=!0})},tableScroll:function(t){var e=document.getElementsByClassName("DshCrossTable-left")[0],n=document.getElementsByClassName("DshCrossTable-left-body")[0],i=document.getElementsByClassName("DshCrossTable-right-header")[0]||{},o=document.getElementsByClassName("DshCrossTable-right-footer")[0]||{};n.scrollTop=t.srcElement.scrollTop,this.selfPropsObj.showCheck&&this.selfPropsObj.showIndex&&(0!==t.srcElement.scrollTop?(i.style.boxShadow="0px 0px 5px 0px #dddddd",o.style.boxShadow="0px 0px 5px 0px #dddddd"):i.style.boxShadow=o.style.boxShadow="none"),i.scrollLeft=o.scrollLeft=t.srcElement.scrollLeft,0!==t.srcElement.scrollLeft?e.style.boxShadow="0px 0px 3px 0px #dddddd":e.style.boxShadow="none"},clickRow:function(t){this.$emit("clickRow",t)},clickRowCheckbox:function(t){this.curRow=t,this.curRow.bool=!this.selectIds.includes(t._id)},selectAll:function(t){this.$emit("selectAll",this.selectIds,this.selections,t),this.changeSelect()},select:function(t){this.$emit("select",this.selectIds,this.selections,this.curRow,this.curRow.bool),this.changeSelect()},changeSelect:function(){this.$emit("selectChange",this.selectIds,this.selections)}},watch:{data:function(t,e){this.init()}}}},409:function(t,e,n){"use strict";(t.exports={}).forEach=function(t,e){for(var n=0;n<t.length;n++){var i=e(t[n]);if(i)return i}}},410:function(t,e,n){"use strict";var i=t.exports={};i.isIE=function(t){return!!function(){var t=navigator.userAgent.toLowerCase();return-1!==t.indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/")}()&&(!t||t===function(){var t=3,e=document.createElement("div"),n=e.getElementsByTagName("i");do{e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e"}while(n[0]);return t>4?t:void 0}())},i.isLegacyOpera=function(){return!!window.opera}},419:function(t,e,n){"use strict";var i=n(409).forEach,o=n(420),s=n(421),r=n(422),l=n(423),a=n(424),c=n(410),d=n(425),u=n(427),h=n(428),f=n(429);function p(t){return Array.isArray(t)||void 0!==t.length}function b(t){if(Array.isArray(t))return t;var e=[];return i(t,function(t){e.push(t)}),e}function g(t){return t&&1===t.nodeType}function m(t,e,n){var i=t[e];return void 0!==i&&null!==i||void 0===n?i:n}t.exports=function(t){var e;if((t=t||{}).idHandler)e={get:function(e){return t.idHandler.get(e,!0)},set:t.idHandler.set};else{var n=r(),v=l({idGenerator:n,stateHandler:u});e=v}var y=t.reporter;y||(y=a(!1===y));var w=m(t,"batchProcessor",d({reporter:y})),x={};x.callOnAdd=!!m(t,"callOnAdd",!0),x.debug=!!m(t,"debug",!1);var C,k=s(e),T=o({stateHandler:u}),_=m(t,"strategy","object"),S=m(t,"important",!1),E={reporter:y,batchProcessor:w,stateHandler:u,idHandler:e,important:S};if("scroll"===_&&(c.isLegacyOpera()?(y.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),_="object"):c.isIE(9)&&(y.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),_="object")),"scroll"===_)C=f(E);else{if("object"!==_)throw new Error("Invalid strategy name: "+_);C=h(E)}var D={};return{listenTo:function(t,n,o){function s(t){var e=k.get(t);i(e,function(e){e(t)})}function r(t,e,n){k.add(e,n),t&&n(e)}if(o||(o=n,n=t,t={}),!n)throw new Error("At least one element required.");if(!o)throw new Error("Listener required.");if(g(n))n=[n];else{if(!p(n))return y.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=b(n)}var l=0,a=m(t,"callOnAdd",x.callOnAdd),c=m(t,"onReady",function(){}),d=m(t,"debug",x.debug);i(n,function(t){u.getState(t)||(u.initState(t),e.set(t));var h=e.get(t);if(d&&y.log("Attaching listener to element",h,t),!T.isDetectable(t))return d&&y.log(h,"Not detectable."),T.isBusy(t)?(d&&y.log(h,"System busy making it detectable"),r(a,t,o),D[h]=D[h]||[],void D[h].push(function(){++l===n.length&&c()})):(d&&y.log(h,"Making detectable..."),T.markBusy(t,!0),C.makeDetectable({debug:d,important:S},t,function(t){if(d&&y.log(h,"onElementDetectable"),u.getState(t)){T.markAsDetectable(t),T.markBusy(t,!1),C.addListener(t,s),r(a,t,o);var e=u.getState(t);if(e&&e.startSize){var f=t.offsetWidth,p=t.offsetHeight;e.startSize.width===f&&e.startSize.height===p||s(t)}D[h]&&i(D[h],function(t){t()})}else d&&y.log(h,"Element uninstalled before being detectable.");delete D[h],++l===n.length&&c()}));d&&y.log(h,"Already detecable, adding listener."),r(a,t,o),l++}),l===n.length&&c()},removeListener:k.removeListener,removeAllListeners:k.removeAllListeners,uninstall:function(t){if(!t)return y.error("At least one element is required.");if(g(t))t=[t];else{if(!p(t))return y.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");t=b(t)}i(t,function(t){k.removeAllListeners(t),C.uninstall(t),u.cleanState(t)})},initDocument:function(t){C.initDocument&&C.initDocument(t)}}}},420:function(t,e,n){"use strict";t.exports=function(t){var e=t.stateHandler.getState;return{isDetectable:function(t){var n=e(t);return n&&!!n.isDetectable},markAsDetectable:function(t){e(t).isDetectable=!0},isBusy:function(t){return!!e(t).busy},markBusy:function(t,n){e(t).busy=!!n}}}},421:function(t,e,n){"use strict";t.exports=function(t){var e={};function n(n){var i=t.get(n);return void 0===i?[]:e[i]||[]}return{get:n,add:function(n,i){var o=t.get(n);e[o]||(e[o]=[]),e[o].push(i)},removeListener:function(t,e){for(var i=n(t),o=0,s=i.length;o<s;++o)if(i[o]===e){i.splice(o,1);break}},removeAllListeners:function(t){var e=n(t);e&&(e.length=0)}}}},422:function(t,e,n){"use strict";t.exports=function(){var t=1;return{generate:function(){return t++}}}},423:function(t,e,n){"use strict";t.exports=function(t){var e=t.idGenerator,n=t.stateHandler.getState;return{get:function(t){var e=n(t);return e&&void 0!==e.id?e.id:null},set:function(t){var i=n(t);if(!i)throw new Error("setId required the element to have a resize detection state.");var o=e.generate();return i.id=o,o}}}},424:function(t,e,n){"use strict";t.exports=function(t){function e(){}var n={log:e,warn:e,error:e};if(!t&&window.console){var i=function(t,e){t[e]=function(){var t=console[e];if(t.apply)t.apply(console,arguments);else for(var n=0;n<arguments.length;n++)t(arguments[n])}};i(n,"log"),i(n,"warn"),i(n,"error")}return n}},425:function(t,e,n){"use strict";var i=n(426);function o(){var t={},e=0,n=0,i=0;return{add:function(o,s){s||(s=o,o=0),o>n?n=o:o<i&&(i=o),t[o]||(t[o]=[]),t[o].push(s),e++},process:function(){for(var e=i;e<=n;e++)for(var o=t[e],s=0;s<o.length;s++)(0,o[s])()},size:function(){return e}}}t.exports=function(t){var e=(t=t||{}).reporter,n=i.getOption(t,"async",!0),s=i.getOption(t,"auto",!0);s&&!n&&(e&&e.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var r,l=o(),a=!1;function c(){for(a=!0;l.size();){var t=l;l=o(),t.process()}a=!1}function d(){r=function(t){return function(t){return setTimeout(t,0)}(t)}(c)}return{add:function(t,e){!a&&s&&n&&0===l.size()&&d(),l.add(t,e)},force:function(t){a||(void 0===t&&(t=n),r&&(function(t){clearTimeout(t)}(r),r=null),t?d():c())}}}},426:function(t,e,n){"use strict";(t.exports={}).getOption=function(t,e,n){var i=t[e];if((void 0===i||null===i)&&void 0!==n)return n;return i}},427:function(t,e,n){"use strict";var i="_erd";function o(t){return t[i]}t.exports={initState:function(t){return t[i]={},o(t)},getState:o,cleanState:function(t){delete t[i]}}},428:function(t,e,n){"use strict";var i=n(410);t.exports=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,o=t.stateHandler.getState;if(!e)throw new Error("Missing required dependency: reporter.");function s(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function r(t){return o(t).object}return{makeDetectable:function(t,r,l){l||(l=r,r=t,t=null),(t=t||{}).debug,i.isIE(8)?l(r):function(r,l){var a=s(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),c=!1,d=window.getComputedStyle(r),u=r.offsetWidth,h=r.offsetHeight;function f(){function n(){if("static"===d.position){r.style.setProperty("position","relative",t.important?"important":"");var n=function(e,n,i,o){var s=i[o];"auto"!==s&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(s)&&(e.warn("An element that is positioned static has style."+o+"="+s+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+o+" will be set to 0. Element: ",n),n.style.setProperty(o,"0",t.important?"important":""))};n(e,r,d,"top"),n(e,r,d,"right"),n(e,r,d,"bottom"),n(e,r,d,"left")}}""!==d.position&&(n(),c=!0);var s=document.createElement("object");s.style.cssText=a,s.tabIndex=-1,s.type="text/html",s.setAttribute("aria-hidden","true"),s.onload=function(){c||n(),function t(e,n){if(!e.contentDocument){var i=o(e);return i.checkForObjectDocumentTimeoutId&&window.clearTimeout(i.checkForObjectDocumentTimeoutId),void(i.checkForObjectDocumentTimeoutId=setTimeout(function(){i.checkForObjectDocumentTimeoutId=0,t(e,n)},100))}n(e.contentDocument)}(this,function(t){l(r)})},i.isIE()||(s.data="about:blank"),o(r)&&(r.appendChild(s),o(r).object=s,i.isIE()&&(s.data="about:blank"))}o(r).startSize={width:u,height:h},n?n.add(f):f()}(r,l)},addListener:function(t,e){function n(){e(t)}if(i.isIE(8))o(t).object={proxy:n},t.attachEvent("onresize",n);else{var s=r(t);if(!s)throw new Error("Element is not detectable by this strategy.");s.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(t){if(o(t)){var e=r(t);e&&(i.isIE(8)?t.detachEvent("onresize",e.proxy):t.removeChild(e),o(t).checkForObjectDocumentTimeoutId&&window.clearTimeout(o(t).checkForObjectDocumentTimeoutId),delete o(t).object)}}}}},429:function(t,e,n){"use strict";var i=n(409).forEach;t.exports=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,o=t.stateHandler.getState,s=(t.stateHandler.hasState,t.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!e)throw new Error("Missing required dependency: reporter.");var r=function(){var t=document.createElement("div");t.style.cssText=d(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var e=document.createElement("div");e.style.cssText=d(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),e.appendChild(t),document.body.insertBefore(e,document.body.firstChild);var n=500-e.clientWidth,i=500-e.clientHeight;return document.body.removeChild(e),{width:n,height:i}}(),l="erd_scroll_detection_scrollbar_style",a="erd_scroll_detection_container";function c(t){!function(t,e,n){if(!t.getElementById(e)){var i=n+"_animation",o=n+"_animation_active",s="/* Created by the element-resize-detector library. */\n";s+="."+n+" > div::-webkit-scrollbar { "+d(["display: none"])+" }\n\n",s+="."+o+" { "+d(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+i,"animation-name: "+i])+" }\n",s+="@-webkit-keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,i){i=i||function(e){t.head.appendChild(e)};var o=t.createElement("style");o.innerHTML=n,o.id=e,i(o)}(s+="@keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(t,l,a)}function d(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function u(t,n,i){if(t.addEventListener)t.addEventListener(n,i);else{if(!t.attachEvent)return e.error("[scroll] Don't know how to add event listeners.");t.attachEvent("on"+n,i)}}function h(t,n,i){if(t.removeEventListener)t.removeEventListener(n,i);else{if(!t.detachEvent)return e.error("[scroll] Don't know how to remove event listeners.");t.detachEvent("on"+n,i)}}function f(t){return o(t).container.childNodes[0].childNodes[0].childNodes[0]}function p(t){return o(t).container.childNodes[0].childNodes[0].childNodes[1]}return c(window.document),{makeDetectable:function(t,l,c){function h(){if(t.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(s.get(l),"Scroll: "),e.log.apply)e.log.apply(null,n);else for(var i=0;i<n.length;i++)e.log(n[i])}}function b(t){var e=o(t).container.childNodes[0],n=window.getComputedStyle(e);return!n.width||-1===n.width.indexOf("px")}function g(){var t=window.getComputedStyle(l),e={};return e.position=t.position,e.width=l.offsetWidth,e.height=l.offsetHeight,e.top=t.top,e.right=t.right,e.bottom=t.bottom,e.left=t.left,e.widthCSS=t.width,e.heightCSS=t.height,e}function m(){if(h("storeStyle invoked."),o(l)){var t=g();o(l).style=t}else h("Aborting because element has been uninstalled")}function v(t,e,n){o(t).lastWidth=e,o(t).lastHeight=n}function y(){return 2*r.width+1}function w(){return 2*r.height+1}function x(t){return t+10+y()}function C(t){return t+10+w()}function k(t,e,n){var i=f(t),o=p(t),s=x(e),r=C(n),l=function(t){return 2*t+y()}(e),a=function(t){return 2*t+w()}(n);i.scrollLeft=s,i.scrollTop=r,o.scrollLeft=l,o.scrollTop=a}function T(){var t=o(l).container;if(!t){(t=document.createElement("div")).className=a,t.style.cssText=d(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),o(l).container=t,function(t){t.className+=" "+a+"_animation_active"}(t),l.appendChild(t);var e=function(){o(l).onRendered&&o(l).onRendered()};u(t,"animationstart",e),o(l).onAnimationStart=e}return t}function _(){if(h("Injecting elements"),o(l)){!function(){var n=o(l).style;if("static"===n.position){l.style.setProperty("position","relative",t.important?"important":"");var i=function(t,e,n,i){var o=n[i];"auto"!==o&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(o)&&(t.warn("An element that is positioned static has style."+i+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",e),e.style[i]=0)};i(e,l,n,"top"),i(e,l,n,"right"),i(e,l,n,"bottom"),i(e,l,n,"left")}}();var n=o(l).container;n||(n=T());var i=r.width,s=r.height,c=d(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),f=d(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(function(t,e,n,i){return t=t?t+"px":"0",e=e?e+"px":"0",n=n?n+"px":"0",["left: "+t,"top: "+e,"right: "+(i=i?i+"px":"0"),"bottom: "+n]}(-(1+i),-(1+s),-s,-i))),p=d(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),b=d(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),g=d(["position: absolute","left: 0","top: 0"]),m=d(["position: absolute","width: 200%","height: 200%"]),v=document.createElement("div"),y=document.createElement("div"),w=document.createElement("div"),x=document.createElement("div"),C=document.createElement("div"),k=document.createElement("div");v.dir="ltr",v.style.cssText=c,v.className=a,y.className=a,y.style.cssText=f,w.style.cssText=p,x.style.cssText=g,C.style.cssText=b,k.style.cssText=m,w.appendChild(x),C.appendChild(k),y.appendChild(w),y.appendChild(C),v.appendChild(y),n.appendChild(v),u(w,"scroll",_),u(C,"scroll",S),o(l).onExpandScroll=_,o(l).onShrinkScroll=S}else h("Aborting because element has been uninstalled");function _(){var t=o(l);t&&t.onExpand?t.onExpand():h("Aborting expand scroll handler: element has been uninstalled")}function S(){var t=o(l);t&&t.onShrink?t.onShrink():h("Aborting shrink scroll handler: element has been uninstalled")}}function S(){function r(e,n,i){var o=function(t){return f(t).childNodes[0]}(e),s=x(n),r=C(i);o.style.setProperty("width",s+"px",t.important?"important":""),o.style.setProperty("height",r+"px",t.important?"important":"")}function a(i){var a=l.offsetWidth,d=l.offsetHeight,u=a!==o(l).lastWidth||d!==o(l).lastHeight;h("Storing current size",a,d),v(l,a,d),n.add(0,function(){if(u)if(o(l))if(c()){if(t.debug){var n=l.offsetWidth,i=l.offsetHeight;n===a&&i===d||e.warn(s.get(l),"Scroll: Size changed before updating detector elements.")}r(l,a,d)}else h("Aborting because element container has not been initialized");else h("Aborting because element has been uninstalled")}),n.add(1,function(){o(l)?c()?k(l,a,d):h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")}),u&&i&&n.add(2,function(){o(l)?c()?i():h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")})}function c(){return!!o(l).container}function d(){h("notifyListenersIfNeeded invoked");var t=o(l);return void 0===o(l).lastNotifiedWidth&&t.lastWidth===t.startSize.width&&t.lastHeight===t.startSize.height?h("Not notifying: Size is the same as the start size, and there has been no notification yet."):t.lastWidth===t.lastNotifiedWidth&&t.lastHeight===t.lastNotifiedHeight?h("Not notifying: Size already notified"):(h("Current size not notified, notifying..."),t.lastNotifiedWidth=t.lastWidth,t.lastNotifiedHeight=t.lastHeight,void i(o(l).listeners,function(t){t(l)}))}function u(){h("Scroll detected."),b(l)?h("Scroll event fired while unrendered. Ignoring..."):a(d)}if(h("registerListenersAndPositionElements invoked."),o(l)){o(l).onRendered=function(){if(h("startanimation triggered."),b(l))h("Ignoring since element is still unrendered...");else{h("Element rendered.");var t=f(l),e=p(l);0!==t.scrollLeft&&0!==t.scrollTop&&0!==e.scrollLeft&&0!==e.scrollTop||(h("Scrollbars out of sync. Updating detector elements..."),a(d))}},o(l).onExpand=u,o(l).onShrink=u;var g=o(l).style;r(l,g.width,g.height)}else h("Aborting because element has been uninstalled")}function E(){if(h("finalizeDomMutation invoked."),o(l)){var t=o(l).style;v(l,t.width,t.height),k(l,t.width,t.height)}else h("Aborting because element has been uninstalled")}function D(){c(l)}function A(){h("Installing..."),o(l).listeners=[],function(){var t=g();o(l).startSize={width:t.width,height:t.height},h("Element start size",o(l).startSize)}(),n.add(0,m),n.add(1,_),n.add(2,S),n.add(3,E),n.add(4,D)}c||(c=l,l=t,t=null),t=t||{},h("Making detectable..."),function(t){return!function(t){var e=t.getRootNode&&t.getRootNode().contains(t);return t===t.ownerDocument.body||t.ownerDocument.body.contains(t)||e}(t)||null===window.getComputedStyle(t)}(l)?(h("Element is detached"),T(),h("Waiting until element is attached..."),o(l).onRendered=function(){h("Element is now attached"),A()}):A()},addListener:function(t,e){if(!o(t).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");o(t).listeners.push(e)},uninstall:function(t){var e=o(t);e&&(e.onExpandScroll&&h(f(t),"scroll",e.onExpandScroll),e.onShrinkScroll&&h(p(t),"scroll",e.onShrinkScroll),e.onAnimationStart&&h(e.container,"animationstart",e.onAnimationStart),e.container&&t.removeChild(e.container))},initDocument:c}}},430:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"DshCrossTable"},[n("div",{staticClass:"DshCrossTable-left",style:t.renderTableBoxStyle},[t.selfPropsObj.showCheck&&t.selfPropsObj.showIndex?n("div",{staticClass:"DshCrossTable-left-header"},[n("table",{attrs:{cellspacing:"0",cellpadding:"0"}},[t.selfPropsObj.showCheck?n("tr",{staticClass:"DshCrossTable-row"},[n("td",{staticClass:"DshCrossTable-col DshCrossTable-col-checkbox",style:{background:"#f4f4f4"}},[n("Checkbox",{on:{"on-change":t.selectAll},model:{value:t.isSelectAll,callback:function(e){t.isSelectAll=e},expression:"isSelectAll"}})],1)]):t._e(),t._v(" "),t.selfPropsObj.showIndex?n("tr",{staticClass:"DshCrossTable-row"},[n("td",{staticClass:"DshCrossTable-col DshCrossTable-col-index",style:{background:"#f4f4f4"}},[n("div",{staticClass:"td-content"},[t._v("序号")])])]):t._e()])]):t._e(),t._v(" "),n("div",{staticClass:"DshCrossTable-left-body"},[n("div",{style:{height:"10000px"}},[n("table",{attrs:{cellspacing:"0",cellpadding:"0"}},[t._l(t.columnList.filter(function(t){return!0===t.isHead}),function(e){return n("tr",{key:e._key},[n("td",{staticClass:"DshCrossTable-col DshCrossTable-col-content",style:{background:"#f4f4f4",textAlign:"center",fontWeight:500}},[n("bri-tooltip",{attrs:{transfer:"",content:e.title}},[n("div",{staticClass:"td-content dsh-ellipsis"},[t._v("\n "+t._s(e.title)+"\n ")])])],1)])}),t._v(" "),t._l(t.columnList.filter(function(t){return!t.isHead}),function(e){return n("tr",{key:e._key},[n("td",{staticClass:"DshCrossTable-col DshCrossTable-col-content",style:{background:"#F7F9FD"}},[n("bri-tooltip",{attrs:{transfer:"",content:e.title}},[n("div",{staticClass:"td-content dsh-ellipsis"},[t._t("col",function(){return[t.changedFields.includes(e._key)?n("div",{staticClass:"crossTable-col"},[n("span",{staticClass:"crossTable-col-title"},[t._v(t._s(e.title))]),t._v(" "),n("span",{staticClass:"crossTable-col-sign"},[t._v("变更")])]):[t._v("\n "+t._s(e.title)+"\n ")]]},{col:e})],2)])],1)])})],2)])]),t._v(" "),t.operationCol&&t.selfPropsObj.showAction?n("div",{staticClass:"DshCrossTable-left-footer"},[n("table",{attrs:{cellspacing:"0",cellpadding:"0"}},[n("tr",{staticClass:"DshCrossTable-row"},[n("td",{staticClass:"DshCrossTable-col DshCrossTable-col-operation",style:{background:"#f4f4f4"}},[n("div",{staticClass:"td-content"},[t._v("操作")])])])])]):t._e()]),t._v(" "),n("div",{ref:"DshCrossTable-right",staticClass:"DshCrossTable-right",style:t.renderTableBoxStyle,attrs:{id:"DshCrossTable-right"}},[t.selfPropsObj.showCheck&&t.selfPropsObj.showIndex?n("div",{staticClass:"DshCrossTable-right-header"},[n("table",{style:{width:t.rowWidth+10+"px"},attrs:{cellspacing:"0",cellpadding:"0"}},[t.selfPropsObj.showCheck?n("tr",{staticClass:"DshCrossTable-row"},[n("CheckboxGroup",{staticStyle:{height:"40px"},on:{"on-change":t.select},model:{value:t.selectIds,callback:function(e){t.selectIds=e},expression:"selectIds"}},t._l(t.data,function(e,i){return n("td",{key:e._id,staticClass:"DshCrossTable-td-checkbox",style:{background:"#f4f4f4",textAlign:"center"}},[n("Checkbox",{staticClass:"td-content",staticStyle:{display:"inline-block",width:"100%"},attrs:{label:e._id},nativeOn:{click:function(n){return t.clickRowCheckbox(e,i)}}},[t._v(t._s(""))])],1)}),0)],1):t._e(),t._v(" "),t.selfPropsObj.showIndex?n("tr",t._l(t.data,function(e,i){return n("td",{key:e._id,staticClass:"DshCrossTable-td-index",style:{background:"#f4f4f4",textAlign:"center"},on:{click:function(n){return t.clickRow(e,i)}}},[n("div",{staticClass:"td-content"},[t._v(t._s(i+1))])])}),0):t._e()])]):t._e(),t._v(" "),t.showTable?n("div",{staticClass:"DshCrossTable-right-body",on:{scroll:function(e){return t.tableScroll(e)}}},[t.data.length?n("table",{style:{width:t.rowWidth+"px"},attrs:{cellspacing:"0",cellpadding:"0"}},[t._l(t.columnList.filter(function(t){return!0===t.isHead}),function(e){return n("tr",{key:e._key},t._l(t.data,function(i){return n("td",{key:i._id,staticClass:"DshCrossTable-td-content",style:{width:t.colWidth?t.colWidth+"px":"200px",background:"#f4f4f4",textAlign:"center",fontWeight:500}},[n("div",{staticClass:"td-content"},[t._v("\n "+t._s(i[e._key])+"\n ")])])}),0)}),t._v(" "),t._l(t.columnList.filter(function(t){return!t.isHead}),function(e,i){return n("tr",{key:e._key},t._l(t.data,function(o,s){return n("td",{key:o._id,staticClass:"DshCrossTable-td-content",style:{width:t.colWidth?t.colWidth+"px":"200px",background:t.changedFields.includes(e._key)&&2===t.data.length&&1===s?"#FFECED":s%2==0?"":"#F7F9FD",color:t.changedFields.includes(e._key)&&2===t.data.length&&1===s?"red":void 0},on:{click:function(e){return t.clickRow(o,s)}}},[e.renderBodyCell?n("div",{staticClass:"td-content"},[n("dsh-list-render",{attrs:{row:o,index:s,render:e.renderBodyCell}})],1):e.formatter?n("div",{staticClass:"td-content",domProps:{innerHTML:t._s(e.formatter(o,i,0,e._key))}}):n("div",{staticClass:"td-content"},[t._v(t._s(o[e._key]))])])}),0)})],2):n("div",{staticClass:"dsh-subtip"},[t._v(t._s(t.noDataText))])]):t._e(),t._v(" "),t.operationCol&&t.selfPropsObj.showAction?n("div",{staticClass:"DshCrossTable-right-footer"},[n("table",{style:{width:t.rowWidth+10+"px"},attrs:{cellspacing:"0",cellpadding:"0"}},[n("tr",{staticClass:"DshCrossTable-row"},t._l(t.data,function(e,i){return n("td",{key:e._id,staticClass:"DshCrossTable-td-operation",style:{background:"#f4f4f4"}},[n("div",{staticClass:"td-content"},[n("dsh-list-render",{attrs:{row:e,index:i,render:t.operationCol.renderBodyCell}})],1)])}),0)])]):t._e()])])},staticRenderFns:[]};e.a=i}});
@@ -1 +1 @@
1
- webpackJsonpbri_components([4],{402:function(t,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var e=n(408),r=n(427),s=n(0)(e.a,r.a,!1,null,null,null);a.default=s.exports},408:function(t,a,n){"use strict";a.a={name:"DshSingleData",components:{},props:{data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},propsObj:{type:Object,default:function(){return{}}},operationList:{type:Array,default:function(){return[]}}},computed:{formData:function(){return this.data[0]||void 0},btnList:function(){return this.operationList.filter(function(t){return"canShow"!==t.type})}},data:function(){return{canEdit:!1}},created:function(){},methods:{}}},427:function(t,a,n){"use strict";var e={render:function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{staticClass:"DshSingleData"},[t.formData?n("dsh-form",{staticClass:"DshSingleData-form",attrs:{canEdit:t.canEdit,formData:t.formData,formList:t.columns}}):n("div",{staticClass:"DshSingleData-nodata"},[n("img",{attrs:{src:t.$imageSrcMap.app.nodata}})]),t._v(" "),t.btnList.length&&t.formData?n("dsh-buttons",{staticClass:"DshSingleData-footer",attrs:{list:t.btnList},on:{click:function(a){return t.$dshEmit(a,t.formData)}}}):t._e()],1)},staticRenderFns:[]};a.a=e}});
1
+ webpackJsonpbri_components([4],{402:function(t,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var e=n(412),r=n(432),s=n(0)(e.a,r.a,!1,null,null,null);a.default=s.exports},412:function(t,a,n){"use strict";a.a={name:"DshSingleData",components:{},props:{data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},propsObj:{type:Object,default:function(){return{}}},operationList:{type:Array,default:function(){return[]}}},computed:{formData:function(){return this.data[0]||void 0},btnList:function(){return this.operationList.filter(function(t){return"canShow"!==t.type})}},data:function(){return{canEdit:!1}},created:function(){},methods:{}}},432:function(t,a,n){"use strict";var e={render:function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{staticClass:"DshSingleData"},[t.formData?n("dsh-form",{staticClass:"DshSingleData-form",attrs:{canEdit:t.canEdit,formData:t.formData,formList:t.columns}}):n("div",{staticClass:"DshSingleData-nodata"},[n("img",{attrs:{src:t.$imageSrcMap.app.nodata}})]),t._v(" "),t.btnList.length&&t.formData?n("dsh-buttons",{staticClass:"DshSingleData-footer",attrs:{list:t.btnList},on:{click:function(a){return t.$dshEmit(a,t.formData)}}}):t._e()],1)},staticRenderFns:[]};a.a=e}});
@@ -1 +1 @@
1
- webpackJsonpbri_components([5],{401:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=e(407),r=e(426),o=e(0)(i.a,r.a,!1,null,null,null);n.default=o.exports},407:function(t,n,e){"use strict";var i=e(1),r=e.n(i),o=e(24);e.n(o);n.a={name:"DshPanel",props:{data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},propsObj:{type:Object,default:function(){return{titleField:""}}},noDataText:{type:String,default:"暂无内容..."},operationList:{type:Array,default:function(){return[]}},extraOperationList:{type:Array,default:function(){return[]}}},data:function(){return{dropdownObj:{icon:"ios-more",size:22,color:"#E9ECF4",showDropdownItemIcon:!1},getBgColor:function(t){return this.groupFieldObj._useColor?o.resourceData.colorMap[(this.groupFieldObj._data.find(function(n){return n._key===t._key})||{color:"color-default"}).color]:o.resourceData.colorMap["color-default"]}}},computed:{groupField:function(){return this.propsObj.groupField},groupFieldObj:function(){return this.propsObj.groupFieldObj||{}},titleField:function(){return this.propsObj.titleField},selfColumns:function(){var t=this;return this.columns.filter(function(n){return![t.groupField,t.titleField].includes(n._key)}).map(function(t){return r()({},t,{titleAlign:"left",columnAlign:"left"})}).slice(0,1)},groupBtnOperationList:function(){return this.extraOperationList.filter(function(t){return["canCreate","canCustomCreate"].includes(t.type)||t.type.includes("canCustomCreate")}).map(function(t){return r()({},t,{long:!0})})},dragOperationObj:function(){return this.extraOperationList.find(function(t){return["canDrag","canCustomDrag"].includes(t.type)||t.type.includes("canCustomDrag")})}},created:function(){},mounted:function(){this.initGroupScroll()},methods:{initGroupScroll:function(){var t=this,n=this.$el.querySelectorAll(".list-drag-transition");Array.prototype.slice.call(n).forEach(function(n,e){var i=t.data[e];t.groupLoad(i,n),n.addEventListener("DOMSubtreeModified",function(e){t.groupLoad(i,n)},!1)})},groupScroll:function(t,n,e){var i=e.srcElement;this.$emit("groupScroll",t,e),this.groupLoad(t,i)},groupLoad:function(t,n){!0!==t.loading&&!0!==t.finished&&n.children.length===t.list.length&&n.clientHeight+n.scrollTop>n.scrollHeight-20&&this.$emit("groupLoad",t,n)},clickRow:function(t){this.$emit("clickRow",t)}},watch:{data:function(){this.initGroupScroll()}}}},426:function(t,n,e){"use strict";var i={render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"DshPanel"},t._l(t.data,function(n,i){return e("div",{key:i,staticClass:"DshPanel-group"},[e("div",{staticClass:"DshPanel-group-title",style:{backgroundColor:t.getBgColor(n),color:"#ffffff"}},[e("span",{staticClass:"DshPanel-group-title-name"},[e("bri-tooltip",{staticClass:"unit-label",attrs:{placement:"top",transfer:!0,content:n.name}},[e("span",{staticClass:"dsh-ellipsis"},[t._v(t._s(n.name)+"  ")])])],1),t._v(" "),e("span",[e("span",{staticClass:"DshPanel-group-title-number"},[t._v("\n "+t._s(n.total)+"\n ")]),t._v("\n 条\n ")]),t._v(" "),e("span",[t._v("(已加载"+t._s(n.list.length)+"条)")])]),t._v(" "),e("div",{staticClass:"DshPanel-group-list",style:{backgroundColor:t.$getColor(t.getBgColor(n))}},[n.list.length?t._e():e("div",{staticClass:"dsh-tip",style:{color:t.getBgColor(n)}},[t._v("\n "+t._s(t.noDataText)+"\n ")]),t._v(" "),e("dsh-draggable",{staticClass:"list-drag",attrs:{group:"panel",animation:"300",disabled:!t.dragOperationObj},on:{update:function(e){var i;t.$dshEmit(t.dragOperationObj,e,n,t.data.find(function(t){return t._key===e.from.id}),((i={})[t.groupField]=n._key,i))},add:function(e){var i;t.$dshEmit(t.dragOperationObj,e,n,t.data.find(function(t){return t._key===e.from.id}),((i={})[t.groupField]=n._key,i))}},model:{value:n.list,callback:function(e){t.$set(n,"list",e)},expression:"groupItem.list"}},[e("transition-group",{staticClass:"list-drag-transition",attrs:{id:n._key},nativeOn:{scroll:function(e){return t.groupScroll(n,i,e)}}},t._l(n.list,function(n,i){return e("div",{key:n._id,staticClass:"row-item",attrs:{id:n._id},on:{click:function(e){return t.clickRow(n,i)}}},[e("dsh-dropdown",{staticClass:"row-item-dropdown",attrs:{dropdownObj:t.dropdownObj,list:t.operationList},on:{click:function(e){return t.$dshEmit(e,n,i)}},nativeOn:{click:function(t){t.stopPropagation()}}}),t._v(" "),e("div",{staticClass:"row-item-title dsh-ellipsis"},[t._v(t._s(n[t.titleField]))]),t._v(" "),t._l(t.selfColumns,function(i){return e("div",{key:i._key,staticClass:"row-item-cols unit"},[e("bri-tooltip",{staticClass:"unit-label",attrs:{placement:"top",transfer:!0,maxWidth:"200",content:i._name}},[e("span",{staticClass:"dsh-ellipsis"},[t._v(t._s(i._name))])]),t._v(" "),e("span",{staticClass:"unit-colon"},[t._v(":")]),t._v(" "),e("div",{staticClass:"unit-value dsh-ellipsis"},[i.renderBodyCell?e("dsh-list-render",{attrs:{row:n,column:i,index:0,render:i.renderBodyCell}}):i.formatter?e("div",{domProps:{innerHTML:t._s(i.formatter(n,0))}}):e("span",{staticClass:"unit-value-text"},[t._v(t._s(n[i._key]))])],1)],1)})],2)}),0)],1),t._v(" "),e("dsh-buttons",{staticClass:"list-btns",attrs:{list:t.groupBtnOperationList},on:{click:function(e){var i;return t.$dshEmit(e,((i={})[t.groupField]=n._key,i))}}})],1)])}),0)},staticRenderFns:[]};n.a=i}});
1
+ webpackJsonpbri_components([5],{401:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=e(411),r=e(431),o=e(0)(i.a,r.a,!1,null,null,null);n.default=o.exports},411:function(t,n,e){"use strict";var i=e(1),r=e.n(i),o=e(24);e.n(o);n.a={name:"DshPanel",props:{data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},propsObj:{type:Object,default:function(){return{titleField:""}}},noDataText:{type:String,default:"暂无内容..."},operationList:{type:Array,default:function(){return[]}},extraOperationList:{type:Array,default:function(){return[]}}},data:function(){return{dropdownObj:{icon:"ios-more",size:22,color:"#E9ECF4",showDropdownItemIcon:!1},getBgColor:function(t){return this.groupFieldObj._useColor?o.resourceData.colorMap[(this.groupFieldObj._data.find(function(n){return n._key===t._key})||{color:"color-default"}).color]:o.resourceData.colorMap["color-default"]}}},computed:{groupField:function(){return this.propsObj.groupField},groupFieldObj:function(){return this.propsObj.groupFieldObj||{}},titleField:function(){return this.propsObj.titleField},selfColumns:function(){var t=this;return this.columns.filter(function(n){return![t.groupField,t.titleField].includes(n._key)}).map(function(t){return r()({},t,{titleAlign:"left",columnAlign:"left"})}).slice(0,1)},groupBtnOperationList:function(){return this.extraOperationList.filter(function(t){return["canCreate","canCustomCreate"].includes(t.type)||t.type.includes("canCustomCreate")}).map(function(t){return r()({},t,{long:!0})})},dragOperationObj:function(){return this.extraOperationList.find(function(t){return["canDrag","canCustomDrag"].includes(t.type)||t.type.includes("canCustomDrag")})}},created:function(){},mounted:function(){this.initGroupScroll()},methods:{initGroupScroll:function(){var t=this,n=this.$el.querySelectorAll(".list-drag-transition");Array.prototype.slice.call(n).forEach(function(n,e){var i=t.data[e];t.groupLoad(i,n),n.addEventListener("DOMSubtreeModified",function(e){t.groupLoad(i,n)},!1)})},groupScroll:function(t,n,e){var i=e.srcElement;this.$emit("groupScroll",t,e),this.groupLoad(t,i)},groupLoad:function(t,n){!0!==t.loading&&!0!==t.finished&&n.children.length===t.list.length&&n.clientHeight+n.scrollTop>n.scrollHeight-20&&this.$emit("groupLoad",t,n)},clickRow:function(t){this.$emit("clickRow",t)}},watch:{data:function(){this.initGroupScroll()}}}},431:function(t,n,e){"use strict";var i={render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"DshPanel"},t._l(t.data,function(n,i){return e("div",{key:i,staticClass:"DshPanel-group"},[e("div",{staticClass:"DshPanel-group-title",style:{backgroundColor:t.getBgColor(n),color:"#ffffff"}},[e("span",{staticClass:"DshPanel-group-title-name"},[e("bri-tooltip",{staticClass:"unit-label",attrs:{placement:"top",transfer:!0,content:n.name}},[e("span",{staticClass:"dsh-ellipsis"},[t._v(t._s(n.name)+"  ")])])],1),t._v(" "),e("span",[e("span",{staticClass:"DshPanel-group-title-number"},[t._v("\n "+t._s(n.total)+"\n ")]),t._v("\n 条\n ")]),t._v(" "),e("span",[t._v("(已加载"+t._s(n.list.length)+"条)")])]),t._v(" "),e("div",{staticClass:"DshPanel-group-list",style:{backgroundColor:t.$getColor(t.getBgColor(n))}},[n.list.length?t._e():e("div",{staticClass:"dsh-tip",style:{color:t.getBgColor(n)}},[t._v("\n "+t._s(t.noDataText)+"\n ")]),t._v(" "),e("dsh-draggable",{staticClass:"list-drag",attrs:{group:"panel",animation:"300",disabled:!t.dragOperationObj},on:{update:function(e){var i;t.$dshEmit(t.dragOperationObj,e,n,t.data.find(function(t){return t._key===e.from.id}),((i={})[t.groupField]=n._key,i))},add:function(e){var i;t.$dshEmit(t.dragOperationObj,e,n,t.data.find(function(t){return t._key===e.from.id}),((i={})[t.groupField]=n._key,i))}},model:{value:n.list,callback:function(e){t.$set(n,"list",e)},expression:"groupItem.list"}},[e("transition-group",{staticClass:"list-drag-transition",attrs:{id:n._key},nativeOn:{scroll:function(e){return t.groupScroll(n,i,e)}}},t._l(n.list,function(n,i){return e("div",{key:n._id,staticClass:"row-item",attrs:{id:n._id},on:{click:function(e){return t.clickRow(n,i)}}},[e("dsh-dropdown",{staticClass:"row-item-dropdown",attrs:{dropdownObj:t.dropdownObj,list:t.operationList},on:{click:function(e){return t.$dshEmit(e,n,i)}},nativeOn:{click:function(t){t.stopPropagation()}}}),t._v(" "),e("div",{staticClass:"row-item-title dsh-ellipsis"},[t._v(t._s(n[t.titleField]))]),t._v(" "),t._l(t.selfColumns,function(i){return e("div",{key:i._key,staticClass:"row-item-cols unit"},[e("bri-tooltip",{staticClass:"unit-label",attrs:{placement:"top",transfer:!0,maxWidth:"200",content:i._name}},[e("span",{staticClass:"dsh-ellipsis"},[t._v(t._s(i._name))])]),t._v(" "),e("span",{staticClass:"unit-colon"},[t._v(":")]),t._v(" "),e("div",{staticClass:"unit-value dsh-ellipsis"},[i.renderBodyCell?e("dsh-list-render",{attrs:{row:n,column:i,index:0,render:i.renderBodyCell}}):i.formatter?e("div",{domProps:{innerHTML:t._s(i.formatter(n,0))}}):e("span",{staticClass:"unit-value-text"},[t._v(t._s(n[i._key]))])],1)],1)})],2)}),0)],1),t._v(" "),e("dsh-buttons",{staticClass:"list-btns",attrs:{list:t.groupBtnOperationList},on:{click:function(e){var i;return t.$dshEmit(e,((i={})[t.groupField]=n._key,i))}}})],1)])}),0)},staticRenderFns:[]};n.a=i}});
@@ -1 +1 @@
1
- webpackJsonpbri_components([6],{399:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s(403),n=s(413),r=s(0)(i.a,n.a,!1,null,null,null);e.default=r.exports},403:function(t,e,s){"use strict";e.a={name:"DshCard",props:{data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},propsObj:{type:Object,default:function(){return{}}},operationList:{type:Array,default:function(){return[]}},noDataText:{type:String,default:"暂无内容..."}},data:function(){return{dropdownObj:{icon:"ios-more",size:22,color:"#E9ECF4",showDropdownItemIcon:!1},defaultImgObj:{url:this.$imageSrcMap.app.projectCard},getCardBgImgSrc:function(t){return((t[this.propsObj.imageField]||[]).find(function(t){return t.mimetype.includes("image")})||this.defaultImgObj).url}}},computed:{selfColumns:function(){return this.columns.slice(0,2)}},created:function(){},methods:{clickRow:function(t){this.$emit("clickRow",t)}}}},413:function(t,e,s){"use strict";var i={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"DshCard"},[t.data.length?t._l(t.data,function(e,i){return s("div",{key:i,staticClass:"DshCard-item",on:{click:function(s){return t.clickRow(e)}}},[s("dsh-dropdown",{staticClass:"DshCard-item-dropdown",attrs:{dropdownObj:t.dropdownObj,list:t.operationList},on:{click:function(s){return t.$dshEmit(s,e,i)}},nativeOn:{click:function(t){t.stopPropagation()}}}),t._v(" "),s("div",{staticClass:"DshCard-item-image"},[s("img",{attrs:{src:t.getCardBgImgSrc(e),alt:""}})]),t._v(" "),s("div",{staticClass:"DshCard-item-info"},[s("div",{staticClass:"DshCard-item-info-title dsh-ellipsis"},[s("bri-tooltip",{attrs:{placement:"top",transfer:!0,content:e[t.propsObj.titleField]}},[s("div",{staticClass:"dsh-ellipsis"},[t._v(t._s(e[t.propsObj.titleField]))])])],1),t._v(" "),t._l(t.selfColumns,function(i){return s("div",{key:i._key,staticClass:"DshCard-item-info-col unit"},[s("bri-tooltip",{staticClass:"unit-label",attrs:{placement:"top",transfer:!0,maxWidth:"200",content:i._name}},[s("span",{staticClass:"dsh-ellipsis"},[t._v(t._s(i._name))])]),t._v(" "),s("span",{staticClass:"unit-colon"},[t._v(":")]),t._v(" "),s("div",{staticClass:"unit-value dsh-ellipsis"},[i.renderBodyCell?s("dsh-list-render",{attrs:{row:e,column:i,index:0,render:i.renderBodyCell}}):i.formatter?s("div",{domProps:{innerHTML:t._s(i.formatter(e,0))}}):s("span",{staticClass:"unit-value-text"},[t._v(t._s(e[i._key]))])],1)],1)})],2)],1)}):s("div",{staticClass:"dsh-tip"},[t._v(t._s(t.noDataText))])],2)},staticRenderFns:[]};e.a=i}});
1
+ webpackJsonpbri_components([6],{399:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s(407),n=s(418),r=s(0)(i.a,n.a,!1,null,null,null);e.default=r.exports},407:function(t,e,s){"use strict";e.a={name:"DshCard",props:{data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},propsObj:{type:Object,default:function(){return{}}},operationList:{type:Array,default:function(){return[]}},noDataText:{type:String,default:"暂无内容..."}},data:function(){return{dropdownObj:{icon:"ios-more",size:22,color:"#E9ECF4",showDropdownItemIcon:!1},defaultImgObj:{url:this.$imageSrcMap.app.projectCard},getCardBgImgSrc:function(t){return((t[this.propsObj.imageField]||[]).find(function(t){return t.mimetype.includes("image")})||this.defaultImgObj).url}}},computed:{selfColumns:function(){return this.columns.slice(0,2)}},created:function(){},methods:{clickRow:function(t){this.$emit("clickRow",t)}}}},418:function(t,e,s){"use strict";var i={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"DshCard"},[t.data.length?t._l(t.data,function(e,i){return s("div",{key:i,staticClass:"DshCard-item",on:{click:function(s){return t.clickRow(e)}}},[s("dsh-dropdown",{staticClass:"DshCard-item-dropdown",attrs:{dropdownObj:t.dropdownObj,list:t.operationList},on:{click:function(s){return t.$dshEmit(s,e,i)}},nativeOn:{click:function(t){t.stopPropagation()}}}),t._v(" "),s("div",{staticClass:"DshCard-item-image"},[s("img",{attrs:{src:t.getCardBgImgSrc(e),alt:""}})]),t._v(" "),s("div",{staticClass:"DshCard-item-info"},[s("div",{staticClass:"DshCard-item-info-title dsh-ellipsis"},[s("bri-tooltip",{attrs:{placement:"top",transfer:!0,content:e[t.propsObj.titleField]}},[s("div",{staticClass:"dsh-ellipsis"},[t._v(t._s(e[t.propsObj.titleField]))])])],1),t._v(" "),t._l(t.selfColumns,function(i){return s("div",{key:i._key,staticClass:"DshCard-item-info-col unit"},[s("bri-tooltip",{staticClass:"unit-label",attrs:{placement:"top",transfer:!0,maxWidth:"200",content:i._name}},[s("span",{staticClass:"dsh-ellipsis"},[t._v(t._s(i._name))])]),t._v(" "),s("span",{staticClass:"unit-colon"},[t._v(":")]),t._v(" "),s("div",{staticClass:"unit-value dsh-ellipsis"},[i.renderBodyCell?s("dsh-list-render",{attrs:{row:e,column:i,index:0,render:i.renderBodyCell}}):i.formatter?s("div",{domProps:{innerHTML:t._s(i.formatter(e,0))}}):s("span",{staticClass:"unit-value-text"},[t._v(t._s(e[i._key]))])],1)],1)})],2)],1)}):s("div",{staticClass:"dsh-tip"},[t._v(t._s(t.noDataText))])],2)},staticRenderFns:[]};e.a=i}});