Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

2 řádky
18 KiB

  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d9ac4dc2"],{2275:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"layout_content"},[n("app-header",{attrs:{showBackBtn:"",theme:"white",title:e.topNodeName,backBtnTitle:"退出矩阵编辑器",onBackBtnClick:e.onBackBtnClick}}),n("section",{staticClass:"title_section mt-10"},[n("div",{staticClass:"EC_col_8"},[n("h3",[e._v(e._s(e.topNodeName))])]),n("div",{staticClass:"EC_col_8"},[n("div",{staticClass:"text_concenter"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowMatrixTemplatePane,expression:"isShowMatrixTemplatePane"}]},[n("div",{staticClass:"searhNodeNameconcenter"},[n("el-input",{staticClass:"el-input_mini",attrs:{placeholder:"矩阵搜索","prefix-icon":"icon font_family icon-icon_sousuo searchsize"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searhTempNode(t)}},model:{value:e.searhNodeName,callback:function(t){e.searhNodeName=t},expression:"searhNodeName"}})],1)])])]),n("div",{staticClass:"EC_col_8"}),n("div",{staticClass:"yiyunline"})]),n("section",{staticClass:"yiyun_section1"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"gundontiao"},[n("div",{staticClass:"fixtable"},[n("table",{directives:[{name:"show",rawName:"v-show",value:!!e.nodeList.length,expression:"!!nodeList.length"}],staticClass:"bg1",attrs:{cellspacing:"0",cellpadding:"0"}},[e._m(0)]),n("table",{staticClass:"bg2",attrs:{cellspacing:"0",cellpadding:"0"}},[n("tbody",[n("tr",e._l(e.nodeList,(function(t,r){return n("td",{key:t.id,class:-1!==e.searchedNodeIds.indexOf(t.id)?"highlight":"",staticStyle:{"background-color":"#e2e2e2"},attrs:{id:t.id}},[n("div",{staticClass:"row-w-130 col-h-30 bg_write"},[n("div",{staticClass:"mark"},[e._v(e._s(r+1))])])])})),0),n("tr",e._l(e.nodeList,(function(t){return n("td",{key:t.id,class:-1!==e.searchedNodeIds.indexOf(t.id)?"highlight":"",attrs:{id:t.id}},[n("div",{staticClass:"row-w-130 col-h-60 bg_druk"},[n("div",{staticClass:"mark"},[e._v(e._s(t.name))])])])})),0)])]),n("table",{staticClass:"bg3",attrs:{cellspacing:"0",cellpadding:"0"}},[n("tbody",e._l(e.nodeList,(function(t,r){return n("tr",{key:t.id,staticClass:"tdheight",attrs:{id:t.id}},[n("td",{class:-1!==e.searchedNodeIds.indexOf(t.id)?"highlight":""},[n("div",{staticClass:"row-w-60 col-h-60 bg_write"},[n("div",{staticClass:"mark"},[e._v(e._s(r+1))])])]),n("td",{class:-1!==e.searchedNodeIds.indexOf(t.id)?"highlight":""},[n("div",{staticClass:"row-w-130 col-h-60 bg_gray_th"},[n("div",{staticClass:"mark"},[e._v(e._s(t.name))])])])])})),0)]),n("table",{staticClass:"bg4 table-unit",attrs:{cellspacing:"0",cellpadding:"0"}},[n("tbody",e._l(e.nodeList,(function(t,r){return n("tr",{key:"row_"+t.id,attrs:{id:t.id}},[e._l(e.nodeList,(function(a,i){return[i===r?n("td",{key:t.id+"_"+a.id,staticClass:"matixEquallyName"},[n("div",{staticClass:"row-w-130 col-h-58"},[n("div",{staticClass:"nullbg",staticStyle:{"text-align":"center","font-size":"12px"}},[e._v(" "+e._s(a.name)+" ")])])]):n("td",{key:t.id+"_"+a.id,class:[i%2==1&&i>r||r%2==1&&i<r?"matixTdColor":"whiteSpace",-1!==e.searchedNodeIds.indexOf(a.id)||-1!==e.searchedNodeIds.indexOf(t.id)?"highlight":"",e.canEditUnit(a,t)?"":"disabled"].filter((function(e){return e})).join(" "),attrs:{id:a.id},on:{contextmenu:function(n){return e.MatrixLookInfoMenu(n,a,t)}}},[n("div",{staticClass:"row-w-130 col-h-58"},[n("div",{staticClass:"mark"},e._l(e.listCodeComputed(a,t),(function(e){return n("div",{key:e.Id},[n("i",i!==r?{class:"icon font_family icon-icon_"+(i>r?"zhuanchu":"zhuanru")+" circle_"+(1==e.Permission?"actived":"defualt")}:{})])})),0)])])]}))],2)})),0)])]),n("context-menu",{staticClass:"automenu",attrs:{id:"MatrixLookInfoMenu",show:e.MatrixLookInfoMenuVisible},on:{"update:show":function(t){return e.MatrixLookInfoMenuVisible=t}}},[n("ul",[n("li",{staticClass:"menu__item"},[e._v(e._s(e.matrixVerticalName))]),n("li",{staticClass:"menu__item"},[n("el-button",{class:e.btnMatrixLookInfo,on:{click:e.matrixRightNodeClick}},[e._v("输出数据")])],1),n("li",{staticClass:"menu__item"},[e._v(e._s(e.matrixHorizontalName))])])])],1)])],1)},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tbody",[n("tr",[n("td",[n("div",{staticClass:"row-w-60 col-h-30 bg_write"})]),n("td",[n("div",{staticClass:"row-w-130 col-h-30 bg_gray_th"},[e._v("接收")])])]),n("tr",[n("td",[n("div",{staticClass:"row-w-60 col-h-60 bg_druk"},[e._v("输出")])]),n("td",[n("div",{staticClass:"row-w-130 col-h-60",staticStyle:{"background-color":"rgb(255, 210, 78)"}},[e._v(" 矩阵节点 ")])])])])}],i=(n("99af"),n("4160"),n("c975"),n("13d5"),n("45fc"),n("b0c0"),n("d3b7"),n("3ca3"),n("159b"),n("ddb0"),n("3835")),s=(n("96cf"),n("1da1")),c=n("2b0e"),o=n("f96e"),u=n("a429"),l=n("b0f9"),d=n("3de1");c["default"].use(u["a"]);var p={components:{AppHeader:o["a"]},data:function(){return{MatrixLookInfoMenuVisible:!1,isShowListTemplatePane:!0,isShowMatrixTemplatePane:!1,isShowXmindBtn:!1,el_formLabelcolor:"textlabelgray",listMatirxPermission:[],matrixRightNodeData:"",searhNodeName:"",matrixVerticalName:"",matrixHorizontalName:"",btnMatrixLookInfo:"martixLeaveColor",loading:!1,topNodeId:this.$route.params.id,topNodeName:this.$route.params.name,topNodeTemplateId:this.$route.params.templateId||this.$route.params.id,subTemplateId:this.$route.params.subTemplateId,nodeList:[],unitMap:{},searchedNodeIds:[],targetUnit:{}}},created:function(){this.scanMatrix()},methods:{onBackBtnClick:function(){this.$router.push({name:"system_template",params:{data:this.$route.params.data}})},scanMatrix:function(){0==this.listMatirxPermission.length&&this.getMatirxPermission(),this.isShowMatrixTemplatePane=!0},searhTempNode:function(){var e=this.searhNodeName,t=[];e?(this.nodeList.some((function(n,r){return-1!==n.name.toLowerCase().indexOf(e)&&(t.push(n.id),!0)})),this.searchedNodeIds=t):this.searchedNodeIds=t},matrixRightNodeClick:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,r,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.targetUnit,r=Object.assign({},n),r.Permission=1===r.Permission?0:1,t.next=5,l["g"](r);case 5:if(a=t.sent,0===a.Code){t.next=8;break}return t.abrupt("return");case 8:d["d"].success("更新成功"),Object.assign(n,r);case 10:case"end":return t.stop()}}),t)})))()},getMatirxPermission:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,r,a,s,c,o,u,d,p,m;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.loading=!0,n=e.topNodeId,r=e.topNodeName,a=e.topNodeTemplateId,s=e.subTemplateId,n){t.next=7;break}return t.abrupt("return");case 7:return t.next=9,Promise.all([l["i"](a,n,s),l["l"](s||n)]);case 9:c=t.sent,o=Object(i["a"])(c,2),u=o[0],d=o[1],p=h(d.Data||{}),s&&p.unshift({id:n,name:r}),m=u.Data||[],e.loading=!1,e.nodeList=p,e.unitMap=m.reduce((function(e,t){var n="".concat(t.SysCode,"->").concat(t.PermCode);return t.Editable=t.TemplateId!==s,e[n]=t,e}),{});case 19:case"end":return t.stop()}}),t)})))()},getData:function(e){if(e.listChildren.length>0)for(var t=0;t<e.listChildren.length;t++)this.listMatirxPermission.push(e.listChildren[t]),this.getData(e.listChildren[t])},foo:function(){this.closeMenu(),document.removeEventListener("click",this.foo),this.tableRightEventData=[]},MatrixLookInfoMenu:function(e,t,n){this.loading=!0,this.closeMenu(),this.MatrixLookInfoMenuVisible=!0;var r=this.unitMap,a="".concat(t.id,"->").concat(n.id),i=r[a];1==i.Permission?this.btnMatrixLookInfo="btnMatrixLookInfo":this.btnMatrixLookInfo="martixLeaveColor",this.matrixVerticalName=t.name,this.matrixHorizontalName=n.name;var s=document.querySelector("#MatrixLookInfoMenu");this.styleMenu(s),this.targetUnit=i,this.loading=!1},canEditUnit:function(e,t){var n=this.unitMap,r="".concat(e.id,"->").concat(t.id),a=n[r]||{Editable:!0};return a.Editable},closeMenu:function(){this.MatrixLookInfoMenuVisible=!1},styleMenu:function(e){event.clientX>1800?e.style.left=event.clientX-100+"px":e.style.left=event.clientX+1+"px",document.addEventListener("click",this.foo),event.clientY>700?1==this.MatrixLookInfoMenuVisible?e.style.top=event.clientY-145+"px":e.style.top=event.clientY-30+"px":e.style.top=event.clientY-55+"px"}},computed:{listCodeComputed:function(){return function(e,t){var n=this.unitMap,r="".concat(e.id,"->").concat(t.id),a=n[r]||{};return a||(a.Id="unknow",console.error("文件交换关系对象匹配失败: 找不到".concat(r,"的交换关系"))),[a]}}}};function h(e){return m(e.children,[])}function m(e,t){return e&&0!==e.length?(e.forEach((function(e){if(!e.isNest){var n={id:e.id,name:e.topic,isNest:e.isNest};t.push(n),m(e.children,t)}})),t):t}var f=p,b=(n("cb0d"),n("2877")),v=Object(b["a"])(f,r,a,!1,null,"0503c0fe",null);t["default"]=v.exports},"45fc":function(e,t,n){"use strict";var r=n("23e7"),a=n("b727").some,i=n("a640"),s=n("ae40"),c=i("some"),o=s("some");r({target:"Array",proto:!0,forced:!c||!o},{some:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},"97bc":function(e,t,n){},b0f9:function(e,t,n){"use strict";n.d(t,"k",(function(){return i})),n.d(t,"o",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"j",(function(){return d})),n.d(t,"m",(function(){return h})),n.d(t,"e",(function(){return f})),n.d(t,"n",(function(){return v})),n.d(t,"l",(function(){return g})),n.d(t,"i",(function(){return k})),n.d(t,"g",(function(){return _})),n.d(t,"h",(function(){return N})),n.d(t,"a",(function(){return j})),n.d(t,"f",(function(){return M})),n.d(t,"b",(function(){return B})),n.d(t,"d",(function(){return L}));n("96cf");var r=n("1da1"),a=n("b775");function i(){return s.apply(this,arguments)}function s(){return s=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateList");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),s.apply(this,arguments)}function c(e){return o.apply(this,arguments)}function o(){return o=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/uploadingXmind",t,{headers:{"Content-Type":"application/octet-stream"}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),o.apply(this,arguments)}function u(e){return l.apply(this,arguments)}function l(){return l=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/createTemplate",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)}function d(e){return p.apply(this,arguments)}function p(){return p=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),p.apply(this,arguments)}function h(e){return m.apply(this,arguments)}function m(){return m=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateQuoteCountByTempId",{templateId:t});case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)}function f(e){return b.apply(this,arguments)}function b(){return b=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),b.apply(this,arguments)}function v(e){return w.apply(this,arguments)}function w(){return w=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/updateTemplate",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),w.apply(this,arguments)}function g(e){return x.apply(this,arguments)}function x(){return x=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateNodeByTemplateId",{templateId:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function k(e,t,n){return y.apply(this,arguments)}function y(){return y=Object(r["a"])(regeneratorRuntime.mark((function e(t,n,r){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryFileExchange",{currentTemplateId:t,currentNodeId:n,nestedNodeId:r});case 2:return i=e.sent,e.abrupt("return",Object(a["c"])(i));case 4:case"end":return e.stop()}}),e)}))),y.apply(this,arguments)}function _(e){return C.apply(this,arguments)}function C(){return C=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/fileExchange",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),C.apply(this,arguments)}function N(e){return O.apply(this,arguments)}function O(){return O=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryAllTemplateNodeModelFile",{templateNodeId:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),O.apply(this,arguments)}function j(e){return I.apply(this,arguments)}function I(){return I=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/addTemplateNodeModelFile",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),I.apply(this,arguments)}function M(e){return R.apply(this,arguments)}function R(){return R=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteTemplateNodeModelFile",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),R.apply(this,arguments)}function B(e){return T.apply(this,arguments)}function T(){return T=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/createNestedRelevance",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),T.apply(this,arguments)}function L(e){return E.apply(this,arguments)}function E(){return E=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteNestedRelevance",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),E.apply(this,arguments)}},cb0d:function(e,t,n){"use strict";var r=n("efe9"),a=n.n(r);a.a},d608:function(e,t,n){"use strict";var r=n("97bc"),a=n.n(r);a.a},efe9:function(e,t,n){},f96e:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-header",class:{white:"white"===e.theme||e.isWindowScrollIng,black:"black"===e.theme,"black-bg-color":e.isWindowScrollIng&&"black"===e.theme}},[n("div",{staticClass:"app-header-content"},[n("div",{staticClass:"app-header-content-left"},[e._t("left",[n("i",{directives:[{name:"show",rawName:"v-show",value:e.showBackBtn,expression:"showBackBtn"}],staticClass:"yiyun_icon app-header-back-btn",class:{icon_topback_left:"white"===e.theme,icon_topback_left_baise:"black"===e.theme},on:{click:function(t){return e.navBack()}}}),n("span",{directives:[{name:"show",rawName:"v-show",value:e.backBtnTitle,expression:"backBtnTitle"}],staticClass:"back_title",on:{click:function(t){return e.navBack()}}},[e._v(e._s(e.backBtnTitle))])])],2),n("div",{staticClass:"app-header-content-right"},[e._t("right"),e.showUserCenter?n("user-center"):e._e()],2)]),n("div",{staticClass:"app-header-center"},[e._t("center",[e._v(e._s(e.title))])],2)])},a=[],i=n("1392"),s={components:{UserCenter:i["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean},data:function(){return{isWindowScrollIng:!1}},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{navBack:function(){this.onBackBtnClick?this.onBackBtnClick():this.$router.go(-1)},handleScroll:function(){var e=document.getElementById("bigbody");this.isWindowScrollIng=e.scrollTop>0}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)}},c=s,o=(n("d608"),n("2877")),u=Object(o["a"])(c,r,a,!1,null,"172a2ff0",null),l=u.exports}}]);
  2. //# sourceMappingURL=chunk-d9ac4dc2.7a6e7249.js.map