{"remainingRequest":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\examine-fvue\\src\\components\\ImportExportData\\CustomQueryShow.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\components\\ImportExportData\\CustomQueryShow.vue","mtime":1667280203686},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\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\r\nimport CustomQuery from '@/components/ImportExportData/CustomQuery.js'\r\n\r\nexport default {\r\n name: 'custom-query-show',\r\n data() {\r\n return {\r\n title: '',\r\n customQuery: {}, //关联查询定义\r\n isShowSearch: false, //是否显示高级搜索\r\n dialogVisible: false, //是否显示关联数据\r\n tableData: [], //ht-table列表数据\r\n }\r\n },\r\n methods: {\r\n //显示关联数据\r\n showDialog(alias, title) {\r\n alias &&\r\n CustomQuery.get(alias).then(\r\n (query) => {\r\n this.customQuery = {...query}\r\n this.customQuery.resultfield = JSON.parse(\r\n this.customQuery.resultfield\r\n )\r\n this.customQuery.sortfield = JSON.parse(\r\n this.customQuery.sortfield\r\n )\r\n this.customQuery.conditionfield = JSON.parse(\r\n this.customQuery.conditionfield\r\n )\r\n this.isShowSearch =\r\n this.customQuery.conditionfield.some(\r\n (c) => c.defaultType == '1' && c.controllerType\r\n )\r\n this.title = title || '关联查询预览'\r\n this.dialogVisible = true\r\n },\r\n () => {\r\n this.$message.error(\r\n `预览关联查询时出错,找不到别名为:${alias}的关联查询。`\r\n )\r\n }\r\n )\r\n },\r\n //加载数据\r\n loadData(param, cb) {\r\n // 构建上下文数据对象\r\n let ctx = {}\r\n param.querys &&\r\n param.querys.forEach((element) => {\r\n ctx[element.property] = element.value\r\n })\r\n CustomQuery.load(this.customQuery.alias, ctx)\r\n .then((data) => {\r\n this.tableData = data\r\n })\r\n .finally(() => cb())\r\n },\r\n //关闭关联数据\r\n handleClose() {\r\n this.customQuery = {}\r\n this.title = ''\r\n this.isShowSearch = false\r\n this.tableData = []\r\n this.dialogVisible = false\r\n },\r\n },\r\n}\r\n",null]}