{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\DigitalChongqingApplication\\DocumentLibrary.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\DigitalChongqingApplication\\DocumentLibrary.vue","mtime":1711100280280},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport _toConsumableArray from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/toConsumableArray\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\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//\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 pagination from '@/components/pagination';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport apiList from '@/api/digitalApi/appApi';\nimport FileList from '@/components/uploadFile/FileList.vue';\nvar portal = window.context.portal;\nexport default {\n name: 'DocumentLibrary',\n components: {\n pagination: pagination,\n FileList: FileList\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n accept: '.pdf',\n actionUrl: \"\".concat(portal, \"/file/v1/uploadFileForConfig\"),\n header: {\n Authorization: \"Bearer \".concat(this.$store.state.login.currentUser.token)\n },\n uploadData: {\n bizCode: 'AppLication',\n bizId: '',\n bizType: ''\n },\n searchOptions: [{\n label: '是',\n value: '1'\n }, {\n label: '否',\n value: '0'\n }],\n tableMaxHeight: 400,\n loading: false,\n tableLoading: false,\n searchForm: {},\n // 顶部搜索对象\n markLoading: false,\n tableData: [{\n estigationName: '测试',\n scoringDate: \"2024-02-20\",\n status: 0\n }],\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\n showTotal: true\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: '',\n // 字段名\n relation: 'AND',\n value: {}\n }, {\n group: 'main',\n operation: 'NOTNULL',\n parentGroup: '',\n property: 'list_Code_',\n // 字段名\n relation: 'AND',\n value: \"\"\n }]\n },\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n deleteIds: '',\n // 是否选中列表解锁删除按钮\n dialogFormVisible: false,\n fileData: {}\n };\n },\n created: function created() {\n this.getData(this.params);\n },\n methods: {\n addFile: function addFile() {\n var _this = this;\n\n this.$refs['fileForm'].validate(function (valid) {\n if (valid) {\n _this.$confirm('确认保存吗?', _this.$t('common.tips'), {\n confirmButtonText: _this.$t('common.confirm'),\n cancelButtonText: _this.$t('common.cancel'),\n type: 'error'\n }).then(function () {\n var data = JSON.parse(JSON.stringify(_this.fileData));\n var arr = data.fileList.map(function (item) {\n return item.filePath;\n });\n data.filePath = arr.join('$_$');\n apiList.saveFile(data, function (res) {\n console.log(res);\n });\n });\n }\n });\n },\n handleImportSuccess: function handleImportSuccess(res, file, fileList) {\n var name = res.fileName,\n id = res.fileId;\n var filePath = \"\".concat(name, \"@\").concat(id);\n var newFile = {\n name: name,\n id: id,\n filePath: filePath\n };\n\n if (!this.fileData.fileList) {\n this.$set(this.fileData, 'fileList', [newFile]);\n } else {\n this.fileData.fileList.push(newFile);\n }\n\n this.$message.success('附件上传成功');\n this.markLoading = false;\n },\n setLoading: function setLoading() {\n this.markLoading = true;\n },\n openDialog: function openDialog() {\n this.dialogFormVisible = true;\n },\n getData: function getData(data) {\n var _this2 = this;\n\n this.tableLoading = true;\n apiList.getFileList(data, function (res) {\n if (res) {\n _this2.pageResult.total = res.total;\n _this2.tableLoading = false;\n _this2.tableData = res.rows;\n }\n });\n },\n toEditPage: function toEditPage(type, row) {\n console.log(row);\n this.$router.push({\n path: '/platLayout/saveOrUpdatePage',\n query: {\n id: row.id,\n type: type,\n key: 'basic'\n }\n });\n },\n handleSearch: function handleSearch(page) {\n var _this3 = this;\n\n this.tableLoading = true;\n var data = JSON.parse(JSON.stringify(this.params));\n var obj = JSON.parse(JSON.stringify(this.searchForm));\n var querys = [];\n\n for (var i in obj) {\n if (obj[i]) {\n querys.push({\n group: 'main',\n operation: i == 'app_Name_' || i == 'qt_Unit_Name_' ? 'LIKE' : 'EQUAL',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n }\n }\n\n data.querys = [].concat(_toConsumableArray(data.querys), querys);\n data.pageBean.page = page;\n this.pageResult.page = page;\n apiList.getFileList(data, function (res) {\n _this3.pageResult.total = res.total;\n _this3.tableLoading = false;\n _this3.tableData = res.rows;\n });\n },\n handleCurrentChange: function handleCurrentChange(page) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n page: page\n });\n this.handleSearch(page);\n },\n handleSizeChange: function handleSizeChange(pageSize) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n pageSize: pageSize\n });\n this.handleSearch(1);\n },\n //获取删除数据id集合\n handleSelectionChange: function handleSelectionChange(val) {\n var arr = val.map(function (item) {\n return item.id;\n });\n this.deleteIds = arr.join(',');\n },\n //删除\n handleDelete: function handleDelete() {\n var _this4 = this;\n\n this.$confirm('确认删除吗?', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'error'\n }).then(function () {\n _this4.markLoading = true; // apiList.deleteDataById(this.deleteIds, res => {\n // if (res.state) {\n // this.handleSearch(1)\n // this.$message.success('删除成功')\n // this.markLoading = false\n // } else {\n // this.markLoading = false\n // }\n // })\n });\n }\n }\n};",null]}