{"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\\EipDataTemplateDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\dialog\\EipDataTemplateDialog.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\";\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\";\nimport sysType from \"@/api/sysType.js\";\nimport req from \"@/request.js\";\nexport default {\n  name: \"eip-data-template-dialog\",\n  props: {\n    value: Array,\n    single: {\n      type: Boolean,\n      default: true\n    },\n    defKey: {\n      type: String,\n      default: \"\"\n    },\n    type: {\n      type: String,\n      default: \"\"\n    },\n    name: String,\n    formType: {\n      type: String,\n      default: \"pc\"\n    },\n    appendToBody: {\n      type: Boolean,\n      default: false\n    },\n    destroyOnClose: {\n      type: Boolean,\n      default: false\n    },\n    rightType: {\n      type: String,\n      default: \"\"\n    }\n  },\n  data: function data() {\n    return {\n      data: [],\n      treeData: null,\n      tableColumns: [{\n        prop: \"name\",\n        label: \"名称\"\n      }, {\n        prop: \"alias\",\n        label: \"别名\"\n      }, {\n        prop: \"boDefAlias\",\n        label: \"业务对象别名\"\n      }, {\n        prop: \"typeName\",\n        label: \"分类\"\n      }],\n      querys: [],\n      pagination: {\n        page: 1,\n        pageSize: 50,\n        total: 0\n      },\n      typeIdQuery: null\n    };\n  },\n  mounted: function mounted() {},\n  methods: {\n    loadTreeData: function loadTreeData() {\n      var _this = this;\n\n      sysType.getSysTypeByCatId(\"7\").then(function (data) {\n        _this.treeData = data;\n      });\n    },\n    showDialog: function showDialog() {\n      this.loadTreeData();\n      this.$refs.htTreeListDialog.showDialog();\n    },\n    handleClose: function handleClose() {\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      param.params = param.params || {};\n\n      if (this.defKey != \"\") {\n        if (this.type == \"flow\") {\n          param.querys.push({\n            property: \"defId\",\n            value: this.defKey,\n            operation: \"EQUAL\",\n            relation: \"AND\"\n          });\n        } else {\n          param.querys.push({\n            property: \"formKey\",\n            value: this.defKey,\n            operation: \"EQUAL\",\n            relation: \"AND\"\n          });\n        }\n      } // 参数说明  url  requestBodyParam  requestParam\n\n\n      form.getDataTemplateData(param).then(function (response) {\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: \"typeId\",\n        value: nodedata.id,\n        group: \"categoryGroup\",\n        operation: \"LIKE\",\n        relation: \"AND\"\n      };\n      this.handleLoad(queryFilter, function () {});\n    },\n    onConfirm: function onConfirm(selection) {\n      this.$emit(\"onConfirm\", selection, this.name);\n      this.$emit(\"input\", 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]}