|
@@ -28,6 +28,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { mapState } from 'vuex'
|
|
|
+import { getUserInfo } from '@/common/utils/util'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -53,7 +54,6 @@ export default {
|
|
|
...mapState(['userInfo', 'isLogin', 'userId'])
|
|
|
},
|
|
|
mounted() {
|
|
|
- console.log(this?.userInfo, this?.userInfo?.workerNumber)
|
|
|
this.getData()
|
|
|
},
|
|
|
methods: {
|
|
@@ -64,7 +64,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
//获取数据
|
|
|
- getData() {
|
|
|
+ async getData() {
|
|
|
this.$api
|
|
|
.get('/worker/comlist/list', {
|
|
|
pageNum: this.pageNum,
|
|
@@ -72,7 +72,7 @@ export default {
|
|
|
remark: this.remark,
|
|
|
status: this.status,
|
|
|
title: this.title,
|
|
|
- workerNumber: this?.userInfo?.workerNumber
|
|
|
+ workerNumber: (await getUserInfo()).workerNumber
|
|
|
})
|
|
|
.then(res => {
|
|
|
this.dataList = res.data.records
|