{"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\\customDialog\\ParamSettingDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\form\\customDialog\\ParamSettingDialog.vue","mtime":1675071992960},{"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/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//\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//\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 { Message } from \"element-ui\";\nimport form from \"@/api/form.js\";\nimport req from \"@/request.js\";\nexport default {\n  name: \"param-setting-dialog\",\n  props: {\n    //条件字段用户输入配置\n    config: {\n      type: Object,\n      required: true\n    },\n    data: {\n      type: Array,\n      required: true\n    },\n    title: {\n      type: String,\n      required: true\n    }\n  },\n  data: function data() {\n    return {\n      conditionfieldData: this.data,\n      dialogVisible: false,\n      //是否显示对话框\n      mapParam: {},\n      //动态传入的条件参数\n      field: this.config,\n      dicDefaultProps: {\n        children: \"children\",\n        label: \"name\"\n      },\n      tagData: [],\n      customQuerys: []\n    };\n  },\n  methods: {\n    // 当字段与关联查询绑定后，将关联查询中多余的属性删除\n    slimCustomQuery: function slimCustomQuery(customQuery) {\n      if (customQuery && customQuery.constructor == Object) {\n        // 删除多余的属性\n        delete customQuery[\"id\"];\n        delete customQuery[\"createTime\"];\n        delete customQuery[\"pkVal\"];\n        delete customQuery[\"objName\"];\n        delete customQuery[\"needPage\"];\n        delete customQuery[\"pageSize\"];\n        delete customQuery[\"dsalias\"];\n        delete customQuery[\"dataParam\"];\n        delete customQuery[\"sortfield\"];\n        delete customQuery[\"diySql\"];\n        delete customQuery[\"isTable\"];\n        delete customQuery[\"sqlBuildType\"]; // delete customQuery[\"dsType\"];\n\n        delete customQuery[\"url\"];\n        delete customQuery[\"header\"];\n        delete customQuery[\"requestType\"];\n        delete customQuery[\"pageKey\"];\n        delete customQuery[\"pageSizeKey\"];\n        delete customQuery[\"totalKey\"];\n        delete customQuery[\"listKey\"];\n      }\n    },\n    //选择动态选项\n    setCurrentCustomQuery: function setCurrentCustomQuery() {\n      var _this2 = this;\n\n      var _this = this;\n\n      _this.field.customQuery.custQueryJson = [];\n\n      _this.customQuerys.forEach(function (item) {\n        if (_this.field.customQuery.alias == item.alias) {\n          if (typeof item.conditionfield == \"string\") {\n            item.conditionfield = JSON.parse(item.conditionfield); //parseToJson(item.customQuery.conditionfield);\n\n            item.resultfield = JSON.parse(item.resultfield); // parseToJson(item.customQuery.resultfield);\n          } //把当前对象克隆一份到控件属性配置\n\n\n          Object.assign(_this.field.customQuery, item);\n\n          _this.slimCustomQuery(_this.field.customQuery);\n        }\n      }); //删除掉无效的参数\n\n\n      var bind = [];\n      this.field.customQuery.conditionfield.forEach(function (item) {\n        if (item.defaultType == 1) {\n          bind.push(item);\n        }\n      });\n      this.field.bind = bind; //切换关联数据设置项或下拉框动态值 同时清空绑定返回值、参数绑定、选项绑定\n\n      this.custDialogprop = {};\n      this.field.options.gangedBind = {};\n      this.field.customQuery.valueBind = \"\";\n      this.field.customQuery.labelBind = \"\";\n\n      if (this.field.customQuery.conditionfield) {\n        this.field.customQuery.conditionfield.forEach(function (element) {\n          _this2.$set(element, \"fieldPath\", \"\");\n        });\n      }\n    },\n    afterCustomQueryLoadData: function afterCustomQueryLoadData(data) {\n      this.customQuerys = data.rows;\n    },\n    tagNodeClick: function tagNodeClick(data) {\n      this.field.tag = data.typeKey;\n      this.field.tagName = data.name;\n      this.$refs.tagSelect.blur();\n    },\n    tagClick: function tagClick(visible) {\n      var _this3 = this;\n\n      if (this.tagData && this.tagData.length > 0) return;\n      form.getCategory(\"TAG\", function (data) {\n        _this3.tagData = data.data;\n      });\n    },\n    //切换固定选项和动态选项时\n    dynamicClick: function dynamicClick() {\n      this.customQueryUrl = \"/form/customQuery/v1/list\";\n      this.field.customQuery = {\n        valueBind: \"\",\n        labelBind: \"\",\n        conditionfield: [],\n        custQueryJson: []\n      };\n      this.field.bind = [];\n      this.field.options = [];\n    },\n    //确认对话框\n    handleSave: function handleSave() {\n      this.$emit(\"returnVal\", this.field);\n      this.dialogVisible = false; // setTimeout(() => {\n      //   this.$refs.eipTreeDialog.showDialog();\n      // });\n    },\n    //关闭对话框\n    handleClose: function handleClose() {\n      this.dialogVisible = false;\n    }\n  }\n};",null]}