Przeglądaj źródła

移动端审核提交添加loading,修改我的工资条没数据一直加载问题

新疆警官学校中职
libo 1 rok temu
rodzic
commit
d36f149408
2 zmienionych plików z 22 dodań i 4 usunięć
  1. +13
    -3
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/Payslip/Payslip/list.vue
  2. +9
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/sign.vue

+ 13
- 3
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/Payslip/Payslip/list.vue Wyświetl plik

@@ -590,9 +590,19 @@
// 点击跳转到详情页
GoTosingle(type){
let _this = this
uni.navigateTo({
url: './single?type='+type+'&item='+encodeURIComponent(JSON.stringify(_this.list))
});
if(_this.list.length>0){
uni.navigateTo({
url: './single?type='+type+'&item='+encodeURIComponent(JSON.stringify(_this.list))
});
}else{
uni.showToast({
title: '当月无工资',
icon: 'none',
duration: 2000
})
}
}
}
}


+ 9
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/sign.vue Wyświetl plik

@@ -415,18 +415,26 @@ export default {
}
uni.showLoading({
title: '提交中...'
});
const success = await this.HTTP_POST(
this.type === 'sign' ? 'learun/adms/newwf/sign' : 'learun/adms/newwf/audit',
postData,
`提交[${this.typeText}]时发生错误`
)

if (!success) {
uni.hideLoading();
return
}

this.EMIT('task-list-change')
this.NAV_BACK(2)
uni.hideLoading();
this.TOAST(`已成功提交${this.typeText}`, 'success')
},



Ładowanie…
Anuluj
Zapisz