{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\dialog\\EipBoDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\dialog\\EipBoDialog.vue","mtime":1675071991710},{"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":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.number.constructor\";\nimport \"core-js/modules/web.dom.iterable\";\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//\nimport req from \"@/request.js\";\nimport sysType from \"@/api/sysType.js\";\nimport FormTemplateDialog from \"@/components/dialog/FormTemplateDialog.vue\";\nexport default {\n components: {\n FormTemplateDialog: FormTemplateDialog\n },\n name: \"eip-bo-dialog\",\n props: {\n value: Array,\n single: Boolean,\n name: String,\n appendToBody: {\n type: Boolean,\n default: false\n },\n destroyOnClose: {\n type: Boolean,\n default: false\n }\n },\n data: function data() {\n return {\n data: [],\n treeData: null,\n tableColumns: [{\n prop: \"alias\",\n label: \"别名\"\n }, {\n prop: \"description\",\n label: \"描述\"\n }, {\n prop: \"createTime\",\n label: \"创建时间\",\n width: 160\n }],\n pagination: {\n page: 1,\n pageSize: 50,\n total: 0\n },\n typeIdQuery: null,\n selection: [],\n formType: 'pc'\n };\n },\n mounted: function mounted() {},\n methods: {\n loadTreeData: function loadTreeData() {\n var _this = this;\n\n sysType.getTypesByKey(\"DEF_TYPE\").then(function (data) {\n _this.treeData = data;\n });\n },\n showDialog: function showDialog(selection, formType) {\n this.formType = formType ? formType : 'pc';\n this.selection = [];\n this.loadTreeData();\n this.$refs.htTreeListDialog.showDialog();\n },\n handleClose: function handleClose() {\n this.selection = [];\n this.$refs.htTreeListDialog.handleClose();\n },\n handleLoad: function handleLoad(param, cb) {\n var _this2 = this;\n\n if (this.typeIdQuery) {\n param.querys.push(this.typeIdQuery);\n } // 已发布 启动状态\n\n\n var deployedQuery = {\n property: \"deployed\",\n value: 1,\n group: \"filter\",\n operation: \"EQUAL\",\n relation: \"AND\"\n };\n var statusQuery = {\n property: \"status\",\n value: \"normal\",\n group: \"filter\",\n operation: \"EQUAL\",\n relation: \"AND\"\n };\n param.querys.push(deployedQuery);\n param.querys.push(statusQuery); // 参数说明 url requestBodyParam requestParam\n\n req.post(\"${form}/bo/def/v1/list\", param).then(function (data) {\n var response = data.data;\n\n if (response.rows) {\n response.rows.forEach(function (row) {\n if (row.createTime && row.createTime.constructor == Number) {\n row.createTime = new Date(row.createTime).format(\"yyyy-MM-dd hh:mm:ss\");\n }\n });\n }\n\n _this2.data = response.rows;\n _this2.pagination = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n }).finally(function () {\n return cb();\n });\n },\n loadListData: function loadListData(nodedata) {\n var queryFilter = {\n pageBean: this.pagination,\n querys: []\n };\n this.typeIdQuery = {\n property: \"categoryId\",\n value: nodedata.id,\n group: \"categoryGroup\",\n operation: \"EQUAL\",\n relation: \"AND\"\n };\n this.handleLoad(queryFilter, function () {});\n },\n onConfirm: function onConfirm(selection) {\n if (selection.length < 1) {\n this.$message({\n message: \"请至少选择一条BO建模记录。\",\n type: \"warning\"\n });\n this.$refs.htTreeListDialog.showDialog();\n return;\n }\n\n var ids = '';\n selection.forEach(function (item) {\n if (ids) {\n ids += ',';\n }\n\n ids += item.id;\n });\n this.selection = selection;\n this.$refs.formTemplateDialog.showDialog(ids);\n },\n confirmTemplate: function confirmTemplate(templateModel) {\n if (templateModel) {\n this.$emit(\"onConfirm\", {\n \"selection\": this.selection,\n \"templateConf\": templateModel\n }, this.name);\n } else {\n this.$emit(\"onConfirm\", this.selection, this.name);\n }\n\n this.$emit(\"input\", this.selection);\n },\n reset: function reset() {\n /**\r\n * 点击重置按钮\r\n * 1. 清空树条件 this.typeIdQuery = \"\";\r\n * 2. 清空树选中状态\r\n * */\n if (this.typeIdQuery) {\n this.$refs.htTreeListDialog.$refs.tree.$refs.elTree.currentNode.node.isCurrent = false;\n }\n\n this.typeIdQuery = \"\";\n }\n }\n};",null]}