{"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\\views\\form\\BusinessObj.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\form\\BusinessObj.vue","mtime":1675071992881},{"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/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"D:/jenkins/workspace/xq-web-bpm/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.function.name\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\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//\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//\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport form from \"@/api/form.js\";\n\nvar businessObjDialog = function businessObjDialog() {\n return import(\"@/views/form/BusinessObjDialog.vue\");\n};\n\nvar htAsideTree = function htAsideTree() {\n return import(\"@/components/common/HtAsideTree.vue\");\n};\n\nimport FormTemplateDialog from \"@/components/dialog/FormTemplateDialog.vue\";\n\nvar eipSysTypeDialog = function eipSysTypeDialog() {\n return import(\"@/components/dialog/EipSysTypeDialog.vue\");\n};\n\nexport default {\n components: {\n businessObjDialog: businessObjDialog,\n htAsideTree: htAsideTree,\n eipSysTypeDialog: eipSysTypeDialog,\n FormTemplateDialog: FormTemplateDialog\n },\n data: function data() {\n return {\n selectTypeIds: \"\",\n selectTypeName: \"\",\n currentRow: null,\n // 当前选中的数据行\n dataView: {\n id: \"\",\n type: \"\"\n },\n dialogVisible: false,\n dialogVisible2: false,\n tableData: [],\n //表格\n updateTableData: [],\n //修改分类数据\n deployedId: \"\",\n dataformation: \"\",\n //数据视图\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n bindData: \"\",\n clickTree: {\n id: \"\",\n name: \"\"\n },\n formData: {\n //表单\n alias: \"\",\n categoryId: \"\",\n categoryName: \"\",\n deployed: 0,\n description: \"\",\n dsName: \"\",\n isCreateTable: \"\",\n isExternal: \"\",\n status: \"normal\",\n supportDb: true,\n ents: []\n }\n };\n },\n computed: {\n formDeleteUrl: function formDeleteUrl() {\n return \"\".concat(window.context.form, \"/bo/def/v1/removes\");\n }\n },\n methods: {\n //鼠标选中行改变复选框\n rowClick: function rowClick(row, column, event) {\n this.$refs.htTable.$refs.htTable.toggleRowSelection(row);\n },\n //获取建模id\n opretaId: function opretaId(id) {\n this.openBusinessObjDialog(\"edit\", id);\n },\n //关闭绑定关系\n closeBindDialog: function closeBindDialog() {\n this.dialogVisible2 = false;\n },\n //表格选中数据\n tableSelect: function tableSelect(selection) {\n this.updateTableData = selection;\n },\n //表格操作\n showFormDialog: function showFormDialog(param) {\n switch (param.command) {\n case \"edit\":\n this.openBusinessObjDialog(\"edit\", param.row.id);\n break;\n\n case \"deployed\":\n this.deployedId = param.row.id;\n this.deploy(param.row);\n break;\n\n case \"formation\":\n this.getFormation(param);\n break;\n\n case \"normal\":\n this.updateStatus(param, \"forbidden\");\n break;\n\n case \"forbidden\":\n this.updateStatus(param, \"normal\");\n break;\n\n case \"bind\":\n this.openBind(param);\n break;\n }\n },\n openBind: function openBind(param) {\n this.dialogVisible2 = true;\n this.getBingData(param);\n },\n //获取绑定数据\n getBingData: function getBingData(param) {\n var _this = this;\n\n form.getBindData(param.row.id, param.row.alias).then(function (resp) {\n _this.bindData = resp.data;\n });\n },\n //表单对话框\n openBusinessObjDialog: function openBusinessObjDialog(status, id, entId) {\n this.dataView.type = status;\n this.dataView.id = id;\n\n if (entId) {\n for (var i = 0; i < this.bindData.entData.length; i++) {\n if (entId == this.bindData.entData[i].id_) {\n this.dataView.entIndex = i;\n this.dialogVisible2 = false;\n }\n }\n }\n\n this.getFormData();\n },\n //数据视图对话框\n getFormation: function getFormation(param) {\n var _this2 = this;\n\n this.dialogVisible = true;\n form.getDataformation(param.row.alias, function (data) {\n _this2.dataformation = data.data;\n });\n },\n //关闭数据视图\n handleClose: function handleClose() {\n this.dialogVisible = false;\n this.dialogVisible2 = false;\n this.$refs.htTable.load();\n this.bindData = \"\";\n },\n //设置状态\n updateStatus: function updateStatus(param, status) {\n var _this3 = this;\n\n form.updateBusinessObjStatus(param.row.id, status).then(function (resp) {\n if (resp.data.state == true) {\n _this3.$message({\n message: resp.data.message,\n type: \"success\"\n });\n\n _this3.loadTableData();\n\n return;\n }\n\n _this3.$message(resp.message);\n });\n },\n //通过分类树筛选数据\n handleNodeClick: function handleNodeClick(data) {\n if (data && data.id != \"9\") {\n this.clickTree.id = data.id;\n this.clickTree.name = data.name;\n this.selectTypeName = data.name;\n this.$refs.htTable.quickSearch();\n } else {\n if (data) {\n this.selectTypeName = data.name;\n }\n\n this.$refs.htTable.load();\n }\n },\n //加载列表\n loadTableData: function loadTableData(param, cb) {\n var _this4 = this;\n\n var pageInfo = {\n pageBean: {\n page: 1,\n pageSize: 20,\n showTotal: true\n },\n sorter: [{\n direction: \"DESC\",\n property: \"createTime\"\n }]\n };\n\n if (this.selectTypeName && this.selectTypeName != \"建模分类\") {\n if (!param.querys) {\n param.querys = [];\n }\n\n if (param.querys) {\n // 标记是否有选择分类\n var hasCategoryName = false;\n param.querys.forEach(function (query) {\n if (query.property == \"categoryName\") {\n hasCategoryName = true;\n query.value = _this4.selectTypeName;\n }\n });\n\n if (!hasCategoryName) {\n param.querys.push({\n property: \"categoryName\",\n value: this.selectTypeName,\n group: \"main\",\n operation: \"EQUAL\",\n relation: \"AND\"\n });\n }\n }\n }\n\n if (param == undefined) {\n form.getBusinessObjData(pageInfo).then(function (resp) {\n _this4.tableData = resp.rows;\n _this4.pageResult = {\n page: resp.page,\n pageSize: resp.pageSize,\n total: resp.total\n };\n }).finally(function () {\n return cb && cb();\n });\n } else {\n form.getBusinessObjData(param).then(function (resp) {\n _this4.tableData = resp.rows;\n _this4.pageResult = {\n page: resp.page,\n pageSize: resp.pageSize,\n total: resp.total\n };\n }).finally(function () {\n return cb && cb();\n });\n }\n },\n //表单对话框\n handleOpen: function handleOpen() {\n this.$refs.objDialog.handleOpen();\n },\n //表单数据加载\n getFormData: function getFormData() {\n var _this5 = this;\n\n if (this.dataView.id) {\n form.getEntData(this.dataView.id, function (resp) {\n resp.data.ents.forEach(function (entData, index) {\n if (entData.isExternal == \"1\" && index == 0) {\n entData.show = \"主实体-外\";\n } else if (entData.isExternal == \"1\") {\n entData.show = \"子实体-外\";\n }\n\n if (index === 0) {\n entData.isCheck = true;\n }\n\n if (entData.children) {\n entData.children.forEach(function (v) {\n if (v.isExternal == \"1\") {\n v.show = \"孙实体-外\";\n }\n });\n }\n\n for (var q = 0; q < entData.attributeList.length; q++) {\n if (entData.attributeList[q]) {\n if (entData.attributeList[q].isRequired == 0) {\n entData.attributeList[q].isRequired = \"0\";\n } else {\n entData.attributeList[q].isRequired = \"1\";\n }\n }\n\n for (var i = 0; i < entData.attributeList.length - 1 - q; i++) {\n if (entData.attributeList[i].index > entData.attributeList[i + 1].index) {\n var temp = entData.attributeList[i];\n entData.attributeList[i] = entData.attributeList[i + 1];\n entData.attributeList[i + 1] = temp;\n }\n }\n }\n });\n _this5.formData = resp.data;\n\n _this5.handleOpen();\n });\n } else {\n this.handleOpen();\n }\n },\n //发布\n deploy: function deploy(row) {\n var _this6 = this;\n\n form.deploy(this.deployedId).then(function (resp) {\n _this6.$confirm(resp.data.message + \",是否创建表单?\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(function () {\n _this6.currentRow = row;\n\n _this6.$refs.formTemplateDialog.showDialog(row.id);\n\n _this6.loadTableData();\n }).catch(function () {\n _this6.loadTableData();\n });\n });\n },\n //多选\n checkNode: function checkNode(data, checkObj) {\n this.selectTypeIds = checkObj.checkedKeys.join(\",\");\n var param = {\n pageBean: {\n page: 1,\n pageSize: 20,\n showTotal: true\n },\n querys: [{\n property: \"categoryId\",\n value: this.selectTypeIds,\n group: \"main\",\n operation: \"IN\",\n relation: \"AND\"\n }]\n };\n this.selectTypeName = \"\";\n this.loadTableData(param);\n },\n sysTypeDialogOnConfirm: function sysTypeDialogOnConfirm(data) {\n var _this7 = this;\n\n var id = [];\n\n for (var i = 0; i < this.updateTableData.length; i++) {\n id.push(this.updateTableData[i].id);\n }\n\n form.updateCategory(id, data.id, encodeURI(data.name)).then(function (resp) {\n if (resp.data.state == true) {\n _this7.$message({\n message: resp.data.message,\n type: \"success\"\n });\n\n _this7.dialogVisible = false;\n _this7.updateTableData = [];\n\n _this7.loadTableData();\n\n return;\n }\n\n _this7.$message.error(resp.data.message);\n });\n },\n showDialog: function showDialog(ref) {\n if (this.updateTableData.length == 0) {\n this.$message({\n message: \"请先选择需要设置分类的数据\",\n type: \"warning\"\n });\n return;\n }\n\n this.$refs[ref].showDialog({});\n },\n // 选择生成表单的模板\n confirmTemplate: function confirmTemplate(templateModel) {\n var row = _objectSpread({}, this.currentRow);\n\n this.currentRow = null;\n var query = {\n bos: [row]\n };\n\n if (templateModel) {\n query.templateConf = templateModel;\n }\n\n this.$router.push({\n path: \"/form#formManager\",\n query: query\n });\n }\n },\n mounted: function mounted() {\n //业务表单-》查看绑定关系\n if (this.$route.query.id) {\n this.openBusinessObjDialog(\"edit\", this.$route.query.id);\n }\n }\n};",null]}