{"remainingRequest":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\cssc-fvue\\src\\components\\querySql\\querySqlContent.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cssc-fvue\\src\\components\\querySql\\querySqlContent.vue","mtime":1667804639477},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport DynamicView from \"@/components/querySql/DynamicView.vue\";\nimport utils from \"@/utils.js\";\n\nexport default {\n name: \"querySqlContent\",\n props: {\n sqlAlias: String,\n alias: String,\n single: String,\n },\n data() {\n return {\n queryView: {},\n displayFields: [],\n html: \"\",\n alarmSettingMap:{},\n summaryTypeMap:{},\n loadedFail:false\n };\n },\n watch: {\n alias: function(newVal) {\n if (newVal) {\n this.init();\n }\n }\n},\n components: {\n DynamicView\n },\n\n created() {\n this.init();\n },\n methods: {\n // 根据当前formKey初始化\n init() {\n const loading = this.$loading(this.options);\n let _me = this;\n this.$store\n .dispatch(\"form/getQuerySqlView\", {\n sqlAlias: this.sqlAlias,\n alias: this.alias\n })\n .then(result => {\n if (result) {\n _me.queryView = result;\n _me.html = result.template;\n\n let params = { sqlAlias: _me.sqlAlias, alias: _me.alias };\n let pageBean = {\n pageBean: {\n page: \"1\",\n pageSize: result.pageSize ? result.pageSize : 30,\n showTotal: \"true\"\n }\n }; //初次加载默认pageBean\n params.pagination = pageBean;\n this.$store\n .dispatch(\"form/getQuerySqlViewByPagination\", params)\n .then(() => {\n loading.close();\n });\n }else{\n this.loadedFail = true;\n }\n }).finally(()=>{\n loading.close();\n });\n }\n }\n};\n",null]}