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