{"remainingRequest":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\BasicData\\components\\Personal.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\BasicData\\components\\Personal.vue","mtime":1704791096018},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-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/damDance-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\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//\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 PersonalDialog from \"./PersonalDialog.vue\";\nimport Personal from '@/api/basicConfiguration/Personal';\nexport default {\n name: 'Personal',\n components: {\n pagination: pagination,\n PersonalDialog: PersonalDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n markLoading: false,\n tableMaxHeight: 400,\n tableData: [],\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'name',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'phone',\n relation: 'AND',\n value: ''\n }],\n reqData: {\n querys: [],\n pageBean: {\n page: 1,\n pageSize: 20,\n showTotal: true\n }\n },\n tableLoading: false,\n deleteIds: '',\n parameter: {\n size: 20,\n page: 1\n },\n actionUrl: ''\n };\n },\n created: function created() {\n // this.fljbList = dictUtils.getDictItemsFromCache('fljb')\n this.actionUrl = window.context.portal;\n this.getData();\n },\n methods: {\n selectable: function selectable(row) {\n if (row.isDele === '1') {\n return false;\n } else {\n return true;\n }\n },\n //获取数据\n getData: function getData(page) {\n var _this = this;\n\n if (page) {\n this.reqData.pageBean.page = page;\n }\n\n this.reqData.querys = [];\n\n if (this.querys[0].value) {\n this.reqData.querys.push(this.querys[0]);\n }\n\n if (this.querys[1].value) {\n this.reqData.querys.push(this.querys[1]);\n }\n\n this.tableLoading = true;\n Personal.dataQuery(this.reqData, function (res) {\n _this.pageResult.total = res.total;\n _this.tableLoading = false;\n _this.tableData = res.rows; // this.tableData.forEach(e => {\n // this.fljbList.forEach(f => {\n // if (e.level == f.value) {\n // e.levelName = f.name\n // }\n // })\n // })\n });\n },\n // 编辑\n handleEdit: function handleEdit(item) {\n this.$refs.formDialog.edit(item.id);\n },\n //启用or禁止\n enableOrProhibit: function enableOrProhibit(val) {\n var _this2 = this;\n\n Personal.enableDisable({\n id: val.id\n }, function (res) {\n if (res.state) {\n _this2.$message.success(val.status === '0' ? '启用成功' : val.status === '1' ? '禁用成功' : '');\n\n _this2.getData();\n }\n });\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 console.log(this.deleteIds);\n },\n //删除\n handleDelete: function handleDelete(type, val) {\n var _this3 = this;\n\n console.log(val);\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 _this3.markLoading = true;\n\n if (type === 'delete') {\n Personal.remove(val.id, function (res) {\n if (res.state) {\n _this3.getData();\n\n _this3.$message.success('删除成功');\n\n _this3.markLoading = false;\n } else {\n _this3.markLoading = false;\n }\n });\n } else {\n Personal.batchRemove(_this3.deleteIds, function (res) {\n if (res.state) {\n _this3.getData();\n\n _this3.$message.success('删除成功');\n\n _this3.markLoading = false;\n } else {\n _this3.markLoading = false;\n }\n });\n }\n });\n },\n handleSizeChange: function handleSizeChange(val) {\n this.reqData.pageBean.pageSize = val;\n this.getData();\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.reqData.pageBean.page = val;\n this.getData();\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n // 文件上传前\n beforeUpload: function beforeUpload() {\n this.tableLoading = true;\n },\n //上传成功\n handleAvatarSuccess: function handleAvatarSuccess(res, file) {\n //提示\n this.$notify({\n type: 'success',\n message: this.$t('导入成功!'),\n duration: 2000\n });\n this.getData(); //调用用页面查询接口,刷新数据\n },\n downFile: function downFile() {\n Personal.exportFile(_objectSpread(_objectSpread({}, this.reqData), {}, {\n pageBean: {\n pageSize: -1\n }\n }), function () {});\n },\n //上传失败\n handleAvatarError: function handleAvatarError(err, file, fileList) {\n //提示\n this.$notify({\n type: 'error',\n message: this.$t('导入失败!'),\n duration: 2000\n });\n this.tableLoading = false;\n },\n // 模板下载\n downModel: function downModel() {\n window.open(this.actionUrl + '/base/team/member/downModel', '_blank');\n }\n }\n};",null]}