{"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\\ImportExportData\\SelectRelative.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\ImportExportData\\SelectRelative.vue","mtime":1675071991131},{"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 portal from '@/api/portal';\nimport req from '@/request.js';\n\nvar customQueryShow = function customQueryShow() {\n  return import('@/components/ImportExportData/CustomQueryShow.vue');\n};\n\nexport default {\n  name: 'selectRelative',\n  components: {\n    customQueryShow: customQueryShow\n  },\n  data: function data() {\n    return {\n      dialogShow: false,\n      tableHeight: 300,\n      pageResult: {\n        page: 1,\n        pageSize: 50,\n        total: 0\n      },\n      data: [],\n      defaultQuerys: [{\n        property: 'flag_',\n        value: 1\n      }],\n      querySearch: [{\n        label: '名称',\n        prop: 'name_'\n      }, {\n        label: '编码',\n        prop: 'code_'\n      }],\n      selectRow: {},\n      form: {},\n      SettingDialogShow: false,\n      resultfield: [],\n      relationFields: {\n        value: '',\n        label: ''\n      }\n    };\n  },\n  mounted: function mounted() {\n    var _this = this;\n\n    this.calcTableHeight();\n    this.$root.$on('resize', function () {\n      _this.calcTableHeight(500);\n    });\n  },\n  methods: {\n    preview: function preview(row) {\n      if (!row || !row.alias) {\n        this.$message.error(\"\\u6240\\u8981\\u9884\\u89C8\\u7684\\u5173\\u8054\\u67E5\\u8BE2\\u4E3A\\u7A7A\\u6216\\u5176\\u522B\\u540D\\u4E0D\\u5B58\\u5728\");\n        return;\n      }\n\n      var title = \"\".concat(row.name, \" - \\u5173\\u8054\\u67E5\\u8BE2\\u9884\\u89C8\");\n      this.$refs.customQueryShow.showDialog(row.alias, title); //显示自定义对话框列表预览弹框\n    },\n    rowClick: function rowClick(row) {\n      this.currentRow = row;\n\n      if (row.resultfield) {\n        this.resultfield = JSON.parse(row.resultfield);\n      }\n    },\n    // 加载关联查询\n    loadData: function loadData(param, cb) {\n      var _this2 = this;\n\n      req.post(window.context.form + '/form/customQuery/v1/list', param).then(function (response) {\n        _this2.data = response.data.rows;\n        _this2.pageResult = {\n          page: response.data.page,\n          pageSize: response.data.pageSize,\n          total: response.data.total\n        };\n      }).finally(function () {\n        return cb();\n      });\n    },\n    handleOk: function handleOk() {\n      if (this.relationFields.value && this.relationFields.label || !this.relationFields.value && !this.relationFields.label) {\n        this.$emit('change', this.currentRow, this.relationFields);\n      } else {\n        this.$message.warning('请选择关联查询和字段');\n        return;\n      }\n\n      this.closeDialog();\n    },\n    openDialog: function openDialog() {\n      this.dialogShow = true;\n    },\n    closeDialog: function closeDialog() {\n      this.relationFields = {\n        value: '',\n        label: ''\n      };\n      this.resultfield = [];\n      this.currentRow = {};\n      this.data = [];\n      this.dialogShow = false;\n    },\n    // 动态计算表格的高度，自适应当前容器\n    calcTableHeight: function calcTableHeight(delay) {\n      var _this3 = this;\n\n      setTimeout(function () {\n        _this3.tableHeight = document.documentElement.clientHeight * 0.9 - 200;\n      }, delay || 0);\n    }\n  }\n};",null]}