{"remainingRequest":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\eslint-loader\\index.js??ref--13-0!D:\\jenkins\\workspace\\sfz-lh-fvue\\src\\mixins\\tableMixin.js","dependencies":[{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\src\\mixins\\tableMixin.js","mtime":1701284905340},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\eslint-loader\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import req from '@/request.js';\nimport utils from '@/utils.js'; // import sat from '@/api/satisfaction/satisfaction'\n// import pilot from '@/api/pilotprojects'\n\nvar portal = window.context.portal;\nexport var TableMixin = {\n data: function data() {\n return {\n tableMaxHeight: 600,\n showMore: false,\n header: {\n Authorization: \"Bearer \".concat(this.$store.state.login.currentUser.token)\n },\n deleteIds: '',\n tableData: [],\n loading: false,\n searchPanel: 0\n };\n },\n mounted: function mounted() {\n var _this = this;\n\n this.calcTableHeight();\n this.$root.$on('resize', function () {\n _this.calcTableHeight(500);\n });\n },\n created: function created() {},\n methods: {\n //添加\n handleAdd: function handleAdd() {\n this.$refs.form.open();\n },\n handleEdit: function handleEdit(row) {// this.$refs.form.open(row, 'edit')\n },\n handleDetail: function handleDetail(row) {// this.$refs.form.open(row, 'detail')\n },\n //获取删除数据id集合\n handleSelectionChange: function handleSelectionChange(val) {\n if (!val.length) {\n this.deleteIds = '';\n return;\n }\n\n var arr = val.map(function (item) {\n return item.id;\n });\n this.deleteIds = arr.join(',');\n },\n // 获取字典值翻译\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n calcTableHeight: function calcTableHeight(delay) {\n var _this2 = this;\n\n // 动态计算表格的高度,自适应当前容器\n setTimeout(function () {\n if (!_this2.$refs.contentPanel) {\n return;\n } // 容器高度 - 内边距\n\n\n var contentPanel = 0;\n var contentPanelHeight = _this2.$refs.contentPanel.clientHeight || _this2.$refs.contentPanel.$el.clientHeight;\n contentPanel = contentPanelHeight;\n _this2.searchPanel = contentPanel;\n }, delay || 0);\n },\n commonPageClick: function commonPageClick() {\n if (this.showMore) {\n this.showMore = false;\n }\n },\n // 展开高级搜索\n advanced: function advanced() {\n var _this3 = this;\n\n this.isAdvanced = !this.isAdvanced;\n this.$nextTick(function () {\n _this3.calcTableHeight(500);\n });\n },\n clearSearchForm: function clearSearchForm() {\n this.advanced();\n this.isAdvanced = false;\n this.searchForm = {};\n\n if (this.slefClearMethods) {\n this.slefClearMethods();\n }\n\n this.handleSearch();\n },\n // 分页\n handleCurrentChange: function handleCurrentChange(page) {\n this.params.pageBean.page = page;\n this.loadData();\n },\n handleSizeChange: function handleSizeChange(pageSize) {\n this.params.pageBean.pageSize = pageSize;\n this.loadData(1);\n }\n }\n};",null]}