Browse Source

fix: 点击按钮跳转操作

master
songguoqiang 7 months ago
parent
commit
f6a61976f6
  1. 6
      src/pages/overhaulOrder/detail.vue
  2. 6
      src/pages/repairOrder/detail.vue
  3. 3
      src/pages/upkeepOrder/detail.vue

6
src/pages/overhaulOrder/detail.vue

@ -231,7 +231,8 @@
if (res.data) { if (res.data) {
proxy.$modal.showToast('操作成功') proxy.$modal.showToast('操作成功')
setTimeout(() => { setTimeout(() => {
proxy.$tab.navigateTo(`/pages/overhaulOrder/index?type=${type.value}`) // proxy.$tab.navigateTo(`/pages/overhaulOrder/index?type=${type.value}`)
proxy.$tab.navigateBack()
loading.value = false loading.value = false
}, 1500) }, 1500)
} else { } else {
@ -252,7 +253,8 @@
if (res.data) { if (res.data) {
proxy.$modal.showToast('操作成功') proxy.$modal.showToast('操作成功')
setTimeout(() => { setTimeout(() => {
proxy.$tab.navigateTo(`/pages/overhaulOrder/index?type=${type.value}`) // proxy.$tab.navigateTo(`/pages/overhaulOrder/index?type=${type.value}`)
proxy.$tab.navigateBack()
loading.value = false loading.value = false
}, 1500) }, 1500)
} else { } else {

6
src/pages/repairOrder/detail.vue

@ -458,9 +458,11 @@
proxy.$modal.showToast('操作成功') proxy.$modal.showToast('操作成功')
setTimeout(() => { setTimeout(() => {
if(type1==3){ if(type1==3){
proxy.$tab.navigateTo(`/pages/repairOrder/index?type=${type.value}&flag=2`) // proxy.$tab.navigateTo(`/pages/repairOrder/index?type=${type.value}&flag=2`)
proxy.$tab.navigateBack()
}else{ }else{
proxy.$tab.navigateTo(`/pages/repairOrder/index?type=${type.value}`) // proxy.$tab.navigateTo(`/pages/repairOrder/index?type=${type.value}`)
proxy.$tab.navigateBack()
} }
loading.value = false loading.value = false

3
src/pages/upkeepOrder/detail.vue

@ -272,7 +272,8 @@
if (res.data) { if (res.data) {
proxy.$modal.showToast('操作成功') proxy.$modal.showToast('操作成功')
setTimeout(() => { setTimeout(() => {
proxy.$tab.navigateTo(`/pages/upkeepOrder/index?type=${type.value}`) // proxy.$tab.navigateTo(`/pages/upkeepOrder/index?type=${type.value}`)
proxy.$tab.navigateBack()
loading.value = false loading.value = false
}, 1500) }, 1500)
} else { } else {

Loading…
Cancel
Save