fix: 工单调整详情修改

develop
sqlnice 2024-11-01 17:48:49 +08:00
parent cfa10ec687
commit c70590dab2
1 changed files with 6 additions and 1 deletions

View File

@ -30,6 +30,11 @@
import ItemCard from './ItemCard.vue'
import { getTaskList } from 'services/system/dashboard'
import { getSystemTreeConfigs } from 'services/system'
export function getTrxToken() {
const value = localStorage.getItem('TRX_TOKEN')
if (value === 'undefined') return ''
return value
}
export default {
components: { ItemCard },
@ -84,7 +89,7 @@ export default {
},
goPage(row) {
if (!this.yunkongUrl) return this.$message.error('运控系统地址未配置, 请联系管理员查看 管理中心-系统配置-系统对接-运控系统地址 页面是否配置正确')
const url = row ? `${this.yunkongUrl}/taskManageFlow?taskCode=${row.taskCode || row.task_code}&src=fromYW` : `${this.yunkongUrl}/faultRepairsList`
const url = row ? `${this.yunkongUrl}/faultRepairs?nodeId=${row.nodeId || row.node_id}&record_id=${row.recordId || row.record_id}&proc_inst_id=${row.procInstId || row.proc_inst_id}&isView=ture&token=${getTrxToken()}` : `${this.yunkongUrl}/faultRepairsList`
console.log(url)
window.open(url, '_blank')
}