{"remainingRequest":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/src/components/AdvancedTool/IndexManagerList.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/src/components/AdvancedTool/IndexManagerList.vue","mtime":1701674859498},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/babel-loader/lib/index.js","mtime":1701674874357},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/cache-loader/dist/cjs.js","mtime":1701674874584},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/vue-loader/lib/index.js","mtime":1701674874903}],"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\nimport { getIndexManager,optimization} from \"@/service/AdvancedToolAPI.js\";\nexport default {\n name: \"IndexManagerList\",\n props:['dialogvisible','editDataSourceId'],\n data() {\n return {\n data:[],\n loading:true,\n dataText: \"\", // 数据还未请求回来的显示的内容\n }\n },\n computed: {\n visible: {\n get() {\n return this.dialogvisible;\n },\n set(val) {\n this.$emit(\"update:dialogvisible\", val);\n }\n }\n },\n created(){\n this.getData();\n },\n mounted(){\n \n },\n methods: {\n //优化索引\n optimization(){\n this.loading=true;\n let appId = sessionStorage.getItem(\"appId\");\n optimization(appId,{\n onSucess: response => {\n if (response.data.errcode == 0) {\n this.loading=false;\n this.$message({\n message: this.$t('msg.optimization_ss'),\n type: 'success'\n });\n }\n }\n })\n },\n //获取索引数据\n async getData(){\n let appId = sessionStorage.getItem(\"appId\");\n const response = await getIndexManager(this.editDataSourceId,appId)\n if(response.data.errcode == 0) {\n this.loading=false;\n this.data=response.data.data;\n if (this.data.length === 0) {\n this.dataText = this.$t('label.no_data');\n }\n }else{\n this.loading=false;\n }\n },\n },\n}\n",null]}