(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-626b649a","chunk-1d2a8fc1"],{
/***/"0191":
/***/function(e,t,a){"use strict";
/* harmony import */a("6fbb");
/* harmony import */},
/***/"0c60":
/***/function(e,t,a){
// extracted by mini-css-extract-plugin
/***/},
/***/"1c93":
/***/function(e,t,a){
// extracted by mini-css-extract-plugin
/***/},
/***/"207e":
/***/function(e,t,a){
// extracted by mini-css-extract-plugin
/***/},
/***/"24e8":
/***/function(e,t,a){"use strict";
/* harmony import */a("9377");
/* harmony import */},
/***/"31c4":
/***/function(e,t,a){"use strict";
/* harmony import */a("e93ff");
/* harmony import */},
/***/"43a3b":
/***/function(e,t,a){"use strict";
/* harmony import */a("8745");
/* harmony import */},
/***/"4fb2":
/***/function(e,t,a){
// extracted by mini-css-extract-plugin
/***/},
/***/"52ae":
/***/function(e,t,a){"use strict";
/* harmony export (binding) */a.d(t,"e",(function(){return l})),
/* harmony export (binding) */a.d(t,"c",(function(){return c})),
/* harmony export (binding) */a.d(t,"h",(function(){return u})),
/* harmony export (binding) */a.d(t,"k",(function(){return m})),
/* harmony export (binding) */a.d(t,"j",(function(){return g})),
/* harmony export (binding) */a.d(t,"f",(function(){return y})),
/* harmony export (binding) */a.d(t,"i",(function(){return b})),
/* harmony export (binding) */a.d(t,"g",(function(){return C})),
/* harmony export (binding) */a.d(t,"d",(function(){return k})),
/* harmony export (binding) */a.d(t,"a",(function(){return D})),
/* harmony export (binding) */a.d(t,"b",(function(){return w}));
/* harmony import */var i=a("c7eb"),o=a("1da1"),n=a("7424"),s=a("b775");
/* harmony import */
/**
 * snmp模型添加
 */
function l(e){return r.apply(this,arguments)}
/**
 * snmp单个模型获取
 */function r(){return(r=Object(o.a)(Object(i.a)().mark((function e(t){return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(s.g)(n.SNMPMODELADD,s.b.POST,t));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function c(e){return d.apply(this,arguments)}
/**
 * snmp模型修改
 */function d(){return(d=Object(o.a)(Object(i.a)().mark((function e(t){return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(s.g)(n.SNMPMODELSINGLE,s.b.POST,t));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function u(e){return p.apply(this,arguments)}
/**
 * snmp Mib保存
 */function p(){return(p=Object(o.a)(Object(i.a)().mark((function e(t){return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(s.g)(n.SNMPMODELEDIT,s.b.POST,t));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return f.apply(this,arguments)}
/**
 * snmp模型列表
 */function f(){return(f=Object(o.a)(Object(i.a)().mark((function e(t){return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(s.g)(n.SAVEMIB,s.b.POST,t,{timeout:6e8}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return v.apply(this,arguments)}
/**
 * snmp模型删除
 */function v(){return(v=Object(o.a)(Object(i.a)().mark((function e(t){return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(s.g)(n.SNMPMODELLIST,s.b.POST,t));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(e){return h.apply(this,arguments)}
/**
 * snmp mib获取
 */function h(){return(h=Object(o.a)(Object(i.a)().mark((function e(t){return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(s.g)(n.SNMPMODELDELETE,s.b.POST,t));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(e){return S.apply(this,arguments)}
/**
 * snmp mib 删除
 */function S(){return(S=Object(o.a)(Object(i.a)().mark((function e(t){return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(s.g)(n.GETMIBS,s.b.POST,t));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e){return x.apply(this,arguments)}
/**
 * 数据编辑
 */function x(){return(x=Object(o.a)(Object(i.a)().mark((function e(t){return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(s.g)(n.DELETEMIBS,s.b.POST,t));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(e){return I.apply(this,arguments)}
/**
 * 通过设备模型获取数据
 */function I(){return(I=Object(o.a)(Object(i.a)().mark((function e(t){return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(s.g)(n.MODELDATAEDIT,s.b.POST,t));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function D(e){return M.apply(this,arguments)}function M(){return(M=Object(o.a)(Object(i.a)().mark((function e(t){return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(s.g)(n.GETMIBS,s.b.POST,t));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function w(e){return P.apply(this,arguments)}function P(){return(P=Object(o.a)(Object(i.a)().mark((function e(t){return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(s.g)(n.GETHistoryMIBS,s.b.POST,t));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}
/* unused harmony default export */},
/***/5751:
/***/function(e,t,a){"use strict";
/* harmony import */a("d5a1");
/* harmony import */},
/***/"57e4":
/***/function(e,t,a){"use strict";
/* harmony import */a("6fa5");
/* harmony import */},
/***/6260:
/***/function(e,t,a){"use strict";
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"411544a2-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/CodeEditor/index.vue?vue&type=template&id=4c0d1130&scoped=true
a("7db0"),a("a9e3"),a("d3b7"),a("0643"),a("fffc"),a("a7be"),a("8c2e"),a("7393"),a("f9d4"),a("959b"),a("ffda"),a("44d5"),a("db91"),a("02f0"),a("9da3"),a("6a70"),a("6d78");var i=a("56b3"),o={name:"CommonEditor",props:{value:{type:String,default:""},language:{type:String,default:null},dHeight:{type:Number,default:300}},data:function(){return{CommonEditor:!1,code:"",coder:null,mode:"javascript",theme:"default",modes:[{value:"javascript",label:"Javascript"},{value:"x-java",label:"Java"},{value:"x-python",label:"Python"},{value:"x-sql",label:"SQL"},{value:"x-shell",label:"Shell"},{value:"x-powershell",label:"PowerShell"},{value:"x-php",label:"PHP"}]}},watch:{language:{handler:function(e){var t=this;this.getCoder().then((function(){
// 尝试从父容器获取语法类型
if(e){
// 获取具体的语法类型对象
var a=t.getLanguage(e);
// 判断父容器传入的语法是否被支持
a&&(t.mode=a.label,t.coder.setOption("mode","text/".concat(a.value)))}}))},immediate:!0}},computed:{coderOptions:function(){return{line:!0,styleActiveLine:!0,mode:"application/json",
// json数据高亮
theme:"blackboard",
//设置主题 记得引入对应主题才有显示   import 'codemirror/theme/blackboard.css'
tabSize:1,fullScreen:!1,lineNumbers:!0,
// 显示行号
cursorHeight:.8,
//光标高度，默认是1
autoCloseBrackets:!0,autoComplete:!1,matchBrackets:!0,
// 括号匹配
lineWrapping:"wrap",
// 文字过长时，是换行(wrap)还是滚动(scroll),默认是滚动
showCursorWhenSelecting:!0,
// 文本选中时显示光标
smartIndent:!0,
// 智能缩进
completeSingle:!1}}},mounted:function(){
// 初始化
this.initialize()},methods:{
// 初始化
initialize:function(){var e=this;
// 初始化编辑器实例，传入需要被实例化的文本域对象和默认配置
this.coder=i.fromTextArea(this.$refs.textarea,this.coderOptions),
// this.coder.setSize("auto",  this.dHeight)
this.coder.on("inputRead",(function(){e.coder.showHint()})),
// 编辑器赋值
this.value||this.code?this.setCodeContent(this.value||this.code):this.coder.setValue(""),
// 支持双向绑定
this.coder.on("change",(function(t){e.code=t.getValue(),e.$emit&&e.$emit("input",e.code)}))},setCodeContent:function(e){var t=this;setTimeout((function(){e?t.coder.setValue(e):t.coder.setValue("")}),300)},getCoder:function(){var e=this;return new Promise((function(t){!function a(){e.coder?t(e.coder):setTimeout(a,10)}()}))},getLanguage:function(e){
// 在支持的语法类型列表中寻找传入的语法类型
return this.modes.find((function(t){
// 所有的值都忽略大小写，方便比较
var a=e.toLowerCase(),i=t.label.toLowerCase(),o=t.value.toLowerCase();
// 由于真实值可能不规范，例如 java 的真实值是 x-java ，所以讲 value 和 label 同时和传入语法进行比较
return i===a||o===a}))},changeMode:function(e){
// 修改编辑器的语法配置
this.coder.setOption("mode","text/".concat(e));
// 获取修改后的语法
var t=this.getLanguage(e).label.toLowerCase();
// 允许父容器通过以下函数监听当前的语法值
this.$emit("language-change",t)}}},n=(a("884c"),a("2877")),s=Object(n.a)(o,(function(){var e=this,t=e._self._c;return t("div",{attrs:{className:"common-editor"}},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],ref:"textarea",domProps:{value:e.value},on:{input:function(t){t.target.composing||(e.value=t.target.value)}}})])}),[],!1,null,"4c0d1130",null)
/* harmony default export */;t.a=s.exports},
/***/"685c":
/***/function(e,t,a){"use strict";
/* WEBPACK VAR INJECTION */(function(e){/* unused harmony export sm2EncryptBase64 */
/* unused harmony export sm2DecryptBase64 */
/* harmony export (binding) */a.d(t,"b",(function(){return n})),
/* harmony export (binding) */a.d(t,"a",(function(){return s}));
/* unused harmony export sm3HashBase64 */
/* harmony import */a("d3b7"),a("25f0")
/* harmony import */;var i=a("8060"),o="c0a419015e6abb6981662ad51d01b780",n=function(t){var a=i.sm4.encrypt(t,o);return e.from(a,"hex").toString("base64")},s=function(t){var a=e.from(t,"base64").toString("hex");return i.sm4.decrypt(a,o)}}).call(this,a("b639").Buffer)
/***/},
/***/"6d17":
/***/function(e,t,a){"use strict";
/* harmony import */a("207e");
/* harmony import */},
/***/"6fa5":
/***/function(e,t,a){
// extracted by mini-css-extract-plugin
/***/},
/***/"6fbb":
/***/function(e,t,a){
// extracted by mini-css-extract-plugin
/***/},
/***/8745:
/***/function(e,t,a){
// extracted by mini-css-extract-plugin
/***/},
/***/"884c":
/***/function(e,t,a){"use strict";
/* harmony import */a("9541");
/* harmony import */},
/***/9377:
/***/function(e,t,a){
// extracted by mini-css-extract-plugin
/***/},
/***/9541:
/***/function(e,t,a){
// extracted by mini-css-extract-plugin
/***/},
/***/"9df3":
/***/function(e,t,a){"use strict";
// ESM COMPAT FLAG
a.r(t);
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"411544a2-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/pages/ISMDisPlay/ISMDisPlayEditor.vue?vue&type=template&id=9d9abd42&scoped=true
var i=a("5530"),o=a("2909"),n=(a("4de4"),a("d81d"),a("14d9"),a("13d5"),a("fb6a"),a("4e82"),a("b0c0"),a("e9c4"),a("b64b"),a("d3b7"),a("0643"),a("2382"),a("4e3e"),a("a573"),a("9d4a"),a("159b"),a("4360")),s=a("349e"),l=a.n(s),r=a("183a"),c=a("9612"),d=a("5728"),u=a("fee4"),p=a("2f62"),m=a("1d40"),f=(a("695e"),a("edad"),a("685c")),g={name:"toolBox",i18n:a("89fe"),data:function(){return{isFormatPainterActiveTemp:!1,imageComponentData:"",visible:!1,aboutVisible:!1,isCharge:!1,isAll:1,isCreateTimer:null,zoomList:[{value:25,text:"25%"},{value:50,text:"50%"},{value:75,text:"75%"},{value:100,text:"100%"},{value:125,text:"125%"},{value:150,text:"150%"},{value:175,text:"175%"},{value:200,text:"200%"}],beforeUnloadTime:"",gapTime:"",menuAlign:"center",selectedValueTemp:100}},components:{JsonViewer:l.a,systemImageModel:u.a},watch:{newConfigData:{handler:function(e,t){this.isCharge=!0;var a=this;this.isHistoryOp?(a.isCreateTimer&&clearTimeout(a.isCreateTimer),a.isCreateTimer=setTimeout((function(){a.ClearOpFlag()}),200)):"--"!=t.name&&this.executeUndoStack(t)},immediate:!1,deep:!0}},props:[],methods:Object(i.a)(Object(i.a)(Object(i.a)({},Object(p.d)("ISMDisPlayEditorTool",["setlayerZoom","increaseCopyCount","execute","ClearSelectedComponent","setCopySrcItems","setFormatSrcItems","undo","clearSelectComponent","ClearOpFlag","executeUndoStack","redo","setLayerSelected","SetFormatPainterState","SetFormatPainterCell"])),Object(p.b)("ISMDisPlayEditorTool",["saveLayerDataStruct","setGroupList","setLayerData","SyncLayerData","getLayerDataStruct","updateAllLayerDataStruct"])),{},{SetIndexUp:function(){for(var e=this.ISMCavasContainer.getSelectedCells(),t=0;t<e.length;t++){var a=e[t],i=a.getZIndex();
// 获取当前节点的zIndex
// 上移一层
a.setZIndex(i+1)}},SetIndexDown:function(){for(var e=this.ISMCavasContainer.getSelectedCells(),t=0;t<e.length;t++){var a=e[t],i=a.getZIndex();
// 获取当前节点的zIndex
// 下移一层
a.setZIndex(Math.max(-20,i-1))}},SetIndexFront:function(){for(var e=this.ISMCavasContainer.getSelectedCells(),t=0;t<e.length;t++){e[t].toFront()}},SetIndexBack:function(){for(var e=this.ISMCavasContainer.getSelectedCells(),t=0;t<e.length;t++){e[t].toBack()}},FlipVertical:function(){for(var e=this.ISMCavasContainer.getSelectedCells(),t=0;t<e.length;t++){var a=e[t].getData();-1099==a.detail.style.transform?a.detail.style.transform=0:a.detail.style.transform=-1099,this.UpdateNodeDataFlag=!this.UpdateNodeDataFlag,this.selectedNode.setData({UpdateNodeFlag:this.UpdateNodeDataFlag,detail:a.detail},{overwrite:!0})}},FlipHorizontally:function(){for(var e=this.ISMCavasContainer.getSelectedCells(),t=0;t<e.length;t++){var a=e[t].getData();-1098==a.detail.style.transform?a.detail.style.transform=0:a.detail.style.transform=-1098,this.UpdateNodeDataFlag=!this.UpdateNodeDataFlag,this.selectedNode.setData({UpdateNodeFlag:this.UpdateNodeDataFlag,detail:a.detail},{overwrite:!0})}},revolve:function(){for(var e=this.ISMCavasContainer.getSelectedCells(),t=0;t<e.length;t++){var a=e[t],i=a.prop().angle;(i=parseInt(i)+90)>=360&&(i=0),a.rotate(parseInt(i),{absolute:!0})}},reverse:function(){for(var e=this.ISMCavasContainer.getSelectedCells(),t=0;t<e.length;t++){var a=e[t],i=a.prop().angle;(i=parseInt(i)-90)<=-360&&(i=0),a.rotate(parseInt(i),{absolute:!0})}},doWithUndo:function(){this.ISMCavasContainer.undo()},doWithRedo:function(){this.ISMCavasContainer.redo()},DelNode:function(){var e=this;this.$confirm({content:e.$t("dataModel.deleteConfirm"),okText:e.$t("displayModel.ConfirmOk"),onOk:function(){e.setLayerSelected(!0);var t=e.ISMCavasContainer.getSelectedCells();0==t.length?e.ISMCavasContainer.removeCell(e.UnSelectedComponent):e.ISMCavasContainer.removeCells(t)},cancelText:e.$t("displayModel.ConfirmCancel"),onCancel:function(){e.setLayerSelected(!0)}})},FormatDo:function(){this.isFormatPainterActiveTemp=!this.isFormatPainterActiveTemp,this.SetFormatPainterState(this.isFormatPainterActiveTemp)},SelectAllComments:function(){
// 设定复制源
this.ISMCavasContainer.select(this.ISMCavasContainer.getCells())},copyItem:function(){
// 设定复制源
this.isCommentRightClick=!1;var e=[];for(var t in this.selectedComponentMap){var a=Object(r.a)(this.selectedComponentMap[t]);e.push(a)}this.setCopySrcItems(e)},choiceModelJson:function(){this.$refs.filElem.dispatchEvent(new MouseEvent("click"))},showFile:function(e){var t=this;
//支持chrome IE10
if(window.FileReader){var a=e.target.files[0],i=new FileReader;i.onload=function(e){
//显示文件
var a=Object(f.a)(e.target.result),i={};try{"GraphView"in(i=JSON.parse(a))?t.setLayerData(i.GraphView):t.setLayerData(i),"GraphElements"in i&&(t.ISMCavasContainer.drawBackground({color:i.GraphElements.backColor,image:i.GraphElements.backgroundImage,size:"100% 100%",
// 关键参数：填充整个容器
repeat:"no-repeat",position:"center",quality:1}),t.configData.layer.backColor=i.GraphElements.backColor,t.configData.layer.backgroundImage=i.GraphElements.backgroundImage,t.configData.layer.height=i.GraphElements.height,t.configData.layer.width=i.GraphElements.width,t.ISMCavasContainer.resize(i.GraphElements.width,i.GraphElements.height))}catch(e){t.$message.error("模版文件解析失败!")}
// this.configData=event.target.result;
},i.readAsText(a)}else alert("FileReader Not supported by your browser!");e.target.value=""},onZoomChange:function(e){this.ISMCavasContainer.zoomTo(e/100,{center:{x:0,y:0}})},showSystemImageModel:function(e){this.$refs.HeaderSystemImageModel.showModal(e)},doSaveLayerData:function(e){var t=this,a={uuid:e,pageid:this.selectPageUuid,LayerData:null},i=JSON.parse(JSON.stringify(this.configData));i.components=this.ISMCavasContainer.toJSON(),a.LayerData=i,this.saveLayerDataStruct(a).then((function(e){if(200==e.data.code){var a=t.$route.params.uid;t.updateAllLayerDataStruct({pageType:t.isMobile,uuid:a,cb:function(){}}),
// _t.SyncLayerData(LayerData)
t.isCharge=!1,t.$message.success(t.$t("displayModel.SaveDataSuccess"))}else t.$message.error(t.$t("displayModel.SaveDataFailed"))}))},zoomOut:function(){this.selectedValueTemp=this.selectedValueTemp-25,this.selectedValueTemp<25&&(this.selectedValueTemp=25),this.ISMCavasContainer.zoomTo(this.selectedValueTemp/100,{center:{x:0,y:0}})},zoomIn:function(){this.selectedValueTemp=this.selectedValueTemp+25,this.selectedValueTemp>200&&(this.selectedValueTemp=200),this.ISMCavasContainer.zoomTo(this.selectedValueTemp/100,{center:{x:0,y:0}})},pageView:function(){try{localStorage.setItem(this.$route.params.uid,JSON.stringify(this.configData))}catch(e){}var e=this.$router.resolve({path:"/AppRun/"+this.$route.params.uid,name:"组态预览",query:{sceneId:this.sceneId,sceneName:this.sceneName},params:{sceneId:this.sceneId,sceneName:this.sceneName}}).href;window.open(e,"_blank")},exportSvg:function(){this.ISMCavasContainer.exportSVG(this.configData.name+".svg",{preserveBackground:!0,copyStyles:!1,preserveDimensions:!0})},exportJson:function(){var e={GraphView:this.ISMCavasContainer.toJSON(),GraphElements:{height:this.configData.layer.height,width:this.configData.layer.width,backColor:this.configData.layer.backColor,backgroundImage:this.configData.layer.backgroundImage}},t=JSON.stringify(e);t=Object(f.b)(t);
//encodeURIComponent解决中文乱码
var a="data:text/csv;charset=utf-8,\ufeff"+encodeURIComponent(t),i=document.createElement("a");
//通过创建a标签实现
i.href=a,
//对下载的文件命名
i.download=this.configData.name+".json",document.body.appendChild(i),i.click(),document.body.removeChild(i)},beforeunloadHandler:function(e){if(this.isCharge)return this._beforeUnload_time=(new Date).getTime(),(e=e||window.event)&&(e.returnValue="关闭提示"),"关闭提示"},unloadHandler:function(){this.isCharge&&(this._gap_time=(new Date).getTime()-this._beforeUnload_time,this._gap_time)},saveContent:function(e){83===e.keyCode&&e.ctrlKey&&(this.doSaveLayerData(this.$route.params.uid),e.preventDefault())},onSelectImage:function(){},HeaderAlignNodesLeft:function(){var e=this.ISMCavasContainer.getSelectedCells().filter((function(e){return e.isNode()})).sort((function(e,t){return e.getBBox().x-t.getBBox().x}));if(!(e.length<2)){var t=e[0].getBBox().x;// 获取最左侧节点的X坐标
// 从第二个节点开始对齐（跳过基准节点）
e.slice(1).forEach((function(e){e.setPosition(t,
// 统一X坐标
e.getPosition().y)}))}},HeaderAlignNodesRight:function(){
// 获取选中节点并按X坐标降序排序
var e=this.ISMCavasContainer.getSelectedCells().filter((function(e){return e.isNode()})).sort((function(e,t){return t.getBBox().x-e.getBBox().x}));if(!(e.length<2)){var t=e[0].getBBox().x;// 获取最右侧节点的X坐标
// 从第二个节点开始对齐（跳过基准节点）
e.slice(1).forEach((function(e){e.setPosition(t,
// 统一X坐标
e.getPosition().y)}))}},HeaderAlignNodesTop:function(){
// 获取选中节点并按Y坐标升序排序
var e=this.ISMCavasContainer.getSelectedCells().filter((function(e){return e.isNode()})).sort((function(e,t){return e.getBBox().y-t.getBBox().y}));if(!(e.length<2)){var t=e[0].getBBox().y;// 获取最上方节点的Y坐标
// 从第二个节点开始对齐（跳过基准节点）
e.slice(1).forEach((function(e){e.setPosition(e.getPosition().x,
// 保持原有X坐标
t)}))}},HeaderAlignNodesBottom:function(){
// 获取选中节点并按底部坐标降序排序（Y坐标+高度）
var e=this.ISMCavasContainer.getSelectedCells().filter((function(e){return e.isNode()})).sort((function(e,t){var a=e.getBBox(),i=t.getBBox();return i.y+i.height-(a.y+a.height);// 按底部位置排序:ml-citation{ref="8" data="citationList"}
}));if(!(e.length<2)){
// 获取基准节点（最下方的节点）
var t=e[0].getBBox(),a=t.y+t.height;// 底部Y坐标:ml-citation{ref="1,8" data="citationList"}
// 对齐其他节点（跳过基准节点）
e.slice(1).forEach((function(e){var t=e.getBBox(),i=a-t.height;// 计算新位置:ml-citation{ref="8" data="citationList"}
e.setPosition(t.x,i)}))}},HeaderSetCommentsAlign:function(e){switch(e){case"r":this.HeaderAlignNodesRight();break;case"l":this.HeaderAlignNodesLeft();break;case"t":this.HeaderAlignNodesTop();break;case"b":this.HeaderAlignNodesBottom();break;case"Vertical":this.HeaderArrangeNodesVertically();break;case"Horizontal":this.HeaderArrangeNodesHorizontally()}},
//垂直等间距
HeaderArrangeNodesVertically:function(){var e=this.ISMCavasContainer.getSelectedCells().filter((function(e){return e.isNode()})).sort((function(e,t){return e.getBBox().y-t.getBBox().y}));if(!(e.length<2)){var t=e[0],a=e[e.length-1].getBBox().y,i=t.getBBox().y,o=(a-i-e.slice(1).reduce((function(e,t){return e+t.getSize().height}),0))/(e.length-1),n=i+t.getSize().height+o;// 保持Y最小的基准节点
// 从第二个节点开始定位（跳过基准节点）
e.slice(1).forEach((function(e){var t=e.getPosition();e.setPosition(t.x,
// X坐标对齐
n),n+=e.getSize().height+o}))}},HeaderArrangeNodesHorizontally:function(){
// 获取选中节点并按X坐标升序排序
var e=this.ISMCavasContainer.getSelectedCells().filter((function(e){return e.isNode()})).sort((function(e,t){return e.getBBox().x-t.getBBox().x}));if(!(e.length<2)){var t=e[0],a=e[e.length-1].getBBox().x,i=t.getBBox().x,o=(a-i-e.slice(1).reduce((function(e,t){return e+t.getSize().width}),0))/(e.length-1),n=i+t.getSize().width+o;// 保持X最小的基准节点
// 从第二个节点开始定位（跳过基准节点）
e.slice(1).forEach((function(e){e.setPosition(n,t.getPosition().y),n+=e.getSize().width+o}))}},HeaderCenterNodesHorizontally:function(){var e=this.ISMCavasContainer.getSelectedCells().filter((function(e){return e.isNode()}));if(0!==e.length){
// 计算节点组总宽度和最小X坐标
var t=1/0,a=-1/0;e.forEach((function(e){var i=e.getBBox();t=Math.min(t,i.x),a=Math.max(a,i.x+i.width)}));var i=a-t,o=(this.ISMCavasContainer.getGraphArea().width-i)/2-t;
// 计算居中偏移量
// 批量移动节点
e.forEach((function(e){var t=e.getPosition();e.setPosition(t.x+o,t.y)}))}},HeaderLockItem:function(){for(var e=this.ISMCavasContainer.getSelectedCells(),t=0;t<e.length;t++){var a=e[t],i=a.getParent();if(i)i.getChildren().forEach((function(e){var t=e.getData();t.locked=!0,e.setData(t,{overwrite:!0})}));else{var o=a.getData();o.locked=!0,a.setData(o,{overwrite:!0})}}this.ISMCavasContainer.cleanSelection()},HeaderUnlockItem:function(){for(var e=this.ISMCavasContainer.getCells(),t=0;t<e.length;t++){var a=e[t],i=a.getParent();if(i)i.getChildren().forEach((function(e){var t=e.getData();t.locked=!1,e.setData(t,{overwrite:!0})}));else{var o=a.getData();o.locked=!1,a.setData(o,{overwrite:!0})}}this.ISMCavasContainer.select(e)},HeaderCreateGroup:function(){for(var e=this,t=e.ISMCavasContainer.getSelectedCells(),a=0;a<t.length;a++){if(t[a].getParent())return void e.$message.info("不能将节点添加到组中")}for(var i=t.map((function(e){return e.getBBox()})),n=Math.min.apply(Math,Object(o.a)(i.map((function(e){return e.x})))),s=Math.min.apply(Math,Object(o.a)(i.map((function(e){return e.y})))),l=Math.max.apply(Math,Object(o.a)(i.map((function(e){return e.x+e.width})))),r=Math.max.apply(Math,Object(o.a)(i.map((function(e){return e.y+e.height})))),d=e.ISMCavasContainer.addNode({shape:"view-ism-group-node",x:n,y:s,width:l-n,height:r-s,zIndex:-1e3,data:{locked:!1,UpdateNodeFlag:!0,editMode:!0,showDeviceUuid:"",IsToolBox:!1,detail:{identifier:c.a.v1(),name:"节点组",type:"image",isCanvas:!0,action:[],dataBind:[],active:[{id:"Forward",name:"component.ViewCanvasMoveLineArrow.Forward",result:"",isExpression:!0,condition:{deviceSN:"",selectVideoType:0,isBandDevice:!1,bandType:1,dataID:"",dataName:"",operator:"",OperatorValue:"",OperatorMaxValue:""}},{id:"Reverse",name:"component.ViewCanvasMoveLineArrow.Reverse",result:"",isExpression:!0,condition:{deviceSN:"",selectVideoType:0,isBandDevice:!1,bandType:1,dataID:"",dataName:"",operator:"",OperatorValue:"",OperatorMaxValue:""}}],animate:{selected:[],condition:{deviceSN:"",selectVideoType:0,isBandDevice:!1,bandType:1,dataID:"",dataName:"",operator:"",OperatorValue:"",OperatorMaxValue:""},isExpression:!1,animateList:[],animateElement:[{id:"blink",elementList:[{name:"component.public.animateSpeed",type:7,value:1,min:.1,key:"blinkSpeed"}]},{id:"millcolorGrad",elementList:[{name:"component.public.startColor",type:2,value:"#74f808",key:"startColor"},{name:"component.public.stopColor",type:2,value:"#f30b0b",key:"stopColor"},{name:"component.public.animateSpeed",type:7,value:1,min:.1,key:"animateSpeed"}]},{id:"animateSpin",elementList:[{name:"component.public.animateSpinSpeed",type:7,value:1,min:.1,key:"spinSpeed"},{name:"configComponent.bigScreen.border.border89Direction",type:6,value:0,enumList:[{value:0,option:"configComponent.bigScreen.border.border89DirectionForward"},{value:1,option:"configComponent.bigScreen.border.border89DirectionNegative"}],min:1,key:"spinDirection"}]}]},style:{position:{x:0,y:0,w:l-n,h:r-s},points:[],visible:1,zIndex:-1e3,transform:0,backColor:"",foreColor:"",borderWidth:2,BorderEdges:0,opacity:1,borderStyle:"solid",borderColor:"#13c2c2",diy:[]}}}}),u=0;u<t.length;u++){var p=t[u];d.addChild(p)}},HeaderSplitGroup:function(){for(var e=this,t=e.ISMCavasContainer.getSelectedCells(),a=0;a<t.length;a++){var i=t[a];if("view-ism-group-node"==i.prop().shape)i.setChildren(null),e.ISMCavasContainer.removeNode(i);else{var o=i.getParent();o&&(o.setChildren(null),e.ISMCavasContainer.removeNode(o))}}}}),computed:Object(i.a)(Object(i.a)(Object(i.a)({},Object(p.e)("setting",["langList","isMobile","lang"])),Object(p.e)({isFormatPainterActive:function(e){return n.a.state.ISMDisPlayEditorTool.isFormatPainterActive},UnSelectedComponent:function(e){return n.a.state.ISMDisPlayEditorTool.UnSelectedComponent},configData:function(e){return n.a.state.ISMDisPlayEditorTool.LayerData},selectPageUuid:function(e){return n.a.state.ISMDisPlayEditorTool.selectPageUuid},selectedComponentMap:function(e){return n.a.state.ISMDisPlayEditorTool.selectedComponentMap},curComponent:function(e){return n.a.state.ISMDisPlayEditorTool.selectedComponent},copySrcItems:function(e){return n.a.state.ISMDisPlayEditorTool.copySrcItems},copyCount:function(e){return n.a.state.ISMDisPlayEditorTool.copyCount},isHistoryOp:function(e){return n.a.state.ISMDisPlayEditorTool.isHistoryOp},selectedValue:function(e){return n.a.state.ISMDisPlayEditorTool.selectedValue},selectedNode:function(e){return n.a.state.ISMDisPlayEditorTool.selectedNode},ISMCavasContainer:function(e){return n.a.state.ISMDisPlayEditorTool.ISMCavasContainer}})),{},{newConfigData:function(){return JSON.parse(JSON.stringify(this.configData))},systemName:function(){return this.$store.state.setting.systemName},Isometric_row:{get:function(){return this.$store.state.ISMDisPlayEditorTool.Isometric_row},set:function(e){this.$store.state.ISMDisPlayEditorTool.Isometric_row=e}},Isometric_colu:{get:function(){return this.$store.state.ISMDisPlayEditorTool.Isometric_colu},set:function(e){this.$store.state.ISMDisPlayEditorTool.Isometric_colu=e}}}),created:function(){},mounted:function(){var e=this;document.addEventListener("keydown",this.saveContent),window.addEventListener("beforeunload",(function(t){return e.beforeunloadHandler(t)})),window.addEventListener("unload",(function(t){return e.unloadHandler(t)})),this.selectedValueTemp=this.selectedValue},destroyed:function(){var e=this;document.removeEventListener("keydown",this.saveContent),window.removeEventListener("beforeunload",(function(t){return e.beforeunloadHandler(t)})),window.removeEventListener("unload",(function(t){return e.unloadHandler(t)}))}},v=(a("24e8"),a("2877")),y=Object(v.a)(g,(function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"toolbox"}},[t("input",{ref:"filElem",staticStyle:{display:"none"},attrs:{type:"file",name:"file"},on:{change:function(t){return e.showFile(t)}}}),t("a-card",{staticStyle:{height:"50px"},attrs:{bodyStyle:{padding:"6px",border:0}}},[t("div",{staticStyle:{display:"inline"}},[t("div",{staticStyle:{float:"left"}},[t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.ToolBar.Import"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:function(t){return e.choiceModelJson(t)}}},[t("icon-font",{staticStyle:{"font-size":"22px"},attrs:{type:"icon-daoru"}})],1)],2),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.ToolBar.Export"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:e.exportJson}},[t("icon-font",{staticStyle:{"font-size":"22px"},attrs:{type:"icon-peizhidaochu"}})],1)],2),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.ToolBar.Save"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:function(t){return e.doSaveLayerData(e.$route.params.uid)}}},[t("icon-font",{staticStyle:{"font-size":"22px"},attrs:{type:"icon-baocun"}})],1)],2),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.ToolBar.PicTemplete"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:function(t){return e.showSystemImageModel(0)}}},[t("icon-font",{staticStyle:{"font-size":"22px"},attrs:{type:"icon-tupian"}})],1)],2),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.ToolBar.View"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:e.pageView}},[t("icon-font",{staticStyle:{"font-size":"22px"},attrs:{type:"icon-yunhang"}})],1)],2),t("a-divider",{staticStyle:{height:"1.5em",top:"-0.2em","background-color":"#95B8E7"},attrs:{type:"vertical"}}),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.ToolBar.Delete"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:e.DelNode}},[t("icon-font",{staticStyle:{"font-size":"22px"},attrs:{type:"icon-shanchu"}})],1)],2),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.ToolBar.Format"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:e.FormatDo}},[t("icon-font",{staticStyle:{"font-size":"22px"},attrs:{type:"icon-geshishua"}})],1)],2),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.ToolBar.Undo"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:e.doWithUndo}},[t("icon-font",{staticStyle:{"font-size":"22px"},attrs:{type:"icon-jurassic_laststep"}})],1)],2),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.ToolBar.Redo"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:e.doWithRedo}},[t("icon-font",{staticStyle:{"font-size":"22px"},attrs:{type:"icon-jurassic_nextstep"}})],1)],2),t("a-divider",{staticStyle:{height:"1.5em",top:"-0.2em","background-color":"#95B8E7"},attrs:{type:"vertical"}}),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.ToolBar.ZoomOut"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:e.zoomOut}},[t("icon-font",{staticStyle:{"font-size":"20px"},attrs:{type:"icon-suoxiao"}})],1)],2),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.ToolBar.Zoom"))+" ")]),t("a-select",{staticStyle:{width:"200px","line-height":"300px"},style:{height:"22px",width:"80px"},attrs:{size:"small","default-value":"a1"},on:{change:function(t){return e.onZoomChange(t)}},model:{value:e.selectedValueTemp,callback:function(t){e.selectedValueTemp=t},expression:"selectedValueTemp"}},e._l(e.zoomList,(function(a,i){return t("a-select-option",{key:i,attrs:{value:a.value}},[e._v(" "+e._s(a.text)+" ")])})),1)],2),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.ToolBar.ZoomIn"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:e.zoomIn}},[t("icon-font",{staticStyle:{"font-size":"22px"},attrs:{type:"icon-fangda"}})],1)],2),t("a-divider",{staticStyle:{height:"1.5em",top:"-0.2em","background-color":"#95B8E7"},attrs:{type:"vertical"}}),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.ToolBar.MoveUpOneIndex"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:e.SetIndexUp}},[t("icon-font",{staticStyle:{"font-size":"20px"},attrs:{type:"icon-shangyiyiceng1"}})],1)],2),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.ToolBar.MoveDownOneIndex"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:e.SetIndexDown}},[t("icon-font",{staticStyle:{"font-size":"20px"},attrs:{type:"icon-xiayiyiceng2"}})],1)],2),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.ToolBar.MoveFront"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:e.SetIndexFront}},[t("icon-font",{staticStyle:{"font-size":"20px"},attrs:{type:"icon-dingceng"}})],1)],2),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.ToolBar.MoveBack"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:e.SetIndexBack}},[t("icon-font",{staticStyle:{"font-size":"20px"},attrs:{type:"icon-zhiyudiceng1"}})],1)],2),t("a-divider",{staticStyle:{height:"1.5em",top:"-0.2em","background-color":"#95B8E7"},attrs:{type:"vertical"}}),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.Canvas.menu.Revolve"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:e.revolve}},[t("icon-font",{staticStyle:{"font-size":"22px"},attrs:{type:"icon-shunshizhenxuanzhuan"}})],1)],2),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.Canvas.menu.Reverse"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:e.reverse}},[t("icon-font",{staticStyle:{"font-size":"22px"},attrs:{type:"icon-nishizhenxuanzhuan"}})],1)],2),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.Canvas.menu.FlipVertical"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:e.FlipVertical}},[t("icon-font",{staticStyle:{"font-size":"22px"},attrs:{type:"icon-shuipingfanzhuan"}})],1)],2),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.Canvas.menu.FlipHorizontally"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:e.FlipHorizontally}},[t("icon-font",{staticStyle:{"font-size":"22px"},attrs:{type:"icon-chuizhifanzhuan"}})],1)],2),t("a-divider",{staticStyle:{height:"1.5em",top:"-0.2em","background-color":"#95B8E7"},attrs:{type:"vertical"}}),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.Canvas.menu.VerticalEquidistant"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:function(t){return e.HeaderSetCommentsAlign("Vertical")}}},[t("icon-font",{staticStyle:{"font-size":"22px"},attrs:{type:"icon-chuizhidengjufenbu"}})],1)],2),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.Canvas.menu.HorizontalEquidistant"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:function(t){return e.HeaderSetCommentsAlign("Horizontal")}}},[t("icon-font",{staticStyle:{"font-size":"22px"},attrs:{type:"icon-shuipingdengjufenbu"}})],1)],2),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.Canvas.menu.topAlign"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:function(t){return e.HeaderSetCommentsAlign("t")}}},[t("icon-font",{staticStyle:{"font-size":"22px"},attrs:{type:"icon-jurassic_verticalalign-top"}})],1)],2),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.Canvas.menu.bottomAlign"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:function(t){return e.HeaderSetCommentsAlign("b")}}},[t("icon-font",{staticStyle:{"font-size":"22px"},attrs:{type:"icon-jurassic_verticalalign-bottom"}})],1)],2),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.Canvas.menu.rightAlign"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:function(t){return e.HeaderSetCommentsAlign("r")}}},[t("icon-font",{staticStyle:{"font-size":"22px"},attrs:{type:"icon-jurassic_horizalign-right"}})],1)],2),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.Canvas.menu.leftAlign"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:function(t){return e.HeaderSetCommentsAlign("l")}}},[t("icon-font",{staticStyle:{"font-size":"22px"},attrs:{type:"icon-jurassic_horizalign-left"}})],1)],2),t("a-divider",{staticStyle:{height:"1.5em",top:"-0.2em","background-color":"#95B8E7"},attrs:{type:"vertical"}}),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.Canvas.menu.AllSelect"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:function(t){return e.SelectAllComments()}}},[t("icon-font",{staticStyle:{"font-size":"22px"},attrs:{type:"icon-total_selection"}})],1)],2),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.Canvas.menu.Lock"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:function(t){return e.HeaderLockItem(!0)}}},[t("icon-font",{staticStyle:{"font-size":"22px"},attrs:{type:"icon-suoding"}})],1)],2),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.Canvas.menu.UnLockAll"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:function(t){return e.HeaderUnlockItem(!1)}}},[t("icon-font",{staticStyle:{"font-size":"22px"},attrs:{type:"icon-jiesuo"}})],1)],2),t("a-divider",{staticStyle:{height:"1.5em",top:"-0.2em","background-color":"#95B8E7"},attrs:{type:"vertical"}}),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.Canvas.menu.GroupTogether"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:function(t){return e.HeaderCreateGroup("group")}}},[t("icon-font",{staticStyle:{"font-size":"22px"},attrs:{type:"icon-zuhe"}})],1)],2),t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("displayConfig.Canvas.menu.UnGroup"))+" ")]),t("a-button",{attrs:{type:"link"},on:{click:function(t){return e.HeaderSplitGroup("ungroup")}}},[t("icon-font",{staticStyle:{"font-size":"22px"},attrs:{type:"icon-jiezu"}})],1)],2)],1)])]),t("a-modal",{directives:[{name:"drag-modal",rawName:"v-drag-modal"}],attrs:{destroyOnClose:!0,footer:null},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[t("json-viewer",{attrs:{value:e.configData,"expand-depth":4,sort:""}})],1),t("a-modal",{attrs:{footer:null,title:e.$t("displayConfig.ToolBar.HelpAbout")},model:{value:e.aboutVisible,callback:function(t){e.aboutVisible=t},expression:"aboutVisible"}},[t("div",{staticClass:"help-content"},[t("p",[e._v(" "+e._s(e.$t("displayConfig.ToolBar.HelpContent")))])])]),t("system-image-model",{ref:"HeaderSystemImageModel",attrs:{networkImageUrl:e.imageComponentData},on:{onSelectImage:e.onSelectImage}})],1)}),[],!1,null,"05050e32",null)
/* harmony default export */.exports,h=a("ade3"),b=(a("c5d0"),a("a026")),S=a("e5d9"),C=a("b637");
// EXTERNAL MODULE: ./node_modules/@antv/x6-vue-shape/es/index.js + 4 modules
var x=a("3e2f"),k=a("4d3f");
// EXTERNAL MODULE: ./src/pages/ISMDisPlay/ISMGroupNode.vue + 4 modules
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/pages/ISMDisPlay/ISMCanvas.vue?vue&type=script&lang=js
b.default.use(S.a);
/* harmony default export */var I={name:"ISMCanvas",i18n:a("89fe"),components:{},watch:{"configData.layer":{handler:function(e,t){var a=this;this.ISMCavasContainer.resize(e.width,e.height),this.ISMCavasContainer.drawBackground({color:e.backColor,image:e.backgroundImage,size:"100% 100%",
// 关键参数：填充整个容器
repeat:"no-repeat",position:"center",quality:1}),this.UpdateRuler=!1,this.$refs.rulerHorizontal=null,this.$refs.rulerVertical=null,null!=this.guidesX&&this.guidesX.destroy(),null!=this.guides&&this.guides.destroy(),setTimeout((function(){a.UpdateRuler=!0,setTimeout((function(){a.initRuler(parseInt(a.configData.layer.width),parseInt(a.configData.layer.height))}),300)}),200)},deep:!0},"configData.components":{handler:function(e,t){this.tempScale=this.ISMCavasContainer.transform.getZoom();var a=this.ISMCavasContainer.getSelectedCells();this.ISMCavasContainer.cleanSelection();try{this.ISMCavasContainer.fromJSON(this.configData.components)}catch(e){}this.ISMCavasContainer.zoomTo(this.tempScale,{center:{x:0,y:0}}),this.ISMCavasContainer.select(a)},deep:!0}},data:function(){return{Connector:!1,DrawPoints:[],beginDrawLine:!1,UpdateRuler:!1,spinning:!1,tempScale:1,guidesX:null,guides:null,IsShowMinMap:!1,IsShowMakerLine:!1,isCommentRightClick:!1,ISMCavasContainer:null,UpdateNodeDataFlag:!0,dnd:null,drawingEdge:null}},props:[],computed:Object(i.a)(Object(i.a)(Object(i.a)({},Object(p.e)("setting",["langList","isMobile","lang"])),Object(p.e)({FormatPainterCell:function(e){return n.a.state.ISMDisPlayEditorTool.FormatPainterCell},isFormatPainterActive:function(e){return n.a.state.ISMDisPlayEditorTool.isFormatPainterActive},selectedComponents:function(e){return n.a.state.ISMDisPlayEditorTool.selectedComponents},UnSelectedComponent:function(e){return n.a.state.ISMDisPlayEditorTool.UnSelectedComponent},selectedComponentMap:function(e){return n.a.state.ISMDisPlayEditorTool.selectedComponentMap},configData:function(e){return n.a.state.ISMDisPlayEditorTool.LayerData},selectedNode:function(e){return n.a.state.ISMDisPlayEditorTool.selectedNode}})),{},{ContainerStyle:function(){return{"--rulerHeight":this.configData.layer.height-20+"px","--rulerWidth":this.configData.layer.width-20+"px"}},Isometric_row:{get:function(){return this.$store.state.ISMDisPlayEditorTool.Isometric_row},set:function(e){this.$store.state.ISMDisPlayEditorTool.Isometric_row=e}},Isometric_colu:{get:function(){return this.$store.state.ISMDisPlayEditorTool.Isometric_colu},set:function(e){this.$store.state.ISMDisPlayEditorTool.Isometric_colu=e}}}),methods:Object(i.a)(Object(i.a)(Object(i.a)({},Object(p.d)("ISMDisPlayEditorTool",["setCurrentISMCavasContainer","setCurrentISMCavasDND","setLayerSelected","setCurrentSelectNode","SetFormatPainterState","ClickUnSelectedComponent"])),Object(p.b)("ISMDisPlayEditorTool",["getLayerDataStruct","setGroupList","setLayerData","SyncLayerComponents"])),{},{initRuler:function(e,t){var a={
// 标尺的位置，默认是end
direction:"end",
// ruler 的背景色
backgroundColor:"transparent",lineColor:"#000",
// 刻度文字的颜色
textColor:"#000",
// 刻度文字的偏移值
textOffset:[-2,7],width:e,height:20,
// 拖拽线的时候是否实时显示坐标位置
displayDragPos:!0,
// 刻度的间隔值，默认50
unit:100,
// guide 拖动结束后线的颜色，配合dragGuideStyle使用
guideStyle:{background:"#05e2a8"},
// guide 拖动中线的颜色 配合guideStyle使用
dragGuideStyle:{background:"#05e2a8"},
// 实时显示坐标的样式
guidePosStyle:{color:"#05e2a8"}},o={
// 标尺的位置，默认是end
direction:"end",
// ruler 的背景色
backgroundColor:"transparent",lineColor:"#000",height:t,width:20,
// 刻度文字的颜色
textColor:"#000",
// 刻度文字的偏移值
textOffset:[10,2],
// 拖拽线的时候是否实时显示坐标位置
displayDragPos:!0,
// 刻度的间隔值，默认50
unit:100,
// guide 拖动结束后线的颜色，配合dragGuideStyle使用
guideStyle:{background:"#05e2a8"},
// guide 拖动中线的颜色 配合guideStyle使用
dragGuideStyle:{background:"#05e2a8"},
// 实时显示坐标的样式
guidePosStyle:{color:"#05e2a8"}};this.guidesX=new C.a(this.$refs.rulerHorizontal,Object(i.a)({type:"horizontal"},a)),this.guides=new C.a(this.$refs.rulerVertical,Object(i.a)({type:"vertical"},o))},createNode:function(e,t,a){var o={x:t,y:a,width:100,height:40,attrs:{label:{text:e}}};switch(e){case"rectangle":return new d.k.Rect(o);case"circle":return new d.k.Circle(Object(i.a)(Object(i.a)({},o),{},{height:100}))}},copyNode:function(){var e=this.ISMCavasContainer.getSelectedCells();e&&e.length?(this.ISMCavasContainer.copy(e,{deep:!0,useLocalStorage:!0}),this.$message.success("复制成功")):this.$message.info("请先选中节点再复制")},PasteNode:function(){if(this.ISMCavasContainer.isClipboardEmpty())this.$message.info("剪切板为空，不可粘贴");else{var e=this.ISMCavasContainer.paste({offset:32,useLocalStorage:!0});e.forEach((function(e){var t=e.prop().data||{};t.detail.identifier=c.a.v1(),t.detail.name=t.detail.name+"_copy",e.setData({locked:!1,editMode:!0,showDeviceUuid:"",IsToolBox:!1,UpdateNodeFlag:(new Date).getTime(),detail:t.detail},{overwrite:!0})})),this.ISMCavasContainer.cleanSelection(),this.ISMCavasContainer.select(e),this.$message.success("粘贴成功")}},ShowOrHideMinMap:function(){this.$refs.refMiniMapContainer.style.display=this.IsShowMinMap?"block":"none"},DelNode:function(){var e=this;this.$confirm({content:e.$t("dataModel.deleteConfirm"),okText:e.$t("displayModel.ConfirmOk"),onOk:function(){e.setLayerSelected(!0);var t=e.ISMCavasContainer.getSelectedCells();0==t.length?e.ISMCavasContainer.removeCell(e.UnSelectedComponent):e.ISMCavasContainer.removeCells(t)},cancelText:e.$t("displayModel.ConfirmCancel"),onCancel:function(){e.setLayerSelected(!0)}})},LockItem:function(){for(var e=this.ISMCavasContainer.getSelectedCells(),t=function(){var t=e[a],i=t.getParent();i&&i.getChildren().forEach((function(e){var a=e.getData();a.locked=!0,t.setData(a,{overwrite:!0})}));var o=t.getData();o.locked=!0,t.setData(o,{overwrite:!0})},a=0;a<e.length;a++)t();this.ISMCavasContainer.cleanSelection()},UnlockItem:function(e){var t=e,a=t.getParent();a&&a.getChildren().forEach((function(e){var a=e.getData();a.locked=!1,t.setData(a,{overwrite:!0})}));var i=t.getData();i.locked=!1,t.setData(i,{overwrite:!0})},CreateGroup:function(){for(var e=this,t=e.ISMCavasContainer.getSelectedCells(),a=0;a<t.length;a++){if(t[a].getParent())return void e.$message.info("不能将节点添加到组中")}for(var i=t.map((function(e){return e.getBBox()})),n=Math.min.apply(Math,Object(o.a)(i.map((function(e){return e.x})))),s=Math.min.apply(Math,Object(o.a)(i.map((function(e){return e.y})))),l=Math.max.apply(Math,Object(o.a)(i.map((function(e){return e.x+e.width})))),r=Math.max.apply(Math,Object(o.a)(i.map((function(e){return e.y+e.height})))),d=e.ISMCavasContainer.addNode({shape:"view-ism-group-node",x:n,y:s,width:l-n,height:r-s,zIndex:-1e3,data:{locked:!1,UpdateNodeFlag:!0,editMode:!0,showDeviceUuid:"",IsToolBox:!1,detail:{identifier:c.a.v1(),name:"节点组",type:"image",isCanvas:!0,action:[],dataBind:[],active:[{id:"Forward",name:"component.ViewCanvasMoveLineArrow.Forward",result:"",isExpression:!0,condition:{deviceSN:"",selectVideoType:0,isBandDevice:!1,bandType:1,dataID:"",dataName:"",operator:"",OperatorValue:"",OperatorMaxValue:""}},{id:"Reverse",name:"component.ViewCanvasMoveLineArrow.Reverse",result:"",isExpression:!0,condition:{deviceSN:"",selectVideoType:0,isBandDevice:!1,bandType:1,dataID:"",dataName:"",operator:"",OperatorValue:"",OperatorMaxValue:""}}],animate:{selected:[],condition:{deviceSN:"",selectVideoType:0,isBandDevice:!1,bandType:1,dataID:"",dataName:"",operator:"",OperatorValue:"",OperatorMaxValue:""},isExpression:!1,animateList:[],animateElement:[{id:"blink",elementList:[{name:"component.public.animateSpeed",type:7,value:1,min:.1,key:"blinkSpeed"}]},{id:"millcolorGrad",elementList:[{name:"component.public.startColor",type:2,value:"#74f808",key:"startColor"},{name:"component.public.stopColor",type:2,value:"#f30b0b",key:"stopColor"},{name:"component.public.animateSpeed",type:7,value:1,min:.1,key:"animateSpeed"}]},{id:"animateSpin",elementList:[{name:"component.public.animateSpinSpeed",type:7,value:1,min:.1,key:"spinSpeed"},{name:"configComponent.bigScreen.border.border89Direction",type:6,value:0,enumList:[{value:0,option:"configComponent.bigScreen.border.border89DirectionForward"},{value:1,option:"configComponent.bigScreen.border.border89DirectionNegative"}],min:1,key:"spinDirection"}]}]},style:{position:{x:0,y:0,w:l-n,h:r-s},points:[],visible:1,zIndex:-1e3,transform:0,backColor:"",foreColor:"",borderWidth:2,BorderEdges:0,opacity:1,borderStyle:"solid",borderColor:"#13c2c2",diy:[]}}}}),u=0;u<t.length;u++){var p=t[u];d.addChild(p)}},splitGroup:function(){for(var e=this,t=e.ISMCavasContainer.getSelectedCells(),a=0;a<t.length;a++){var i=t[a];if("view-ism-group-node"==i.prop().shape)i.setChildren(null),e.ISMCavasContainer.removeNode(i);else{var o=i.getParent();o&&(o.setChildren(null),e.ISMCavasContainer.removeNode(o))}}},alignNodesLeft:function(){var e=this.ISMCavasContainer.getSelectedCells().filter((function(e){return e.isNode()})).sort((function(e,t){return e.getBBox().x-t.getBBox().x}));if(!(e.length<2)){var t=e[0].getBBox().x;// 获取最左侧节点的X坐标
// 从第二个节点开始对齐（跳过基准节点）
e.slice(1).forEach((function(e){e.setPosition(t,
// 统一X坐标
e.getPosition().y)}))}},alignNodesRight:function(){
// 获取选中节点并按X坐标降序排序
var e=this.ISMCavasContainer.getSelectedCells().filter((function(e){return e.isNode()})).sort((function(e,t){return t.getBBox().x-e.getBBox().x}));if(!(e.length<2)){var t=e[0].getBBox().x;// 获取最右侧节点的X坐标
// 从第二个节点开始对齐（跳过基准节点）
e.slice(1).forEach((function(e){e.setPosition(t,
// 统一X坐标
e.getPosition().y)}))}},alignNodesTop:function(){
// 获取选中节点并按Y坐标升序排序
var e=this.ISMCavasContainer.getSelectedCells().filter((function(e){return e.isNode()})).sort((function(e,t){return e.getBBox().y-t.getBBox().y}));if(!(e.length<2)){var t=e[0].getBBox().y;// 获取最上方节点的Y坐标
// 从第二个节点开始对齐（跳过基准节点）
e.slice(1).forEach((function(e){e.setPosition(e.getPosition().x,
// 保持原有X坐标
t)}))}},alignNodesBottom:function(){
// 获取选中节点并按底部坐标降序排序（Y坐标+高度）
var e=this.ISMCavasContainer.getSelectedCells().filter((function(e){return e.isNode()})).sort((function(e,t){var a=e.getBBox(),i=t.getBBox();return i.y+i.height-(a.y+a.height);// 按底部位置排序:ml-citation{ref="8" data="citationList"}
}));if(!(e.length<2)){
// 获取基准节点（最下方的节点）
var t=e[0].getBBox(),a=t.y+t.height;// 底部Y坐标:ml-citation{ref="1,8" data="citationList"}
// 对齐其他节点（跳过基准节点）
e.slice(1).forEach((function(e){var t=e.getBBox(),i=a-t.height;// 计算新位置:ml-citation{ref="8" data="citationList"}
e.setPosition(t.x,i)}))}},setCommentsAlign:function(e){switch(e){case"r":this.alignNodesRight();break;case"l":this.alignNodesLeft();break;case"t":this.alignNodesTop();break;case"b":this.alignNodesBottom();break;case"Vertical":this.arrangeNodesVertically();break;case"Horizontal":this.arrangeNodesHorizontally()}},arrangeNodesVertically:function(){var e=this.ISMCavasContainer.getSelectedCells().filter((function(e){return e.isNode()})).sort((function(e,t){return e.getBBox().y-t.getBBox().y}));if(!(e.length<2)){var t=e[0],a=e[e.length-1].getBBox().y,i=t.getBBox().y,o=(a-i-e.slice(1).reduce((function(e,t){return e+t.getSize().height}),0))/(e.length-1),n=i+t.getSize().height+o;// 保持Y最小的基准节点
// 从第二个节点开始定位（跳过基准节点）
e.slice(1).forEach((function(e){var t=e.getPosition();e.setPosition(t.x,
// X坐标对齐
n),n+=e.getSize().height+o}))}},arrangeNodesHorizontally:function(){
// 获取选中节点并按X坐标升序排序
var e=this.ISMCavasContainer.getSelectedCells().filter((function(e){return e.isNode()})).sort((function(e,t){return e.getBBox().x-t.getBBox().x}));if(!(e.length<2)){var t=e[0],a=e[e.length-1].getBBox().x,i=t.getBBox().x,o=(a-i-e.slice(1).reduce((function(e,t){return e+t.getSize().width}),0))/(e.length-1),n=i+t.getSize().width+o;// 保持X最小的基准节点
// 从第二个节点开始定位（跳过基准节点）
e.slice(1).forEach((function(e){e.setPosition(n,t.getPosition().y),n+=e.getSize().width+o}))}},onContextLayerMenu:function(e){var t=this;if(!this.isCommentRightClick)return this.$contextmenu({items:[{label:t.$t("displayConfig.ToolBar.DrawMoveLine"),icon:"el-icon-guandao",onClick:function(){t.beginDrawLine=!0}},{label:t.$t("displayConfig.ToolBar.Redo"),icon:"el-icon-redo",onClick:function(){t.ISMCavasContainer.redo()}},{label:t.$t("displayConfig.ToolBar.Undo"),icon:"el-icon-weibiaoti545",onClick:function(){t.ISMCavasContainer.undo()}},{label:t.$t("displayConfig.Canvas.menu.Paste"),icon:"el-icon-niantie",onClick:function(){t.PasteNode()}},{label:t.$t("displayConfig.Canvas.menu.Group"),icon:"el-icon-printer",children:[{label:t.$t("displayConfig.Canvas.menu.GroupTogether"),onClick:function(){t.CreateGroup()}},{label:t.$t("displayConfig.Canvas.menu.UnGroup"),onClick:function(){t.splitGroup()}}]},{label:t.Connector?t.$t("displayConfig.Canvas.menu.ConnectHide"):t.$t("displayConfig.Canvas.menu.ConnectShow"),icon:"el-icon-lianjiedian",onClick:function(){t.Connector=!t.Connector}},{label:t.IsShowMakerLine?t.$t("displayConfig.Canvas.menu.AuxiliaryLineClose"):t.$t("displayConfig.Canvas.menu.AuxiliaryLine"),icon:"el-icon-fuzhuxian",onClick:function(){t.IsShowMakerLine=!t.IsShowMakerLine,t.IsShowMakerLine?t.ISMCavasContainer.enableSnapline():t.ISMCavasContainer.disableSnapline()}},{label:t.IsShowMinMap?t.$t("displayConfig.Canvas.menu.HideMinMap"):t.$t("displayConfig.Canvas.menu.ShowMinMap"),icon:"el-icon-suolvetu",onClick:function(){t.IsShowMinMap=!t.IsShowMinMap,t.ShowOrHideMinMap()}},{label:t.$t("displayConfig.Canvas.menu.PageAttr"),icon:"el-icon-queshengshuxing",onClick:function(){t.isCommentRightClick=!1,t.setLayerSelected(!0)}}],event:e,
// 鼠标事件信息
divided:!0,customClass:"custom-class",
// 自定义菜单 class
zIndex:1e4,
// 菜单样式 z-index
minWidth:230}),!1},componentRightClick:function(e){var t=this,a=this;return this.isCommentRightClick=!0,setTimeout((function(){a.isCommentRightClick=!1}),500),this.$contextmenu({items:[{label:a.$t("displayConfig.ToolBar.Redo"),icon:"el-icon-redo",onClick:function(){a.ISMCavasContainer.redo()}},{label:a.$t("displayConfig.ToolBar.Undo"),icon:"el-icon-weibiaoti545",onClick:function(){a.ISMCavasContainer.undo()}},{label:a.$t("displayConfig.Canvas.menu.Unlock"),icon:"el-icon-jiesuo",onClick:function(){a.UnlockItem(e)}},{label:a.$t("displayConfig.Canvas.menu.Lock"),icon:"el-icon-suoding",onClick:function(){a.LockItem()}},{label:a.$t("displayConfig.ToolBar.Rotate"),icon:"el-icon-printer",children:[{label:a.$t("displayConfig.Canvas.menu.Revolve"),onClick:function(){for(var e=a.ISMCavasContainer.getSelectedCells(),t=0;t<e.length;t++){var i=e[t],o=i.prop().angle;(o=parseInt(o)+90)>=360&&(o=0),i.rotate(parseInt(o),{absolute:!0})}}},{label:a.$t("displayConfig.Canvas.menu.Reverse"),onClick:function(){for(var e=a.ISMCavasContainer.getSelectedCells(),t=0;t<e.length;t++){var i=e[t],o=i.prop().angle;(o=parseInt(o)-90)<=-360&&(o=0),i.rotate(parseInt(o),{absolute:!0})}}},{label:a.$t("displayConfig.Canvas.menu.FlipVertical"),onClick:function(){for(var e=a.ISMCavasContainer.getSelectedCells(),i=0;i<e.length;i++){var o=e[i].getData();-1099==o.detail.style.transform?o.detail.style.transform=0:o.detail.style.transform=-1099,t.UpdateNodeDataFlag=!t.UpdateNodeDataFlag,t.selectedNode.setData({UpdateNodeFlag:t.UpdateNodeDataFlag,detail:o.detail},{overwrite:!0})}}},{label:a.$t("displayConfig.Canvas.menu.FlipHorizontally"),onClick:function(){for(var e=a.ISMCavasContainer.getSelectedCells(),i=0;i<e.length;i++){var o=e[i].getData();-1098==o.detail.style.transform?o.detail.style.transform=0:o.detail.style.transform=-1098,t.UpdateNodeDataFlag=!t.UpdateNodeDataFlag,t.selectedNode.setData({UpdateNodeFlag:t.UpdateNodeDataFlag,detail:o.detail},{overwrite:!0})}}}]},{label:a.$t("displayConfig.ToolBar.Alignment"),icon:"el-icon-printer",children:[{label:a.$t("displayConfig.Canvas.menu.topAlign"),onClick:function(){a.setCommentsAlign("t")}},{label:a.$t("displayConfig.Canvas.menu.bottomAlign"),onClick:function(){a.setCommentsAlign("b")}},{label:a.$t("displayConfig.Canvas.menu.rightAlign"),onClick:function(){a.setCommentsAlign("r")}},{label:a.$t("displayConfig.Canvas.menu.leftAlign"),onClick:function(){a.setCommentsAlign("l")}},{label:a.$t("displayConfig.Canvas.menu.VerticalEquidistant"),onClick:function(){a.setCommentsAlign("Vertical")}},{label:a.$t("displayConfig.Canvas.menu.HorizontalEquidistant"),onClick:function(){a.setCommentsAlign("Horizontal")}}]},{label:a.$t("displayConfig.Canvas.menu.Group"),icon:"el-icon-printer",children:[{label:a.$t("displayConfig.Canvas.menu.GroupTogether"),onClick:function(){a.CreateGroup()}},{label:a.$t("displayConfig.Canvas.menu.UnGroup"),onClick:function(){a.splitGroup()}}]},{label:a.$t("displayConfig.Canvas.menu.Delete"),icon:"el-icon-shanchu",onClick:function(){a.DelNode()}},{label:a.$t("displayConfig.Canvas.menu.Copy"),icon:"el-icon-kaobei",onClick:function(){a.copyNode()}},{label:a.$t("displayConfig.Canvas.menu.Paste"),icon:"el-icon-niantie",onClick:function(){a.PasteNode()}},{label:a.$t("displayConfig.ToolBar.DrawMoveLine"),icon:"el-icon-guandao",onClick:function(){a.beginDrawLine=!0}},{label:a.Connector?a.$t("displayConfig.Canvas.menu.ConnectHide"):a.$t("displayConfig.Canvas.menu.ConnectShow"),icon:"el-icon-lianjiedian",onClick:function(){a.Connector=!a.Connector}},{label:a.IsShowMakerLine?a.$t("displayConfig.Canvas.menu.AuxiliaryLineClose"):a.$t("displayConfig.Canvas.menu.AuxiliaryLine"),icon:"el-icon-fuzhuxian",onClick:function(){a.IsShowMakerLine=!a.IsShowMakerLine,a.IsShowMakerLine?a.ISMCavasContainer.enableSnapline():a.ISMCavasContainer.disableSnapline()}},{label:a.IsShowMinMap?a.$t("displayConfig.Canvas.menu.HideMinMap"):a.$t("displayConfig.Canvas.menu.ShowMinMap"),icon:"el-icon-suolvetu",onClick:function(){a.IsShowMinMap=!a.IsShowMinMap,a.ShowOrHideMinMap()}},{label:a.$t("displayConfig.Canvas.menu.PageAttr"),icon:"el-icon-queshengshuxing",onClick:function(){a.isCommentRightClick=!1,a.setLayerSelected(!0)}}],event:event,
// 鼠标事件信息
divided:!0,zIndex:1e4,
// 菜单样式 z-index
minWidth:230}),!1},drawMove:function(e){if(this.beginDrawLine){var t=this.ISMCavasContainer.clientToLocal({x:e.clientX,y:e.clientY});this.ISMCavasContainer.disableSelection(),this.drawingEdge&&this.drawingEdge.setTarget({x:t.x,y:t.y})}},applyNodeProps:function(e,t){var a=Object(i.a)({},e.getAttrs()),o=Object(i.a)({},e.getData()),n=e.getSize(),s=n.width,l=n.height;
// 复制自定义业务属性（data）
// 存储复制的属性（后续用于应用）
this.copiedProps={attrs:a,data:o,size:{width:s,height:l}};var r=this.copiedProps,c=r.attrs,d=(r.data,r.size),u=Object(i.a)({},t.getData());u.detail.style.borderWidth=o.detail.style.borderWidth,u.detail.style.BorderEdges=o.detail.style.BorderEdges,u.detail.style.opacity=o.detail.style.opacity,u.detail.style.borderStyle=o.detail.style.borderStyle,u.detail.style.borderColor=o.detail.style.borderColor,u.detail.style.transform=o.detail.style.transform,u.detail.style.backColor=o.detail.style.backColor,u.detail.style.foreColor=o.detail.style.foreColor,u.detail.style.textAlign=o.detail.style.textAlign,u.detail.style.fontFamily=o.detail.style.fontFamily,u.detail.style.fontWeight=o.detail.style.fontWeight,u.detail.style.italic=o.detail.style.italic,u.detail.style.fontSize=o.detail.style.fontSize,
// 1. 应用样式（覆盖目标节点的 attrs）
t.setAttrs(c),
// 2. 应用业务属性（覆盖目标节点的 data）
t.setData(u),
// 3. （可选）应用尺寸（同步节点大小）
t.setSize(d.width,d.height),this.$message.success("格式应用成功")},initCavasContainer:function(){var e=this,t=this,a={};Object(x.a)({shape:"view-ism-group-node",width:100,height:100,visible:!0,zIndex:-1e3,component:k.a,data:{locked:!1,UpdateNodeFlag:!0,editMode:!0,showDeviceUuid:"",IsToolBox:!1,detail:{identifier:c.a.v1(),name:"节点组",type:"image",isCanvas:!0,action:[],dataBind:[],active:[{id:"Forward",name:"component.ViewCanvasMoveLineArrow.Forward",result:"",isExpression:!0,condition:{deviceSN:"",selectVideoType:0,isBandDevice:!1,bandType:1,dataID:"",dataName:"",operator:"",OperatorValue:"",OperatorMaxValue:""}},{id:"Reverse",name:"component.ViewCanvasMoveLineArrow.Reverse",result:"",isExpression:!0,condition:{deviceSN:"",selectVideoType:0,isBandDevice:!1,bandType:1,dataID:"",dataName:"",operator:"",OperatorValue:"",OperatorMaxValue:""}}],animate:{selected:[],condition:{deviceSN:"",selectVideoType:0,isBandDevice:!1,bandType:1,dataID:"",dataName:"",operator:"",OperatorValue:"",OperatorMaxValue:""},isExpression:!1,animateList:[],animateElement:[{id:"blink",elementList:[{name:"component.public.animateSpeed",type:7,value:1,min:.1,key:"blinkSpeed"}]},{id:"millcolorGrad",elementList:[{name:"component.public.startColor",type:2,value:"#74f808",key:"startColor"},{name:"component.public.stopColor",type:2,value:"#f30b0b",key:"stopColor"},{name:"component.public.animateSpeed",type:7,value:1,min:.1,key:"animateSpeed"}]},{id:"animateSpin",elementList:[{name:"component.public.animateSpinSpeed",type:7,value:1,min:.1,key:"spinSpeed"},{name:"configComponent.bigScreen.border.border89Direction",type:6,value:0,enumList:[{value:0,option:"configComponent.bigScreen.border.border89DirectionForward"},{value:1,option:"configComponent.bigScreen.border.border89DirectionNegative"}],min:1,key:"spinDirection"}]}]},style:{position:{x:0,y:0,w:600,h:50},points:[],visible:1,zIndex:-1e3,transform:0,backColor:"#D9D9D9",foreColor:"#13c2c2",borderWidth:0,BorderEdges:0,opacity:1,borderStyle:"solid",borderColor:"#ccccff",diy:[]}}}}),this.ISMCavasContainer=new d.d({container:this.$refs.ISMContainer,width:t.configData.layer.width,height:t.configData.layer.height,panning:!1,virtual:!1,async:!1,grid:{visible:!1,size:2,type:"doubleMesh",args:[{color:"#eee",
// 主网格线颜色
thickness:1},{color:"#ddd",
// 次网格线颜色
thickness:1,
// 次网格线宽度
factor:4}]},background:{color:t.configData.layer.backColor,
// 背景底色（可选）
image:t.configData.layer.backgroundImage,size:"100% 100%",repeat:"no-repeat",position:"center",quality:1},connecting:{router:"manhattan",connector:{name:"rounded",args:{radius:8}},anchor:"center",connectionPoint:"anchor",allowBlank:!1,snap:{radius:20},createEdge:function(){return new d.k.Edge({attrs:{line:{stroke:"#A2B1C3",strokeWidth:2,targetMarker:{name:"block",width:12,height:8}}},zIndex:0})},validateConnection:function(e){return!!e.targetMagnet}},highlighting:{magnetAdsorbed:{name:"stroke",args:{attrs:{fill:"#5F95FF",stroke:"#5F95FF"}}}},translating:{restrict:!0},interacting:function(e){var t;
// 示例：根据节点数据中的 `locked` 字段判断是否可拖动
return!(null===(t=e.cell.getData())||void 0===t?void 0:t.locked)||{nodeMovable:!1,selectable:!0,magnetConnectable:!1,
// 禁止节点移动
edgeMovable:!1,
// 禁止边移动
edgeLabelMovable:!1,
// 禁止箭头移动
arrowheadMovable:!1,
// 禁止顶点移动
vertexMovable:!1,
// 禁止添加顶点
vertexAddable:!1,
// 禁止删除顶点
vertexDeletable:!1}}});
// 控制连接桩显示/隐藏
var o=function(e,t){for(var a=0,i=e.length;a<i;a+=1)e[a].style.visibility=t?"visible":"hidden"};this.ISMCavasContainer.on("node:mouseenter",(function(t){var i=t.node;if(a=i.position(),i.getData().locked)i.addTools({name:"boundary",args:{padding:5,attrs:{stroke:"red",strokeWidth:2}}});else if(1==e.Connector){var n=e.$refs.ISMContainer.querySelectorAll(".x6-port-body");o(n,!0)}})),this.ISMCavasContainer.on("node:mouseleave",(function(t){t.node.removeTools();var a=e.$refs.ISMContainer.querySelectorAll(".x6-port-body");o(a,!1)}));var n,s,l=null;window.addEventListener("mousemove",this.drawMove),
//===============================
// 鼠标按下开始绘制
this.ISMCavasContainer.on("blank:mousedown",(function(t){var a=t.x,i=t.y;e.beginDrawLine&&(e.ISMCavasContainer.disableSelection(),l={x:a,y:i},null==e.drawingEdge&&(e.drawingEdge=e.ISMCavasContainer.addEdge({source:l,target:{x:a,y:i},position:{x:a,y:i},visible:!0,size:{width:100,height:100},zIndex:100,attrs:{line:{style:{connection:!0,arrow:{size:0},strokeDasharray:"15 10",stroke:"#13c2c2",strokeWidth:7,strokeLinejoin:"round",rx:6,
// 圆角弧数
ry:6,
// 圆角弧数
animation:"ant-line-forward 30s infinite linear"},sourceMarker:null,targetMarker:null},wrap:{connection:!0,stroke:"#D9D9D9",strokeWidth:15,strokeLinejoin:"round"}},router:"normal",connector:"normal",data:{locked:!1,UpdateNodeFlag:!0,editMode:!0,showDeviceUuid:"",IsToolBox:!1,detail:{identifier:c.a.v1(),name:"线段",type:"image",isCanvas:!0,action:[],dataBind:[],active:[{id:"Forward",name:"component.ViewCanvasMoveLineArrow.Forward",result:"",isExpression:!0,condition:{deviceSN:"",selectVideoType:0,isBandDevice:!1,bandType:1,dataID:"",dataName:"",operator:"",OperatorValue:"",OperatorMaxValue:""}},{id:"Reverse",name:"component.ViewCanvasMoveLineArrow.Reverse",result:"",isExpression:!0,condition:{deviceSN:"",selectVideoType:0,isBandDevice:!1,bandType:1,dataID:"",dataName:"",operator:"",OperatorValue:"",OperatorMaxValue:""}}],animate:{selected:[],condition:{deviceSN:"",selectVideoType:0,isBandDevice:!1,bandType:1,dataID:"",dataName:"",operator:"",OperatorValue:"",OperatorMaxValue:""},isExpression:!1,animateList:[],animateElement:[{id:"blink",elementList:[{name:"component.public.animateSpeed",type:7,value:1,min:.1,key:"blinkSpeed"}]},{id:"millcolorGrad",elementList:[{name:"component.public.startColor",type:2,value:"#74f808",key:"startColor"},{name:"component.public.stopColor",type:2,value:"#f30b0b",key:"stopColor"},{name:"component.public.animateSpeed",type:7,value:1,min:.1,key:"animateSpeed"}]},{id:"animateSpin",elementList:[{name:"component.public.animateSpinSpeed",type:7,value:1,min:.1,key:"spinSpeed"},{name:"configComponent.bigScreen.border.border89Direction",type:6,value:0,enumList:[{value:0,option:"configComponent.bigScreen.border.border89DirectionForward"},{value:1,option:"configComponent.bigScreen.border.border89DirectionNegative"}],min:1,key:"spinDirection"}]}]},style:{position:{x:0,y:0,w:600,h:50},points:[],visible:1,zIndex:100,transform:0,backColor:"#D9D9D9",foreColor:"#13c2c2",borderWidth:0,BorderEdges:0,opacity:1,borderStyle:"solid",borderColor:"#ccccff",diy:[{name:"component.public.strokeLinejoin",type:6,value:1,enumList:[{value:0,option:"component.public.strokeLineMiter"},{value:1,option:"component.public.strokeLineRound"},{value:2,option:"component.public.strokeLineBevel"}],key:"strokeLinejoin"},{name:"component.public.strokeBgWidth",type:1,value:25,min:1,key:"strokeBgWidth"},{name:"component.public.strokeWidth",type:1,value:10,min:1,key:"strokeWidth"},{name:"component.public.strokeLength",type:1,value:15,min:1,key:"strokeLength"},{name:"component.public.strokeSpace",type:1,value:10,min:1,key:"strokeSpace"},{name:"component.public.animateSpeed",type:1,value:30,min:1,key:"MoveBrokenLineInterval"},{name:"displayConfig.ToolBox.Diagram.MoveBrokenLineConditionEnable",type:6,value:0,enumList:[{value:0,option:"component.public.Forbidden"},{value:1,option:"component.public.Enable"}],min:1,key:"MoveBrokenLineConditionEnable"},{name:"configComponent.bigScreen.border.border89Direction",type:6,value:0,enumList:[{value:0,option:"configComponent.bigScreen.border.border89DirectionForward"},{value:1,option:"configComponent.bigScreen.border.border89DirectionNegative"}],min:1,key:"spinDirection"}]}}}})),null!=e.drawingEdge&&e.drawingEdge.insertVertex({x:a,y:i}))})),
// 鼠标按下开始绘制
this.ISMCavasContainer.on("cell:mousedown",(function(t){var a=t.x,i=t.y;e.beginDrawLine&&(e.ISMCavasContainer.disableSelection(),l={x:a,y:i},null==e.drawingEdge&&(e.drawingEdge=e.ISMCavasContainer.addEdge({source:l,target:{x:a,y:i},position:{x:a,y:i},visible:!0,size:{width:100,height:100},zIndex:100,attrs:{line:{style:{connection:!0,arrow:{size:0},strokeDasharray:"15 10",stroke:"#13c2c2",strokeWidth:7,strokeLinejoin:"round",rx:6,
// 圆角弧数
ry:6,
// 圆角弧数
animation:"ant-line-forward 30s infinite linear"},sourceMarker:null,targetMarker:null},wrap:{connection:!0,stroke:"#D9D9D9",strokeWidth:15,strokeLinejoin:"round"}},router:"normal",connector:"normal",data:{locked:!1,UpdateNodeFlag:!0,editMode:!0,showDeviceUuid:"",IsToolBox:!1,detail:{identifier:c.a.v1(),name:"线段",type:"image",isCanvas:!0,action:[],dataBind:[],active:[{id:"Forward",name:"component.ViewCanvasMoveLineArrow.Forward",result:"",isExpression:!0,condition:{deviceSN:"",selectVideoType:0,isBandDevice:!1,bandType:1,dataID:"",dataName:"",operator:"",OperatorValue:"",OperatorMaxValue:""}},{id:"Reverse",name:"component.ViewCanvasMoveLineArrow.Reverse",result:"",isExpression:!0,condition:{deviceSN:"",selectVideoType:0,isBandDevice:!1,bandType:1,dataID:"",dataName:"",operator:"",OperatorValue:"",OperatorMaxValue:""}}],animate:{selected:[],condition:{deviceSN:"",selectVideoType:0,isBandDevice:!1,bandType:1,dataID:"",dataName:"",operator:"",OperatorValue:"",OperatorMaxValue:""},isExpression:!1,animateList:[],animateElement:[{id:"blink",elementList:[{name:"component.public.animateSpeed",type:7,value:1,min:.1,key:"blinkSpeed"}]},{id:"millcolorGrad",elementList:[{name:"component.public.startColor",type:2,value:"#74f808",key:"startColor"},{name:"component.public.stopColor",type:2,value:"#f30b0b",key:"stopColor"},{name:"component.public.animateSpeed",type:7,value:1,min:.1,key:"animateSpeed"}]},{id:"animateSpin",elementList:[{name:"component.public.animateSpinSpeed",type:7,value:1,min:.1,key:"spinSpeed"},{name:"configComponent.bigScreen.border.border89Direction",type:6,value:0,enumList:[{value:0,option:"configComponent.bigScreen.border.border89DirectionForward"},{value:1,option:"configComponent.bigScreen.border.border89DirectionNegative"}],min:1,key:"spinDirection"}]}]},style:{position:{x:0,y:0,w:600,h:50},points:[],visible:1,zIndex:100,transform:0,backColor:"#D9D9D9",foreColor:"#13c2c2",borderWidth:0,BorderEdges:0,opacity:1,borderStyle:"solid",borderColor:"#ccccff",diy:[{name:"component.public.strokeLinejoin",type:6,value:1,enumList:[{value:0,option:"component.public.strokeLineMiter"},{value:1,option:"component.public.strokeLineRound"},{value:2,option:"component.public.strokeLineBevel"}],key:"strokeLinejoin"},{name:"component.public.strokeBgWidth",type:1,value:25,min:1,key:"strokeBgWidth"},{name:"component.public.strokeWidth",type:1,value:10,min:1,key:"strokeWidth"},{name:"component.public.strokeLength",type:1,value:15,min:1,key:"strokeLength"},{name:"component.public.strokeSpace",type:1,value:10,min:1,key:"strokeSpace"},{name:"component.public.animateSpeed",type:1,value:30,min:1,key:"MoveBrokenLineInterval"},{name:"displayConfig.ToolBox.Diagram.MoveBrokenLineConditionEnable",type:6,value:0,enumList:[{value:0,option:"component.public.Forbidden"},{value:1,option:"component.public.Enable"}],min:1,key:"MoveBrokenLineConditionEnable"},{name:"configComponent.bigScreen.border.border89Direction",type:6,value:0,enumList:[{value:0,option:"configComponent.bigScreen.border.border89DirectionForward"},{value:1,option:"configComponent.bigScreen.border.border89DirectionNegative"}],min:1,key:"spinDirection"}]}}}})),null!=e.drawingEdge&&e.drawingEdge.insertVertex({x:a,y:i}))})),
// 监听顶点位置变化
this.ISMCavasContainer.on("cell:vertex:mousemove",(function(e){e.cell;// 可在此添加自定义逻辑（如限制移动范围等）
})),
//=======================
this.ISMCavasContainer.use(new d.m({resizing:{restrict:!1,preserveAspectRatio:!1,allowReverse:!1,autoScroll:!1,minWidth:10,minHeight:10,orthogonal:!0,enabled:function(e){var t;return!(null!==(t=e.getData())&&void 0!==t&&t.locked)}},rotating:{enabled:function(e){var t;return!(null!==(t=e.getData())&&void 0!==t&&t.locked)&"view-ism-group-node"!=e.prop().shape},grid:1}})),this.ISMCavasContainer.use(new d.l({enabled:!0,clean:!0,tolerance:20,resizing:!0,className:"custom-snapline"})),this.ISMCavasContainer.use(new d.a({enabled:!0,useLocalStorage:!0})),this.ISMCavasContainer.use(new d.f({enabled:!0,global:!0})),this.ISMCavasContainer.use(new d.e({enabled:!0,stackSize:20})),this.ISMCavasContainer.use(new d.j({enabled:!0,multiple:!0,rubberband:!0,movable:!0,strict:!1,showNodeSelectionBox:!0,showEdgeSelectionBox:!0,filter:function(e){var t;return!(null!==(t=e.getData())&&void 0!==t&&t.locked)}})),this.ISMCavasContainer.use(new d.c),
// this.ISMCavasContainer.use(new MiniMap({
//       container: this.$refs.refMiniMapContainer,
//       width: 200,
//       height: 160,
//       padding: 10,
//     }),
// )
//创建分组的父节点
//小地图的显示和隐藏
// this.ShowOrHideMinMap()
this.ISMCavasContainer.on("cell:selected",(function(t){t.e,t.x,t.y;var a=t.cell;t.view;"view-ism-group-node"!=a.prop().shape&&e.setCurrentSelectNode(a)})),
//检查是否启用辅助线
t.IsShowMakerLine?t.ISMCavasContainer.enableSnapline():t.ISMCavasContainer.disableSnapline(),this.ISMCavasContainer.on("scale",(function(a){try{void 0!==e.guidesX.zoomTo&&void 0!==e.guides.zoomTo&&(e.guidesX.zoomTo(a.sx),e.guides.zoomTo(a.sy))}catch(e){}var i=t.configData.layer.width*a.sx,o=t.configData.layer.height*a.sy;e.ISMCavasContainer.resize(i,o)})),
//页面空白处右键菜单
this.ISMCavasContainer.on("blank:contextmenu",(function(t){var a=t.e,i=t.x,o=t.y;t.cell,t.view;e.drawingEdge&&null!=e.drawingEdge&&(e.drawingEdge.insertVertex({x:i,y:o}),e.drawingEdge=null),e.beginDrawLine=!1,e.onContextLayerMenu(a)})),
//节点菜单
this.ISMCavasContainer.on("cell:contextmenu",(function(t){t.e;var a=t.x,i=t.y,o=t.cell;t.view;e.drawingEdge&&null!=e.drawingEdge&&(e.drawingEdge.insertVertex({x:a,y:i}),e.drawingEdge=null),e.beginDrawLine=!1;var n=o.prop().shape;"view-menu-nav"==n?e.ISMCavasContainer.unselect(o):("view-ism-group-node"!=n&&(e.setCurrentSelectNode(o),e.ISMCavasContainer.select(o)),e.componentRightClick(o))})),this.ISMCavasContainer.on("blank:click",(function(t){t.e;var a=t.x,i=t.y;t.cell,t.view;e.setLayerSelected(!0),e.beginDrawLine&&null!=e.drawingEdge&&e.drawingEdge.insertVertex({x:a,y:i})})),this.ISMCavasContainer.on("cell:click",(function(t){t.e;var a=t.x,i=t.y,o=t.cell;t.view;if(e.isFormatPainterActive)o.isEdge()||e.applyNodeProps(e.selectedNode,o);else{var n=o.prop().shape;e.ClickUnSelectedComponent(o),e.beginDrawLine&&null!=e.drawingEdge?e.drawingEdge.insertVertex({x:a,y:i}):"view-menu-nav"==n?e.ISMCavasContainer.unselect(o):(e.setCurrentSelectNode(o),e.ISMCavasContainer.select(o))}})),this.ISMCavasContainer.on("cell:dblclick",(function(t){t.e;var a=t.x,i=t.y;t.cell,t.view;e.drawingEdge&&null!=e.drawingEdge&&(
// 添加流动动画
e.drawingEdge.insertVertex({x:a,y:i}),e.drawingEdge=null),e.beginDrawLine=!1,e.ISMCavasContainer.enableSelection()})),
// 鼠标释放结束绘制
this.ISMCavasContainer.on("blank:dblclick",(function(t){t.e;var a=t.x,i=t.y;e.drawingEdge&&null!=e.drawingEdge&&(e.drawingEdge.insertVertex({x:a,y:i}),e.drawingEdge=null),e.beginDrawLine=!1,e.ISMCavasContainer.enableSelection()})),
//绑定快捷键
this.ISMCavasContainer.bindKey("ctrl+c",(function(){var t=e.ISMCavasContainer.getSelectedCells();return t.length&&e.ISMCavasContainer.copy(t,{deep:!0,useLocalStorage:!0}),!1})),this.ISMCavasContainer.bindKey("esc",(function(){return e.drawingEdge=null,e.beginDrawLine=!1,e.SetFormatPainterState(!1),!1})),this.ISMCavasContainer.bindKey("ctrl+v",(function(t){if(!e.ISMCavasContainer.isClipboardEmpty()){var a=e.ISMCavasContainer.paste({offset:32,useLocalStorage:!0});a.forEach((function(e){var t=e.prop().data||{};t.detail.identifier=c.a.v1(),t.detail.name=t.detail.name+"_copy",e.setData({locked:!1,editMode:!0,showDeviceUuid:"",IsToolBox:!1,UpdateNodeFlag:(new Date).getTime(),detail:t.detail},{overwrite:!0})})),e.ISMCavasContainer.cleanSelection(),e.ISMCavasContainer.select(a)}return!1})),this.ISMCavasContainer.bindKey(["delete","backspace"],(function(){return e.DelNode(),!1})),this.ISMCavasContainer.bindKey("ctrl+z",(function(){return e.ISMCavasContainer.undo(),!1})),this.ISMCavasContainer.bindKey("ctrl+r",(function(){return e.ISMCavasContainer.redo(),!1})),
// 左方向键
this.ISMCavasContainer.bindKey(["arrowleft"],(function(t){t.preventDefault(),e.ISMCavasContainer.getSelectedCells().forEach((function(e){e.translate(-1,0);// x轴左移1像素
}))})),
// 右方向键
this.ISMCavasContainer.bindKey(["arrowright"],(function(t){t.preventDefault(),e.ISMCavasContainer.getSelectedCells().forEach((function(e){e.translate(1,0);// x轴右移1像素
}))})),
// 上方向键
this.ISMCavasContainer.bindKey(["arrowup"],(function(t){t.preventDefault(),e.ISMCavasContainer.getSelectedCells().forEach((function(e){e.translate(0,-1);// y轴上移1像素
}))})),
// 下方向键
this.ISMCavasContainer.bindKey(["arrowdown"],(function(t){t.preventDefault(),e.ISMCavasContainer.getSelectedCells().forEach((function(e){e.translate(0,1);// y轴下移1像素
}))})),
//==============================
//监听页面是否渲染完成，完成后就发广播给节点，告诉节点是在编辑模式
this.ISMCavasContainer.on("render:done",(function(){e.$EventBus.$emit("cell-editMode",{edit:!0,toolbox:!1}),
//由于节点内部无法访问vuex,只能通过广播把vuex传入节点
e.$EventBus.$emit("cell-vuex",{PMapState:p.e,PMapActions:p.b,PMapMutations:p.d,PStore:e.$store}),e.setGroupList()}));try{t.ISMCavasContainer.fromJSON(t.configData.components)}catch(e){}this.dnd=(n=this.ISMCavasContainer,this.$refs.ISMContainer,s=new d.b({target:n,getDragNode:function(e){return e.clone()},getDropNode:function(e){return e.clone()}}),{startDrag:function(e,t){e.identifier=c.a.v1(),void 0!==e.animate&&void 0===e.animate.move&&(e.animate.move={x:{deviceSN:"",selectVideoType:0,isBandDevice:!1,bandType:1,dataID:"",dataName:""},y:{deviceSN:"",selectVideoType:0,isBandDevice:!1,bandType:1,dataID:"",dataName:""}}),e.name=e.type,e.style.visible=1,e.style.borderWidth=e.style.borderWidth?e.style.borderWidth:0,e.style.BorderEdges=e.style.BorderEdges?e.style.BorderEdges:0,e.style.opacity=e.style.opacity?e.style.opacity:1,e.style.borderStyle=e.style.borderStyle?e.style.borderStyle:"solid",e.style.borderColor=e.style.borderColor?e.style.borderColor:"#ccccff";var a=n.createNode({shape:e.type,width:e.style.position.w,height:e.style.position.h,zIndex:parseInt(e.style.zIndex),attrs:{body:{fill:"#1890ff",opacity:1}},data:{locked:!1,UpdateNodeFlag:!0,editMode:!0,showDeviceUuid:"",IsToolBox:!1,detail:e},ports:Object(i.a)({},{groups:{top:{position:"top",attrs:{circle:{r:4,magnet:!0,stroke:"#5F95FF",strokeWidth:1,fill:"#fff",style:{visibility:"hidden"}}}},right:{position:"right",attrs:{circle:{r:4,magnet:!0,stroke:"#5F95FF",strokeWidth:1,fill:"#fff",style:{visibility:"hidden"}}}},bottom:{position:"bottom",attrs:{circle:{r:4,magnet:!0,stroke:"#5F95FF",strokeWidth:1,fill:"#fff",style:{visibility:"hidden"}}}},left:{position:"left",attrs:{circle:{r:4,magnet:!0,stroke:"#5F95FF",strokeWidth:1,fill:"#fff",style:{visibility:"hidden"}}}}},items:[{group:"top"},{group:"right"},{group:"bottom"},{group:"left"}]})});s.start(a,t)}}),this.setCurrentISMCavasContainer(this.ISMCavasContainer),this.setCurrentISMCavasDND(this.dnd),this.ISMCavasContainer.on("edge:dblclick",(function(t){var a=t.cell;e.setCurrentSelectNode(a),e.ISMCavasContainer.select(a)})),this.ISMCavasContainer.on("edge:mouseenter",(function(t){var a=t.cell;e.beginDrawLine||a.addTools("vertices","onhover")})),this.ISMCavasContainer.on("edge:mouseleave",(function(t){var a=t.cell;e.beginDrawLine||a.hasTools("onhover")&&a.removeTools()})),this.ISMCavasContainer.on(["edge:connected"],(function(e){var t=e.edge;e.currentCell;t.setProp({visible:!0,position:{x:12,y:13},size:{width:100,height:100},connectType:"connected-edge",attrs:{line:{style:{stroke:"#A2B1C3",strokeWidth:2},sourceMarker:{name:"classic",width:10,height:10},targetMarker:{name:"classic",width:10,height:10}},wrap:{stroke:"#A2B1C3",strokeWidth:2,strokeLinejoin:"round"}},data:{locked:!1,UpdateNodeFlag:!0,editMode:!0,showDeviceUuid:"",IsToolBox:!1,detail:{identifier:c.a.v1(),name:"连接线段",type:"image",isCanvas:!0,action:[],dataBind:[],active:[{id:"Forward",name:"component.ViewCanvasMoveLineArrow.Forward",result:"",isExpression:!0,condition:{deviceSN:"",selectVideoType:0,isBandDevice:!1,bandType:1,dataID:"",dataName:"",operator:"",OperatorValue:"",OperatorMaxValue:""}},{id:"Reverse",name:"component.ViewCanvasMoveLineArrow.Reverse",result:"",isExpression:!0,condition:{deviceSN:"",selectVideoType:0,isBandDevice:!1,bandType:1,dataID:"",dataName:"",operator:"",OperatorValue:"",OperatorMaxValue:""}}],animate:{selected:[],condition:{deviceSN:"",selectVideoType:0,isBandDevice:!1,bandType:1,dataID:"",dataName:"",operator:"",OperatorValue:"",OperatorMaxValue:""},isExpression:!1,animateList:[],animateElement:[{id:"blink",elementList:[{name:"component.public.animateSpeed",type:7,value:1,min:.1,key:"blinkSpeed"}]},{id:"millcolorGrad",elementList:[{name:"component.public.startColor",type:2,value:"#74f808",key:"startColor"},{name:"component.public.stopColor",type:2,value:"#f30b0b",key:"stopColor"},{name:"component.public.animateSpeed",type:7,value:1,min:.1,key:"animateSpeed"}]},{id:"animateSpin",elementList:[{name:"component.public.animateSpinSpeed",type:7,value:1,min:.1,key:"spinSpeed"},{name:"configComponent.bigScreen.border.border89Direction",type:6,value:0,enumList:[{value:0,option:"configComponent.bigScreen.border.border89DirectionForward"},{value:1,option:"configComponent.bigScreen.border.border89DirectionNegative"}],min:1,key:"spinDirection"}]}]},style:{position:{x:0,y:0,w:600,h:50},points:[],visible:1,zIndex:-1,transform:0,backColor:"#A2B1C3",foreColor:"#A2B1C3",borderWidth:0,BorderEdges:0,opacity:1,borderStyle:"solid",borderColor:"#ccccff",diy:[{name:"component.public.strokeLineType",type:6,value:1,enumList:[{value:0,option:"component.public.strokeLineDashed"},{value:1,option:"component.public.strokeLineSolid"}],key:"strokeLineType"},{name:"component.public.strokeLineMarker",type:6,value:1,enumList:[{value:1,option:"configComponent.ProgressBar.showInfoTrue"},{value:0,option:"configComponent.ProgressBar.showInfoFalse"}],key:"strokeLineMarker"},{name:"component.public.strokeLineMarkerStyle",type:6,value:0,enumList:[{value:0,option:"component.public.strokeLineMarkerClassic"},{value:1,option:"component.public.strokeLineMarkerDiamond"},{value:2,option:"component.public.strokeLineMarkerCross"},{value:3,option:"component.public.strokeLineMarkerCircle"},{value:4,option:"component.public.strokeLineMarkerCirclePlus"},{value:5,option:"component.public.strokeLineMarkerEllipse"}],key:"strokeLineMarkerStyle"},{name:"component.public.strokeLineMarkerWidth",type:1,value:10,min:1,key:"strokeLineMarkerWidth"},{name:"component.public.strokeLineMarkerHeight",type:1,value:10,min:1,key:"strokeLineMarkerHeight"},{name:"component.public.strokeLineMarkerColor",type:2,value:"#A2B1C3",key:"strokeLineMarkerColor"},{name:"component.public.strokeLinejoin",type:6,value:1,enumList:[{value:0,option:"component.public.strokeLineMiter"},{value:1,option:"component.public.strokeLineRound"},{value:2,option:"component.public.strokeLineBevel"}],key:"strokeLinejoin"},{name:"component.public.strokeBgWidth",type:1,value:1,min:1,key:"strokeBgWidth"},{name:"component.public.strokeWidth",type:1,value:1,min:1,key:"strokeWidth"},{name:"component.public.strokeLength",type:1,value:1,min:1,key:"strokeLength"},{name:"component.public.strokeSpace",type:1,value:1,min:1,key:"strokeSpace"},{name:"component.public.animateSpeed",type:1,value:30,min:1,key:"MoveBrokenLineInterval"},{name:"displayConfig.ToolBox.Diagram.MoveBrokenLineConditionEnable",type:6,value:0,enumList:[{value:0,option:"component.public.Forbidden"},{value:1,option:"component.public.Enable"}],min:1,key:"MoveBrokenLineConditionEnable"},{name:"configComponent.bigScreen.border.border89Direction",type:6,value:0,enumList:[{value:0,option:"configComponent.bigScreen.border.border89DirectionForward"},{value:1,option:"configComponent.bigScreen.border.border89DirectionNegative"}],min:1,key:"spinDirection"}]}}}})})),this.ISMCavasContainer.on("node:mousemove",(function(t){var i=t.node;t.options;if(!(e.ISMCavasContainer.getSelectedCells().length>1)){var o=i.position(),n=a?{x:o.x-a.x,y:o.y-a.y}:{x:0,y:0};a=o;
// 获取父节点及所有同级节点
var s=i.getParent();if(s){var l=s.position();s.position(l.x+n.x,l.y+n.y),s.getChildren().forEach((function(e){if(e&&e.id!==i.id){var t=e.position();e.position(t.x+n.x,t.y+n.y)}}))}}})),this.ISMCavasContainer.on("cell:change:size",(function(e){var t=e.cell,a=e.current,i=e.previous;if("view-ism-group-node"==t.prop().shape){var o=a.width/i.width,n=a.height/i.height;t.getChildren().forEach((function(e){
// 调整子节点位置
var t=e.getPosition({relative:!0});e.setPosition(t.x*o,t.y*n,{relative:!0})}))}})),this.ISMCavasContainer.on("cell:added",(function(t){var a=t.cell;t.current,t.previous;e.SyncLayerComponents(),
//由于节点内部无法访问vuex,只能通过广播把vuex传入节点
e.$EventBus.$emit("cell-vuex",{PMapState:p.e,PMapActions:p.b,PMapMutations:p.d,PStore:e.$store}),a.setVisible(!0,{silent:!0}),e.setGroupList();var i=a.getData();void 0===i?"edge"==a.prop().shape&&a.setProp({visible:!0,position:{x:12,y:13},size:{width:100,height:100},connectType:"connected-edge",attrs:{line:{style:{stroke:"#A2B1C3",strokeWidth:2},sourceMarker:{name:"classic",width:10,height:10},targetMarker:{name:"classic",width:10,height:10}},wrap:{stroke:"#A2B1C3",strokeWidth:2,strokeLinejoin:"round"}},data:{locked:!1,UpdateNodeFlag:!0,editMode:!0,showDeviceUuid:"",IsToolBox:!1,detail:{identifier:c.a.v1(),name:"连接线段",type:"image",isCanvas:!0,action:[],dataBind:[],active:[{id:"Forward",name:"component.ViewCanvasMoveLineArrow.Forward",result:"",isExpression:!0,condition:{deviceSN:"",selectVideoType:0,isBandDevice:!1,bandType:1,dataID:"",dataName:"",operator:"",OperatorValue:"",OperatorMaxValue:""}},{id:"Reverse",name:"component.ViewCanvasMoveLineArrow.Reverse",result:"",isExpression:!0,condition:{deviceSN:"",selectVideoType:0,isBandDevice:!1,bandType:1,dataID:"",dataName:"",operator:"",OperatorValue:"",OperatorMaxValue:""}}],animate:{selected:[],condition:{deviceSN:"",selectVideoType:0,isBandDevice:!1,bandType:1,dataID:"",dataName:"",operator:"",OperatorValue:"",OperatorMaxValue:""},isExpression:!1,animateList:[],animateElement:[{id:"blink",elementList:[{name:"component.public.animateSpeed",type:7,value:1,min:.1,key:"blinkSpeed"}]},{id:"millcolorGrad",elementList:[{name:"component.public.startColor",type:2,value:"#74f808",key:"startColor"},{name:"component.public.stopColor",type:2,value:"#f30b0b",key:"stopColor"},{name:"component.public.animateSpeed",type:7,value:1,min:.1,key:"animateSpeed"}]},{id:"animateSpin",elementList:[{name:"component.public.animateSpinSpeed",type:7,value:1,min:.1,key:"spinSpeed"},{name:"configComponent.bigScreen.border.border89Direction",type:6,value:0,enumList:[{value:0,option:"configComponent.bigScreen.border.border89DirectionForward"},{value:1,option:"configComponent.bigScreen.border.border89DirectionNegative"}],min:1,key:"spinDirection"}]}]},style:{position:{x:0,y:0,w:600,h:50},points:[],visible:1,zIndex:-1,transform:0,backColor:"#A2B1C3",foreColor:"#A2B1C3",borderWidth:0,BorderEdges:0,opacity:1,borderStyle:"solid",borderColor:"#ccccff",diy:[{name:"component.public.strokeLineType",type:6,value:1,enumList:[{value:0,option:"component.public.strokeLineDashed"},{value:1,option:"component.public.strokeLineSolid"}],key:"strokeLineType"},{name:"component.public.strokeLineMarker",type:6,value:1,enumList:[{value:1,option:"configComponent.ProgressBar.showInfoTrue"},{value:0,option:"configComponent.ProgressBar.showInfoFalse"}],key:"strokeLineMarker"},{name:"component.public.strokeLineMarkerStyle",type:6,value:0,enumList:[{value:0,option:"component.public.strokeLineMarkerClassic"},{value:1,option:"component.public.strokeLineMarkerDiamond"},{value:2,option:"component.public.strokeLineMarkerCross"},{value:3,option:"component.public.strokeLineMarkerCircle"},{value:4,option:"component.public.strokeLineMarkerCirclePlus"},{value:5,option:"component.public.strokeLineMarkerEllipse"}],key:"strokeLineMarkerStyle"},{name:"component.public.strokeLineMarkerWidth",type:1,value:10,min:1,key:"strokeLineMarkerWidth"},{name:"component.public.strokeLineMarkerHeight",type:1,value:10,min:1,key:"strokeLineMarkerHeight"},{name:"component.public.strokeLineMarkerColor",type:2,value:"#A2B1C3",key:"strokeLineMarkerColor"},{name:"component.public.strokeLinejoin",type:6,value:1,enumList:[{value:0,option:"component.public.strokeLineMiter"},{value:1,option:"component.public.strokeLineRound"},{value:2,option:"component.public.strokeLineBevel"}],key:"strokeLinejoin"},{name:"component.public.strokeBgWidth",type:1,value:1,min:1,key:"strokeBgWidth"},{name:"component.public.strokeWidth",type:1,value:1,min:1,key:"strokeWidth"},{name:"component.public.strokeLength",type:1,value:1,min:1,key:"strokeLength"},{name:"component.public.strokeSpace",type:1,value:1,min:1,key:"strokeSpace"},{name:"component.public.animateSpeed",type:1,value:30,min:1,key:"MoveBrokenLineInterval"},{name:"displayConfig.ToolBox.Diagram.MoveBrokenLineConditionEnable",type:6,value:0,enumList:[{value:0,option:"component.public.Forbidden"},{value:1,option:"component.public.Enable"}],min:1,key:"MoveBrokenLineConditionEnable"},{name:"configComponent.bigScreen.border.border89Direction",type:6,value:0,enumList:[{value:0,option:"configComponent.bigScreen.border.border89DirectionForward"},{value:1,option:"configComponent.bigScreen.border.border89DirectionNegative"}],min:1,key:"spinDirection"}]}}}}):a.setZIndex(parseInt(i.detail.style.zIndex))})),this.ISMCavasContainer.on("cell:removed",(function(t){t.cell,t.current,t.previous;e.SyncLayerComponents(),e.setGroupList()}))}}),mounted:function(){var e=this,t=this.$route.params.uid;e.spinning=!0,this.getLayerDataStruct({pageType:this.isMobile,uuid:t,cb:function(){e.initCavasContainer(),e.spinning=!1}}),e.$EventBus.$on("ClickComponentsEvent",(function(t){var a=e.ISMCavasContainer.getCellById(t);e.ISMCavasContainer.select(a)}))}},D=(a("ef9d"),a("f276"),Object(v.a)(I,(function(){var e=this,t=e._self._c;return t("a-spin",{staticStyle:{height:"100%"},attrs:{spinning:e.spinning,size:"large",tip:"Loading..."}},[t("div",{staticClass:"x6-container",style:e.ContainerStyle},[e.UpdateRuler?t("div",{ref:"rulerHorizontal",staticClass:"ruler-horizontal"}):e._e(),e.UpdateRuler?t("div",{ref:"rulerVertical",staticClass:"ruler-vertical"}):e._e(),t("div",{ref:"ISMContainer",staticClass:"graph-container",class:Object(h.a)({"format-painter":e.isFormatPainterActive,animated:!0},"".concat(e.configData.layer.animate),!0)})])])}),[],!1,null,"5a24d60e",null)
/* harmony default export */.exports),M=a("6c65"),w={name:"toolBox",i18n:a("89fe"),extends:M.a,data:function(){return{iconIsShowSrc:"",iconIsShow:!1,showImg:!1,itemMore:!1,ShowMoreItemArray:[],customStyle:"background: #fff;border-radius: 4px;margin-bottom: 1px;border: 0;overflow: hidden",ShowMoreModel:!1,imgSrc:"",selectedIndex:[0]}},components:{},props:[],computed:Object(i.a)(Object(i.a)({},Object(p.e)({toolbox:function(e){return n.a.state.ISMDisPlayEditorTool.toolBoxList}})),{},{validResultsList:function(){return function(e){return e.slice(0,100)}},MoreItemList:function(){return function(e){return e.slice(100,e.length)}}}),created:function(){this.$nextTick((function(){this.itemMore=!1}))},methods:{SelectAccordion:function(e){this.itemMore=!1,this.ShowMoreModel=!1},ShowMoreItem:function(e){this.ShowMoreItemArray=e,this.ShowMoreModel=!0,this.itemMore=!0},clickImg:function(e){this.showImg=!0,
// 获取当前图片地址
this.imgSrc=e.currentTarget.src},clickIconImg:function(e){this.iconIsShow=!0,
// 获取当前图片地址
this.iconIsShowSrc=e},viewImg:function(){this.showImg=!1},onDragstart:function(e,t){
// let infoJson = JSON.stringify(info.info);
this.$emit("drag-start",t.info,e)}},mounted:function(){}},P=(a("b603"),Object(v.a)(w,(function(){var e=this,t=e._self._c;return t("div",{staticStyle:{"border-right":"0px solid #95B8E7",overflow:"hidden","overflow-y":"auto"}},[t("a-modal",{attrs:{id:"showImg",visible:e.showImg,footer:null},on:{cancel:e.viewImg}},[t("img",{staticStyle:{width:"100%"},attrs:{alt:"example",src:e.imgSrc}})]),t("a-modal",{attrs:{id:"iconIsShow",visible:e.iconIsShow,footer:null,width:"400px"},on:{cancel:function(t){e.iconIsShow=!1}}},[t("icon-font",{style:{fontSize:"256px"},attrs:{type:e.iconIsShowSrc}})],1),t("a-collapse",{attrs:{accordion:"",bordered:!1,"default-active-key":"1","expand-icon-position":"left"}},[e._l(e.toolbox,(function(a,i){return[t("a-collapse-panel",{key:i,style:e.customStyle,attrs:{header:e.$t(a.title)}},[t("div",{staticClass:"ism-toolbox",staticStyle:{"border-right":"0px solid #95B8E7",height:"300px",overflow:"hidden","overflow-y":"auto"}},[t("div",{staticClass:"toolbox-group scrollbar"},[e._l(e.validResultsList(a.items),(function(i,o){return[t("div",{key:o,staticClass:"toolbox-item",attrs:{draggable:"true"},on:{dragstart:function(t){return e.onDragstart(t,i)}}},[[t("div",{staticClass:"toolbox-item-icon"},[-1!=i.icon.indexOf("icon-")?t("div",[t("icon-font",{style:{fontSize:"32px"},attrs:{type:i.icon},on:{click:function(t){return e.clickIconImg(i.icon)}}})],1):-1!=i.icon.indexOf("svg-")?t("div",[t(i.info.type,{ref:"comp"+o,refInFor:!0,tag:"component",attrs:{IsToolBox:!0,detail:i.info,showDeviceUuid:""}})],1):t("div",[t("img",{staticStyle:{width:"32px",height:"32px"},attrs:{alt:"icon",src:i.icon},on:{click:function(t){return e.clickImg(t)}}})])]),a.isSequence?t("div",{staticClass:"toolbox-item-text"},[e._v(" "+e._s(e.$t(a.title))+e._s(o+1))]):t("div",{staticClass:"toolbox-item-text"},[e._v(" "+e._s(e.$t(i.text)))])]],2)]}))],2)]),a.items.length>100?t("a-icon",{attrs:{slot:"extra",type:"double-right"},on:{click:function(t){return e.ShowMoreItem(a)}},slot:"extra"}):e._e()],1)]}))],2),t("a-modal",{directives:[{name:"drag-modal",rawName:"v-drag-modal"}],attrs:{visible:e.itemMore,title:e.$t(e.ShowMoreItemArray.title),dialogStyle:{width:"300px",height:"500px","z-index":-1,left:"352px",top:"70px",position:"absolute"},iconCls:e.ShowMoreItemArray.icon,footer:null,destroyOnClose:!0,maskClosable:!1,maskStyle:{},mask:!1},on:{cancel:function(t){e.itemMore=!1}}},[t("div",{staticClass:"ism-toolbox",staticStyle:{"border-right":"0px solid #95B8E7"}},[Array.isArray(e.ShowMoreItemArray.items)&&e.ShowMoreItemArray.items.length>0?t("div",{staticClass:"toolbox-group scrollbar"},[e._l(e.MoreItemList(e.ShowMoreItemArray.items),(function(a,i){return[t("div",{key:i,staticClass:"toolbox-item",attrs:{draggable:"true"},on:{dragstart:function(t){return e.onDragstart(t,a)}}},[[t("div",{staticClass:"toolbox-item-icon"},[-1!=a.icon.indexOf("icon-")?t("div",[t("icon-font",{style:{fontSize:"32px"},attrs:{type:a.icon}})],1):-1!=a.icon.indexOf("svg-")?t("div",[t(a.info.type,{ref:"comp"+i,refInFor:!0,tag:"component",attrs:{IsToolBox:!0,detail:a.info,showDeviceUuid:""}})],1):t("div",[t("img",{staticStyle:{width:"32px",height:"32px"},attrs:{alt:"icon",src:a.icon},on:{click:function(t){return e.clickImg(t)}}})])]),e.ShowMoreItemArray.isSequence?t("div",{staticClass:"toolbox-item-text"},[e._v(" "+e._s(e.$t(e.ShowMoreItemArray.title))+e._s(i+21))]):t("div",{staticClass:"toolbox-item-text"},[e._v(" "+e._s(e.$t(a.text)))])]],2)]}))],2):e._e()])])],1)}),[],!1,null,"77756f08",null)
/* harmony default export */.exports),O={name:"ISMPageCanvas",i18n:a("89fe"),extends:M.a,data:function(){return{activeKey:1,customStyle:"background: #fff;border-radius: 4px;margin-bottom: 1px;border: 0;overflow: hidden",ShowMoreItemArray:[],showImg:!1,imgSrc:"",itemMore:!1,selectedIndex:[0]}},components:{},props:[],computed:Object(i.a)(Object(i.a)({},Object(p.e)({PageCanVasList:function(e){return n.a.state.ISMDisPlayEditorTool.PageCanVasList}})),{},{validResultsList:function(){return function(e){return e.slice(0,100)}},MoreItemList:function(){return function(e){return e.slice(100,e.length)}}}),created:function(){this.$nextTick((function(){this.itemMore=!1}))},methods:{SelectAccordion:function(e){this.itemMore=!1,this.ShowMoreModel=!1},ShowMoreItem:function(e){this.ShowMoreItemArray=e,this.ShowMoreModel=!0,this.itemMore=!0},clickImg:function(e){this.showImg=!0,
// 获取当前图片地址
this.imgSrc=e.currentTarget.src},viewImg:function(){this.showImg=!1},onDragstart:function(e,t){this.$emit("drag-start",t.info,e)}},mounted:function(){}},$=(a("6d17"),Object(v.a)(O,(function(){var e=this,t=e._self._c;return t("div",{staticStyle:{"border-right":"0px solid #95B8E7",overflow:"hidden","overflow-y":"auto"}},[t("a-collapse",{attrs:{accordion:"",bordered:!1,"default-active-key":"1","expand-icon-position":"left"}},[e._l(e.PageCanVasList,(function(a,i){return[t("a-collapse-panel",{key:i,style:e.customStyle,attrs:{header:e.$t(a.title)}},[t("div",{staticClass:"ism-toolbox",staticStyle:{"border-right":"0px solid #95B8E7",height:"300px",overflow:"hidden","overflow-y":"auto"}},[t("div",{staticClass:"toolbox-group scrollbar"},[e._l(e.validResultsList(a.items),(function(i,o){return[t("div",{key:o,staticClass:"toolbox-item",attrs:{draggable:"true"},on:{dragstart:function(t){return e.onDragstart(t,i)}}},[[t("div",{staticClass:"toolbox-item-icon"},[-1!=i.icon.indexOf("icon-")?t("div",[t("icon-font",{style:{fontSize:"32px"},attrs:{type:i.icon}})],1):-1!=i.icon.indexOf("svg-")?t("div",[t(i.info.type,{ref:"comp"+o,refInFor:!0,tag:"component",attrs:{IsToolBox:!0,detail:i.info,showDeviceUuid:""}})],1):t("div",[t("img",{staticStyle:{width:"32px",height:"32px"},attrs:{alt:"icon",src:i.icon},on:{click:function(t){return e.clickImg(t)}}})])]),a.isSequence?t("div",{staticClass:"toolbox-item-text"},[e._v(" "+e._s(e.$t(a.title))+e._s(o+1))]):t("div",{staticClass:"toolbox-item-text"},[e._v(" "+e._s(e.$t(i.text)))])]],2)]}))],2)]),a.items.length>100?t("a-icon",{attrs:{slot:"extra",type:"double-right"},on:{click:function(t){return e.ShowMoreItem(a)}},slot:"extra"}):e._e()],1)]}))],2),t("a-modal",{attrs:{id:"showImg",visible:e.showImg,footer:null},on:{cancel:e.viewImg}},[t("img",{staticStyle:{width:"100%"},attrs:{alt:"example",src:e.imgSrc}})]),t("a-modal",{directives:[{name:"drag-modal",rawName:"v-drag-modal"}],attrs:{visible:e.itemMore,title:e.$t(e.ShowMoreItemArray.title),dialogStyle:{width:"300px",height:"500px","z-index":-1,left:"352px",top:"70px",position:"absolute"},iconCls:e.ShowMoreItemArray.icon,footer:null,destroyOnClose:!0,maskClosable:!1,maskStyle:{},mask:!1},on:{cancel:function(t){e.itemMore=!1}}},[t("div",{staticClass:"ism-toolbox",staticStyle:{"border-right":"0px solid #95B8E7"}},[Array.isArray(e.ShowMoreItemArray.items)&&e.ShowMoreItemArray.items.length>0?t("div",{staticClass:"toolbox-group scrollbar"},[e._l(e.MoreItemList(e.ShowMoreItemArray.items),(function(a,i){return[t("div",{key:i,staticClass:"toolbox-item",attrs:{draggable:"true"},on:{dragstart:function(t){return e.onDragstart(t,a)}}},[[t("div",{staticClass:"toolbox-item-icon"},[-1!=a.icon.indexOf("icon-")?t("div",[t("icon-font",{style:{fontSize:"32px"},attrs:{type:a.icon}})],1):-1!=a.icon.indexOf("svg-")?t("div",[t(a.info.type,{ref:"comp"+i,refInFor:!0,tag:"component",attrs:{IsToolBox:!0,detail:a.info,showDeviceUuid:""}})],1):t("div",[t("img",{staticStyle:{width:"32px",height:"32px"},attrs:{alt:"icon",src:a.icon},on:{click:function(t){return e.clickImg(t)}}})])]),e.ShowMoreItemArray.isSequence?t("div",{staticClass:"toolbox-item-text"},[e._v(" "+e._s(e.$t(e.ShowMoreItemArray.title))+e._s(i+21))]):t("div",{staticClass:"toolbox-item-text"},[e._v(" "+e._s(e.$t(a.text)))])]],2)]}))],2):e._e()])])],1)}),[],!1,null,"38a546d3",null)
/* harmony default export */.exports),_=(a("a434"),a("456a")),L={name:"ISMResources",data:function(){return{AddPageType:[{name:"ISMResources.PageShowType",value:0},{name:"ISMResources.PageLoginType",value:1}],activeKey:["1"],selectTreeKey:0,AddPageVisible:!1,AddModelPageForm:this.$form.createForm(this),customStyle:"background: #fff;border-radius: 4px;margin-bottom: 1px;border: 0;overflow: hidden",codeArray:[],pageSize:"",pageType:1,checkPageInfo:null,PCPageCheckKey:[],PhonePageCheckKey:[],logging:!1,expandIconPosition:"left"}},i18n:a("89fe"),computed:Object(i.a)({},Object(p.e)({configObject:function(e){return n.a.state.ISMDisPlayEditorTool.selectedComponent},selectPageUuid:function(e){return n.a.state.ISMDisPlayEditorTool.selectPageUuid},configData:function(e){return n.a.state.ISMDisPlayEditorTool.LayerData},PCPageList:function(e){return n.a.state.ISMDisPlayEditorTool.PCPageList},PhonePageList:function(e){return n.a.state.ISMDisPlayEditorTool.PhonePageList},ISMCavasContainer:function(e){return n.a.state.ISMDisPlayEditorTool.ISMCavasContainer}})),watch:{configData:{handler:function(e,t){this.updateLayerDataStruct(e)},deep:!0}},components:{},methods:Object(i.a)(Object(i.a)(Object(i.a)({},Object(p.b)("ISMDisPlayEditorTool",["selectLayerDataStruct","saveLayerDataStruct","setGroupList","getLayerDataStruct","selectParentLayerDataStruct","updateLayerDataStruct","updateAllLayerDataStruct"])),Object(p.d)("ISMDisPlayEditorTool",["ClearRedo","ClearUndo","ClearisHistoryOp"])),{},{handleSelectPageSizeChange:function(e){this.pageSize=e},doSaveLayerData:function(e){var t=this,a={uuid:e,pageid:this.selectPageUuid,LayerData:null},i=JSON.parse(JSON.stringify(this.configData));i.components=this.ISMCavasContainer.toJSON(),a.LayerData=i,this.saveLayerDataStruct(a).then((function(e){if(200==e.data.code){var a=t.$route.params.uid;t.updateAllLayerDataStruct({pageType:t.isMobile,uuid:a,cb:function(){}})}else t.$message.error(t.$t("displayModel.SaveDataFailed"))}))},chargePage:function(e,t){if(t.selectedNodes.length>0){var a=t.selectedNodes[0].data.props.dataRef;a.isComponents?(this.selectParentLayerDataStruct(e[0]),this.$nextTick((function(){this.$EventBus.$emit("ClickComponentsEvent",e[0])}))):(e.length>0&&(this.selectTreeKey=e[0]),1==a.pageType?(this.PCPageCheckKey=e,this.PhonePageCheckKey=[]):(this.PhonePageCheckKey=e,this.PCPageCheckKey=[]),this.checkPageInfo=a,
//保存上个页面
this.doSaveLayerData(this.$route.params.uid),this.selectLayerDataStruct(a),document.title=a.AppName+" | "+a.title);
// this.setGroupList()
}},addModelPage:function(e,t){e.stopPropagation(),this.AddPageVisible=!0,this.pageType=t},addModelPageRequest:function(e){var t=this,a=this;this.AddModelPageForm.validateFields((function(e){if(!e){t.logging=!0;var i={modelUuid:t.$route.params.uid,name:t.AddModelPageForm.getFieldValue("PageName"),isLogin:t.AddModelPageForm.getFieldValue("PageType"),size:t.pageSize,pageType:parseInt(t.pageType)};Object(_.c)(i).then((function(e){4002==e.data.code?(a.$message.success(a.$t("ISMResources.PageAddSuccess"),3),a.getLayerDataStruct({uuid:a.$route.params.uid,cb:function(){a.spinning=!1}}),a.AddPageVisible=!1):4005==e.data.code?a.$message.error(a.$t("ISMResources.PageCountOut"),3):4006==e.data.code?a.$message.error(a.$t("ISMResources.LoginPageNoAuth"),3):a.$message.error(a.$t("ISMResources.PageAddFailed"),3)})).catch((function(){a.logging=!1,a.$message.error(a.$t("loginPage.serverError"),3)}))}}))},cancelEdit:function(e){if(1==e.pageType)for(var t=0;t<this.PCPageList.length;t++)this.PCPageList[t].isEdit=!1;else for(var a=0;a<this.PhonePageList.length;a++)this.PhonePageList[a].isEdit=!1},editPage:function(e){if(1==e.pageType){for(var t=0;t<this.PCPageList.length;t++)if(e.id==this.PCPageList[t].id){this.PCPageList[t].isEdit=!0;break}}else for(var a=0;a<this.PhonePageList.length;a++)if(e.id==this.PhonePageList[a].id){this.PhonePageList[a].isEdit=!0;break}},setHomePage:function(e){var t=this;this.logging=!0;var a={muid:e.pageModelUuid,pageid:e.pageUuid,pageType:e.pageType};Object(_.g)(a).then((function(a){if(4002==a.data.code)if(t.$message.success(t.$t("ISMResources.PageUpdateSuccess"),3),1==e.pageType)for(var i=0;i<t.PCPageList.length;i++)e.id==t.PCPageList[i].id?t.PCPageList[i].IsHome=1:t.PCPageList[i].IsHome=0;else for(var o=0;o<t.PhonePageList.length;o++)e.id==t.PhonePageList[o].id?t.PhonePageList[o].IsHome=1:t.PhonePageList[o].IsHome=0;else t.$message.error(t.$t("ISMResources.PageUpdateFailed"),3)})).catch((function(){t.logging=!1,t.$message.error(t.$t("loginPage.serverError"),3)}))},copyPage:function(e){var t=this;this.logging=!0;var a={muid:e.pageModelUuid,pageid:e.pageUuid,pageType:e.pageType};Object(_.d)(a).then((function(e){200==e.data.code?(t.$message.success(t.$t("ISMResources.PageUpdateSuccess"),3),t.getLayerDataStruct({uuid:t.$route.params.uid,cb:function(){t.spinning=!1}})):4005==e.data.code?t.$message.error(t.$t("ISMResources.PageCountOut"),3):t.$message.error(t.$t("ISMResources.PageUpdateFailed"),3)})).catch((function(){t.logging=!1,t.$message.error(t.$t("loginPage.serverError"),3)}))},SureEdit:function(e){var t=this;this.logging=!0;var a={modelUuid:e.pageModelUuid,pageUuid:e.pageUuid,name:e.title};Object(_.f)(a).then((function(a){if(4002==a.data.code){if(t.$message.success(t.$t("ISMResources.PageUpdateSuccess"),3),1==e.pageType){for(var i=0;i<t.PCPageList.length;i++)if(e.id==t.PCPageList[i].id){t.PCPageList[i].title=e.title,t.PCPageList[i].isEdit=!1;break}}else for(var o=0;o<t.PhonePageList.length;o++)if(e.id==t.PhonePageList[o].id){t.PhonePageList[o].title=e.title,t.PhonePageList[o].isEdit=!1;break}t.selectLayerDataStruct(e)}else t.$message.error(t.$t("ISMResources.PageUpdateFailed"),3)})).catch((function(){t.logging=!1,t.$message.error(t.$t("loginPage.serverError"),3)}))},delPage:function(e){var t=this;this.$confirm({content:t.$t("ISMResources.PageDelSure"),okText:t.$t("displayModel.ConfirmOk"),onOk:function(){var a={modelUuid:t.$route.params.uid,pageId:e.pageUuid};Object(_.e)(a).then((function(a){if(t.logging=!1,4002==a.data.code){if(t.$message.success(t.$t("displayModel.DelModelSuccess"),3),1==e.pageType){for(var i=0;i<t.PCPageList.length;i++)if(e.id==t.PCPageList[i].id){t.PCPageList.splice(i,1);break}}else for(var o=0;o<t.PhonePageList.length;o++)if(e.id==t.PhonePageList[o].id){t.PhonePageList.splice(o,1);break}}else t.$message.error(t.$t("displayModel.DelModelFailed"),3)}))},cancelText:t.$t("displayModel.ConfirmCancel"),onCancel:function(){}})}})},N=(a("31c4"),Object(v.a)(L,(function(){var e=this,t=e._self._c;return t("div",{staticStyle:{"border-right":"0px solid #95B8E7",overflow:"hidden","overflow-y":"auto"}},[t("a-collapse",{attrs:{bordered:!1,"expand-icon-position":e.expandIconPosition},model:{value:e.activeKey,callback:function(t){e.activeKey=t},expression:"activeKey"}},[t("a-collapse-panel",{key:"1",style:e.customStyle,attrs:{header:e.$t("ISMResources.PCHeader")}},[t("a-tooltip",{attrs:{slot:"extra",placement:"top"},slot:"extra"},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.$t("ISMResources.NewPage")))])]),t("icon-font",{staticStyle:{"font-size":"15px"},attrs:{type:"icon-xinjian3"},on:{click:function(t){return e.addModelPage(t,1)}}})],2),t("a-tree",{attrs:{multiple:!1,selectedKeys:e.PCPageCheckKey,treeData:e.PCPageList,blockNode:!0},on:{select:e.chargePage},scopedSlots:e._u([{key:"custom",fn:function(a){return[a.isEdit&&e.selectTreeKey==a.key?t("div",[t("a-input",{staticStyle:{width:"180px",height:"24px"},model:{value:a.title,callback:function(t){e.$set(a,"title",t)},expression:"item.title"}}),t("span",{staticClass:"tree-save_icon",on:{click:function(t){return e.SureEdit(a)}}},[t("a-icon",{attrs:{type:"check-circle"}})],1),t("span",{staticClass:"tree-cancle_icon",on:{click:function(t){return e.cancelEdit(a)}}},[t("a-icon",{attrs:{type:"close-circle"}})],1)],1):t("div",[t("span",{staticClass:"node-title",attrs:{title:a.title}},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.$t("ISMResources.PageTipsIsHome")))])]),1==a.IsHome?t("a-icon",{attrs:{type:"home"}}):t("span",{staticClass:"empty-home-ico"}),e._v(" "+e._s(a.title)+" ")],2),e.selectTreeKey==a.key?t("span",{staticStyle:{"margin-left":"0px"}},[1!=a.IsLogin?t("a-tooltip",{attrs:{placement:"top"}},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.$t("ISMResources.PageTipsHome")))])]),t("span",{staticClass:"icon-wrap",on:{click:function(t){return e.setHomePage(a)}}},[t("a-icon",{attrs:{type:"home"}})],1)],2):e._e(),t("a-tooltip",{attrs:{placement:"top"}},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.$t("ISMResources.PageTipsEdit")))])]),t("span",{staticClass:"icon-wrap",on:{click:function(t){return e.editPage(a)}}},[t("a-icon",{attrs:{type:"form"}})],1)],2),t("a-tooltip",{attrs:{placement:"top"}},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.$t("ISMResources.PageTipsCopy")))])]),t("span",{staticClass:"icon-wrap",on:{click:function(t){return e.copyPage(a)}}},[t("a-icon",{attrs:{type:"copy"}})],1)],2),t("a-tooltip",{attrs:{placement:"top"}},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.$t("ISMResources.PageTipsDel")))])]),t("span",{staticClass:"icon-wrap",on:{click:function(t){return e.delPage(a)}}},[t("a-icon",{attrs:{type:"delete"}})],1)],2)],1):e._e()])]}}])})],1),t("a-collapse-panel",{key:"2",style:e.customStyle,attrs:{header:e.$t("ISMResources.PhoneHeader")}},[t("a-tooltip",{attrs:{slot:"extra",placement:"top"},slot:"extra"},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.$t("ISMResources.NewPage")))])]),t("icon-font",{staticStyle:{"font-size":"15px"},attrs:{type:"icon-xinjian3"},on:{click:function(t){return e.addModelPage(t,0)}}})],2),t("a-tree",{attrs:{multiple:!1,selectedKeys:e.PhonePageCheckKey,treeData:e.PhonePageList,blockNode:!0},on:{select:e.chargePage},scopedSlots:e._u([{key:"custom",fn:function(a){return[a.isEdit&&e.selectTreeKey==a.key?t("div",[t("a-input",{staticStyle:{width:"180px",height:"24px"},model:{value:a.title,callback:function(t){e.$set(a,"title",t)},expression:"item.title"}}),t("span",{staticClass:"tree-save_icon",on:{click:function(t){return e.SureEdit(a)}}},[t("a-icon",{attrs:{type:"check-circle"}})],1),t("span",{staticClass:"tree-cancle_icon",on:{click:function(t){return e.cancelEdit(a)}}},[t("a-icon",{attrs:{type:"close-circle"}})],1)],1):t("div",[t("span",{staticClass:"node-title",attrs:{title:a.title}},[1==a.IsHome?t("a-icon",{attrs:{type:"home"}}):t("span",{staticClass:"empty-home-ico"}),e._v(" "+e._s(a.title)+" ")],1),e.selectTreeKey==a.key?t("span",{staticStyle:{"margin-left":"0px"}},[t("a-tooltip",{attrs:{placement:"top"}},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.$t("ISMResources.PageTipsHome")))])]),t("span",{staticClass:"icon-wrap",on:{click:function(t){return e.setHomePage(a)}}},[t("a-icon",{attrs:{type:"home"}})],1)],2),t("a-tooltip",{attrs:{placement:"top"}},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.$t("ISMResources.PageTipsEdit")))])]),t("span",{staticClass:"icon-wrap",on:{click:function(t){return e.editPage(a)}}},[t("a-icon",{attrs:{type:"form"}})],1)],2),t("a-tooltip",{attrs:{placement:"top"}},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.$t("ISMResources.PageTipsDel")))])]),t("span",{staticClass:"icon-wrap",on:{click:function(t){return e.delPage(a)}}},[t("a-icon",{attrs:{type:"delete"}})],1)],2)],1):e._e()])]}}])})],1)],1),t("a-modal",{directives:[{name:"drag-modal",rawName:"v-drag-modal"}],attrs:{destroyOnClose:!0,title:e.$t("ISMResources.NewPage")},model:{value:e.AddPageVisible,callback:function(t){e.AddPageVisible=t},expression:"AddPageVisible"}},[t("template",{slot:"footer"},[t("a-button",{attrs:{type:"primary"},on:{click:e.addModelPageRequest}},[e._v(" "+e._s(e.$t("displayModel.ModelSure"))+" ")]),t("a-button",{on:{click:function(t){e.AddPageVisible=!1}}},[e._v(" "+e._s(e.$t("displayModel.ModelCancel"))+" ")])],1),t("a-form",{attrs:{form:e.AddModelPageForm,"label-col":{span:5},"wrapper-col":{span:18}}},[t("a-form-item",{attrs:{label:e.$t("ISMResources.PageName")}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["PageName",{rules:[{required:!0,message:e.$t("ISMResources.PageName")}]}],expression:"['PageName', { rules: [{ required: true, message: $t('ISMResources.PageName') }] }]"}]})],1),t("a-form-item",{attrs:{label:e.$t("ISMResources.PageType")}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["PageType",{initialValue:0,rules:[{required:!0,message:e.$t("ISMResources.PageType")}]}],expression:"['PageType', { initialValue:0,rules: [{ required: true, message: $t('ISMResources.PageType') }] }]"}]},e._l(e.AddPageType,(function(a,i){return t("a-select-option",{key:i,attrs:{value:a.value}},[e._v(" "+e._s(e.$t(a.name))+" ")])})),1)],1),t("a-form-item",{attrs:{label:e.$t("ISMResources.PageSize")}},[1==e.pageType?t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["PageSize",{rules:[{required:!0,message:e.$t("ISMResources.PageSize"),whitespace:!0}]}],expression:"['PageSize', {rules: [{ required: true, message: $t('ISMResources.PageSize'), whitespace: true}]}]"}],attrs:{autocomplete:"autocomplete"},on:{change:e.handleSelectPageSizeChange}},[t("a-select-option",{attrs:{value:"1"}},[e._v("1920*1080 "+e._s(e.$t("ISMResources.PageSizeFirst")))]),t("a-select-option",{attrs:{value:"2"}},[e._v("1060*520")]),t("a-select-option",{attrs:{value:"3"}},[e._v("1440*900")]),t("a-select-option",{attrs:{value:"4"}},[e._v("1366*768")])],1):e._e(),0==e.pageType?t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["PageSize",{rules:[{required:!0,message:e.$t("ISMResources.PageSize"),whitespace:!0}]}],expression:"['PageSize', {rules: [{ required: true, message: $t('ISMResources.PageSize'), whitespace: true}]}]"}],attrs:{autocomplete:"autocomplete"},on:{change:e.handleSelectPageSizeChange}},[t("a-select-opt-group",[t("span",{staticStyle:{"font-size":"14px"},attrs:{slot:"label"},slot:"label"},[t("a-icon",{attrs:{type:"apple"}}),e._v(" iPhone")],1),t("a-select-option",{attrs:{value:"5"}},[e._v("iPhone 5/SE")]),t("a-select-option",{attrs:{value:"6"}},[e._v("iPhone XR")]),t("a-select-option",{attrs:{value:"7"}},[e._v("iPhone 12 Pro")]),t("a-select-option",{attrs:{value:"8"}},[e._v("iPad")]),t("a-select-option",{attrs:{value:"9"}},[e._v("iPad Pro")]),t("a-select-option",{attrs:{value:"10"}},[e._v("iPad Air")]),t("a-select-option",{attrs:{value:"11"}},[e._v("iPad Mini")]),t("a-select-option",{attrs:{value:"12"}},[e._v("iPhone 6/7/8")]),t("a-select-option",{attrs:{value:"13"}},[e._v("iPhone 6/7/8 Plus")]),t("a-select-option",{attrs:{value:"14"}},[e._v("iPhone X")])],1),t("a-select-opt-group",[t("span",{staticStyle:{"font-size":"14px"},attrs:{slot:"label"},slot:"label"},[t("a-icon",{attrs:{type:"android"}}),e._v(" Android")],1),t("a-select-option",{attrs:{value:"15"}},[e._v("Samsung Galaxy S8+")]),t("a-select-option",{attrs:{value:"16"}},[e._v("Samsung Galaxy S20 Ultra")]),t("a-select-option",{attrs:{value:"17"}},[e._v("Samsung Galaxy A15/71")])],1),t("a-select-opt-group",[t("span",{staticStyle:{"font-size":"14px"},attrs:{slot:"label"},slot:"label"},[t("a-icon",{attrs:{type:"tablet"}}),e._v(" "+e._s(e.$t("ISMResources.PageSizeDiy")))],1),t("a-select-option",{attrs:{value:"18"}},[e._v(e._s(e.$t("ISMResources.PageSizeDiy")))])],1)],1):e._e()],1)],1)],2)],1)}),[],!1,null,"0064b58f",null)
/* harmony default export */.exports),T={name:"MesToolBox",i18n:a("89fe"),extends:M.a,data:function(){return{iconIsShowSrc:"",iconIsShow:!1,showImg:!1,itemMore:!1,ShowMoreItemArray:[],customStyle:"background: #fff;border-radius: 4px;margin-bottom: 1px;border: 0;overflow: hidden",ShowMoreModel:!1,imgSrc:"",selectedIndex:[0]}},components:{},props:[],computed:Object(i.a)(Object(i.a)({},Object(p.e)({mestoolbox:function(e){return n.a.state.ISMDisPlayEditorTool.MesComponentsList}})),{},{validResultsList:function(){return function(e){return e.slice(0,100)}},MoreItemList:function(){return function(e){return e.slice(100,e.length)}}}),created:function(){this.$nextTick((function(){this.itemMore=!1}))},methods:{SelectAccordion:function(e){this.itemMore=!1,this.ShowMoreModel=!1},ShowMoreItem:function(e){this.ShowMoreItemArray=e,this.ShowMoreModel=!0,this.itemMore=!0},clickImg:function(e){this.showImg=!0,
// 获取当前图片地址
this.imgSrc=e.currentTarget.src},clickIconImg:function(e){this.iconIsShow=!0,
// 获取当前图片地址
this.iconIsShowSrc=e},viewImg:function(){this.showImg=!1},onDragstart:function(e,t){this.$emit("drag-start",t.info,e)}},mounted:function(){}},j=(a("ca39"),Object(v.a)(T,(function(){var e=this,t=e._self._c;return t("div",{staticStyle:{"border-right":"0px solid #95B8E7",overflow:"hidden","overflow-y":"auto"}},[t("a-modal",{attrs:{id:"showImg",visible:e.showImg,footer:null},on:{cancel:e.viewImg}},[t("img",{staticStyle:{width:"100%"},attrs:{alt:"example",src:e.imgSrc}})]),t("a-modal",{attrs:{id:"iconIsShow",visible:e.iconIsShow,footer:null,width:"400px"},on:{cancel:function(t){e.iconIsShow=!1}}},[t("icon-font",{style:{fontSize:"256px"},attrs:{type:e.iconIsShowSrc}})],1),t("a-collapse",{attrs:{accordion:"",bordered:!1,"default-active-key":"1","expand-icon-position":"left"}},[e._l(e.mestoolbox,(function(a,i){return[t("a-collapse-panel",{key:i,style:e.customStyle,attrs:{header:e.$t(a.title)}},[t("div",{staticClass:"ism-toolbox",staticStyle:{"border-right":"0px solid #95B8E7",height:"300px",overflow:"hidden","overflow-y":"auto"}},[t("div",{staticClass:"toolbox-group scrollbar"},[e._l(e.validResultsList(a.items),(function(i,o){return[t("div",{key:o,staticClass:"toolbox-item",attrs:{draggable:"true"},on:{dragstart:function(t){return e.onDragstart(t,i)}}},[[t("div",{staticClass:"toolbox-item-icon"},[-1!=i.icon.indexOf("icon-")?t("div",[t("icon-font",{style:{fontSize:"32px"},attrs:{type:i.icon},on:{click:function(t){return e.clickIconImg(i.icon)}}})],1):-1!=i.icon.indexOf("svg-")?t("div",[t(i.info.type,{ref:"comp"+o,refInFor:!0,tag:"component",attrs:{IsToolBox:!0,detail:i.info,showDeviceUuid:""}})],1):t("div",[t("img",{staticStyle:{width:"32px",height:"32px"},attrs:{alt:"icon",src:i.icon},on:{click:function(t){return e.clickImg(t)}}})])]),a.isSequence?t("div",{staticClass:"toolbox-item-text"},[e._v(" "+e._s(e.$t(a.title))+e._s(o+1))]):t("div",{staticClass:"toolbox-item-text"},[e._v(" "+e._s(e.$t(i.text)))])]],2)]}))],2)]),a.items.length>100?t("a-icon",{attrs:{slot:"extra",type:"double-right"},on:{click:function(t){return e.ShowMoreItem(a)}},slot:"extra"}):e._e()],1)]}))],2),t("a-modal",{directives:[{name:"drag-modal",rawName:"v-drag-modal"}],attrs:{visible:e.itemMore,title:e.$t(e.ShowMoreItemArray.title),dialogStyle:{width:"300px",height:"500px","z-index":-1,left:"352px",top:"70px",position:"absolute"},iconCls:e.ShowMoreItemArray.icon,footer:null,destroyOnClose:!0,maskClosable:!1,maskStyle:{},mask:!1},on:{cancel:function(t){e.itemMore=!1}}},[t("div",{staticClass:"ism-toolbox",staticStyle:{"border-right":"0px solid #95B8E7"}},[Array.isArray(e.ShowMoreItemArray.items)&&e.ShowMoreItemArray.items.length>0?t("div",{staticClass:"toolbox-group scrollbar"},[e._l(e.MoreItemList(e.ShowMoreItemArray.items),(function(a,i){return[t("div",{key:i,staticClass:"toolbox-item",attrs:{draggable:"true"},on:{dragstart:function(t){return e.onDragstart(t,a)}}},[[t("div",{staticClass:"toolbox-item-icon"},[-1!=a.icon.indexOf("icon-")?t("div",[t("icon-font",{style:{fontSize:"32px"},attrs:{type:a.icon}})],1):-1!=a.icon.indexOf("svg-")?t("div",[t(a.info.type,{ref:"comp"+i,refInFor:!0,tag:"component",attrs:{IsToolBox:!0,detail:a.info,showDeviceUuid:""}})],1):t("div",[t("img",{staticStyle:{width:"32px",height:"32px"},attrs:{alt:"icon",src:a.icon},on:{click:function(t){return e.clickImg(t)}}})])]),e.ShowMoreItemArray.isSequence?t("div",{staticClass:"toolbox-item-text"},[e._v(" "+e._s(e.$t(e.ShowMoreItemArray.title))+e._s(i+21))]):t("div",{staticClass:"toolbox-item-text"},[e._v(" "+e._s(e.$t(a.text)))])]],2)]}))],2):e._e()])])],1)}),[],!1,null,"718bf2f2",null)
/* harmony default export */.exports),B=a("7424"),U={name:"DiyToolBox",i18n:a("89fe"),extends:M.a,data:function(){return{localUpgradeUrl:B.DIYPICUPLOAD,iconIsShowSrc:"",iconIsShow:!1,showImg:!1,itemMore:!1,ShowMoreItemArray:[],customStyle:"background: #fff;border-radius: 4px;margin-bottom: 1px;border: 0;overflow: hidden",ShowMoreModel:!1,imgSrc:"",selectedIndex:[0]}},components:{},props:[],computed:Object(i.a)(Object(i.a)({},Object(p.e)({diytoolbox:function(e){return n.a.state.ISMDisPlayEditorTool.DiyComponentsList}})),{},{validResultsList:function(){return function(e){return e.slice(0,100)}},MoreItemList:function(){return function(e){return e.slice(100,e.length)}}}),created:function(){this.$nextTick((function(){this.itemMore=!1}))},methods:Object(i.a)(Object(i.a)({},Object(p.d)("ISMDisPlayEditorTool",["setDiyComponentsList"])),{},{beforeUpload:function(){this.$message.loading({content:this.$t("dataModel.opcuaModel.ImportNodeIDLoading"),duration:0})},localUpgradeCharge:function(e){this.dataSource=[];if(this.messageShowLoad=!0,"done"===e.file.status){var t=e.file.response;this.$message.destroy(),0==t.Code?(this.$message.success("".concat(e.file.name," ")+this.$t("SystemUpgrade.AuthUploadLoading")),this.GetUserCustomPel()):this.$message.error("".concat(e.file.name," ")+this.$t("SystemUpgrade.DiyFileSaveError"))}else if("uploading"===e.file.status);else if("error"===e.file.status){this.$message.loading(this.$t("SystemUpgrade.DiyFileSaveError"),0)}this.messageShowLoad=!1},GetUserCustomPel:function(){var e=this;Object(m.q)().then((function(t){if(0==t.data.code){var a=[];if(null!=t.data.list&&t.data.list.length>0){for(var i=0;i<t.data.list.length;i++)if(null!=t.data.list[i].FilePath&&t.data.list[i].FilePath.length>0){for(var o={title:t.data.list[i].DirName,icon:"icon-custom",opened:!1,items:[]},n=0;n<t.data.list[i].FilePath.length;n++){var s={text:"configComponent.image.Text",icon:"icon-xitongshezhi_tuxiang-copy",isFontIcon:!0,info:{type:"ism-view-png-image",action:[],dataBind:[],animate:{selected:[],condition:{deviceSN:"",selectVideoType:0,isBandDevice:!1,bandType:1,dataID:"",dataName:"",operator:"",OperatorValue:"",OperatorMaxValue:""},isExpression:!1,animateList:[{id:"Forbidden",name:"component.public.Forbidden"},{id:"blink",name:"component.public.animateBlink"},{id:"Zoom",name:"component.public.Zoom"},{id:"animateSpin",name:"component.public.animateSpin"}],animateElement:[{id:"blink",elementList:[{name:"component.public.animateSpeed",type:7,value:1,min:.1,key:"blinkSpeed"}]},{id:"millcolorGrad",elementList:[{name:"component.public.startColor",type:2,value:"#74f808",key:"startColor"},{name:"component.public.stopColor",type:2,value:"#f30b0b",key:"stopColor"},{name:"component.public.animateSpeed",type:7,value:1,min:.1,key:"animateSpeed"}]},{id:"animateSpin",elementList:[{name:"component.public.animateSpinSpeed",type:7,value:1,min:.1,key:"spinSpeed"},{name:"configComponent.bigScreen.border.border89Direction",type:6,value:0,enumList:[{value:0,option:"configComponent.bigScreen.border.border89DirectionForward"},{value:1,option:"configComponent.bigScreen.border.border89DirectionNegative"}],min:1,key:"spinDirection"}]}]},style:{position:{x:0,y:0,w:32,h:32},visible:1,backColor:"transparent",zIndex:-1,transform:0,imageURL:"",diy:[{name:"component.public.fillOpacity",type:7,value:1,min:0,max:1,key:"fillOpacity"}]}}};s.text="",s.icon=t.data.list[i].FilePath[n],s.info.style.imageURL=t.data.list[i].FilePath[n],o.items.push(s)}a.push(o)}e.setDiyComponentsList(a)}}}))},SelectAccordion:function(e){this.itemMore=!1,this.ShowMoreModel=!1},ShowMoreItem:function(e){this.ShowMoreItemArray=e,this.ShowMoreModel=!0,this.itemMore=!0},clickImg:function(e){this.showImg=!0,
// 获取当前图片地址
this.imgSrc=e.currentTarget.src},clickIconImg:function(e){this.iconIsShow=!0,
// 获取当前图片地址
this.iconIsShowSrc=e},viewImg:function(){this.showImg=!1},onDragstart:function(e,t){this.$emit("drag-start",t.info,e)}}),mounted:function(){}},E=(a("5751"),Object(v.a)(U,(function(){var e=this,t=e._self._c;return t("div",{staticStyle:{"border-right":"0px solid #95B8E7",overflow:"hidden","overflow-y":"auto"}},[t("a-modal",{attrs:{id:"showImg",visible:e.showImg,footer:null},on:{cancel:e.viewImg}},[t("img",{staticStyle:{width:"100%"},attrs:{alt:"example",src:e.imgSrc}})]),t("a-modal",{attrs:{id:"iconIsShow",visible:e.iconIsShow,footer:null,width:"400px"},on:{cancel:function(t){e.iconIsShow=!1}}},[t("icon-font",{style:{fontSize:"256px"},attrs:{type:e.iconIsShowSrc}})],1),t("a-upload",{staticStyle:{"margin-left":"20px"},attrs:{name:"file",multiple:!1,action:e.localUpgradeUrl,showUploadList:!1,beforeUpload:e.beforeUpload},on:{change:e.localUpgradeCharge}},[t("a-button",[t("a-icon",{attrs:{type:"upload"}}),e._v(" "+e._s(e.$t("displayConfig.uploadDiy")))],1)],1),t("a-collapse",{attrs:{accordion:"",bordered:!1,"default-active-key":"1","expand-icon-position":"left"}},[e._l(e.diytoolbox,(function(a,i){return[t("a-collapse-panel",{key:i,style:e.customStyle,attrs:{header:e.$t(a.title)}},[t("div",{staticClass:"ism-toolbox",staticStyle:{"border-right":"0px solid #95B8E7",height:"300px",overflow:"hidden","overflow-y":"auto"}},[t("div",{staticClass:"toolbox-group scrollbar"},[e._l(e.validResultsList(a.items),(function(i,o){return[t("div",{key:o,staticClass:"toolbox-item",attrs:{draggable:"true"},on:{dragstart:function(t){return e.onDragstart(t,i)}}},[[t("div",{staticClass:"toolbox-item-icon"},[-1!=i.icon.indexOf("icon-")?t("div",[t("icon-font",{style:{fontSize:"32px"},attrs:{type:i.icon},on:{click:function(t){return e.clickIconImg(i.icon)}}})],1):-1!=i.icon.indexOf("svg-")?t("div",[t(i.info.type,{ref:"comp"+o,refInFor:!0,tag:"component",attrs:{IsToolBox:!0,detail:i.info,showDeviceUuid:""}})],1):t("div",[t("img",{staticStyle:{width:"32px",height:"32px"},attrs:{alt:"icon",src:i.icon},on:{click:function(t){return e.clickImg(t)}}})])]),a.isSequence?t("div",{staticClass:"toolbox-item-text"},[e._v(" "+e._s(e.$t(a.title))+e._s(o+1))]):t("div",{staticClass:"toolbox-item-text"},[e._v(" "+e._s(e.$t(i.text)))])]],2)]}))],2)]),a.items.length>100?t("a-icon",{attrs:{slot:"extra",type:"double-right"},on:{click:function(t){return e.ShowMoreItem(a)}},slot:"extra"}):e._e()],1)]}))],2),t("a-modal",{directives:[{name:"drag-modal",rawName:"v-drag-modal"}],attrs:{visible:e.itemMore,title:e.$t(e.ShowMoreItemArray.title),dialogStyle:{width:"300px",height:"500px","z-index":-1,left:"352px",top:"70px",position:"absolute"},iconCls:e.ShowMoreItemArray.icon,footer:null,destroyOnClose:!0,maskClosable:!1,maskStyle:{},mask:!1},on:{cancel:function(t){e.itemMore=!1}}},[t("div",{staticClass:"ism-toolbox",staticStyle:{"border-right":"0px solid #95B8E7"}},[Array.isArray(e.ShowMoreItemArray.items)&&e.ShowMoreItemArray.items.length>0?t("div",{staticClass:"toolbox-group scrollbar"},[e._l(e.MoreItemList(e.ShowMoreItemArray.items),(function(a,i){return[t("div",{key:i,staticClass:"toolbox-item",attrs:{draggable:"true"},on:{dragstart:function(t){return e.onDragstart(t,a)}}},[[t("div",{staticClass:"toolbox-item-icon"},[-1!=a.icon.indexOf("icon-")?t("div",[t("icon-font",{style:{fontSize:"32px"},attrs:{type:a.icon}})],1):-1!=a.icon.indexOf("svg-")?t("div",[t(a.info.type,{ref:"comp"+i,refInFor:!0,tag:"component",attrs:{IsToolBox:!0,detail:a.info,showDeviceUuid:""}})],1):t("div",[t("img",{staticStyle:{width:"32px",height:"32px"},attrs:{alt:"icon",src:a.icon},on:{click:function(t){return e.clickImg(t)}}})])]),e.ShowMoreItemArray.isSequence?t("div",{staticClass:"toolbox-item-text"},[e._v(" "+e._s(e.$t(e.ShowMoreItemArray.title))+e._s(i+21))]):t("div",{staticClass:"toolbox-item-text"},[e._v(" "+e._s(e.$t(a.text)))])]],2)]}))],2):e._e()])])],1)}),[],!1,null,"774090cc",null)
/* harmony default export */.exports),A=(a("caad"),a("2532"),a("9911"),a("a4d3"),a("e01a"),a("7db0"),a("4ec9"),a("3ca3"),a("fffc"),a("ddb0"),a("a2db0")),V=a("dc3d"),R=a("600d"),z=(a("41fe"),a("c2f7")),F=a("d21d"),H=a("6260"),W=a("5c8a"),G=a("6878"),K={name:"ISMProperties",i18n:a("89fe"),components:{deviceDataModel:A.a,systemImageModel:u.a,systemVideoModel:V.a,VueHoverMask:z.a,codeEditor:H.a},data:function(){return{isFullscreen:!1,displayUUID:"",codePopUpValue:"",codePopUpValueIndex:0,codePopUpDialog:!1,ScriptDataSource:[],SQLReportList:[],RoleList:[],BandType:"",actionIndex:0,UpdateNodeDataFlag:!0,configurationModel:[],displayPageList:new Map,imageComponentData:"",videoComponentData:{},deviceTreeData:[],selectBandDataIndex:0,selectedIndex:[0,1],selectBandDiyDataIndex:0,selectImageType:0,customStyle:"background: #fff;border-radius: 4px;margin-bottom: 24px;border: 0;overflow: hidden",tabPosition:"top",tabIndex:0,StatusColumns:[{slotName:this.$t("configComponent.status.StatusValue"),scopedSlots:{customRender:"StatusValue",title:this.$t("configComponent.status.StatusValue")},width:"10%",align:"center",dataIndex:"value"},{slotName:this.$t("configComponent.status.StatusOpt"),scopedSlots:{customRender:"StatusOpt",title:this.$t("configComponent.status.StatusOpt")},width:"20%",align:"center",dataIndex:"StatusOpt"},{slotName:this.$t("configComponent.status.StatusValue2"),scopedSlots:{customRender:"StatusValue2",title:this.$t("configComponent.status.StatusValue2")},width:"10%",align:"center",dataIndex:"value2"},{slotName:this.$t("configComponent.status.StatusText"),scopedSlots:{customRender:"StatusText",title:this.$t("configComponent.status.StatusText")},width:"15%",align:"center",dataIndex:"Text"},{slotName:this.$t("configComponent.status.StatusTextColor"),scopedSlots:{customRender:"StatusTextColor",title:this.$t("configComponent.status.StatusTextColor")},width:"8%",align:"center",dataIndex:"TextColor"},{slotName:this.$t("configComponent.status.OptStatus"),scopedSlots:{customRender:"OptStatus",title:this.$t("configComponent.status.OptStatus")},width:"10%",align:"center"}],LineStatusColumns:[{slotName:this.$t("configComponent.status.StatusValue"),scopedSlots:{customRender:"StatusValue",title:this.$t("configComponent.status.StatusValue")},width:"10%",align:"center",dataIndex:"value"},{slotName:this.$t("configComponent.status.StatusOpt"),scopedSlots:{customRender:"StatusOpt",title:this.$t("configComponent.status.StatusOpt")},width:"7%",align:"center",dataIndex:"StatusOpt"},{slotName:this.$t("configComponent.status.StatusValue2"),scopedSlots:{customRender:"StatusValue2",title:this.$t("configComponent.status.StatusValue2")},width:"10%",align:"center",dataIndex:"value2"},{slotName:this.$t("configComponent.status.LineStatusBlink"),scopedSlots:{customRender:"LineStatusBlink",title:this.$t("configComponent.status.LineStatusBlink")},width:"7%",align:"center",dataIndex:"LineStatusBlink"},{slotName:this.$t("configComponent.status.LineStatusBlinkSpeed"),scopedSlots:{customRender:"LineStatusBlinkSpeed",title:this.$t("configComponent.status.LineStatusBlinkSpeed")},width:"12%",align:"center",dataIndex:"BlinkSpeed"},{slotName:this.$t("configComponent.status.StatusTextColor"),scopedSlots:{customRender:"StatusTextColor",title:this.$t("configComponent.status.StatusTextColor")},width:"5%",align:"center",dataIndex:"TextColor"},{slotName:this.$t("configComponent.status.OptStatus"),scopedSlots:{customRender:"OptStatus",title:this.$t("configComponent.status.OptStatus")},width:"10%",align:"center"}],ComBoxStatusColumns:[{slotName:this.$t("configComponent.status.ComBoxValue"),scopedSlots:{customRender:"ComBoxValue",title:this.$t("configComponent.status.ComBoxValue")},width:"20%",align:"center",dataIndex:"value"},{slotName:this.$t("configComponent.status.StatusText"),scopedSlots:{customRender:"StatusText",title:this.$t("configComponent.status.StatusText")},width:"30%",align:"center",dataIndex:"Text"},{slotName:this.$t("configComponent.status.OptStatus"),scopedSlots:{customRender:"OptStatus",title:this.$t("configComponent.status.OptStatus")},width:"10%",align:"center"}],DropMenuColumns:[{slotName:this.$t("configComponent.status.MenuText"),scopedSlots:{customRender:"MenuText",title:this.$t("configComponent.status.MenuText")},width:"20%",align:"center",dataIndex:"MenuName"},{slotName:this.$t("configComponent.status.AppListName"),scopedSlots:{customRender:"APPListName",title:this.$t("configComponent.status.AppListName")},width:"20%",align:"center",dataIndex:"DisplayUUID"},{slotName:this.$t("configComponent.status.MenuPageName"),scopedSlots:{customRender:"MenuPageName",title:this.$t("configComponent.status.MenuPageName")},width:"20%",align:"center",dataIndex:"PageID"},{slotName:this.$t("configComponent.status.MenuPagePop"),scopedSlots:{customRender:"MenuPagePop",title:this.$t("configComponent.status.MenuPagePop")},width:"10%",align:"center",dataIndex:"IsPopUp"},{slotName:this.$t("configComponent.status.OptStatus"),scopedSlots:{customRender:"OptStatus",title:this.$t("configComponent.status.OptStatus")},width:"10%",align:"center"}],ImagesStatusColumns:[{slotName:this.$t("configComponent.status.StatusValue"),scopedSlots:{customRender:"StatusValue",title:this.$t("configComponent.status.StatusValue")},width:"10%",align:"center",dataIndex:"value"},{slotName:this.$t("configComponent.status.StatusOpt"),scopedSlots:{customRender:"StatusOpt",title:this.$t("configComponent.status.StatusOpt")},width:"17%",align:"center",dataIndex:"StatusOpt"},{slotName:this.$t("configComponent.status.StatusValue2"),scopedSlots:{customRender:"StatusValue2",title:this.$t("configComponent.status.StatusValue2")},width:"10%",align:"center",dataIndex:"value2"},{slotName:this.$t("configComponent.status.ImageTitle"),scopedSlots:{customRender:"ImageTitle",title:this.$t("configComponent.status.ImageTitle")},width:"20%",align:"center",dataIndex:"Image"},{slotName:this.$t("configComponent.status.OptStatus"),scopedSlots:{customRender:"OptStatus",title:this.$t("configComponent.status.OptStatus")},width:"10%",align:"center"}],fontFamilyOptions:["黑体","楷体","隶书","宋体","数字字体-1","数字字体-2","数字字体-3","数字字体-4","数字字体-5","数字字体-6","数字字体-7","数字字体-8","数字字体-9","数字字体-10","数字字体-11","数字字体-12"],textAlignOptions:["left","right","center","justify"],borderStyleOptions:["solid","dashed","dotted"],whOptions:["1024x768","1366x768","1280x800","1440x900","1600x900","1920x1080","Custom"],layerWHTemp:""}},watch:{},computed:Object(i.a)(Object(i.a)({layerWH:{get:function(){return this.getLayerWH()},set:function(e){this.setLayerWH(e)}}},Object(p.e)({LayerData:function(e){return n.a.state.ISMDisPlayEditorTool.LayerData},GroupList:function(e){return n.a.state.ISMDisPlayEditorTool.GroupList},selectedComponents:function(e){return n.a.state.ISMDisPlayEditorTool.selectedComponents},selectedComponentMap:function(e){return n.a.state.ISMDisPlayEditorTool.selectedComponentMap},isLayer:function(e){return n.a.state.ISMDisPlayEditorTool.selectedIsLayer},configObject:function(e){return n.a.state.ISMDisPlayEditorTool.selectedComponent},PCPageList:function(e){return n.a.state.ISMDisPlayEditorTool.PCPageList},PhonePageList:function(e){return n.a.state.ISMDisPlayEditorTool.PhonePageList},selectPageUuid:function(e){return n.a.state.ISMDisPlayEditorTool.selectPageUuid},animates:function(e){return n.a.state.setting.componentAnimates},selectedNode:function(e){return n.a.state.ISMDisPlayEditorTool.selectedNode},selectedNodePops:function(e){return n.a.state.ISMDisPlayEditorTool.selectedNodePops},ISMCavasContainer:function(e){return n.a.state.ISMDisPlayEditorTool.ISMCavasContainer}})),{},{animations:function(){var e=[];return"dashed"==this.configObject.type&&(e=this.configObject.direction&&"vertical"==this.configObject.direction?[{label:"向上",value:"up"},{label:"向下",value:"down"}]:[{label:"向右",value:"right"},{label:"向左",value:"left"}]),e}}),created:function(){this.getMonitorTree(),this.SystemRolesList(),this.GetScriptList(),this.GetSQLReportTemplates()},methods:Object(i.a)(Object(i.a)(Object(i.a)({},Object(p.b)("ISMDisPlayEditorTool",["getLayerDataStruct","setGroupList"])),Object(p.d)("ISMDisPlayEditorTool",["execute"])),{},{toggleEditorFullscreen:function(){this.isFullscreen=!this.isFullscreen;var e=document.querySelector(".CodeMirror");this.isFullscreen?e.classList.add("editor-fullscreen"):e.classList.remove("editor-fullscreen")},UpdateNode:function(){var e=this,t=this.selectedNodePops.data,a=this.selectedNodePops,i=a.angle,o=a.visible;this.selectedNode.setZIndex(parseInt(t.detail.style.zIndex)),this.selectedNode.rotate(parseInt(i),{absolute:!0}),this.selectedNode.setVisible(o,{silent:!0}),this.selectedNode.position(parseInt(a.position.x),parseInt(a.position.y)),this.selectedNode.resize(parseInt(a.size.width),parseInt(a.size.height)),t.detail.style.position.x=a.position.x,t.detail.style.position.y=a.position.y,t.detail.style.position.w=a.size.width,t.detail.style.position.h=a.size.height,this.UpdateNodeDataFlag=!this.UpdateNodeDataFlag;var n=this.selectedNode.getData(),s=Object(W.a)(n);s.UpdateNodeFlag=this.UpdateNodeDataFlag,s.detail=t.detail,this.ISMCavasContainer.batchUpdate((function(){e.selectedNode.setData(s,{overwrite:!0})}))},UpdateNodeData:function(){var e=this,t=this.selectedNodePops.data,a=this.selectedNodePops,i=1==t.detail.style.visible;this.selectedNode.setZIndex(parseInt(t.detail.style.zIndex)),this.selectedNode.setVisible(i,{silent:!1});var o=this.configObject;if(this.selectedNode.isEdge()){var n,s,l=o,r=0,c=4,d=3,u="",p="",m=1,f=0,g=25,v="round";for(r=0;r<l.style.diy.length;r++)if("strokeWidth"==l.style.diy[r].key)c=parseInt(l.style.diy[r].value);else if("MoveBrokenLineInterval"==l.style.diy[r].key)d=parseInt(l.style.diy[r].value);else if("strokeLength"==l.style.diy[r].key)p=l.style.diy[r].value;else if("strokeSpace"==l.style.diy[r].key)u=l.style.diy[r].value;else if("spinDirection"==l.style.diy[r].key)m=parseInt(l.style.diy[r].value);else if("MoveBrokenLineConditionEnable"==l.style.diy[r].key)f=parseInt(l.style.diy[r].value);else if("strokeBgWidth"==l.style.diy[r].key)g=parseInt(l.style.diy[r].value);else if("strokeLinejoin"==l.style.diy[r].key){var y=parseInt(l.style.diy[r].value);0==y?v="miter":2==y?v="bevel":1==y&&(v="round")}s=l.style.foreColor,n=l.style.backColor;var h="",b=p+" "+u;h=f?"":0==m?"ant-line-forward "+d+"s infinite linear":"ant-line-inverse "+d+"s infinite linear";var S=this.selectedNode.prop();if(void 0!==S.connectType&&"connected-edge"==S.connectType){var C=0,x="classic",k=10,I=10,D="#06ad8e";for(r=0;r<l.style.diy.length;r++)if("strokeLineType"==l.style.diy[r].key)1==parseInt(l.style.diy[r].value)&&(b="");else if("strokeLineMarkerStyle"==l.style.diy[r].key){var M=parseInt(l.style.diy[r].value);0==M?x="classic":1==M?x="diamond":2==M?x="cross":3==M?x="circle":4==M?x="circlePlus":5==M&&(x="ellipse")}else"strokeLineMarker"==l.style.diy[r].key?C=parseInt(l.style.diy[r].value):"strokeLineMarkerColor"==l.style.diy[r].key?D=l.style.diy[r].value:"strokeLineMarkerWidth"==l.style.diy[r].key?k=parseInt(l.style.diy[r].value):"strokeLineMarkerHeight"==l.style.diy[r].key&&(I=parseInt(l.style.diy[r].value));0==C&&(x=""),this.selectedNode.setAttrs({line:{strokeOpacity:o.style.opacity,style:{strokeDasharray:b,stroke:""!=s?s:"none",strokeWidth:c,strokeLinejoin:v,animation:h},sourceMarker:{name:x,width:k,fill:D,stroke:D,height:I},targetMarker:{fill:D,stroke:D,name:x,width:k,height:I}},wrap:{strokeOpacity:o.style.opacity,stroke:""!=n?n:"none",strokeWidth:g,strokeLinejoin:v}})}else this.selectedNode.setAttrs({line:{strokeOpacity:o.style.opacity,style:{strokeDasharray:b,stroke:""!=s?s:"none",strokeWidth:c,strokeLinejoin:v,animation:h}},wrap:{strokeOpacity:o.style.opacity,stroke:""!=n?n:"none",strokeWidth:g,strokeLinejoin:v}})}else{this.configObject.style.position.x=a.position.x,this.configObject.style.position.y=a.position.y,this.configObject.style.position.w=a.size.width,this.configObject.style.position.h=a.size.height,this.UpdateNodeDataFlag=!this.UpdateNodeDataFlag;var w=this.selectedNode.getData(),P=Object(W.a)(w);P.UpdateNodeFlag=(new Date).getTime(),P.detail=o,this.ISMCavasContainer.batchUpdate((function(){e.selectedNode.setData(P,{overwrite:!0})}))}this.setGroupList()},CodeDbClick:function(e){this.codePopUpDialog=!0,this.codePopUpValue=this.configObject.style.diy[e].value,this.codePopUpValueIndex=e,this.UpdateNodeData()},chargeGroupIDVisible:function(e){var t=1==e;this.UpdateNodeData();var a=this.selectedNode.getChildren();null!=a&&a.forEach((function(e){e.setVisible(t);var a=e.getData();a.UpdateNodeFlag=(new Date).getTime(),a.detail.style.visible=t,e.setData(a,{overwrite:!0})}))},chargeGroupID:function(e){if(void 0===e)for(var t in this.selectedComponentMap){for(var a=0,i=this.LayerData.components.length;a<i;a++)if(this.LayerData.components[a].identifier==t){this.LayerData.components[a].groupID="",this.LayerData.components[a].GroupName="";break}break}else{var o=this.getGroupList.find((function(t){return t.ID==e}));if(void 0===o)return;for(var n in this.selectedComponentMap)for(var s=0,l=this.LayerData.components.length;s<l;s++)this.LayerData.components[s].identifier==n&&(this.LayerData.components[s].groupID=e,this.LayerData.components[s].GroupName=o.Name)}this.setGroupList()},chargeGroupName:function(e){for(var t in this.selectedComponentMap){for(var a=this.selectedComponentMap[t].groupID,i=0,o=this.LayerData.components.length;i<o;i++)void 0!==this.LayerData.components[i].groupID&&""!=this.LayerData.components[i].groupID&&this.LayerData.components[i].groupID==a&&(this.LayerData.components[i].GroupName=e.target.value);break}this.setGroupList()},changeCodeTextarea:function(e){this.configObject.style.diy[this.codePopUpValueIndex].value=e,this.UpdateNodeData()},GetScriptList:function(){var e=this;this.ScriptDataSource=[],Object(F.e)().then((function(t){e.refIconLoading=!1,200==t.data.code?(e.ScriptDataSource=t.data.list,e.addVisible=!1):2001==t.data.code?e.$message.error(e.$t("displayModel.ModelExist"),3):2003==t.data.code&&e.$message.error(e.$t("displayModel.AddModelFailed"),3)}))},SelectTreeDevice:function(e,t,a){var i=a.selectedNodes[0].data.props.dataRef;void 0===this.configObject.action[this.actionIndex].DeviceView&&(this.configObject.action[this.actionIndex].DeviceView={key:"",showUUID:"",showPageUUID:"",type:"",selectKey:"",isPopUp:!1}),this.configObject.action[this.actionIndex].DeviceView.key=i.key,this.configObject.action[this.actionIndex].DeviceView.showUUID=i.value.configUid,this.configObject.action[this.actionIndex].DeviceView.showPageUUID=i.value.PageUUID,this.configObject.action[this.actionIndex].DeviceView.type=i.value.type,this.configObject.action[this.actionIndex].DeviceView.selectKey=i.key,this.UpdateNodeData()},SystemRolesList:function(){var e=this;e.RoleList=[],this.messageShowLoad=!0,Object(m.E)().then((function(t){0==t.data.code&&(e.RoleList=t.data.list)})).finally((function(t){e.messageShowLoad=!1}))},GetDisplayPage:function(e){var t={muid:e},a=this;Object(_.n)(t).then((function(t){if(0==t.data.code){var i=t.data.layer;if(i.length>0){for(var o=[],n=0;n<i.length;n++)if(1!=i[n].IsLogin){var s={};s.label=i[n].PageName,s.value=i[n].PageId,s.pageType=i[n].PageType,s.pageModelUuid=i[n].modelId,o.push(s)}a.displayPageList.set(e,o)}}}))},getConfigurationModel:function(){this.configurationModel=[];var e=this;Object(_.m)({type:1}).then((function(t){var a={};if(null!=t.data.list)for(var i=0;i<t.data.list.length;i++)a.name=t.data.list[i].name,a.description=t.data.list[i].description,a.uuid=t.data.list[i].displayUid,e.configurationModel.push(a),a={},e.GetDisplayPage(t.data.list[i].displayUid)}))},onExpressionChange:function(e){this.UpdateNodeData()},GetSystemFonts:function(){Object(m.D)().then((function(e){}))},addStatus:function(){this.configObject.active[0].condition.StatusList.push({Text:"Text",Image:"",value:0}),this.UpdateNodeData()},addMenu:function(){var e={MenuName:"菜单",IsPopUp:!1,DisPlayID:this.$route.params.uid,PageID:""};this.configObject.active[0].condition.PageList.push(e),this.UpdateNodeData()},getMonitorTree:function(){var e=this;this.deviceTreeData=[],Object(R.j)().then((function(t){0==t.data.code&&(e.deviceTreeData=t.data.list)}))},getLayerWH:function(){var e=null;return this.LayerData.layer.width&&this.LayerData.layer.height||(this.LayerData.layer.width=1600,this.LayerData.layer.height=900),""==this.layerWHTemp?(e=this.LayerData.layer.width+"x"+this.LayerData.layer.height,-1==this.whOptions.indexOf(e,0)?this.layerWHTemp="Custom":this.layerWHTemp=e):(e=this.LayerData.layer.width+"x"+this.LayerData.layer.height,-1==this.whOptions.indexOf(e,0)&&(this.layerWHTemp="Custom")),this.layerWHTemp},setLayerWH:function(e){if(this.layerWHTemp=e,"Custom"==e);else{var t=e.split("x");this.LayerData.layer.width=parseInt(t[0]),this.LayerData.layer.height=parseInt(t[1])}},initPage:function(e){this.configData=e},changeTab:function(e){this.tabIndex=e},generateTargetComponentOptions:function(){var e=[];return this.LayerData.components.forEach((function(t){
// if (this.configObject.identifier != component.identifier) {
e.push({label:t.name||t.type,value:t.identifier});
// }
})),e},generateTargetPage:function(e){return this.displayPageList.get(e)},onSelectData:function(e){"data"==this.BandType?(this.configObject.dataBind[this.selectBandDataIndex].DeviceName=e.DeviceName,this.configObject.dataBind[this.selectBandDataIndex].isBandDevice=e.IsDevice,this.configObject.dataBind[this.selectBandDataIndex].deviceSN=e.DeviceSN,this.configObject.dataBind[this.selectBandDataIndex].dataName=e.name,this.configObject.dataBind[this.selectBandDataIndex].dataID=e.uuid):"active"==this.BandType?(this.configObject.active[this.selectBandDataIndex].DeviceName=e.DeviceName,this.configObject.active[this.selectBandDataIndex].condition.isBandDevice=e.IsDevice,this.configObject.active[this.selectBandDataIndex].condition.deviceSN=e.DeviceSN,this.configObject.active[this.selectBandDataIndex].condition.dataName=e.name,this.configObject.active[this.selectBandDataIndex].condition.dataID=e.uuid,this.configObject.active[this.selectBandDataIndex].condition.dataUnit=e.unit,this.configObject.active[this.selectBandDataIndex].condition.DeviceName=e.DeviceName):"animate"==this.BandType?(this.configObject.animate.condition.DeviceName=e.DeviceName,this.configObject.animate.condition.isBandDevice=e.IsDevice,this.configObject.animate.condition.deviceSN=e.DeviceSN,this.configObject.animate.condition.dataName=e.name,this.configObject.animate.condition.dataID=e.uuid):"animateMoveX"==this.BandType?(this.configObject.animate.move.x.DeviceName=e.DeviceName,this.configObject.animate.move.x.isBandDevice=e.IsDevice,this.configObject.animate.move.x.deviceSN=e.DeviceSN,this.configObject.animate.move.x.dataName=e.name,this.configObject.animate.move.x.dataID=e.uuid):"animateMoveY"==this.BandType?(this.configObject.animate.move.y.DeviceName=e.DeviceName,this.configObject.animate.move.y.isBandDevice=e.IsDevice,this.configObject.animate.move.y.deviceSN=e.DeviceSN,this.configObject.animate.move.y.dataName=e.name,this.configObject.animate.move.y.dataID=e.uuid):"setValue"==this.BandType&&(this.configObject.action[this.actionIndex].setValue[this.selectBandDataIndex].DeviceName=e.DeviceName,this.configObject.action[this.actionIndex].setValue[this.selectBandDataIndex].isBandDevice=e.IsDevice,this.configObject.action[this.actionIndex].setValue[this.selectBandDataIndex].deviceSN=e.DeviceSN,this.configObject.action[this.actionIndex].setValue[this.selectBandDataIndex].dataName=e.name,this.configObject.action[this.actionIndex].setValue[this.selectBandDataIndex].dataID=e.uuid),this.UpdateNodeData()},ShowDeviceDataModel:function(e,t){this.selectBandDataIndex=e,this.BandType=t,this.$refs.deviceDataModel.showDataModal()},changeAction:function(e,t){if("SetValue"==e){void 0===this.configObject.action[t].setValue&&(this.configObject.action[t].setValue=[{deviceSN:"",IsManual:!1,AutoSetValue:"",isBandDevice:!1,dataID:"",dataName:""}]),0==this.configObject.action[t].setValue.length&&this.configObject.action[t].setValue.push({deviceSN:"",IsManual:!1,AutoSetValue:"",isBandDevice:!1,dataID:"",dataName:""})}else"Animation"==e?this.configObject.animate.isExpression=!0:"visible"==e&&this.setGroupList();void 0===this.configObject.action[t].DeviceView&&(this.configObject.action[t].DeviceView={key:"",showUUID:"",showPageUUID:"",type:"",selectKey:"",isPopUp:!1}),void 0===this.configObject.action[t].link&&(this.configObject.action[t].link={linkType:"Inside",Inside:{displayUUID:"",pageUUID:""},isPopUp:!1,External:"",OpenExternalType:"new"}),void 0===this.configObject.action[t].RestApi&&(this.configObject.action[t].RestApi={Name:"",IsSystem:"1",Type:"Post",Url:"",Params:"{}"}),void 0===this.configObject.action[t].setValue&&(this.configObject.action[t].setValue=[{deviceSN:"",IsManual:!1,AutoSetValue:"",isBandDevice:!1,dataID:"",dataName:""}]),void 0===this.configObject.action[t].SysScript&&(this.configObject.action[t].SysScript=[{ScriptList:[]}]),void 0===this.configObject.action[t].Animation&&(this.configObject.animate.isExpression=!0,this.configObject.action[t].Animation={animationStatus:"",selected:[]}),this.UpdateNodeData()},addBindSetValue:function(e){void 0===this.configObject.action[e].setValue?this.configObject.action[e].setValue=[{deviceSN:"",IsManual:!1,AutoSetValue:"",isBandDevice:!1,dataID:"",dataName:""}]:this.configObject.action[e].setValue.push({deviceSN:"",IsManual:!1,AutoSetValue:"",isBandDevice:!1,dataID:"",dataName:""}),this.UpdateNodeData()},addBindActive:function(){var e={id:c.a.v1(),name:"displayConfig.Properties.ComponentBandData",result:"",isExpression:!1,condition:{deviceSN:"",selectVideoType:0,isBandDevice:!1,bandType:1,dataID:"",dataUnit:"",dataName:"",operator:"",OperatorValue:"",OperatorMaxValue:""}};this.configObject.active.push(e),this.UpdateNodeData()},addBindAction:function(){this.configObject.action.push({type:"click",action:"SetValue",actionAuth:[],ActionPassword:"",link:{linkType:"Inside",Inside:{displayUUID:"",pageUUID:""},isPopUp:!1,autoClose:!1,External:"",OpenExternalType:"new"},setValue:[{deviceSN:"",IsManual:!1,AutoSetValue:"",isBandDevice:!1,dataID:"",dataName:""}],RestApi:{Name:"",IsSystem:"1",Type:"Post",Url:"",Params:"{}"},SysScript:{ScriptList:[]},DeviceView:{key:"",showUUID:"",showPageUUID:"",type:"",selectKey:"",isPopUp:!1},Animation:{animationStatus:""},showItems:[],hideItems:[]}),this.UpdateNodeData()},delBindAction:function(e){var t=this;this.$confirm({content:t.$t("displayConfig.Properties.ComponentDelBandActionBtnTips"),okText:t.$t("displayModel.ConfirmOk"),onOk:function(){t.configObject.action.splice(e,1),t.UpdateNodeData()},cancelText:t.$t("displayModel.ConfirmCancel"),onCancel:function(){}})},delBindActive:function(e){var t=this;this.$confirm({content:t.$t("displayConfig.Properties.ComponentDelBandActiveBtnTips"),okText:t.$t("displayModel.ConfirmOk"),onOk:function(){t.configObject.active.splice(e,1),t.UpdateNodeData()},cancelText:t.$t("displayModel.ConfirmCancel"),onCancel:function(){}})},delBindSetValue:function(e,t){var a=this;this.$confirm({content:a.$t("displayConfig.Properties.DeleteSetValueTips"),okText:a.$t("displayModel.ConfirmOk"),onOk:function(){a.configObject.action[e].setValue.splice(t,1),a.UpdateNodeData()},cancelText:a.$t("displayModel.ConfirmCancel"),onCancel:function(){}})},showSystemImageModel:function(e,t,a){this.$refs.systemImageModel.showModal(a),this.selectImageType=e,this.selectBandDiyDataIndex=t,0==this.selectImageType?this.imageComponentData=this.LayerData.layer.backgroundImage:1==this.selectImageType?this.imageComponentData=this.configObject.style.diy[this.selectBandDiyDataIndex].value:2==this.selectImageType&&(this.imageComponentData=this.configObject.active[0].condition.StatusList[t].Image),this.UpdateNodeData()},showSystemVideoModel:function(e,t){this.$refs.systemVideoModel.showModal(),this.selectBandDiyDataIndex=t,0==this.configObject.style.diy[this.selectBandDiyDataIndex].value.type?this.videoComponentData=this.configObject.style.diy[this.selectBandDiyDataIndex].value:this.videoComponentData={},this.UpdateNodeData()},onSelectImage:function(e){0==this.selectImageType?this.LayerData.layer.backgroundImage=e:1==this.selectImageType?this.configObject.style.diy[this.selectBandDiyDataIndex].value=e:2==this.selectImageType&&(this.configObject.active[0].condition.StatusList[this.selectBandDiyDataIndex].Image=e),this.UpdateNodeData()},onSelectVideo:function(e){this.configObject.style.diy[this.selectBandDiyDataIndex].value=e,this.UpdateNodeData()},GetSQLReportTemplates:function(){var e=this;this.SQLReportList=[],Object(G.e)().then((function(t){0==t.data.code&&(null==t.data.list?e.SQLReportList=[]:e.SQLReportList=t.data.list)})).finally((function(e){}))}}),mounted:function(){this.getConfigurationModel()}},q=(a("57e4"),Object(v.a)(K,(function(){var e=this,t=e._self._c;return t("div",{staticStyle:{overflow:"hidden","overflow-y":"auto"}},[null!=e.configObject&&0==e.isLayer?[t("a-tabs",{staticStyle:{width:"420px","max-width":"600px","border-color":"#95B8E7"},attrs:{"default-active-key":"1","tab-position":e.tabPosition}},[t("a-tab-pane",{key:"1",staticStyle:{padding:"5px"},attrs:{tab:e.$t("displayConfig.Properties.TabHeaterStyle")}},[t("a-form",{attrs:{"label-col":{span:7},"wrapper-col":{span:16}}},[t("div",[t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentName")}},[t("a-input",{model:{value:e.configObject.name,callback:function(t){e.$set(e.configObject,"name",t)},expression:"configObject.name"}})],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentIsVisible")}},[t("a-select",{on:{change:e.chargeGroupIDVisible},model:{value:e.configObject.style.visible,callback:function(t){e.$set(e.configObject.style,"visible",t)},expression:"configObject.style.visible"}},e._l([{label:"True",value:1},{label:"False",value:0}],(function(a){return t("a-select-option",{key:a.value,attrs:{value:a.value}},[e._v(" "+e._s(a.label)+" ")])})),1)],1)],1),t("div",[t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentX")}},[t("a-input",{attrs:{type:"number",suffix:"px"},on:{change:e.UpdateNode},model:{value:e.selectedNodePops.position.x,callback:function(t){e.$set(e.selectedNodePops.position,"x",t)},expression:"selectedNodePops.position.x"}})],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentY")}},[t("a-input",{attrs:{type:"number",suffix:"px"},on:{change:e.UpdateNode},model:{value:e.selectedNodePops.position.y,callback:function(t){e.$set(e.selectedNodePops.position,"y",t)},expression:"selectedNodePops.position.y"}})],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentWith")}},[t("a-input",{attrs:{type:"number",suffix:"px"},on:{change:e.UpdateNode},model:{value:e.selectedNodePops.size.width,callback:function(t){e.$set(e.selectedNodePops.size,"width",t)},expression:"selectedNodePops.size.width"}})],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentHeight")}},[t("a-input",{attrs:{type:"number",suffix:"px"},on:{change:e.UpdateNode},model:{value:e.selectedNodePops.size.height,callback:function(t){e.$set(e.selectedNodePops.size,"height",t)},expression:"selectedNodePops.size.height"}})],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentAnimate")}},[t("a-select",{attrs:{allowClear:!0},on:{change:e.UpdateNodeData},model:{value:e.configObject.style.animate,callback:function(t){e.$set(e.configObject.style,"animate",t)},expression:"configObject.style.animate"}},e._l(e.animates,(function(a,i){return t("a-select-option",{key:i,attrs:{value:a.name}},[e._v(e._s(a.alias))])})),1)],1)],1),t("div",[t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.BorderWidth")}},[t("a-input",{attrs:{type:"number",suffix:"px"},on:{change:e.UpdateNodeData},model:{value:e.configObject.style.borderWidth,callback:function(t){e.$set(e.configObject.style,"borderWidth",t)},expression:"configObject.style.borderWidth"}})],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.BorderStyle")}},[t("a-select",{on:{change:e.UpdateNodeData},model:{value:e.configObject.style.borderStyle,callback:function(t){e.$set(e.configObject.style,"borderStyle",t)},expression:"configObject.style.borderStyle"}},e._l(e.borderStyleOptions,(function(a){return t("a-select-option",{key:a,attrs:{value:a}},[e._v(" "+e._s(a)+" ")])})),1)],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.BorderColor")}},[t("a-input",{attrs:{type:"color"},on:{change:e.UpdateNodeData},model:{value:e.configObject.style.borderColor,callback:function(t){e.$set(e.configObject.style,"borderColor",t)},expression:"configObject.style.borderColor"}},[t("a-tooltip",{attrs:{slot:"suffix",title:e.$t("displayConfig.Properties.ClearColor")},on:{click:function(t){e.configObject.style.borderColor="transparent",e.UpdateNodeData()}},slot:"suffix"},[t("a-icon",{staticStyle:{color:"rgba(0,0,0,.45)"},attrs:{type:"delete"}})],1)],1)],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.BorderEdges")}},[t("a-input",{attrs:{type:"number",suffix:"px",min:"1"},on:{change:e.UpdateNodeData},model:{value:e.configObject.style.BorderEdges,callback:function(t){e.$set(e.configObject.style,"BorderEdges",t)},expression:"configObject.style.BorderEdges"}})],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.opacity")}},[t("a-input",{attrs:{type:"number",min:0,max:1,step:.1},on:{change:e.UpdateNodeData},model:{value:e.configObject.style.opacity,callback:function(t){e.$set(e.configObject.style,"opacity",t)},expression:"configObject.style.opacity"}})],1)],1),t("div",[t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.zIndex")}},[t("a-input",{attrs:{type:"number"},on:{change:e.UpdateNode},model:{value:e.configObject.style.zIndex,callback:function(t){e.$set(e.configObject.style,"zIndex",t)},expression:"configObject.style.zIndex"}})],1),void 0!==e.selectedNodePops.angle?t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.Transform")}},[t("a-input",{attrs:{type:"number",suffix:"deg"},on:{change:e.UpdateNode},model:{value:e.selectedNodePops.angle,callback:function(t){e.$set(e.selectedNodePops,"angle",t)},expression:"selectedNodePops.angle"}})],1):e._e(),void 0!==e.configObject.style.backColor?t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentBackColor")}},[t("a-input",{attrs:{type:"color"},on:{change:e.UpdateNodeData},model:{value:e.configObject.style.backColor,callback:function(t){e.$set(e.configObject.style,"backColor",t)},expression:"configObject.style.backColor"}},[t("a-tooltip",{attrs:{slot:"suffix",title:e.$t("displayConfig.Properties.ClearColor")},on:{click:function(t){e.configObject.style.backColor="transparent",e.UpdateNodeData()}},slot:"suffix"},[t("a-icon",{staticStyle:{color:"rgba(0,0,0,.45)"},attrs:{type:"delete"}})],1)],1)],1):e._e(),void 0!==e.configObject.style.foreColor?t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentForeColor")}},[t("a-input",{attrs:{type:"color"},on:{change:e.UpdateNodeData},model:{value:e.configObject.style.foreColor,callback:function(t){e.$set(e.configObject.style,"foreColor",t)},expression:"configObject.style.foreColor"}},[t("a-tooltip",{attrs:{slot:"suffix",title:e.$t("displayConfig.Properties.ClearColor")},on:{click:function(t){e.configObject.style.foreColor="transparent",e.UpdateNodeData()}},slot:"suffix"},[t("a-icon",{staticStyle:{color:"rgba(0,0,0,.45)"},attrs:{type:"delete"}})],1)],1)],1):e._e(),null!=e.configObject.style.url&&null!=e.configObject.style.url?t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentUrl")}},[t("a-input",{on:{change:e.UpdateNodeData},model:{value:e.configObject.style.url,callback:function(t){e.$set(e.configObject.style,"url",t)},expression:"configObject.style.url"}})],1):e._e(),null!=e.selectedNodePops.data.detail.style.text&&null!=e.selectedNodePops.data.detail.style.text?t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentText")}},[t("a-textarea",{on:{change:e.UpdateNodeData},model:{value:e.selectedNodePops.data.detail.style.text,callback:function(t){e.$set(e.selectedNodePops.data.detail.style,"text",t)},expression:"selectedNodePops.data.detail.style.text"}})],1):e._e(),null!=e.configObject.style.textAlign&&null!=e.configObject.style.textAlign?t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentTextAlign")}},[t("a-select",{on:{change:e.UpdateNodeData},model:{value:e.configObject.style.textAlign,callback:function(t){e.$set(e.configObject.style,"textAlign",t)},expression:"configObject.style.textAlign"}},e._l(e.textAlignOptions,(function(a){return t("a-select-option",{key:a,attrs:{value:a}},[e._v(" "+e._s(a)+" ")])})),1)],1):e._e(),null!=e.configObject.style.fontFamily&&null!=e.configObject.style.fontFamily?t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentFontFamily")}},[t("a-select",{on:{change:e.UpdateNodeData},model:{value:e.configObject.style.fontFamily,callback:function(t){e.$set(e.configObject.style,"fontFamily",t)},expression:"configObject.style.fontFamily"}},e._l(e.fontFamilyOptions,(function(a){return t("a-select-option",{key:a,attrs:{value:a}},[e._v(" "+e._s(a)+" ")])})),1)],1):e._e(),null!=e.configObject.style.fontWeight&&null!=e.configObject.style.fontWeight?t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentFontBold")}},[t("a-input",{attrs:{type:"number",min:"100",max:"900"},on:{change:e.UpdateNodeData},model:{value:e.configObject.style.fontWeight,callback:function(t){e.$set(e.configObject.style,"fontWeight",t)},expression:"configObject.style.fontWeight"}})],1):e._e(),null!=e.configObject.style.letterSpacing&&null!=e.configObject.style.letterSpacing?t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentLetterSpacing")}},[t("a-input",{attrs:{type:"number",min:"0",max:"100"},on:{change:e.UpdateNodeData},model:{value:e.configObject.style.letterSpacing,callback:function(t){e.$set(e.configObject.style,"letterSpacing",t)},expression:"configObject.style.letterSpacing"}})],1):e._e(),null!=e.configObject.style.italic&&null!=e.configObject.style.italic?t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentFontItalic")}},[t("a-select",{on:{change:e.UpdateNodeData},model:{value:e.configObject.style.italic,callback:function(t){e.$set(e.configObject.style,"italic",t)},expression:"configObject.style.italic"}},e._l([{label:"True",value:1},{label:"False",value:0}],(function(a){return t("a-select-option",{key:a.value,attrs:{value:a.value}},[e._v(" "+e._s(a.label)+" ")])})),1)],1):e._e(),null!=e.configObject.style.fontSize&&null!=e.configObject.style.fontSize?t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentFontSize")}},[t("a-input",{attrs:{type:"number",suffix:"px"},on:{change:e.UpdateNodeData},model:{value:e.configObject.style.fontSize,callback:function(t){e.$set(e.configObject.style,"fontSize",t)},expression:"configObject.style.fontSize"}})],1):e._e(),null!=e.configObject.style.radius&&null!=e.configObject.style.radius?t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentRadius")}},[t("a-input",{attrs:{type:"number"},on:{change:e.UpdateNodeData},model:{value:e.configObject.style.radius,callback:function(t){e.$set(e.configObject.style,"radius",t)},expression:"configObject.style.radius"}})],1):e._e(),null!=e.configObject.style.lineWidth&&null!=e.configObject.style.lineWidth?t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentLineWidth")}},[t("a-input",{attrs:{type:"number",suffix:"px"},on:{change:e.UpdateNodeData},model:{value:e.configObject.style.lineWidth,callback:function(t){e.$set(e.configObject.style,"lineWidth",t)},expression:"configObject.style.lineWidth"}})],1):e._e(),null!=e.configObject.style.setLineDash&&null!=e.configObject.style.setLineDash?t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentLineDash")}},[t("a-input",{attrs:{type:"text"},on:{change:e.UpdateNodeData},model:{value:e.configObject.style.setLineDash,callback:function(t){e.$set(e.configObject.style,"setLineDash",t)},expression:"configObject.style.setLineDash"}})],1):e._e()],1),e._l(e.configObject.style.diy,(function(a,i){return[t("div",{key:i},[15!=a.type?t("a-form-item",{attrs:{label:e.$t(a.name)}},[1==a.type?t("a-input",{attrs:{type:"number",min:a.min,max:a.max,value:a.value},on:{change:e.UpdateNodeData},model:{value:e.configObject.style.diy[i].value,callback:function(t){e.$set(e.configObject.style.diy[i],"value",t)},expression:"configObject.style.diy[diyIndex].value"}}):e._e(),2==a.type?t("a-input",{attrs:{type:"color",value:a.value},on:{change:e.UpdateNodeData},model:{value:e.configObject.style.diy[i].value,callback:function(t){e.$set(e.configObject.style.diy[i],"value",t)},expression:"configObject.style.diy[diyIndex].value"}},[t("a-tooltip",{attrs:{slot:"suffix",title:e.$t("displayConfig.Properties.ClearColor")},on:{click:function(t){e.configObject.style.diy[i].value="transparent",e.UpdateNodeData()}},slot:"suffix"},[t("a-icon",{staticStyle:{color:"rgba(0,0,0,.45)"},attrs:{type:"delete"}})],1)],1):e._e(),3==a.type?t("a-select",{on:{change:e.UpdateNodeData},model:{value:e.configObject.style.diy[i].value,callback:function(t){e.$set(e.configObject.style.diy[i],"value",t)},expression:"configObject.style.diy[diyIndex].value"}},e._l(e.fontFamilyOptions,(function(a){return t("a-select-option",{key:a,attrs:{value:a}},[e._v(" "+e._s(a)+" ")])})),1):e._e(),4==a.type?t("a-input",{attrs:{type:"text",value:a.value},on:{change:e.UpdateNodeData},model:{value:e.configObject.style.diy[i].value,callback:function(t){e.$set(e.configObject.style.diy[i],"value",t)},expression:"configObject.style.diy[diyIndex].value"}}):e._e(),5==a.type?t("div",[t("vue-hover-mask",{scopedSlots:e._u([{key:"action",fn:function(){return[t("span",{staticStyle:{"font-size":"14px"},on:{click:function(t){return e.showSystemImageModel(1,i)}}},[e._v(e._s(e.$t("component.systemImageModel.selectImage")))]),t("a-divider",{attrs:{type:"vertical"}}),t("span",{staticStyle:{"font-size":"14px"},on:{click:function(t){e.configObject.style.diy[i].value=""}}},[e._v(e._s(e.$t("component.systemImageModel.delImage")))])]},proxy:!0}],null,!0)},[""!=e.configObject.style.diy[i].value?t("img",{staticStyle:{width:"200px",height:"200px",cursor:"pointer"},attrs:{src:e.configObject.style.diy[i].value}}):t("div",{style:{width:"200px",height:"200px",cursor:"pointer","background-color":"#F2F2F2"}})])],1):e._e(),6==a.type?t("a-select",{on:{change:e.UpdateNodeData},model:{value:e.configObject.style.diy[i].value,callback:function(t){e.$set(e.configObject.style.diy[i],"value",t)},expression:"configObject.style.diy[diyIndex].value"}},e._l(a.enumList,(function(a){return t("a-select-option",{key:a.value,attrs:{value:a.value}},[e._v(" "+e._s(e.$t(a.option))+" ")])})),1):e._e(),7==a.type?t("a-input",{attrs:{type:"number",step:.1,min:a.min,max:a.max,value:a.value},on:{change:e.UpdateNodeData},model:{value:e.configObject.style.diy[i].value,callback:function(t){e.$set(e.configObject.style.diy[i],"value",t)},expression:"configObject.style.diy[diyIndex].value"}}):e._e(),8==a.type?t("div",[t("a-input-search",{attrs:{"enter-button":e.$t("configComponent.video.SelectVideo")},on:{change:e.UpdateNodeData,search:function(t){return e.showSystemVideoModel(1,i)}},model:{value:e.configObject.style.diy[i].value.name,callback:function(t){e.$set(e.configObject.style.diy[i].value,"name",t)},expression:"configObject.style.diy[diyIndex].value.name"}})],1):e._e(),9==a.type?t("a-textarea",{attrs:{value:a.value,rows:a.rows},on:{change:e.UpdateNodeData},model:{value:e.configObject.style.diy[i].value,callback:function(t){e.$set(e.configObject.style.diy[i],"value",t)},expression:"configObject.style.diy[diyIndex].value"}}):e._e(),10==a.type?t("div",[t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("configComponent.video.Model3DList"))+" ")]),t("a-input-search",{attrs:{"enter-button":e.$t("configComponent.video.SelectVideo")},on:{change:e.UpdateNodeData,search:function(t){return e.showSystemImageModel(1,i,1)}},model:{value:e.configObject.style.diy[i].value,callback:function(t){e.$set(e.configObject.style.diy[i],"value",t)},expression:"configObject.style.diy[diyIndex].value"}})],2)],1):e._e(),11==a.type?t("div",[t("a-button",{attrs:{type:"primary",icon:"edit"},on:{click:function(t){return e.CodeDbClick(i)}}},[e._v(" "+e._s(e.$t("displayConfig.Properties.EditScript"))+" ")])],1):e._e(),12==a.type?t("div",[t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("configComponent.video.Model3DList"))+" ")]),t("a-input-search",{attrs:{"enter-button":e.$t("configComponent.video.SelectVideo")},on:{change:e.UpdateNodeData,search:function(t){return e.showSystemImageModel(1,i,2)}},model:{value:e.configObject.style.diy[i].value,callback:function(t){e.$set(e.configObject.style.diy[i],"value",t)},expression:"configObject.style.diy[diyIndex].value"}})],2)],1):e._e(),13==a.type?t("div",[t("a-select",{attrs:{allowClear:""},on:{change:e.UpdateNodeData},model:{value:e.configObject.style.diy[i].Appid,callback:function(t){e.$set(e.configObject.style.diy[i],"Appid",t)},expression:"configObject.style.diy[diyIndex].Appid"}},e._l(e.configurationModel,(function(a){return t("a-select-option",{key:a.uuid,attrs:{value:a.uuid}},[e._v(" "+e._s(a.name)+" ")])})),1),t("a-select",{on:{change:e.UpdateNodeData},model:{value:e.configObject.style.diy[i].value,callback:function(t){e.$set(e.configObject.style.diy[i],"value",t)},expression:"configObject.style.diy[diyIndex].value"}},e._l(e.generateTargetPage(e.configObject.style.diy[i].Appid),(function(a){return t("a-select-option",{key:a.value,attrs:{value:a.value}},[e._v(" "+e._s(a.label)+" ")])})),1)],1):e._e(),14==a.type?t("div",[t("a-button",{attrs:{type:"primary",icon:"edit"},on:{click:function(t){return e.CodeDbClick(i)}}},[e._v(" "+e._s(e.$t("displayConfig.Properties.EditJSON"))+" ")])],1):e._e(),30==a.type?t("div",[t("a-button",{attrs:{type:"primary",icon:"edit"},on:{click:function(t){return e.CodeDbClick(i)}}},[e._v(" "+e._s(e.$t("displayConfig.Properties.EditSQL"))+" ")])],1):e._e(),31==a.type?t("div",[t("a-select",{attrs:{allowClear:!0},on:{change:e.UpdateNodeData},model:{value:e.configObject.style.diy[i].value,callback:function(t){e.$set(e.configObject.style.diy[i],"value",t)},expression:"configObject.style.diy[diyIndex].value"}},e._l(e.ScriptDataSource,(function(a){return t("a-select-option",{key:a.ScriptUuid,attrs:{value:a.ScriptUuid}},[e._v(" "+e._s(a.ScriptName)+" ")])})),1)],1):e._e(),32==a.type?t("div",[t("a-select",{attrs:{allowClear:!0},on:{change:e.UpdateNodeData},model:{value:e.configObject.style.diy[i].value,callback:function(t){e.$set(e.configObject.style.diy[i],"value",t)},expression:"configObject.style.diy[diyIndex].value"}},e._l(e.SQLReportList,(function(a){return t("a-select-option",{key:a.Uuid,attrs:{value:a.Uuid}},[e._v(" "+e._s(a.Name)+" ")])})),1)],1):e._e()],1):e._e()],1)]}))],2)],1),void 0!==e.configObject.action?t("a-tab-pane",{key:"3",staticStyle:{padding:"5px"},attrs:{tab:e.$t("displayConfig.Properties.TabHeaterBehavior")}},[e.configObject&&e.configObject.action?t("div",e._l(e.configObject.action,(function(a,i){return t("div",{key:i},[t("div",{staticStyle:{"margin-top":"5px",border:"#13c2c2  solid 1px"}},[t("div",{staticStyle:{padding:"5px","border-bottom":"#13c2c2  solid 1px"}},[e._v(" "+e._s(e.$t("displayConfig.Properties.TabHeaterBehavior"))+"-"+e._s(i+1)+" "),t("a-tooltip",{attrs:{placement:"top"}},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.$t("displayConfig.Properties.ActionsTips")))])]),t("a-icon",{staticStyle:{float:"right",cursor:"pointer"},attrs:{type:"delete",theme:"twoTone","two-tone-color":"#eb2f96"},on:{click:function(t){return e.delBindAction(i)}}})],2)],1),t("a-form",{attrs:{"label-col":{span:7},"wrapper-col":{span:16}}},[t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentEvent")}},[t("a-select",{on:{change:e.UpdateNodeData},model:{value:a.type,callback:function(t){e.$set(a,"type",t)},expression:"event.type"}},e._l([{label:"displayConfig.Properties.action.click",value:"click"},{label:"displayConfig.Properties.action.MouseDown",value:"mousedown"},{label:"displayConfig.Properties.action.MouseUp",value:"mouseup"},{label:"displayConfig.Properties.action.dbClick",value:"dblclick"},{label:"displayConfig.Properties.action.mouseenter",value:"mouseenter",cannotSelect:!0},{label:"displayConfig.Properties.action.mouseleave",value:"mouseleave",cannotSelect:!0}],(function(a){return t("a-select-option",{key:a.value,attrs:{value:a.value}},[e._v(" "+e._s(e.$t(a.label))+" ")])})),1)],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentActionAuth")}},[t("a-select",{attrs:{mode:"multiple"},on:{change:e.UpdateNodeData},model:{value:a.actionAuth,callback:function(t){e.$set(a,"actionAuth",t)},expression:"event.actionAuth"}},e._l(e.RoleList,(function(a){return t("a-select-option",{key:a.RoleId,attrs:{value:a.RoleId}},["Operator"==a.RoleId?t("span",[e._v(e._s(e.$t("account.settings.UserList.RoleOperator")))]):e._e(),"User"==a.RoleId?t("span",[e._v(e._s(e.$t("account.settings.UserList.RoleUser")))]):e._e()])})),1)],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentActionPassword")}},[t("a-input",{style:{"text-security":"disc","-webkit-text-security":"disc"},attrs:{type:"text"},on:{change:e.UpdateNodeData},model:{value:a.ActionPassword,callback:function(t){e.$set(a,"ActionPassword",t)},expression:"event.ActionPassword"}})],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentActionVoice")}},[t("a-input",{on:{change:e.UpdateNodeData},model:{value:a.actionVoice,callback:function(t){e.$set(a,"actionVoice",t)},expression:"event.actionVoice"}})],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentAction")}},[t("a-select",{on:{change:function(t){return e.changeAction(t,i)}},model:{value:a.action,callback:function(t){e.$set(a,"action",t)},expression:"event.action"}},e._l([{label:"displayConfig.Properties.action.openLink",value:"link",cannotSelect:!0},{label:"displayConfig.Properties.action.SetValue",value:"SetValue",cannotSelect:!0},{label:"displayConfig.Properties.action.Visible",value:"visible"},{label:"displayConfig.Properties.action.SysScript",value:"SysScript"},{label:"displayConfig.Properties.action.DeviceView",value:"DeviceView",cannotSelect:!0},{label:"displayConfig.Properties.action.RestApi",value:"RestApi",cannotSelect:!0},{label:"displayConfig.Properties.action.animation",value:"Animation",cannotSelect:!0}],(function(a){return t("a-select-option",{key:a.value,attrs:{value:a.value}},[e._v(" "+e._s(e.$t(a.label))+" ")])})),1)],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.SecondConfirm")}},[t("a-switch",{attrs:{"default-checked":""},on:{change:e.UpdateNodeData},model:{value:a.actionConfirm,callback:function(t){e.$set(a,"actionConfirm",t)},expression:"event.actionConfirm"}},[t("a-icon",{attrs:{slot:"checkedChildren",type:"check"},slot:"checkedChildren"}),t("a-icon",{attrs:{slot:"unCheckedChildren",type:"close"},slot:"unCheckedChildren"})],1)],1),"SetValue"==a.action?t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.SetDelay")}},[t("a-input",{attrs:{value:"1000"},on:{change:e.UpdateNodeData},model:{value:a.SetDelay,callback:function(t){e.$set(a,"SetDelay",t)},expression:"event.SetDelay"}})],1):e._e(),"RestApi"==a.action?t("div",[t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.RestApiName")}},[t("a-input",{on:{change:e.UpdateNodeData},model:{value:a.RestApi.Name,callback:function(t){e.$set(a.RestApi,"Name",t)},expression:"event.RestApi.Name"}})],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.RestApiFrom")}},[t("a-select",{on:{change:e.UpdateNodeData},model:{value:a.RestApi.IsSystem,callback:function(t){e.$set(a.RestApi,"IsSystem",t)},expression:"event.RestApi.IsSystem"}},[t("a-select-option",{key:"1",attrs:{value:"1"}},[e._v(" "+e._s(e.$t("displayConfig.Properties.ExternRestApi"))+" ")]),t("a-select-option",{key:"3",attrs:{value:"2"}},[e._v(" "+e._s(e.$t("displayConfig.Properties.SystemRestApi"))+" ")])],1)],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.RestApiType")}},[t("a-select",{on:{change:e.UpdateNodeData},model:{value:a.RestApi.Type,callback:function(t){e.$set(a.RestApi,"Type",t)},expression:"event.RestApi.Type"}},[t("a-select-option",{key:"Post",attrs:{value:"Post"}},[e._v(" Post ")]),t("a-select-option",{key:"Get",attrs:{value:"Get"}},[e._v(" Get ")])],1)],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.RestApiUrl")}},[t("a-input",{on:{change:e.UpdateNodeData},model:{value:a.RestApi.Url,callback:function(t){e.$set(a.RestApi,"Url",t)},expression:"event.RestApi.Url"}})],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.RestApiParam")}},[t("a-textarea",{staticStyle:{"font-size":"16px"},attrs:{rows:10},on:{change:e.UpdateNodeData},model:{value:a.RestApi.Params,callback:function(t){e.$set(a.RestApi,"Params",t)},expression:"event.RestApi.Params"}})],1)],1):e._e(),"SetValue"==a.action?t("div",[t("div",{staticStyle:{"margin-top":"5px","text-align":"center"}},[t("a-button",{key:"submit",staticStyle:{width:"100px"},attrs:{block:""},on:{click:function(t){return e.addBindSetValue(i)}}},[e._v(e._s(e.$t("displayConfig.Properties.AddSetValue")))])],1),void 0!==a.setValue?t("div",e._l(a.setValue,(function(a,o){return t("div",{key:o,staticStyle:{margin:"5px",border:"#95B8E7 solid 1px"}},[t("div",{staticStyle:{padding:"5px","border-bottom":"#95B8E7 solid 1px"}},[t("a-tooltip",{attrs:{placement:"top"}},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.$t("displayConfig.Properties.SetValueTips")))])]),t("a-icon",{staticStyle:{float:"right",cursor:"pointer"},attrs:{type:"close-circle",theme:"twoTone","two-tone-color":"#eb2f96"},on:{click:function(t){return e.delBindSetValue(i,o)}}})],2),e._v(" "+e._s(e.$t("displayConfig.Properties.SetValueInfo"))+"-"+e._s(o+1)+" ")],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.IsManualLabel")}},[t("a-checkbox",{on:{change:e.UpdateNodeData},model:{value:a.IsManual,callback:function(t){e.$set(a,"IsManual",t)},expression:"setValueItem.IsManual"}},[t("label",[e._v(" "+e._s(e.$t("displayConfig.Properties.IsManual")))])])],1),""!=a.dataID?t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentFromBandDevice")}},[t("a-checkbox",{attrs:{disabled:""},model:{value:a.isBandDevice,callback:function(t){e.$set(a,"isBandDevice",t)},expression:"setValueItem.isBandDevice"}},[a.isBandDevice?t("label",[e._v(" "+e._s(e.$t("displayConfig.Properties.ComponentIsBandDevice")))]):t("label",[e._v(" "+e._s(e.$t("displayConfig.Properties.ComponentIsBandDeviceModel")))])])],1):e._e(),a.isBandDevice?t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentBandDevice")}},[t("a-tree-select",{staticStyle:{width:"100%"},attrs:{disabled:"","dropdown-style":{maxHeight:"400px",overflow:"auto"},"tree-data":e.deviceTreeData,"replace-fields":{value:"key",title:"text"},placeholder:"Please select","tree-default-expand-all":""},on:{change:e.UpdateNodeData},model:{value:a.deviceSN,callback:function(t){e.$set(a,"deviceSN",t)},expression:"setValueItem.deviceSN"}})],1):e._e(),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentBandData")}},[t("a-input",{on:{change:e.UpdateNodeData},model:{value:a.dataName,callback:function(t){e.$set(a,"dataName",t)},expression:"setValueItem.dataName"}},[t("a-tooltip",{attrs:{slot:"addonAfter",placement:"top"},slot:"addonAfter"},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.$t("displayConfig.Properties.SelectValue")))])]),t("icon-font",{attrs:{type:"icon-xuanzeshuju"},on:{click:function(t){e.actionIndex=i,e.ShowDeviceDataModel(o,"setValue")}}})],2)],1)],1),a.IsManual?e._e():t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.AutoSetValue")}},[t("a-input",{on:{change:e.UpdateNodeData},model:{value:a.AutoSetValue,callback:function(t){e.$set(a,"AutoSetValue",t)},expression:"setValueItem.AutoSetValue"}})],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.SetPassword")}},[t("a-input",{on:{change:e.UpdateNodeData},model:{value:a.SetPassword,callback:function(t){e.$set(a,"SetPassword",t)},expression:"setValueItem.SetPassword"}})],1)],1)})),0):e._e()]):e._e(),"visible"==a.action?t("div",[t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentClickShow")}},[t("a-select",{attrs:{allowClear:!0,mode:"multiple"},on:{change:e.UpdateNodeData},model:{value:a.showItems,callback:function(t){e.$set(a,"showItems",t)},expression:"event.showItems"}},e._l(e.GroupList,(function(a){return t("a-select-option",{key:a.ID,attrs:{value:a.ID}},[e._v(" "+e._s(a.Name)+" ")])})),1)],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentClickHide")}},[t("a-select",{attrs:{allowClear:!0,mode:"multiple"},on:{change:e.UpdateNodeData},model:{value:a.hideItems,callback:function(t){e.$set(a,"hideItems",t)},expression:"event.hideItems"}},e._l(e.GroupList,(function(a){return t("a-select-option",{key:a.ID,attrs:{value:a.ID}},[e._v(" "+e._s(a.Name)+" ")])})),1)],1)],1):e._e(),"link"==a.action?t("div",[t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.linkType")}},[t("a-select",{attrs:{allowClear:""},on:{change:e.UpdateNodeData},model:{value:a.link.linkType,callback:function(t){e.$set(a.link,"linkType",t)},expression:"event.link.linkType"}},e._l([{label:"displayConfig.Properties.linkInside",value:"Inside"},{label:"displayConfig.Properties.linkExternal",value:"External"}],(function(a){return t("a-select-option",{key:a.value,attrs:{value:a.value}},[e._v(" "+e._s(e.$t(a.label))+" ")])})),1)],1),"Inside"==a.link.linkType?t("div",[t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.linkIAppUUID")}},[t("a-select",{attrs:{allowClear:""},on:{change:e.UpdateNodeData},model:{value:a.link.Inside.displayUUID,callback:function(t){e.$set(a.link.Inside,"displayUUID",t)},expression:"event.link.Inside.displayUUID"}},e._l(e.configurationModel,(function(a){return t("a-select-option",{key:a.uuid,attrs:{value:a.uuid}},[e._v(" "+e._s(a.name)+" ")])})),1)],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.linkIAppPageUUID")}},[t("a-select",{on:{change:e.UpdateNodeData},model:{value:a.link.Inside.pageUUID,callback:function(t){e.$set(a.link.Inside,"pageUUID",t)},expression:"event.link.Inside.pageUUID"}},e._l(e.generateTargetPage(a.link.Inside.displayUUID),(function(a){return t("a-select-option",{key:a.value,attrs:{value:a.value}},[e._v(" "+e._s(a.label)+" ")])})),1)],1)],1):t("div",[t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.linkExternalUrl")}},[t("a-input",{attrs:{type:"text"},on:{change:e.UpdateNodeData},model:{value:a.link.External,callback:function(t){e.$set(a.link,"External",t)},expression:"event.link.External"}})],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.OpenLinkExternalType")}},[t("a-select",{on:{change:e.UpdateNodeData},model:{value:a.link.OpenExternalType,callback:function(t){e.$set(a.link,"OpenExternalType",t)},expression:"event.link.OpenExternalType"}},[t("a-select-option",{attrs:{value:"self"}},[e._v(e._s(e.$t("displayConfig.Properties.OpenLinkExternalSelf")))]),t("a-select-option",{attrs:{value:"new"}},[e._v(e._s(e.$t("displayConfig.Properties.OpenLinkExternalNew")))])],1)],1)],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.isLinkPopUp")}},[t("a-checkbox",{attrs:{checked:a.link.isPopUp},on:{change:e.UpdateNodeData},model:{value:a.link.isPopUp,callback:function(t){e.$set(a.link,"isPopUp",t)},expression:"event.link.isPopUp"}},[e._v(" "+e._s(e.$t("displayConfig.Properties.isLinkPopUp"))+" ")])],1),a.link.isPopUp?t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.autoClose")}},[t("a-checkbox",{attrs:{checked:a.link.autoClose},on:{change:e.UpdateNodeData},model:{value:a.link.autoClose,callback:function(t){e.$set(a.link,"autoClose",t)},expression:"event.link.autoClose"}},[e._v(" "+e._s(e.$t("displayConfig.Properties.autoClose"))+" ")])],1):e._e(),a.link.isPopUp&&"Inside"!==a.link.linkType?t("div",[t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.linkExternalWidth")}},[t("a-input",{attrs:{type:"text"},on:{change:e.UpdateNodeData},model:{value:a.link.width,callback:function(t){e.$set(a.link,"width",t)},expression:"event.link.width"}})],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.linkExternalHeight")}},[t("a-input",{attrs:{type:"text"},on:{change:e.UpdateNodeData},model:{value:a.link.height,callback:function(t){e.$set(a.link,"height",t)},expression:"event.link.height"}})],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.linkExternalTitle")}},[t("a-input",{attrs:{type:"text"},on:{change:e.UpdateNodeData},model:{value:a.link.title,callback:function(t){e.$set(a.link,"title",t)},expression:"event.link.title"}})],1)],1):e._e()],1):e._e(),"SysScript"==a.action?t("div",[t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.action.SysScript")}},[t("a-select",{attrs:{allowClear:!0,mode:"multiple"},on:{change:e.UpdateNodeData},model:{value:a.ScriptList,callback:function(t){e.$set(a,"ScriptList",t)},expression:"event.ScriptList"}},e._l(e.ScriptDataSource,(function(a){return t("a-select-option",{key:a.ScriptUuid,attrs:{value:a.ScriptUuid}},[e._v(" "+e._s(a.ScriptName)+" ")])})),1)],1)],1):e._e(),"DeviceView"==a.action?t("div",[t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.SelectDevice")}},[t("a-tree-select",{attrs:{"show-search":"","tree-node-filter-prop":"title","dropdown-style":{"z-index":9999999,maxHeight:"400px",overflow:"auto"},"tree-data":e.deviceTreeData,"replace-fields":{value:"key",title:"text"},placeholder:"Please select","tree-default-expand-all":""},on:{change:e.UpdateNodeData,select:e.SelectTreeDevice,click:function(t){e.actionIndex=i}},model:{value:a.DeviceView.key,callback:function(t){e.$set(a.DeviceView,"key",t)},expression:"event.DeviceView.key"}})],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.isLinkPopUp")}},[t("a-checkbox",{attrs:{checked:a.DeviceView.isPopUp},on:{change:e.UpdateNodeData},model:{value:a.DeviceView.isPopUp,callback:function(t){e.$set(a.DeviceView,"isPopUp",t)},expression:"event.DeviceView.isPopUp"}},[e._v(" "+e._s(e.$t("displayConfig.Properties.isLinkPopUp"))+" ")])],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.isContainer")}},[t("a-checkbox",{attrs:{checked:a.DeviceView.isContainer},on:{change:e.UpdateNodeData},model:{value:a.DeviceView.isContainer,callback:function(t){e.$set(a.DeviceView,"isContainer",t)},expression:"event.DeviceView.isContainer"}},[e._v(" "+e._s(e.$t("displayConfig.Properties.isContainer"))+" ")])],1)],1):e._e(),"Animation"==a.action?t("div",[t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.action.animationList")}},[t("a-select",{attrs:{mode:"multiple"},on:{change:e.UpdateNodeData},model:{value:e.configObject.animate.selected,callback:function(t){e.$set(e.configObject.animate,"selected",t)},expression:"configObject.animate.selected"}},[e._l(e.configObject.animate.animateList,(function(a){return t("a-select-option",{key:a.id,attrs:{value:a.id}},[e._v(" "+e._s(e.$t(a.name))+" ")])})),t("a-select-option",{key:"visible",attrs:{value:"visible"}},[e._v(" "+e._s(e.$t("component.public.animateVisible"))+" ")])],2)],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.action.animationStatus")}},[t("a-select",{attrs:{allowClear:!0},on:{change:e.UpdateNodeData},model:{value:a.animationStatus,callback:function(t){e.$set(a,"animationStatus",t)},expression:"event.animationStatus"}},e._l([{label:"displayConfig.Properties.action.animationStart",value:"start",cannotSelect:!0},{label:"displayConfig.Properties.action.animationStop",value:"stop",cannotSelect:!0}],(function(a){return t("a-select-option",{key:a.value,attrs:{value:a.value}},[e._v(" "+e._s(e.$t(a.label))+" ")])})),1)],1)],1):e._e()],1)],1)])})),0):e._e(),t("div",{staticStyle:{"margin-top":"5px"}},[t("a-button",{key:"submit",attrs:{block:"",type:"primary"},on:{click:e.addBindAction}},[e._v(e._s(e.$t("displayConfig.Properties.ComponentAddBandActionBtn")))])],1)]):e._e(),void 0!==e.configObject.active?t("a-tab-pane",{key:"4",staticStyle:{padding:"5px"},attrs:{tab:e.$t("displayConfig.Properties.TabHeaterActive")}},[e._l(e.configObject.active,(function(a,i){return[t("a-card",{key:i,staticStyle:{"margin-top":"5px"},attrs:{title:e.$t(a.name),bodyStyle:{padding:"2px"}}},[t("a",{attrs:{slot:"extra"},slot:"extra"},[void 0!==a.isStatus&&a.isStatus?t("div",[t("a-tooltip",{attrs:{slot:"addonAfter",placement:"top"},slot:"addonAfter"},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.$t("configComponent.status.AddStatus")))])]),t("a-icon",{staticStyle:{"line-height":"30px"},attrs:{type:"plus"},on:{click:e.addStatus}})],2)],1):void 0!==a.isMenu&&a.isMenu?t("div",[t("a-tooltip",{attrs:{slot:"addonAfter",placement:"top"},slot:"addonAfter"},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.$t("configComponent.status.AddMenu")))])]),t("a-icon",{staticStyle:{"line-height":"30px"},attrs:{type:"plus"},on:{click:e.addMenu}})],2)],1):t("a-icon",{staticStyle:{"line-height":"30px"},attrs:{type:"minus"},on:{click:function(t){return e.delBindActive(i)}}})],1),t("a-form",{attrs:{"label-col":{span:5},"wrapper-col":{span:19}}},[1==a.condition.bandType&&""!=a.condition.dataID?t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentFromBandDevice")}},[t("a-checkbox",{attrs:{disabled:""},model:{value:a.condition.isBandDevice,callback:function(t){e.$set(a.condition,"isBandDevice",t)},expression:"activeItem.condition.isBandDevice"}},[a.condition.isBandDevice?t("label",[e._v(" "+e._s(e.$t("displayConfig.Properties.ComponentIsBandDevice")))]):t("label",[e._v(" "+e._s(e.$t("displayConfig.Properties.ComponentIsBandDeviceModel")))])])],1):e._e(),a.condition.isBandDevice&&1==a.condition.bandType?t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentBandDevice")}},[t("a-tree-select",{staticStyle:{width:"100%"},attrs:{disabled:"","dropdown-style":{maxHeight:"400px",overflow:"auto"},"tree-data":e.deviceTreeData,"replace-fields":{value:"key",title:"text"},placeholder:"Please select","tree-default-expand-all":""},model:{value:a.condition.deviceSN,callback:function(t){e.$set(a.condition,"deviceSN",t)},expression:"activeItem.condition.deviceSN"}})],1):e._e(),1==a.condition.bandType?t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentBandData")}},[t("a-input",{model:{value:a.condition.dataName,callback:function(t){e.$set(a.condition,"dataName",t)},expression:"activeItem.condition.dataName"}},[t("a-tooltip",{attrs:{slot:"addonAfter",placement:"top"},slot:"addonAfter"},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.$t("displayConfig.Properties.SelectValue")))])]),t("icon-font",{attrs:{type:"icon-xuanzeshuju"},on:{click:function(t){return e.ShowDeviceDataModel(i,"active")}}})],2)],1)],1):e._e(),void 0!==a.isExpression&&a.isExpression?t("div",[t("a-form-item",{attrs:{label:e.$t("component.public.Operator")}},[t("a-select",{model:{value:a.condition.operator,callback:function(t){e.$set(a.condition,"operator",t)},expression:"activeItem.condition.operator"}},[t("a-select-option",{attrs:{value:"=="}},[e._v(" = ")]),t("a-select-option",{attrs:{value:">"}},[e._v(" > ")]),t("a-select-option",{attrs:{value:">="}},[e._v(" >= ")]),t("a-select-option",{attrs:{value:"<"}},[e._v(" < ")]),t("a-select-option",{attrs:{value:"<="}},[e._v(" <= ")]),t("a-select-option",{attrs:{value:"<>"}},[e._v(" >= * <= ")]),t("a-select-option",{attrs:{value:"!="}},[e._v(" != ")])],1)],1),t("a-form-item",{attrs:{label:e.$t("component.public.OperatorValue")}},[t("a-input",{model:{value:a.condition.OperatorValue,callback:function(t){e.$set(a.condition,"OperatorValue",t)},expression:"activeItem.condition.OperatorValue"}})],1),"<>"==a.condition.operator?t("a-form-item",{attrs:{label:e.$t("component.public.OperatorMaxValue")}},[t("a-input",{model:{value:a.condition.OperatorMaxValue,callback:function(t){e.$set(a.condition,"OperatorMaxValue",t)},expression:"activeItem.condition.OperatorMaxValue"}})],1):e._e()],1):void 0!==a.isSwitch&&a.isSwitch?t("div",[t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentActionAuth")}},[t("a-select",{attrs:{mode:"multiple"},model:{value:a.condition.actionAuth,callback:function(t){e.$set(a.condition,"actionAuth",t)},expression:"activeItem.condition.actionAuth"}},e._l(e.RoleList,(function(a){return t("a-select-option",{key:a.RoleId,attrs:{value:a.RoleId}},["Operator"==a.RoleId?t("span",[e._v(e._s(e.$t("account.settings.UserList.RoleOperator")))]):e._e(),"User"==a.RoleId?t("span",[e._v(e._s(e.$t("account.settings.UserList.RoleUser")))]):e._e()])})),1)],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentActionVoice")}},[t("a-input",{model:{value:a.condition.actionVoice,callback:function(t){e.$set(a.condition,"actionVoice",t)},expression:"activeItem.condition.actionVoice"}})],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.SetPassword")}},[t("a-input",{model:{value:a.condition.SetPassword,callback:function(t){e.$set(a.condition,"SetPassword",t)},expression:"activeItem.condition.SetPassword"}})],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ConfirmationDialog")}},[t("a-select",{model:{value:a.condition.ConfirmationDialog,callback:function(t){e.$set(a.condition,"ConfirmationDialog",t)},expression:"activeItem.condition.ConfirmationDialog"}},[t("a-select-option",{attrs:{value:"1"}},[e._v(" Yes ")]),t("a-select-option",{attrs:{value:"0"}},[e._v(" No ")])],1)],1),e._l(a.condition.AutoSet,(function(i,o){return t("a-form-item",{key:o,attrs:{label:e.$t(i.name)}},[t("a-input",{model:{value:a.condition.AutoSet[o].value,callback:function(t){e.$set(a.condition.AutoSet[o],"value",t)},expression:"activeItem.condition.AutoSet[ItemIndex].value"}})],1)}))],2):void 0!==a.isStatus&&a.isStatus?t("div",[a.isTextStatus?t("a-table",{staticClass:"ant-table-tbody",attrs:{pagination:!1,loading:!1,"row-key":"uuid","data-source":a.condition.StatusList,columns:e.StatusColumns},scopedSlots:e._u([{key:"StatusValue",fn:function(a,i){return[t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("configComponent.status.StatusValueTips"))+" ")]),t("a-input",{attrs:{value:a},model:{value:i.value,callback:function(t){e.$set(i,"value",t)},expression:"record.value"}})],2)]}},{key:"StatusValue2",fn:function(a,i){return[t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("configComponent.status.StatusValue2Tips"))+" ")]),t("a-input",{attrs:{value:a,disabled:"<>"!=i.StatusOpt&&"<!>"!=i.StatusOpt},model:{value:i.value2,callback:function(t){e.$set(i,"value2",t)},expression:"record.value2"}})],2)]}},{key:"StatusOpt",fn:function(a,i){return[t("a-select",{model:{value:i.StatusOpt,callback:function(t){e.$set(i,"StatusOpt",t)},expression:"record.StatusOpt"}},[t("a-select-option",{attrs:{value:"=="}},[e._v(" = ")]),t("a-select-option",{attrs:{value:">"}},[e._v(" > ")]),t("a-select-option",{attrs:{value:">="}},[e._v(" >= ")]),t("a-select-option",{attrs:{value:"<"}},[e._v(" < ")]),t("a-select-option",{attrs:{value:"<="}},[e._v(" <= ")]),t("a-select-option",{attrs:{value:"<>"}},[e._v(" && ")]),t("a-select-option",{attrs:{value:"<!>"}},[e._v(" || ")]),t("a-select-option",{attrs:{value:"!="}},[e._v(" != ")])],1)]}},{key:"StatusText",fn:function(a,i){return[t("a-input",{attrs:{value:a},model:{value:i.Text,callback:function(t){e.$set(i,"Text",t)},expression:"record.Text"}})]}},{key:"StatusTextColor",fn:function(a,i){return[t("a-input",{attrs:{type:"color",value:a},model:{value:i.TextColor,callback:function(t){e.$set(i,"TextColor",t)},expression:"record.TextColor"}})]}},{key:"OptStatus",fn:function(i,o,n){return[t("div",{staticClass:"item"},[t("a-tooltip",{attrs:{slot:"addonAfter",placement:"top"},slot:"addonAfter"},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.$t("configComponent.status.DeleteStatus")))])]),t("a-icon",{staticStyle:{"line-height":"30px"},attrs:{type:"delete"},on:{click:function(e){return a.condition.StatusList.splice(n,1)}}})],2)],1)]}}],null,!0)},[e._l(e.StatusColumns,(function(a,i){return t("template",{slot:a.slotName},[t("span",{key:i},[e._v(e._s(e.$t(a.slotName)))])])}))],2):e._e(),a.isLineStatus?t("a-table",{staticClass:"ant-table-tbody",attrs:{pagination:!1,loading:!1,"row-key":"uuid","data-source":a.condition.StatusList,columns:e.LineStatusColumns},scopedSlots:e._u([{key:"StatusValue",fn:function(a,i){return[t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("configComponent.status.StatusValueTips"))+" ")]),t("a-input",{attrs:{value:a},model:{value:i.value,callback:function(t){e.$set(i,"value",t)},expression:"record.value"}})],2)]}},{key:"StatusValue2",fn:function(a,i){return[t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("configComponent.status.StatusValue2Tips"))+" ")]),t("a-input",{attrs:{value:a,disabled:"<>"!=i.StatusOpt&&"<!>"!=i.StatusOpt},model:{value:i.value2,callback:function(t){e.$set(i,"value2",t)},expression:"record.value2"}})],2)]}},{key:"StatusOpt",fn:function(a,i){return[t("a-select",{staticStyle:{width:"55px"},model:{value:i.StatusOpt,callback:function(t){e.$set(i,"StatusOpt",t)},expression:"record.StatusOpt"}},[t("a-select-option",{attrs:{value:"=="}},[e._v(" = ")]),t("a-select-option",{attrs:{value:">"}},[e._v(" > ")]),t("a-select-option",{attrs:{value:">="}},[e._v(" >= ")]),t("a-select-option",{attrs:{value:"<"}},[e._v(" < ")]),t("a-select-option",{attrs:{value:"<="}},[e._v(" <= ")]),t("a-select-option",{attrs:{value:"<>"}},[e._v(" && ")]),t("a-select-option",{attrs:{value:"<!>"}},[e._v(" || ")]),t("a-select-option",{attrs:{value:"!="}},[e._v(" != ")])],1)]}},{key:"LineStatusBlink",fn:function(a,i){return[t("a-select",{staticStyle:{width:"65px"},attrs:{defaultValue:"0"},model:{value:i.Blink,callback:function(t){e.$set(i,"Blink",t)},expression:"record.Blink"}},[t("a-select-option",{attrs:{value:"0"}},[e._v(" False ")]),t("a-select-option",{attrs:{value:"1"}},[e._v(" True ")])],1)]}},{key:"LineStatusBlinkSpeed",fn:function(a,i){return[t("a-input",{attrs:{value:a},model:{value:i.BlinkSpeed,callback:function(t){e.$set(i,"BlinkSpeed",t)},expression:"record.BlinkSpeed"}})]}},{key:"StatusTextColor",fn:function(a,i){return[t("a-input",{attrs:{type:"color",value:a},model:{value:i.TextColor,callback:function(t){e.$set(i,"TextColor",t)},expression:"record.TextColor"}})]}},{key:"OptStatus",fn:function(i,o,n){return[t("div",{staticClass:"item"},[t("a-tooltip",{attrs:{slot:"addonAfter",placement:"top"},slot:"addonAfter"},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.$t("configComponent.status.DeleteStatus")))])]),t("a-icon",{staticStyle:{"line-height":"30px"},attrs:{type:"delete"},on:{click:function(e){return a.condition.StatusList.splice(n,1)}}})],2)],1)]}}],null,!0)},[e._l(e.LineStatusColumns,(function(a,i){return t("template",{slot:a.slotName},[t("span",{key:i},[e._v(e._s(e.$t(a.slotName)))])])}))],2):e._e(),a.isImageStatus?t("a-table",{staticClass:"ant-table-tbody",attrs:{pagination:!1,loading:!1,"row-key":"uuid","data-source":a.condition.StatusList,columns:e.ImagesStatusColumns},scopedSlots:e._u([{key:"StatusValue",fn:function(a,i){return[t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("configComponent.status.StatusValueTips"))+" ")]),t("a-input",{attrs:{value:a},model:{value:i.value,callback:function(t){e.$set(i,"value",t)},expression:"record.value"}})],2)]}},{key:"StatusValue2",fn:function(a,i){return[t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("configComponent.status.StatusValue2Tips"))+" ")]),t("a-input",{attrs:{value:a,disabled:"<>"!=i.StatusOpt&&"<!>"!=i.StatusOpt},model:{value:i.value2,callback:function(t){e.$set(i,"value2",t)},expression:"record.value2"}})],2)]}},{key:"StatusOpt",fn:function(a,i){return[t("a-select",{model:{value:i.StatusOpt,callback:function(t){e.$set(i,"StatusOpt",t)},expression:"record.StatusOpt"}},[t("a-select-option",{attrs:{value:"=="}},[e._v(" = ")]),t("a-select-option",{attrs:{value:">"}},[e._v(" > ")]),t("a-select-option",{attrs:{value:">="}},[e._v(" >= ")]),t("a-select-option",{attrs:{value:"<"}},[e._v(" < ")]),t("a-select-option",{attrs:{value:"<="}},[e._v(" <= ")]),t("a-select-option",{attrs:{value:"<>"}},[e._v(" && ")]),t("a-select-option",{attrs:{value:"<!>"}},[e._v(" || ")]),t("a-select-option",{attrs:{value:"!="}},[e._v(" != ")])],1)]}},{key:"ImageTitle",fn:function(a,i,o){return[t("div",{staticClass:"item"},[t("img",""!=a?{staticStyle:{width:"32px",height:"32px",cursor:"pointer"},attrs:{src:a},on:{click:function(t){return e.showSystemImageModel(2,o)}}}:{style:{width:"32px",height:"32px",cursor:"pointer"},attrs:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAWZJREFUWEftlzFOAzEQRV9OAQUUCCooETXkBmmg5xS0iDvQ0wINNwBq6qQCJRJCAnEI0Ece5KxMNh57WQlhKYW16/nPf8beyYCex6BnfVIA68BmR2BPwHMcuwlwCxx0JG5h74ChTWIA7foxPNBLXQzb3BYgN+ZSoIdyYI6wMoU5LAe+Nhk78A/Q5sANsBdS8gCMHOlxp+DjB7Hce8QFcAUcAqfAfQDZD/Nr4CjDCRfAK7AC7ACTILYNjIE3YPXPA3hSsAFME864UqA4yxahauUE2AUugbMobYrjBtDitmMocbmloVtOx1p1oiK12ikCWFRrsbgEdTosdTFEJwApcYNtQpwHZ6p9CxaJpyDeawIsI56C0H1S7ECOeBNC8yIAj7hBFBdhiXjxPVAqXgRQQ9wNUEvcBVBTvBUg1ZZbG12rTbd4a8BLsyuOCTN6jOxXL4BjW/Xbf81mgH7fI7epzN5u24LeAT4B+PijITzWRRcAAAAASUVORK5CYII="},on:{click:function(t){return e.showSystemImageModel(2,o)}}})])]}},{key:"OptStatus",fn:function(i,o,n){return[t("div",{staticClass:"item"},[t("a-tooltip",{attrs:{slot:"addonAfter",placement:"top"},slot:"addonAfter"},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.$t("configComponent.status.DeleteStatus")))])]),t("a-icon",{staticStyle:{"line-height":"30px"},attrs:{type:"delete"},on:{click:function(e){return a.condition.StatusList.splice(n,1)}}})],2)],1)]}}],null,!0)},[e._l(e.ImagesStatusColumns,(function(a,i){return t("template",{slot:a.slotName},[t("span",{key:i},[e._v(e._s(e.$t(a.slotName)))])])}))],2):e._e(),a.isComBox?t("a-table",{staticClass:"ant-table-tbody",attrs:{pagination:!1,loading:!1,"row-key":"uuid","data-source":a.condition.StatusList,columns:e.ComBoxStatusColumns},scopedSlots:e._u([{key:"ComBoxValue",fn:function(a,i){return[t("a-input",{attrs:{value:a},model:{value:i.value,callback:function(t){e.$set(i,"value",t)},expression:"record.value"}})]}},{key:"StatusText",fn:function(a,i){return[t("a-input",{attrs:{value:a},model:{value:i.Text,callback:function(t){e.$set(i,"Text",t)},expression:"record.Text"}})]}},{key:"OptStatus",fn:function(i,o,n){return[t("div",{staticClass:"item"},[t("a-tooltip",{attrs:{slot:"addonAfter",placement:"top"},slot:"addonAfter"},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.$t("configComponent.status.DeleteStatus")))])]),t("a-icon",{staticStyle:{"line-height":"30px"},attrs:{type:"delete"},on:{click:function(e){return a.condition.StatusList.splice(n,1)}}})],2)],1)]}}],null,!0)},[e._l(e.ComBoxStatusColumns,(function(a,i){return t("template",{slot:a.slotName},[t("span",{key:i},[e._v(e._s(e.$t(a.slotName)))])])}))],2):e._e()],1):void 0!==a.isVoiceStatus&&a.isVoiceStatus?t("div",[t("DataGrid",{staticStyle:{height:"250px"},attrs:{data:a.condition.StatusList,clickToEdit:!0,selectionMode:"cell",editMode:"cell"}},[t("GridColumn",{attrs:{field:"value",title:e.$t("configComponent.status.StatusValue"),align:"center",editable:!0},scopedSlots:e._u([{key:"edit",fn:function(a){return[t("TextBox",{attrs:{precision:2},model:{value:a.row.value,callback:function(t){e.$set(a.row,"value",t)},expression:"scope.row.value"}})]}}],null,!0)}),a.isTextStatus?t("GridColumn",{attrs:{field:"Text",title:e.$t("configComponent.status.StatusText"),align:"center",editable:!0},scopedSlots:e._u([{key:"edit",fn:function(a){return[t("TextBox",{attrs:{precision:2},model:{value:a.row.Text,callback:function(t){e.$set(a.row,"Text",t)},expression:"scope.row.Text"}})]}}],null,!0)}):e._e(),a.isTextStatus?t("GridColumn",{attrs:{field:"TextColor",title:e.$t("configComponent.status.StatusTextColor"),align:"center"},scopedSlots:e._u([{key:"body",fn:function(a){return[t("div",{staticClass:"item"},[t("a-input",{attrs:{type:"color"},model:{value:a.row.TextColor,callback:function(t){e.$set(a.row,"TextColor",t)},expression:"scope.row.TextColor"}})],1)]}}],null,!0)}):e._e(),a.isTextStatus?t("GridColumn",{attrs:{field:"voiceUrl",title:e.$t("configComponent.status.StatusVoiceUrl"),align:"center",editable:!0},scopedSlots:e._u([{key:"edit",fn:function(a){return[t("TextBox",{attrs:{precision:2},model:{value:a.row.voiceUrl,callback:function(t){e.$set(a.row,"voiceUrl",t)},expression:"scope.row.voiceUrl"}})]}}],null,!0)}):e._e(),t("GridColumn",{attrs:{field:"opt",title:e.$t("configComponent.status.OptStatus"),align:"center"},scopedSlots:e._u([{key:"body",fn:function(i){return[t("div",{staticClass:"item"},[t("a-tooltip",{attrs:{slot:"addonAfter",placement:"top"},slot:"addonAfter"},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.$t("configComponent.status.DeleteStatus")))])]),t("a-icon",{staticStyle:{"line-height":"30px"},attrs:{type:"delete"},on:{click:function(e){return a.condition.StatusList.splice(i.rowIndex,1)}}})],2)],1)]}}],null,!0)})],1)],1):void 0!==a.isMenu&&a.isMenu?t("div",[t("a-table",{staticClass:"ant-table-tbody",attrs:{scroll:{x:600},pagination:!1,loading:!1,"row-key":"uuid","data-source":a.condition.PageList,columns:e.DropMenuColumns},scopedSlots:e._u([{key:"MenuText",fn:function(a,i){return[t("a-input",{attrs:{value:a},model:{value:i.MenuName,callback:function(t){e.$set(i,"MenuName",t)},expression:"record.MenuName"}})]}},{key:"APPListName",fn:function(a,i){return[t("a-select",{attrs:{allowClear:""},model:{value:i.DisPlayID,callback:function(t){e.$set(i,"DisPlayID",t)},expression:"record.DisPlayID"}},e._l(e.configurationModel,(function(a){return t("a-select-option",{key:a.uuid,attrs:{value:a.uuid}},[e._v(" "+e._s(a.name)+" ")])})),1)]}},{key:"MenuPageName",fn:function(a,i){return[t("a-select",{model:{value:i.PageID,callback:function(t){e.$set(i,"PageID",t)},expression:"record.PageID"}},e._l(e.generateTargetPage(i.DisPlayID),(function(a){return t("a-select-option",{key:a.value,attrs:{value:a.value}},[e._v(" "+e._s(a.label)+" ")])})),1)]}},{key:"MenuPagePop",fn:function(a,i){return[t("a-switch",{attrs:{"default-checked":""},model:{value:i.IsPopUp,callback:function(t){e.$set(i,"IsPopUp",t)},expression:"record.IsPopUp"}},[t("a-icon",{attrs:{slot:"checkedChildren",type:"check"},slot:"checkedChildren"}),t("a-icon",{attrs:{slot:"unCheckedChildren",type:"close"},slot:"unCheckedChildren"})],1)]}},{key:"OptStatus",fn:function(i,o,n){return[t("div",{staticClass:"item"},[t("a-tooltip",{attrs:{slot:"addonAfter",placement:"top"},slot:"addonAfter"},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.$t("configComponent.status.DeleteStatus")))])]),t("a-icon",{staticStyle:{"line-height":"30px"},attrs:{type:"delete"},on:{click:function(e){return a.condition.PageList.splice(n,1)}}})],2)],1)]}}],null,!0)},[e._l(e.DropMenuColumns,(function(a,i){return t("template",{slot:a.slotName},[t("span",{key:i},[e._v(e._s(e.$t(a.slotName)))])])}))],2)],1):e._e()],1)],1)]})),t("div",{staticStyle:{"margin-top":"5px"}},[t("a-button",{key:"submit",attrs:{block:"",type:"primary"},on:{click:e.addBindActive}},[e._v(e._s(e.$t("displayConfig.Properties.ComponentAddBandActiveBtn")))])],1)],2):e._e(),void 0!==e.configObject.animate?t("a-tab-pane",{key:"5",staticStyle:{padding:"5px"},attrs:{tab:e.$t("displayConfig.Properties.TabHeaterAnimate")}},[t("a-divider",[e._v(e._s(e.$t("component.public.animate")))]),e.configObject&&e.configObject.animate.animateList?[t("a-form",{staticStyle:{border:"#f0f0f0 solid 1px"},attrs:{"label-col":{span:7},"wrapper-col":{span:16}}},[t("a-form-item",{attrs:{label:e.$t("component.public.animate")}},[t("a-select",{attrs:{mode:"multiple"},on:{change:e.UpdateNodeData},model:{value:e.configObject.animate.selected,callback:function(t){e.$set(e.configObject.animate,"selected",t)},expression:"configObject.animate.selected"}},[e._l(e.configObject.animate.animateList,(function(a){return t("a-select-option",{key:a.id,attrs:{value:a.id}},[e._v(" "+e._s(e.$t(a.name))+" ")])})),t("a-select-option",{key:"visible",attrs:{value:"visible"}},[e._v(" "+e._s(e.$t("component.public.animateVisible"))+" ")]),t("a-select-option",{key:"animateMove",attrs:{value:"animateMove"}},[e._v(" "+e._s(e.$t("component.public.animateMove"))+" ")])],2)],1),e.configObject.animate.selected.includes("animateMove")?t("div",[t("a-form-item",{attrs:{label:e.$t("component.public.animateX")}},[t("a-input",{on:{change:e.UpdateNodeData},model:{value:e.configObject.animate.move.x.dataName,callback:function(t){e.$set(e.configObject.animate.move.x,"dataName",t)},expression:"configObject.animate.move.x.dataName"}},[t("a-tooltip",{attrs:{slot:"addonAfter",placement:"top"},slot:"addonAfter"},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.$t("displayConfig.Properties.SelectValue")))])]),t("icon-font",{attrs:{type:"icon-xuanzeshuju"},on:{click:function(t){return e.ShowDeviceDataModel(0,"animateMoveX")}}})],2)],1)],1),t("a-form-item",{attrs:{label:e.$t("component.public.animateY")}},[t("a-input",{on:{change:e.UpdateNodeData},model:{value:e.configObject.animate.move.y.dataName,callback:function(t){e.$set(e.configObject.animate.move.y,"dataName",t)},expression:"configObject.animate.move.y.dataName"}},[t("a-tooltip",{attrs:{slot:"addonAfter",placement:"top"},slot:"addonAfter"},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.$t("displayConfig.Properties.SelectValue")))])]),t("icon-font",{attrs:{type:"icon-xuanzeshuju"},on:{click:function(t){return e.ShowDeviceDataModel(0,"animateMoveY")}}})],2)],1)],1)],1):e._e(),e._l(e.configObject.animate.animateElement,(function(a,i){return t("div",{key:a.id},[e.configObject.animate.selected.includes(a.id)?t("div",[e._l(e.configObject.animate.animateElement[i].elementList,(function(a,o){return[t("div",{key:o},[t("a-form-item",{attrs:{label:e.$t(a.name)}},[1==a.type?t("a-input",{attrs:{type:"number",min:a.min,max:a.max,value:a.value},on:{change:e.UpdateNodeData},model:{value:e.configObject.animate.animateElement[i].elementList[o].value,callback:function(t){e.$set(e.configObject.animate.animateElement[i].elementList[o],"value",t)},expression:"configObject.animate.animateElement[index].elementList[diyIndex].value"}}):e._e(),2==a.type?t("a-input",{attrs:{type:"color",value:a.value},on:{change:e.UpdateNodeData},model:{value:e.configObject.animate.animateElement[i].elementList[o].value,callback:function(t){e.$set(e.configObject.animate.animateElement[i].elementList[o],"value",t)},expression:"configObject.animate.animateElement[index].elementList[diyIndex].value"}},[t("a-tooltip",{attrs:{slot:"suffix",title:e.$t("displayConfig.Properties.ClearColor")},on:{click:function(t){e.configObject.animate.animateElement[i].elementList[o].value="transparent",e.UpdateNodeData()}},slot:"suffix"},[t("a-icon",{staticStyle:{color:"rgba(0,0,0,.45)"},attrs:{type:"delete"}})],1)],1):e._e(),3==a.type?t("a-select",{on:{change:e.UpdateNodeData},model:{value:e.configObject.animate.animateElement[i].elementList[o].value,callback:function(t){e.$set(e.configObject.animate.animateElement[i].elementList[o],"value",t)},expression:"configObject.animate.animateElement[index].elementList[diyIndex].value"}},e._l(e.fontFamilyOptions,(function(a){return t("a-select-option",{key:a,attrs:{value:a}},[e._v(" "+e._s(a)+" ")])})),1):e._e(),4==a.type?t("a-input",{attrs:{type:"text",value:a.value},on:{change:e.UpdateNodeData},model:{value:e.configObject.animate.animateElement[i].elementList[o].value,callback:function(t){e.$set(e.configObject.animate.animateElement[i].elementList[o],"value",t)},expression:"configObject.animate.animateElement[index].elementList[diyIndex].value"}}):e._e(),5==a.type?t("div",[t("vue-hover-mask",{scopedSlots:e._u([{key:"action",fn:function(){return[t("span",{staticStyle:{"font-size":"14px"},on:{click:function(t){return e.showSystemImageModel(1,o)}}},[e._v(e._s(e.$t("component.systemImageModel.selectImage")))]),t("a-divider",{attrs:{type:"vertical"}}),t("span",{staticStyle:{"font-size":"14px"},on:{click:function(t){e.configObject.animate.animateElement[i].elementList[o].value=""}}},[e._v(e._s(e.$t("component.systemImageModel.delImage")))])]},proxy:!0}],null,!0)},[""!=e.configObject.animate.animateElement[i].elementList[o].value?t("img",{staticStyle:{width:"200px",height:"200px",cursor:"pointer"},attrs:{src:e.configObject.animate.animateElement[i].elementList[o].value}}):t("div",{style:{width:"200px",height:"200px",cursor:"pointer","background-color":"#F2F2F2"}})])],1):e._e(),6==a.type?t("a-select",{model:{value:e.configObject.animate.animateElement[i].elementList[o].value,callback:function(t){e.$set(e.configObject.animate.animateElement[i].elementList[o],"value",t)},expression:"configObject.animate.animateElement[index].elementList[diyIndex].value"}},e._l(a.enumList,(function(a){return t("a-select-option",{key:a.value,attrs:{value:a.value},on:{change:e.UpdateNodeData}},[e._v(" "+e._s(e.$t(a.option))+" ")])})),1):e._e(),7==a.type?t("a-input",{attrs:{type:"number",step:.1,min:a.min,max:a.max,value:a.value},on:{change:e.UpdateNodeData},model:{value:e.configObject.animate.animateElement[i].elementList[o].value,callback:function(t){e.$set(e.configObject.animate.animateElement[i].elementList[o],"value",t)},expression:"configObject.animate.animateElement[index].elementList[diyIndex].value"}}):e._e()],1)],1)]}))],2):e._e()])})),e.configObject.animate.selected.includes("Forbidden")||e.configObject.animate.selected.includes("animateMove")?e._e():t("a-form-item",{attrs:{label:e.$t("component.public.isExpression")}},[t("a-radio-group",{on:{change:e.onExpressionChange},model:{value:e.configObject.animate.isExpression,callback:function(t){e.$set(e.configObject.animate,"isExpression",t)},expression:"configObject.animate.isExpression"}},[t("a-radio",{attrs:{value:!0}},[e._v(" "+e._s(e.$t("component.public.Enable"))+" ")]),t("a-radio",{attrs:{value:!1}},[e._v(" "+e._s(e.$t("component.public.Forbidden"))+" ")])],1)],1)],2)]:e._e(),e.configObject.animate.isExpression&&"Forbidden"!=e.configObject.animate.selected?t("div",[t("a-divider",[e._v(e._s(e.$t("displayConfig.Properties.Condition")))]),[t("div",{staticClass:"ant-form ant-form-horizontal",staticStyle:{"margin-top":"5px",border:"#f0f0f0 solid 1px"}},[t("a-form",{attrs:{"label-col":{span:7},"wrapper-col":{span:16}}},[1==e.configObject.animate.condition.bandType&&""!=e.configObject.animate.condition.dataID?t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentFromBandDevice")}},[t("a-checkbox",{attrs:{disabled:""},on:{change:e.UpdateNodeData},model:{value:e.configObject.animate.condition.isBandDevice,callback:function(t){e.$set(e.configObject.animate.condition,"isBandDevice",t)},expression:"configObject.animate.condition.isBandDevice"}},[e.configObject.animate.condition.isBandDevice?t("label",[e._v(" "+e._s(e.$t("displayConfig.Properties.ComponentIsBandDevice")))]):t("label",[e._v(" "+e._s(e.$t("displayConfig.Properties.ComponentIsBandDeviceModel")))])])],1):e._e(),e.configObject.animate.condition.isBandDevice&&1==e.configObject.animate.condition.bandType?t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentBandDevice")}},[t("a-tree-select",{staticStyle:{width:"100%"},attrs:{disabled:"","dropdown-style":{maxHeight:"400px",overflow:"auto"},"tree-data":e.deviceTreeData,"replace-fields":{value:"key",title:"text"},placeholder:"Please select","tree-default-expand-all":""},on:{change:e.UpdateNodeData},model:{value:e.configObject.animate.condition.deviceSN,callback:function(t){e.$set(e.configObject.animate.condition,"deviceSN",t)},expression:"configObject.animate.condition.deviceSN"}})],1):e._e(),1==e.configObject.animate.condition.bandType?t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentBandData")}},[t("a-input",{on:{change:e.UpdateNodeData},model:{value:e.configObject.animate.condition.dataName,callback:function(t){e.$set(e.configObject.animate.condition,"dataName",t)},expression:"configObject.animate.condition.dataName"}},[t("a-tooltip",{attrs:{slot:"addonAfter",placement:"top"},slot:"addonAfter"},[t("template",{slot:"title"},[t("span",[e._v(e._s(e.$t("displayConfig.Properties.SelectValue")))])]),t("icon-font",{attrs:{type:"icon-xuanzeshuju"},on:{click:function(t){return e.ShowDeviceDataModel(e.index,"animate")}}})],2)],1)],1):e._e(),t("a-form-item",{attrs:{label:e.$t("component.public.Operator")}},[t("a-select",{on:{change:e.UpdateNodeData},model:{value:e.configObject.animate.condition.operator,callback:function(t){e.$set(e.configObject.animate.condition,"operator",t)},expression:"configObject.animate.condition.operator"}},[t("a-select-option",{attrs:{value:"=="}},[e._v(" = ")]),t("a-select-option",{attrs:{value:">"}},[e._v(" > ")]),t("a-select-option",{attrs:{value:">="}},[e._v(" >= ")]),t("a-select-option",{attrs:{value:"<"}},[e._v(" < ")]),t("a-select-option",{attrs:{value:"<="}},[e._v(" <= ")]),t("a-select-option",{attrs:{value:"<>"}},[e._v(" && ")]),t("a-select-option",{attrs:{value:"<!>"}},[e._v(" || ")]),t("a-select-option",{attrs:{value:"!="}},[e._v(" != ")])],1)],1),t("a-form-item",{attrs:{label:e.$t("component.public.OperatorValue")}},[t("a-input",{on:{change:e.UpdateNodeData},model:{value:e.configObject.animate.condition.OperatorValue,callback:function(t){e.$set(e.configObject.animate.condition,"OperatorValue",t)},expression:"configObject.animate.condition.OperatorValue"}})],1),"<>"==e.configObject.animate.condition.operator||"<!>"==e.configObject.animate.condition.operator?t("a-form-item",{attrs:{label:e.$t("component.public.OperatorMaxValue")}},[t("a-input",{on:{change:e.UpdateNodeData},model:{value:e.configObject.animate.condition.OperatorMaxValue,callback:function(t){e.$set(e.configObject.animate.condition,"OperatorMaxValue",t)},expression:"configObject.animate.condition.OperatorMaxValue"}})],1):e._e()],1)],1)]],2):e._e()],2):e._e()],1)]:e._e(),e.isLayer?[t("a-tabs",{staticStyle:{width:"420px","max-width":"600px"},attrs:{"default-active-key":"1","tab-position":e.tabPosition}},[t("a-tab-pane",{key:"1",attrs:{tab:e.$t("displayConfig.Properties.TabHeaterPageAttr")}},[t("a-form",{attrs:{"label-col":{span:7},"wrapper-col":{span:16}}},[t("div",[t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.PageName")}},[t("a-input",{model:{value:e.LayerData.name,callback:function(t){e.$set(e.LayerData,"name",t)},expression:"LayerData.name"}})],1)],1),t("div",[t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.PageBackColor")}},[t("a-input",{attrs:{type:"color"},model:{value:e.LayerData.layer.backColor,callback:function(t){e.$set(e.LayerData.layer,"backColor",t)},expression:"LayerData.layer.backColor"}},[t("a-tooltip",{attrs:{slot:"suffix",title:e.$t("displayConfig.Properties.ClearColor")},on:{click:function(t){e.LayerData.layer.backColor="transparent",e.UpdateNodeData()}},slot:"suffix"},[t("a-icon",{staticStyle:{color:"rgba(0,0,0,.45)"},attrs:{type:"delete"}})],1)],1)],1)],1),t("div",[t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.PageBackImage")}},[t("vue-hover-mask",{scopedSlots:e._u([{key:"action",fn:function(){return[t("span",{staticStyle:{"font-size":"20px"},on:{click:function(t){return e.showSystemImageModel(0)}}},[e._v(e._s(e.$t("component.systemImageModel.selectImage")))]),t("a-divider",{attrs:{type:"vertical"}}),t("span",{staticStyle:{"font-size":"20px"},on:{click:function(t){e.LayerData.layer.backgroundImage=""}}},[e._v(e._s(e.$t("component.systemImageModel.delImage")))])]},proxy:!0}],null,!1,461644777)},[""!=e.LayerData.layer.backgroundImage?t("img",{staticStyle:{width:"280px",height:"200px",cursor:"pointer"},attrs:{src:e.LayerData.layer.backgroundImage}}):t("div",{style:{width:"280px",height:"200px",cursor:"pointer","background-color":e.LayerData.layer.backColor}})])],1)],1),t("div",[t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.PageResolution")}},[t("a-select",{model:{value:e.layerWH,callback:function(t){e.layerWH=t},expression:"layerWH"}},e._l(e.whOptions,(function(a){return t("a-select-option",{key:a,attrs:{value:a}},[e._v(" "+e._s(a)+" ")])})),1)],1)],1),"Custom"==e.layerWH?t("div",[t("div",[t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.PageWith")}},[t("a-input",{attrs:{type:"number",suffix:"px"},model:{value:e.LayerData.layer.width,callback:function(t){e.$set(e.LayerData.layer,"width",t)},expression:"LayerData.layer.width"}})],1)],1),t("div",[t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.PageHeight")}},[t("a-input",{attrs:{type:"number",suffix:"px"},model:{value:e.LayerData.layer.height,callback:function(t){e.$set(e.LayerData.layer,"height",t)},expression:"LayerData.layer.height"}})],1)],1)]):e._e(),t("div",[t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.AutoSize")}},[t("a-select",{model:{value:e.LayerData.layer.autoSize,callback:function(t){e.$set(e.LayerData.layer,"autoSize",t)},expression:"LayerData.layer.autoSize"}},[t("a-select-option",{attrs:{value:"0"}},[e._v("False")]),t("a-select-option",{attrs:{value:"1"}},[e._v("True")])],1)],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.Padding")}},[t("a-select",{model:{value:e.LayerData.layer.Padding,callback:function(t){e.$set(e.LayerData.layer,"Padding",t)},expression:"LayerData.layer.Padding"}},[t("a-select-option",{attrs:{value:"0"}},[e._v("False")]),t("a-select-option",{attrs:{value:"1"}},[e._v("True")])],1)],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentAnimate")}},[t("a-select",{attrs:{allowClear:!0},model:{value:e.LayerData.layer.animate,callback:function(t){e.$set(e.LayerData.layer,"animate",t)},expression:"LayerData.layer.animate"}},e._l(e.animates,(function(a,i){return t("a-select-option",{key:i,attrs:{value:a.name}},[e._v(e._s(a.alias))])})),1)],1),t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.virtuallyKey")}},[t("a-select",{model:{value:e.LayerData.layer.virtuallyKey,callback:function(t){e.$set(e.LayerData.layer,"virtuallyKey",t)},expression:"LayerData.layer.virtuallyKey"}},[t("a-select-option",{attrs:{value:"0"}},[e._v("False")]),t("a-select-option",{attrs:{value:"1"}},[e._v("True")])],1)],1)],1)])],1)],1)]:e._e(),t("device-data-model",{ref:"deviceDataModel",on:{onSelectDataModel:e.onSelectData}}),t("system-image-model",{ref:"systemImageModel",attrs:{networkImageUrl:e.imageComponentData},on:{onSelectImage:e.onSelectImage}}),t("system-video-model",{ref:"systemVideoModel",attrs:{networkVideo:e.videoComponentData},on:{onSelectVideo:e.onSelectVideo}}),t("a-modal",{directives:[{name:"drag-modal",rawName:"v-drag-modal"}],attrs:{visible:e.codePopUpDialog,title:e.$t("displayConfig.Properties.CodeEditDig"),width:700,height:500,destroyOnClose:!0,maskClosable:!1,maskStyle:{},mask:!1},on:{cancel:function(t){e.codePopUpDialog=!1}}},[t("div",[e.codePopUpDialog?t("code-editor",{attrs:{value:e.codePopUpValue,language:"javascript"},on:{input:function(t){return e.changeCodeTextarea(t)}}}):e._e(),e.isFullscreen?t("a-button",{staticClass:"fullscreen-btn",on:{click:e.toggleEditorFullscreen}},[e._v(" 退出全屏 ")]):e._e()],1),t("template",{slot:"footer"},[t("a-button",{key:"submit",attrs:{type:"primary"},on:{click:e.toggleEditorFullscreen}},[e._v(" 全屏编辑 ")])],1)],2)],2)}),[],!1,null,"33fd2cfc",null)
/* harmony default export */.exports),J={name:"ISMLogger",i18n:a("89fe"),components:{},data:function(){return{pageSize:10,operators:["nofilter","equal","notequal","less","greater"],status:[{value:null,text:"All"},{value:"P",text:"P"},{value:"N",text:"N"}]}},props:[],computed:Object(i.a)({},Object(p.e)({loggerList:function(e){return n.a.state.ISMDisPlayEditorTool.loggerList}})),methods:{getRowCss:function(e){return"debug"==e.level?{background:"#ffff"}:"info"==e.level?{background:"#b8eecf"}:"warn"==e.level?{background:"#faad14"}:"error"==e.level?{background:"#f5222d"}:null}},created:function(){},mounted:function(){}},Q=(Object(v.a)(J,(function(){var e=this,t=e._self._c;return t("div",[t("DataGrid",{ref:"dg",attrs:{data:e.loggerList,pagination:!0,pageSize:e.pageSize,rowCss:e.getRowCss}},[t("GridColumn",{attrs:{field:"id",width:"5%",title:e.$t("displayConfig.Logger.ID")}}),t("GridColumn",{attrs:{field:"level",width:"10%",title:e.$t("displayConfig.Logger.Level")}}),t("GridColumn",{attrs:{field:"content",width:"50%",title:e.$t("displayConfig.Logger.Content")}}),t("GridColumn",{attrs:{field:"time",sortable:!0,width:"10%",title:e.$t("displayConfig.Logger.Time")}})],1)],1)}),[],!1,null,"74c9daae",null)
/* harmony default export */.exports,{name:"ISMDisPlayEditor",components:{ISMCanvas:D,ISMToolBox:P,ISMPageCanvas:$,ISMProperties:q,ISMHeader:y,ISMResources:N,ISMMesToolBox:j,ISMDiyToolBox:E},i18n:a("89fe"),data:function(){return{leftCollapsed:!0,rightCollapsed:!1,selectMenuKey:"ISMResources"}},methods:Object(i.a)(Object(i.a)({},Object(p.d)("ISMDisPlayEditorTool",["setLoggerList"])),{},{handleDragStart:function(e,t){this.ISMCavasDND.startDrag(e,t)},sideNavClick:function(e){this.selectMenuKey=e.key},setLeftCollapsed:function(e){this.leftCollapsed=e},setRightCollapsed:function(e){this.rightCollapsed=e}}),computed:Object(i.a)(Object(i.a)(Object(i.a)({},Object(p.e)("setting",["langList","isMobile","lang"])),Object(p.e)({ISMCavasDND:function(e){return n.a.state.ISMDisPlayEditorTool.ISMCavasDND}})),{},{IsLicense:function(){return this.$store.state.setting.IsOEM}}),mounted:function(){},created:function(){this.setLoggerList({level:"info",content:"页面初始化完成"})}}),Z=(a("43a3b"),Object(v.a)(Q,(function(){var e=this,t=e._self._c;return t("a-layout",{staticStyle:{background:"#fff",height:"100%"}},[t("a-layout-header",{staticStyle:{position:"fixed","z-index":"1000",width:"100%",background:"#fff",height:"50px"}},[t("ISMHeader",{ref:"ISMHeader"})],1),t("a-layout",{staticStyle:{"margin-top":"50px",height:"100%"}},[t("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:e.leftCollapsed,expression:"leftCollapsed"}],staticStyle:{background:"#fff"},attrs:{width:"430"}},[t("a-card",{staticStyle:{background:"#fff",height:"100%","overflow-y":"auto"},attrs:{title:e.$t("displayConfig.WestTitle")}},[t("a",{attrs:{slot:"extra"},on:{click:function(t){return e.setLeftCollapsed(!1)}},slot:"extra"},[t("a-icon",{attrs:{type:"double-left"}})],1),t("a-layout",{staticStyle:{background:"#fff",height:"100%"}},[t("a-layout-sider",{staticStyle:{background:"#fff","border-right":"1px solid #95B8E7"},attrs:{width:"45"}},[t("a-menu",{style:{background:"#ffffff"},attrs:{"default-selected-keys":["ISMResources"],mode:"inline",inlineIndent:14,"inline-collapsed":!0},on:{click:e.sideNavClick}},[t("a-menu-item",{key:"ISMResources"},[t("a-tooltip",{attrs:{placement:"right"},scopedSlots:e._u([{key:"title",fn:function(){return[t("span",[e._v(e._s(e.$t("displayConfig.PageIcoTitle")))])]},proxy:!0}])},[t("icon-font",{staticStyle:{"font-size":"20px"},attrs:{type:"icon-iconset0335"}})],1)],1),t("a-menu-item",{key:"ISMToolBox"},[t("a-tooltip",{attrs:{placement:"right"},scopedSlots:e._u([{key:"title",fn:function(){return[t("span",[e._v(e._s(e.$t("displayConfig.ToolIcoTitle")))])]},proxy:!0}])},[t("icon-font",{staticStyle:{"font-size":"20px"},attrs:{type:"icon-zujianku"}})],1)],1),t("a-menu-item",{key:"ISMPageCanvas"},[t("a-tooltip",{attrs:{placement:"right"},scopedSlots:e._u([{key:"title",fn:function(){return[t("span",[e._v(e._s(e.$t("displayConfig.ToolIcoPageCanvasTitle")))])]},proxy:!0}])},[t("icon-font",{staticStyle:{"font-size":"20px"},attrs:{type:"icon-yemianyuansu"}})],1)],1),t("a-menu-item",{key:"ISMDiyToolBox"},[t("a-tooltip",{attrs:{placement:"right"},scopedSlots:e._u([{key:"title",fn:function(){return[t("span",[e._v(e._s(e.$t("displayConfig.ToolDiyTitle")))])]},proxy:!0}])},[t("icon-font",{staticStyle:{"font-size":"20px"},attrs:{type:"icon-zu"}})],1)],1),t("a-menu-item",{key:"ISMMESToolBox"},[t("a-tooltip",{attrs:{placement:"right"},scopedSlots:e._u([{key:"title",fn:function(){return[t("span",[e._v(e._s(e.$t("displayConfig.ToolMesTitle")))])]},proxy:!0}])},[t("icon-font",{staticStyle:{"font-size":"20px"},attrs:{type:"icon-MES"}})],1)],1)],1)],1),t("a-layout-content",[t("ISMPageCanvas",{directives:[{name:"show",rawName:"v-show",value:"ISMPageCanvas"==e.selectMenuKey,expression:"selectMenuKey=='ISMPageCanvas'"}],ref:"ISMPageCanvas",on:{"drag-start":e.handleDragStart}}),t("ISMResources",{directives:[{name:"show",rawName:"v-show",value:"ISMResources"==e.selectMenuKey,expression:"selectMenuKey=='ISMResources'"}],ref:"ISMResources"}),t("ISMToolBox",{directives:[{name:"show",rawName:"v-show",value:"ISMToolBox"==e.selectMenuKey,expression:"selectMenuKey=='ISMToolBox'"}],ref:"ISMToolBox",on:{"drag-start":e.handleDragStart}}),t("ISMDiyToolBox",{directives:[{name:"show",rawName:"v-show",value:"ISMDiyToolBox"==e.selectMenuKey,expression:"selectMenuKey=='ISMDiyToolBox'"}],ref:"ISMDiyToolBox",on:{"drag-start":e.handleDragStart}}),t("ISMMesToolBox",{directives:[{name:"show",rawName:"v-show",value:"ISMMESToolBox"==e.selectMenuKey,expression:"selectMenuKey=='ISMMESToolBox'"}],ref:"ISMMESToolBox",on:{"drag-start":e.handleDragStart}})],1)],1)],1)],1),t("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:!e.leftCollapsed,expression:"!leftCollapsed"}],staticStyle:{background:"#fff"},attrs:{width:"25"}},[t("a-card",{staticStyle:{cursor:"pointer"},on:{click:function(t){return e.setLeftCollapsed(!0)}}},[t("a",{attrs:{slot:"extra"},slot:"extra"},[t("a-icon",{attrs:{type:"double-right"}})],1),t("p",[e._v(" 工 具 箱 ")])])],1),t("a-layout-content",{staticClass:"ISMCanvas",staticStyle:{background:"#fff",height:"100%"}},[t("ISMCanvas",{ref:"ISMCanvas"})],1),t("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:e.rightCollapsed,expression:"rightCollapsed"}],staticStyle:{background:"#fff"},attrs:{width:"430"}},[t("a-card",{staticStyle:{background:"#fff",height:"100%","overflow-y":"auto"},attrs:{title:e.$t("displayConfig.EastTitle")}},[t("a",{attrs:{slot:"extra"},on:{click:function(t){return e.setRightCollapsed(!1)}},slot:"extra"},[t("a-icon",{attrs:{type:"double-right"}})],1),t("ISMProperties",{ref:"ISMProperties"})],1)],1),t("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:!e.rightCollapsed,expression:"!rightCollapsed"}],staticStyle:{background:"#fff"},attrs:{width:"25"}},[t("a-card",{staticStyle:{cursor:"pointer"},on:{click:function(t){return e.setRightCollapsed(!0)}}},[t("a",{attrs:{slot:"extra"},slot:"extra"},[t("a-icon",{attrs:{type:"double-left"}})],1),t("p",[e._v(" 属 性 页 ")])])],1)],1)],1)}),[],!1,null,"9d9abd42",null)
/* harmony default export */);
// CONCATENATED MODULE: ./src/pages/ISMDisPlay/ISMCanvas.vue?vue&type=script&lang=js
/* harmony default export */t.default=Z.exports},
/***/a2db0:
/***/function(e,t,a){"use strict";
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
a("99af"),a("b0c0"),a("d3b7"),a("4d63"),a("c607"),a("ac1f"),a("2c3e"),a("25f0"),a("1276"),a("caad"),a("14d9"),a("a434"),a("2532"),a("41fe");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
var i=a("600d"),o=a("52ae"),n=a("1d40"),s={name:"deviceDataModel",i18n:a("89fe"),data:function(){var e=this;return{dataModelDialog:!1,visible:!1,pageSize:10,DeviceType:-1,searchText:"",searchedColumn:"",selectedRowsIndex:-1,selectNodeInfo:{},rowSelection:{onSelect:this.onDataTableSelect,onSelectAll:this.onDataTableSelectAll},pagination:{pageSize:15,showSizeChanger:!0},selectDataModelUUid:"",pagePosition:"bottom",pageOptions:[{value:"bottom",text:"Bottom"},{value:"top",text:"Top"},{value:"both",text:"Both"}],columns:[{width:"20%",slotName:"readData.tableName",scopedSlots:{filterDropdown:"filterDropdown",filterIcon:"filterIcon",customRender:"customRender",title:"readData.tableName"},dataIndex:"name",onFilter:function(e,t){return t.name.toString().toLowerCase().includes(e.toLowerCase())},onFilterDropdownVisibleChange:function(t){t&&setTimeout((function(){e.searchInput.focus()}),0)}}],deviceTreeData:[],fromType:2,FromList:[{value:2,title:"component.deviceDataModel.deviceData"},{value:1,title:"component.deviceDataModel.deviceModel"},{value:3,title:"component.deviceDataModel.SystemData"}],deviceName:"",modelList:[],dataSource:[],IsDevice:!1,DeviceSN:"",messageShowLoad:!1,supportDeviceList:[],selectionDataInfo:{}}},watch:{$route:function(){}},mounted:function(){2==this.fromType&&this.getMonitorTree(),this.getSupportDevice()},methods:{setRowClassName:function(e,t){return this.selectedRowsIndex==t?"clickRowStyle":""},rowClick:function(e,t){var a=this;return{on:{click:function(){a.selectionDataInfo=e,a.selectedRowsIndex=t},dblclick:function(){a.selectionDataInfo=e,a.selectedRowsIndex=t}}}},handleSearch:function(e,t,a){t(),this.searchText=e[0],this.searchedColumn=a},handleReset:function(e){e(),this.searchText=""},onDataTableSelect:function(e,t,a){if(t)this.selectDataTableUuid.push(e.uuid);else{var i=this.findDataTableSelectIndex(e.uuid);-1!=i&&this.selectDataTableUuid.splice(i,1)}},onDataTableSelectAll:function(e,t,a){if(e)for(var i=0;i<t.length;i++){-1==this.findDataTableSelectIndex(t[i].uuid)&&this.selectDataTableUuid.push(t[i].uuid)}else for(var o=0;o<a.length;o++){var n=this.findDataTableSelectIndex(a[o].uuid);-1!=n&&this.selectDataTableUuid.splice(n,1)}},getRealData:function(e){var t=this,a={uuid:e,IsRemoveGW:this.selectNodeInfo.IsRemoteGw,ProjectUuid:this.selectNodeInfo.ProjectUUID};this.dataSource=[],this.messageShowLoad=!0,this.getReadDataResponse=!1,Object(i.k)(a).then((function(e){if(t.getReadDataResponse=!0,t.messageShowLoad=!1,0==e.data.code)for(var a=0;a<e.data.realData.length;a++){var i={};i.id=a.toString(),i.name=e.data.realData[a].name,i.uuid=e.data.realData[a].mduid,i.unit=e.data.realData[a].unit,t.dataSource.push(i),i={}}}))},GetSystemData:function(e){var t=this,a={uuid:e};this.dataSource=[],this.messageShowLoad=!0,this.getReadDataResponse=!1,Object(n.j)(a).then((function(e){if(t.getReadDataResponse=!0,t.messageShowLoad=!1,0==e.data.code)for(var a=0;a<e.data.list.length;a++){var i={};i.id=a.toString(),i.name=e.data.list[a].name,i.uuid=e.data.list[a].uuid,i.unit=e.data.list[a].unit,t.dataSource.push(i),i={}}}))},GetDataModelData:function(e){var t=this,a={type:e};this.dataSource=[],this.messageShowLoad=!0,this.getReadDataResponse=!1,Object(n.d)(a).then((function(e){if(t.getReadDataResponse=!0,t.messageShowLoad=!1,0==e.data.code)for(var a=0;a<e.data.list.length;a++){var i={};i.id=a.toString(),i.name=e.data.list[a].name,i.uuid=e.data.list[a].uuid,i.unit=e.data.list[a].unit,t.dataSource.push(i),i={}}}))},getMonitorTree:function(){var e=this;this.deviceTreeData=[],Object(i.j)().then((function(t){0==t.data.code&&(e.deviceTreeData=null==t.data.list?[]:t.data.list)}))},getDeviceDataModel:function(e){var t={muid:void 0===e?"":e,type:this.DeviceType};this.dataSource=[];var a=this;this.messageShowLoad=!0,Object(o.a)(t).then((function(e){if(a.messageShowLoad=!1,null!=e.data.mibs&&e.data.mibs.length>0)for(var t={},i=0;i<e.data.mibs.length;i++)t.id=i.toString(),t.name=e.data.mibs[i].name,t.uuid=e.data.mibs[i].uuid,t.unit=e.data.mibs[i].unit,a.dataSource.push(t),t={}}))},changeDataFromType:function(e){this.dataSource=[],this.fromType=e,2==e?(this.IsDevice=!0,this.getMonitorTree()):1==e?this.IsDevice=!1:3==e&&this.GetSystemData()},changeDeviceType:function(e){this.dataSource=[],this.IsDevice=!1,this.DeviceSN="",this.DeviceType=e,6!=e&&7!=e?this.getModelList():this.GetDataModelData(e)},getModelList:function(){var e=this;this.modelList=[];var t={type:this.DeviceType};Object(o.j)(t).then((function(t){var a={};if(null!=t.data.list)for(var i=0;i<t.data.list.length;i++)a.id=i,a.uuid=t.data.list[i].uuid,a.text=t.data.list[i].name,e.modelList.push(a),a={}}))},getSupportDevice:function(){var e=this;Object(i.m)().then((function(t){e.supportDeviceList=null==t.data.list?[]:t.data.list;var a={type:6,name:e.$t("component.deviceDataModel.SystemVar")};e.supportDeviceList.push(a);var i={type:7,name:e.$t("device.CustomDevice")};e.supportDeviceList.push(i)}))},selectData:function(e){},SelectDevice:function(e,t){this.deviceName=t.$options.propsData.title,this.IsDevice=!0,this.dataSource=[],this.DeviceSN=e,this.selectNodeInfo=t.$options.propsData.dataRef.value,this.getRealData(e)},changeDeviceModel:function(e,t){this.dataSource=[],this.selectDataModelUUid=e[0],this.getDeviceDataModel(e[0])},handleCancel:function(){this.dataModelDialog=!1},showDataModal:function(){this.selectedRowsIndex=-1,this.dataModelDialog=!0,this.visible=!0},onSelectData:function(){-1!=this.selectedRowsIndex?(this.IsDevice?(this.selectionDataInfo.DeviceName=this.deviceName,this.selectionDataInfo.IsDevice=!0,this.selectionDataInfo.DeviceSN=this.DeviceSN):(this.selectionDataInfo.DeviceType=this.DeviceType,this.selectionDataInfo.IsDevice=!1,this.selectionDataInfo.DeviceSN=""),1!=this.fromType?(this.selectionDataInfo.DeviceType=-1,this.selectionDataInfo.selectDataModelUUid=""):(this.selectionDataInfo.selectDataModelUUid=this.selectDataModelUUid,this.selectionDataInfo.DeviceType=this.DeviceType),this.selectionDataInfo.name=this.$t(this.selectionDataInfo.name),this.$emit("onSelectDataModel",this.selectionDataInfo),this.dataModelDialog=!1):this.$message.error(this.$t("component.deviceDataModel.SelectError"),3)}}},l=(a("0191"),a("2877")),r=Object(l.a)(s,(function(){var e=this,t=e._self._c;return t("div",{ref:"dataModel"},[t("a-modal",{directives:[{name:"drag-modal",rawName:"v-drag-modal"}],attrs:{visible:e.dataModelDialog,width:"800px",bodyStyle:{"min-height":"500px"},footer:null,title:e.$t("component.deviceDataModel.title")},on:{cancel:function(t){e.dataModelDialog=!1}}},[t("div",{staticStyle:{margin:"6px"}},[t("a-card",{attrs:{size:"small",title:e.$t("component.deviceDataModel.DataFrom")}},[t("a-form",{attrs:{layout:"inline","label-col":{span:8},"wrapper-col":{span:16}}},[t("a-form-item",{attrs:{label:e.$t("component.deviceDataModel.DataFrom")}},[t("a-select",{staticStyle:{width:"200px"},attrs:{dropdownStyle:{"z-index":9999999}},on:{change:e.changeDataFromType}},e._l(e.FromList,(function(a,i){return t("a-select-option",{key:i,attrs:{value:a.value}},[e._v(" "+e._s(e.$t(a.title))+" ")])})),1)],1),2==e.fromType?t("a-form-item",{attrs:{label:e.$t("displayConfig.Properties.ComponentBandDevice")}},[t("a-tree-select",{staticStyle:{width:"200px"},attrs:{"show-search":"","tree-node-filter-prop":"title","dropdown-style":{"z-index":9999999,maxHeight:"400px",overflow:"auto"},"tree-data":e.deviceTreeData,"replace-fields":{value:"key",title:"text"},placeholder:"Please select","tree-default-expand-all":""},on:{select:e.SelectDevice}})],1):e._e(),1==e.fromType?t("a-form-item",{attrs:{label:e.$t("component.deviceDataModel.selectDeviceType")}},[t("a-select",{staticStyle:{width:"230px"},attrs:{dropdownStyle:{"z-index":9999999}},on:{change:e.changeDeviceType}},e._l(e.supportDeviceList,(function(a,i){return t("a-select-option",{key:i,attrs:{value:a.type}},[e._v(" "+e._s(e.$t(a.name))+" ")])})),1)],1):e._e()],1)],1)],1),t("a-spin",{staticStyle:{"min-height":"300px"},attrs:{spinning:e.messageShowLoad}},[t("div",{staticStyle:{margin:"6px","z-index":"9001"}},[t("a-layout",[1==e.fromType&&6!=e.DeviceType&&7!=e.DeviceType?t("a-layout-sider",{staticStyle:{background:"#fff"},attrs:{bodyStyle:{padding:"2px"},panelStyle:{width:"200px",minWidth:"100px"}}},[t("a-card",{staticStyle:{"max-height":"400px"},attrs:{size:"small",hoverable:!0,title:e.$t("component.deviceDataModel.DataModelList")}},[t("a-directory-tree",{staticStyle:{"max-height":"340px","overflow-y":"auto"},attrs:{treeData:e.modelList,"replace-fields":{key:"uuid",title:"text"}},on:{select:e.changeDeviceModel}})],1)],1):e._e(),t("a-layout-content",{staticStyle:{background:"#fff"},attrs:{bodyStyle:{padding:"2px","min-height":"300px"},panelStyle:{width:1==e.fromType&&6!=e.DeviceType&&7!=e.DeviceType?"500px":"700px",height:"100%",minWidth:"100px"}}},[t("a-table",{attrs:{"row-key":"uuid",customRow:e.rowClick,columns:e.columns,size:"small",rowClassName:e.setRowClassName,"data-source":e.dataSource,pagination:e.pagination,scroll:{y:340,x:0}},scopedSlots:e._u([{key:"name",fn:function(t){return[e._v(" "+e._s(e.$t(t))+" ")]}},{key:"filterDropdown",fn:function(a){var i=a.setSelectedKeys,o=a.selectedKeys,n=a.confirm,s=a.clearFilters,l=a.column;return t("div",{staticStyle:{padding:"8px"}},[t("a-input",{directives:[{name:"ant-ref",rawName:"v-ant-ref",value:function(t){return e.searchInput=t},expression:"c => (searchInput = c)"}],staticStyle:{width:"188px","margin-bottom":"8px",display:"block"},attrs:{placeholder:"Search ".concat(l.dataIndex),value:o[0]},on:{change:function(e){return i(e.target.value?[e.target.value]:[])},pressEnter:function(){return e.handleSearch(o,n,l.dataIndex)}}}),t("a-button",{staticStyle:{width:"90px","margin-right":"8px"},attrs:{type:"primary",icon:"search",size:"small"},on:{click:function(){return e.handleSearch(o,n,l.dataIndex)}}},[e._v(" "+e._s(e.$t("readData.Search"))+" ")]),t("a-button",{staticStyle:{width:"90px"},attrs:{size:"small"},on:{click:function(){return e.handleReset(s)}}},[e._v(" "+e._s(e.$t("readData.Reset"))+" ")])],1)}},{key:"filterIcon",fn:function(e){return t("a-icon",{style:{color:e?"#108ee9":void 0},attrs:{type:"search"}})}},{key:"customRender",fn:function(a,i,o,n){return[e.searchText&&e.searchedColumn===n.dataIndex?t("span",[e._l(a.toString().split(new RegExp("(?<=".concat(e.searchText,")|(?=").concat(e.searchText,")"),"i")),(function(a,i){return[a.toLowerCase()===e.searchText.toLowerCase()?t("mark",{key:i,staticClass:"highlight"},[e._v(e._s(e.$t(a))+'"1111"')]):[e._v(e._s(e.$t(a))+'"222"')]]}))],2):[e._v(" "+e._s(e.$t(a))+" ")]]}}])},[e._l(e.columns,(function(a,i){return t("template",{slot:a.slotName},[t("span",{key:i},[e._v(e._s(e.$t(a.slotName)))])])}))],2)],1)],1)],1)]),t("a-divider"),t("div",{staticClass:"dialog-button"},[t("a-button",{key:"submit",attrs:{type:"primary"},on:{click:e.onSelectData}},[e._v(" "+e._s(e.$t("component.deviceDataModel.submit"))+" ")]),t("a-button",{key:"back",staticStyle:{"margin-left":"10px"},on:{click:e.handleCancel}},[e._v(" "+e._s(e.$t("component.deviceDataModel.cancel"))+" ")])],1)],1)],1)}),[],!1,null,"31daaf67",null)
/* harmony default export */;t.a=r.exports},
/***/b603:
/***/function(e,t,a){"use strict";
/* harmony import */a("1c93");
/* harmony import */},
/***/ca39:
/***/function(e,t,a){"use strict";
/* harmony import */a("0c60");
/* harmony import */},
/***/d21d:
/***/function(e,t,a){"use strict";
/* harmony export (binding) */a.d(t,"a",(function(){return l})),
/* harmony export (binding) */a.d(t,"c",(function(){return c})),
/* harmony export (binding) */a.d(t,"d",(function(){return u})),
/* harmony export (binding) */a.d(t,"e",(function(){return m})),
/* harmony export (binding) */a.d(t,"b",(function(){return g}));
/* harmony import */var i=a("c7eb"),o=a("1da1"),n=a("7424"),s=a("b775");
/* harmony import */function l(e){return r.apply(this,arguments)}function r(){return(r=Object(o.a)(Object(i.a)().mark((function e(t){return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(s.g)(n.ADDSCRIPT,s.b.POST,t));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function c(e){return d.apply(this,arguments)}function d(){return(d=Object(o.a)(Object(i.a)().mark((function e(t){return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(s.g)(n.DELSCRIPT,s.b.POST,t));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function u(e){return p.apply(this,arguments)}function p(){return(p=Object(o.a)(Object(i.a)().mark((function e(t){return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(s.g)(n.EDITSCRIPT,s.b.POST,t));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(){return f.apply(this,arguments)}function f(){return(f=Object(o.a)(Object(i.a)().mark((function e(){return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(s.g)(n.SCRIPTLIST,s.b.POST));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return v.apply(this,arguments)}function v(){return(v=Object(o.a)(Object(i.a)().mark((function e(t){return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(s.g)(n.CHECKSCRIPT,s.b.POST,t));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}
/* unused harmony default export */},
/***/d498a:
/***/function(e,t,a){
// extracted by mini-css-extract-plugin
/***/},
/***/d5a1:
/***/function(e,t,a){
// extracted by mini-css-extract-plugin
/***/},
/***/e93ff:
/***/function(e,t,a){
// extracted by mini-css-extract-plugin
/***/},
/***/ef9d:
/***/function(e,t,a){"use strict";
/* harmony import */a("4fb2");
/* harmony import */},
/***/f276:
/***/function(e,t,a){"use strict";
/* harmony import */a("d498a");
/* harmony import */}}]);