1.m2pool断网重连 60秒内重连机制 所有页面添加
2.优化响应错误提示 3秒内同一种错误只提示一次
This commit is contained in:
@@ -171,10 +171,13 @@ export default {
|
||||
// this.stateList = JSON.parse(localStorage.getItem('stateList') )
|
||||
// this.typeList = JSON.parse(localStorage.getItem('typeList') )
|
||||
|
||||
this.registerRecoveryMethod('fetchTicketDetails', { id: this.workOrderId });
|
||||
|
||||
},
|
||||
methods: {
|
||||
async fetchBKendTicket(params){
|
||||
this.totalDetailsLoading =true
|
||||
// this.totalDetailsLoading =true
|
||||
this.setLoading('totalDetailsLoading', true);
|
||||
const data = await getBKendTicket(params)
|
||||
if (data && data.code == 200) {
|
||||
this.$message({
|
||||
@@ -185,11 +188,12 @@ export default {
|
||||
|
||||
}
|
||||
|
||||
this.totalDetailsLoading =false
|
||||
this.setLoading('totalDetailsLoading', false);
|
||||
},
|
||||
|
||||
async fetchReply(params){
|
||||
this.totalDetailsLoading = true
|
||||
// this.totalDetailsLoading = true
|
||||
this.setLoading('totalDetailsLoading', true);
|
||||
const data = await getReply(params)
|
||||
if (data && data.code == 200) {
|
||||
this.$message({
|
||||
@@ -205,7 +209,7 @@ export default {
|
||||
}
|
||||
|
||||
|
||||
this.totalDetailsLoading = false
|
||||
this.setLoading('totalDetailsLoading', false);
|
||||
},
|
||||
handelType2(label){
|
||||
if (label) {
|
||||
@@ -231,14 +235,15 @@ export default {
|
||||
},
|
||||
//请求工单详情
|
||||
async fetchTicketDetails(param) {
|
||||
this.totalDetailsLoading = true
|
||||
// this.totalDetailsLoading = true
|
||||
this.setLoading('totalDetailsLoading', true);
|
||||
const { data } = await getDetails(param)
|
||||
|
||||
this.recordList = data.list
|
||||
this.ticketDetails = data
|
||||
|
||||
|
||||
this.totalDetailsLoading = false
|
||||
this.setLoading('totalDetailsLoading', false);
|
||||
},
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user