This commit is contained in:
bb_pan 2026-01-05 19:56:25 +08:00
parent 08be1c904c
commit cac7fc5ef1
7 changed files with 28 additions and 22 deletions

View File

@ -102,7 +102,6 @@ export default {
console.log('🚀 ~ res-退出登录:', res)
console.log("logout", process.env.VUE_APP_BASE_API)
this.$store.dispatch('tagsView/delAllViews')
location.reload()
if (process.env.VUE_APP_BASE_API == '/iws/jxhzb-api') {
window.location.href = 'http://sgwpdm.ah.sgcc.com.cn/iws'
} else {

View File

@ -211,10 +211,10 @@ export default {
},
methods: {
goBack() {
this.$router.push({ path: '/business/EquipmentRetireApply/equipment/retire-apply' })
this.$router.push({ path: '/business/EquipmentRetireApply/EquipmentRetireApply' })
},
async getAuditDetail() {
const id = this.$route.params.id
const id = this.$route.query.id
// query
const taskInfoStr = this.$route.query.taskInfo

View File

@ -174,9 +174,8 @@ export default {
//
onHandleAudit(row) {
this.$router.push({
name: 'RetireApplyAuditDetail',
params: { id: row.id },
query: { taskInfo: JSON.stringify(row) }
path: '/business/EquipmentRetireApply/audit-detail',
query: { id: row.id, taskInfo: JSON.stringify(row) }
})
},

View File

@ -140,6 +140,7 @@ import { getToken } from '@/utils/auth'
import GoBack from '@/components/GoBack'
export default {
name: 'RetireApplyDetail',
components: {
AddItemDialog,
GoBack
@ -191,12 +192,13 @@ export default {
}
},
async getDetail() {
const id = this.$route.params.id
const id = this.$route.query.id
if (id === 'new') {
this.isNew = false
this.baseInfo.createUser = this.$store.state.user?.nickName || '当前用户'
this.baseInfo.createTime = new Date().toLocaleString()
} else {
this.isNew = true
// query
const taskInfoStr = this.$route.query.taskInfo
if (taskInfoStr) {
@ -386,7 +388,7 @@ export default {
},
created() {
if (this.$route.params.id) {
if (this.$route.query.id) {
this.getDetail()
}
if (this.$route.query.maId) {

View File

@ -149,15 +149,15 @@ export default {
//
onHandleAdd() {
this.$router.push('/equipment/retire-apply/detail/new')
this.$router.push({ path: '/equipment/retire-apply/detail', query: { id: 'new' } })
},
//
onHandleView(row) {
this.$router.push({
name: 'RetireApplyDetail',
params: { id: row.id },
path: '/equipment/retire-apply/detail',
query: {
id: row.id,
taskInfo: JSON.stringify(row),
mode: 'view' // mode
}
@ -167,9 +167,9 @@ export default {
//
onHandleEdit(row) {
this.$router.push({
name: 'RetireApplyDetail',
params: { id: row.id },
path: '/equipment/retire-apply/detail',
query: {
id: row.id,
taskInfo: JSON.stringify(row),
mode: 'edit' // mode
}

View File

@ -112,18 +112,22 @@ export default {
//
onHandleApprove(row) {
this.$router.push({
name: 'RetireApplyAuditDetail',
params: { id: row.businessId },
query: { taskInfo: JSON.stringify(row) }
// name: 'RetireApplyAuditDetail',
// params: { id: row.businessId },
// query: { taskInfo: JSON.stringify(row) }
path: '/business/EquipmentRetireApply/audit-detail',
query: { id: row.businessId, taskInfo: JSON.stringify(row) }
})
},
//
onHandleDetail(row) {
this.$router.push({
name: 'RetireApplyAuditDetail',
params: { id: row.businessId },
query: { taskInfo: JSON.stringify(row) }
// name: 'RetireApplyAuditDetail',
// params: { id: row.businessId },
// query: { taskInfo: JSON.stringify(row) }
path: '/business/EquipmentRetireApply/audit-detail',
query: { id: row.businessId, taskInfo: JSON.stringify(row) }
})
},

View File

@ -381,9 +381,11 @@ export default {
url = '/equipmentRepair/repairApprovalDetail'
} else if (item.businessName == '设备退役') {
this.$router.push({
name: 'RetireApplyAuditDetail',
params: { id: item.id },
query: { taskInfo: JSON.stringify(item) },
// name: 'RetireApplyAuditDetail',
// params: { id: item.id },
// query: { taskInfo: JSON.stringify(item) },
path: '/business/EquipmentRetireApply/audit-detail',
query: { id: item.id, taskInfo: JSON.stringify(item) }
})
}
if (item.businessName == '设备退役') return