西海岸-基础设施:无人机、单兵申请成功后,页面应该返回无人机页面

This commit is contained in:
guoyue 2022-10-14 17:36:46 +08:00
parent 0d402302f7
commit fe85cd370f
1 changed files with 12 additions and 3 deletions

View File

@ -212,7 +212,7 @@ export default {
const isCamera = ref(false) const isCamera = ref(false)
// 西- // 西-
let note1 = JSON.parse(list.value[0] && list.value[0].arr && list.value[0].arr[0].note1 || "[]"); let note1 = JSON.parse(list.value[0] && list.value[0].arr && list.value[0].arr[0].note1 || "[]");
let iskfq = ref(note1.some(v=>v.managementUnitName == '开发区公安局' || v.managementUnitName == '开发区公安分局')) let iskfq = ref(note1.some(v => v.managementUnitName == '开发区公安局' || v.managementUnitName == '开发区公安分局'))
if ( if (
list.value[0] && list.value[0] &&
list.value[0].arr && list.value[0].arr &&
@ -749,7 +749,16 @@ export default {
.then((res) => { .then((res) => {
if (res.data.msg === 'success') { if (res.data.msg === 'success') {
message.success('申请提交成功,请到消息中心查看!') message.success('申请提交成功,请到消息中心查看!')
jumpToDetailsPageconetent() setTimeout(() => {
router.push({
path: '/DetailsPageconetent',
query: {
select: DETAIL_PAGE_CONTENT_DEFAULT_TAB,
//
facilitiesType: list.value[0] && list.value[0].arr && list.value[0].arr[0] && list.value[0].arr[0].type
},
})
}, 1000)
} else { } else {
message.error('申请失败!') message.error('申请失败!')
} }