{"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\\WorkItems\\groupReformDatabase.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\WorkItems\\groupReformDatabase.vue","mtime":1730105909947},{"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/es6.object.keys\";\nimport _defineProperty from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/web.dom.iterable\";\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//\nimport pagination from '@/components/pagination';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport apiList from '@/api/WorkItems/fileLibrary.js';\nimport fileLibraryDialog from \"./components/fileLibraryDialog.vue\";\nimport utils from '@/utils.js';\nexport default {\n name: 'groupReformDatabase',\n components: {\n pagination: pagination,\n fileLibraryDialog: fileLibraryDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n reqLoading: false,\n loading: false,\n markLoading: false,\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0,\n showTotal: true\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'profile_Type_',\n relation: 'AND',\n value: '7'\n }]\n },\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n searchForm: {},\n // 顶部搜索对象\n deleteIds: '',\n tableData: []\n };\n },\n created: function created() {\n this.getTableData(this.params);\n },\n methods: {\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n refreshData: function refreshData() {\n this.getTableData(this.params);\n },\n getTableData: function getTableData(data) {\n var _this = this;\n\n this.loading = true;\n apiList.pagingQuery(data, function (res) {\n _this.tableData = res.rows;\n _this.params.pageBean.total = res.total;\n _this.loading = false;\n });\n },\n publishOrUnpublish: function publishOrUnpublish(row, status) {\n var _this2 = this;\n\n var msg = status ? '发布' : '取消发布';\n var type = status ? 'success' : 'error';\n this.$confirm(\"\\u786E\\u8BA4\".concat(msg, \"\\u5417\\uFF1F\"), this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: type\n }).then(function () {\n _this2.markLoading = true;\n var data = {\n id: row.id,\n status: status\n };\n apiList.publishById(data, function (res) {\n if (res.state) {\n _this2.$message.success(\"\".concat(msg, \"\\u6210\\u529F\"));\n\n row.status = status;\n }\n\n _this2.markLoading = false;\n });\n });\n },\n //添加\n handleAdd: function handleAdd() {\n this.$refs.fileLibraryDialog.open('group');\n },\n openEdit: function openEdit(row) {\n this.$refs.fileLibraryDialog.open('group', row);\n },\n // 删除\n handleDelete: function handleDelete() {\n var _this3 = this;\n\n this.$confirm('确认删除?', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n apiList.deleteById(_this3.deleteIds, function (res) {\n if (res.state) {\n _this3.$message.success('删除成功');\n\n _this3.getTableData(_this3.params);\n } else {\n _this3.$message.error('删除失败');\n }\n });\n });\n },\n // 顶部搜索\n handleSearch: function handleSearch() {\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 group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'profile_Type_',\n relation: 'AND',\n value: '7'\n }];\n\n for (var i in obj) {\n if (obj[i]) {\n querys.push({\n group: 'main',\n operation: i == 'profileName' ? 'LIKE' : 'EQUAL',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n }\n }\n\n data.querys = querys;\n data.pageBean.page = 1; // this.pageResult.page = page\n\n this.getTableData(data);\n },\n handleSelectionChange: function handleSelectionChange(currentData) {\n if (currentData.length === 0) return this.deleteIds = '';\n var ids = [];\n currentData.forEach(function (item) {\n ids.push(item.id);\n });\n this.deleteIds = ids.join(',');\n console.log(this.deleteIds);\n },\n handleCurrentChange: function handleCurrentChange(page) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n page: page\n });\n this.getTableData(this.params);\n },\n handleSizeChange: function handleSizeChange(pageSize) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n pageSize: pageSize\n });\n this.getTableData(this.params);\n }\n }\n};",null]}