Parcourir la source

半浮层分页:5

洪海涛 il y a 4 ans
Parent
commit
62de8a2915

+ 2 - 1
src/views/dataBigManage/components/drawerModal/index.vue

@@ -106,6 +106,7 @@
 <script>
 // import { mapGetters } from 'vuex'
 import { bugList } from '@/api/defectManage'
+import _ from 'lodash'
 import { getReportList } from '@/api/reportTemplate'
 import dmTable from './components/table.vue'
 import timeline from './components/timeline'
@@ -362,7 +363,7 @@ export default {
       const paging = _.cloneDeep(this.paging)
       paging.pageSize = value
       this.paging = _.cloneDeep(paging)
-      if (this.headerTitle === '效率' && this.title !== "需求人力") {
+      if (this.headerTitle === '效率' && this.title !== '需求人力') {
         this.tableListPagination()
       } else {
         this.setTableList()

+ 1 - 1
src/views/dataBigManage/index.vue

@@ -350,7 +350,7 @@ export default {
           const newDepartmentList = this.resetDepartmentList([res.data])
           this.department = newDepartmentList
           getStaffByUsername(localStorage.getItem('username')).then(async res1 => {
-            if (res1.code === 200 && res1.data.deptPath) {
+            if (res1.code === 200 && res1.data && res1.data.deptPath) {
               // 获取id
               const deptId = res.data.deptCode
               // idlist