This commit is contained in:
Vinjor 2024-10-26 16:57:33 +08:00
parent 1e7dad751b
commit 9e1cb52d05
2 changed files with 3 additions and 13 deletions

View File

@ -176,16 +176,7 @@ export default {
method: 'get', method: 'get',
params: {ticketId: this.ticketId} params: {ticketId: this.ticketId}
}).then((res) => { }).then((res) => {
let thisList = res.data this.list = res.data
thisList.map((item) => {
getDictTextByCodeAndValue("repair_work_type", item.workType).then(value => {
item.workTypeText = value
}).catch(error => {
item.workTypeText = "未知"
console.error(error);
});
})
this.list = thisList
if (this.list.length > 0) { if (this.list.length > 0) {
console.log(this.list[0].userId) console.log(this.list[0].userId)
this.checkedUserId = this.list[0].userId this.checkedUserId = this.list[0].userId

View File

@ -155,11 +155,12 @@ export default {
url: '/pages/login/login' url: '/pages/login/login'
}) })
} else { } else {
//
this.userInfo = getUserInfo()
if (!this.$msgSocket) { if (!this.$msgSocket) {
this.$startMsgSocket(getTenantId(), getStrData("userId")) this.$startMsgSocket(getTenantId(), getStrData("userId"))
} }
} }
this.onRefresherrefresh()
}, },
onShow() { onShow() {
if (!getToken()) { if (!getToken()) {
@ -167,8 +168,6 @@ export default {
url: '/pages/login/login' url: '/pages/login/login'
}) })
} else { } else {
//
this.userInfo = getUserInfo()
this.onRefresherrefresh() this.onRefresherrefresh()
this.getNoReadNum() this.getNoReadNum()
this.getNoticeList() this.getNoticeList()