{"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\\BusinessObjEnts.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\form\\BusinessObjEnts.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":["//\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 req from \"@/request.js\";\nexport default {\n name: \"BusinessObjEnts\",\n props: [\"formData\"],\n data: function data() {\n return {\n relationData: [{\n key: \"onetoone\",\n value: \"一对一\"\n }, {\n key: \"onetomany\",\n value: \"一对多\"\n }],\n activeNames: [\"-1\"],\n currentEntType: null,\n //当前编辑的实体类型:main,sub,sun\n currentSunIndex: -1 //当前编辑的孙实体索引\n\n };\n },\n computed: {\n // 业务对象是否已经发布\n deployed: function deployed() {\n return this.formData && this.formData.deployed == 1;\n }\n },\n methods: {\n deleteEnt: function deleteEnt(index) {\n var _this = this;\n\n this.$confirm(\"是否确认删除?\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(function () {\n _this.deleteEntRows(index);\n });\n },\n addEntRows: function addEntRows() {\n this.$emit(\"addEntRows\");\n },\n addEntExts: function addEntExts(index, i) {\n this.$emit(\"addEntExts\", index, i);\n },\n getEntsByIndex: function getEntsByIndex(index) {\n this.$emit(\"getEntsByIndex\", index);\n this.$forceUpdate();\n this.currentEntType = index > 0 ? \"sub\" : \"main\";\n },\n addGrandSonEnt: function addGrandSonEnt(index) {\n this.$emit(\"addGrandSonEnt\", index);\n },\n deleteEntRows: function deleteEntRows(index) {\n if (index - 1 >= 0) {\n //删除实体之后自动选择上一个实体\n this.$emit(\"getEntsByIndex\", index - 1, \"delete\");\n }\n\n this.$emit(\"deleteEntRows\", index);\n },\n entBlur: function entBlur(index) {\n this.$emit(\"entBlur\", index);\n },\n chineseFormat: function chineseFormat(id, list, param, index, v) {\n this.$emit(\"chineseFormat\", id, list, param, index, v);\n },\n getGrandSonEntsByIndex: function getGrandSonEntsByIndex(i, index) {\n this.currentSunIndex = i;\n this.$emit(\"getGrandSonEntsByIndex\", i, index);\n this.currentEntType = \"sun\";\n },\n deleteGrandSonEntRows: function deleteGrandSonEntRows(i, index) {\n this.$emit(\"deleteGrandSonEntRows\", i, index);\n }\n },\n watch: {\n currentEntType: function currentEntType(newVal) {\n // 不再编辑孙实体时重置 索引为-1\n if (newVal != \"sun\") {\n this.currentSunIndex = -1;\n this.activeNames = [-1];\n }\n }\n }\n};",null]}