{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/src/components/personKm/recentUpload.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/src/components/personKm/recentUpload.vue","mtime":1742796810166},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/babel-loader/lib/index.js","mtime":315532800000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/vue-loader/lib/index.js","mtime":1655715099000}],"contextDependencies":[],"result":["\nimport API from \"@/api.js\";\nimport { TimeToDate, getClientHeight, filePreview } from \"../../utils/utils.js\";\nexport default {\n name: \"recentUpload\",\n props: [\n 'activeName'\n ],\n data () {\n return {\n tableData: [],\n authorityModalParams: { //权限对话框\n fileId: \"\",\n authorityVisible: false, \n type: \"\" \n },\n params:{\n pageNo: 1,\n linesPerPage: 100,\n },\n type: [],\n clientHeight: '',\n kmsFilePath: kmsFilePath\n }\n },\n\n watch:{\n activeName(val){\n if(val == 'recentupload'){\n this.getUploadView();\n this.clientHeight = getClientHeight(this.$store.state.isShowHeard)\n }\n },\n },\n\n created(){\n //获取浏览器可视区域高度\n this.clientHeight = getClientHeight(this.$store.state.isShowHeard)\n },\n\n methods: {\n //获取最新上传的数据\n getUploadView() {\n API.getRecentlyUpload(this.params, {\n onSucess: resp => {\n let data = resp.data.data;\n if(data.datas){\n //获取时间进行格式转换\n for(let i=0;i {\n if(resp.data.errcode == 0){\n let params = {\n staticContextPath: kmsConfig.staticContextPath,\n kmsFilePath: kmsConfig.kmsFilePath,\n diskId: row.diskId,\n fileId: row.id,\n collected: row.collects,\n fileObj: row\n }\n let url = filePreview(params);\n window.open(url);\n }\n },\n onError: error => {\n if(error.response.data && error.response.data.errcode == 403){\n let authorityModalParams = {\n ...this.authorityModalParams,\n authorityVisible: true,\n fileId: row.id,\n type: 'preview'\n }\n this.authorityModalParams = authorityModalParams;\n }\n }\n })\n },\n //申请权限确定\n onAuthiority(value) {\n API.appAuthority(value,{\n onSucess: resp => {\n if(resp.data.errcode == 0){\n this.authorityModalParams.authorityVisible = false;\n this.$message(this.$t('msg.approval_admin_wa'));\n }\n },\n })\n },\n //动态获取类名\n setClass(key) {\n let obj = \"icon-file icon-file-\"+ key.type;\n return obj;\n },\n //改变表格头部的位置\n rowClass({ row, column, rowIndex, columnIndex}) {\n if(rowIndex == 0 && columnIndex == 0 && row.name == column.name){\n return 'padding-left: 25px'\n }else{\n return ''\n }\n },\n },\n mounted () {\n this.getUploadView();\n }\n \n}\n",null]}