{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\tripartite\\buildBigScreen\\src\\page\\group\\subgroup.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\tripartite\\buildBigScreen\\src\\page\\group\\subgroup.vue","mtime":1675071992663},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport { addUrlParam } from '@/tripartite/buildBigScreen/src/utils/utils'\r\nimport crypto from '@/tripartite/buildBigScreen/src/utils/crypto';\r\nimport { dynamicSql } from '@/tripartite/buildBigScreen/src/api/db'\r\nimport common from '@/tripartite/buildBigScreen/src/config'\r\nexport default {\r\n name: 'subgroup',\r\n inject: [\"contain\", 'container'],\r\n provide () {\r\n return {\r\n contain: this.contain,\r\n container: this.container\r\n };\r\n },\r\n props: {\r\n nav: {\r\n type: Array,\r\n default: () => {\r\n return []\r\n }\r\n }\r\n },\r\n data () {\r\n return {\r\n sqlFormatter: dynamicSql,\r\n common: common,\r\n }\r\n },\r\n methods: {\r\n getFunction (fun, def) {\r\n if (!this.validatenull(fun)) {\r\n try {\r\n return eval(fun);\r\n } catch {\r\n return () => { }\r\n }\r\n }\r\n if (def) return () => { }\r\n },\r\n getJson (str) {\r\n if (this.validatenull(str)) return {};\r\n if (typeof str == \"string\") {\r\n try {\r\n return JSON.parse(str);\r\n } catch {\r\n return {}\r\n }\r\n }\r\n return str;\r\n },\r\n //点击事件交互\r\n handleClick ({ type, child, value }) {\r\n if (type === 'tabs') {\r\n const indexList = child.index;\r\n indexList.forEach((index) => {\r\n const paramName = child.paramName;\r\n const item = this.contain.findlist(index);\r\n if (!item.url) return\r\n let params = {};\r\n if (item.dataQuery) {\r\n params = this.getJson(item.dataQuery)\r\n } else {\r\n params = {}\r\n }\r\n params[paramName] = value;\r\n item.dataQuery = JSON.stringify(params);\r\n this.$refs[this.common.NAME + index].forEach(ele => {\r\n ele.updateData();\r\n })\r\n })\r\n }\r\n },\r\n handleRes () {\r\n return this.$refs[this.common.NAME + this.contain.activeObj.index][0];\r\n },\r\n //刷新数据\r\n handleRefresh () {\r\n return this.$refs[this.common.NAME + this.contain.activeObj.index][0].updateData();\r\n },\r\n //获取对象\r\n handleGetObj (val) {\r\n return this.$refs[`${this.common.DEAFNAME}${val}`];\r\n },\r\n handleOver ({ index }) {\r\n this.contain.overactive = index;\r\n },\r\n handleFocus ({ index }) {\r\n this.container.gradeFlag = true;\r\n if (this.contain.keys.ctrl) {\r\n if (!Array.isArray(this.contain.active)) {\r\n this.contain.handleInitActive();\r\n }\r\n this.contain.active.push(index);\r\n } else if (!this.contain.active.includes(index)) {\r\n this.contain.active = [index];\r\n }\r\n },\r\n handleBlur ({ left, top, width, height }) {\r\n if (Array.isArray(this.contain.activeObj)) return\r\n this.container.gradeFlag = false;\r\n this.$set(this.contain.activeObj.component, 'width', width)\r\n this.$set(this.contain.activeObj.component, 'height', height)\r\n this.$set(this.contain.activeObj, 'left', left)\r\n this.$set(this.contain.activeObj, 'top', top)\r\n },\r\n }\r\n}\r\n",null]}