{"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/Library/ValidateLibsList.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/Library/ValidateLibsList.vue","mtime":1701674859500},{"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//\n//\n//\n//\n//\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 { getValidateLibsList,deleteValidateLibsList } from \"@/service/LibraryAPI.js\";\nimport {delMsg} from '@/utils/elementui'\nexport default {\n name: \"MacroLibsList\",\n data () {\n return {\n formInline: {\n inputName: \"\", //名称\n },\n tableHeight: \"100\",\n tableData: {},\n params: {\n id: \"\",\n searchword: \"\",\n currpage: 1,\n pagelines: 10\n },\n multipleSelection: [], //将获取选中的数组放进去\n }\n },\n mounted(){\n this.getScollerHeight();\n this.getValidateLibstions();\n },\n methods:{\n /**\n * 动态计算页面table高度\n */\n getScollerHeight() {\n setTimeout(() => {\n let clientHeight = document.documentElement.clientHeight || document.body.clientHeight;\n //60 头部, 32 面包屑, 41 第一层页签, 40 第二层页签, 50 列表标题, 71 查询, 20 父组件外边距, 38分页\n this.tableHeight = (clientHeight - 60 - 32 - 41 - 40 - 50 - 71 - 20 - 38) + 'px'\n }, 100)\n },\n /**\n * 获取校验库列表的数据\n */\n async getValidateLibstions(searchword = \"\"){\n let params = {\n ...this.params,\n searchword,\n }\n this.params = params;\n let appId = sessionStorage.getItem(\"appId\");\n const response = await getValidateLibsList(params, appId)\n if (response.data.errcode == 0) {\n this.tableData = response.data.data;\n }\n },\n /**\n * 当前页\n */\n handleCurrentChange(val) {\n let params = {\n ...this.params,\n currpage: val,\n searchword: this.formInline.inputName\n }\n this.params = params;\n this.getValidateLibstions(this.formInline.inputName);\n },\n\n /**\n * 切换分页,每页显示多少条\n */\n handleSizeChange(val){\n let params = {\n ...this.params,\n pagelines: val\n }\n this.params = params;\n this.getValidateLibstions(\"\");\n },\n /**\n * 点击列表某一列进去编辑\n */\n rowClick(row){\n this.$store.dispatch(\"rightHelpPageParams\", { title: this.$t('msg.checking_msg'), url: \"application/application_info_libraries_validateLibs_info_help.html\" });\n this.$router.push({path: '/home/softwaresdetails/Library/ValidateLibs',query:{edit: true, validId: row.id}});\n },\n /**\n * selectInputName\n * 名称查询\n */\n selectInputName(){\n this.getValidateLibstions(this.formInline.inputName);\n \n },\n /**\n * 重置查询\n */\n resetApplictions(){\n this.formInline.inputName='';\n this.selectInputName();\n },\n /**\n * 获取选中的表格数据\n */\n handleSelectionChange(val){\n this.multipleSelection = val;\n },\n /**\n * 新建校验库详情\n */\n addDataSource(){\n this.$store.dispatch(\"rightHelpPageParams\", { title: this.$t('msg.checking_msg'), url: \"application/application_info_libraries_validateLibs_info_help.html\" });\n this.$router.push({path: '/home/softwaresdetails/Library/ValidateLibs',query:{edit: false}});\n },\n /**\n * 移除\n */\n async remove(){\n let selectData = this.multipleSelection;\n let data = [];\n for(let i=0;i 0){\n let appId = sessionStorage.getItem(\"appId\");\n try{\n await delMsg(this.$t('msg.delConfirm'), this.$t('msg.tip'))\n const response = await deleteValidateLibsList(appId, data)\n if (response.data.errcode == 0) {\n this.$message.success(this.$t('msg.remove_ss'));\n this.getValidateLibstions();\n }\n }catch(e){\n console.log(e)\n }\n }else{\n this.$message.error(this.$t('msg.check_data'))\n }\n },\n },\n watch: {\n \"$store.state.rightHelpPageParams\": {\n handler() {\n if (this.$store.state.rightHelpFrame) {\n this.$store.state.rightHelpFrame.contentWindow.showHelpContentHtml(this.$store.state.rightHelpPageParams.title, this.$store.state.rightHelpPageParams.url);\n }\n },\n deep: true,\n },\n },\n}\n",null]}