fix: 首页跳转改为动态地址
parent
502e149519
commit
2d46aa7999
|
@ -29,6 +29,7 @@
|
|||
<script>
|
||||
import ItemCard from './ItemCard.vue'
|
||||
import { getTaskList } from 'services/system/dashboard'
|
||||
import { getSystemTreeConfigs } from 'services/system'
|
||||
|
||||
export default {
|
||||
components: { ItemCard },
|
||||
|
@ -39,11 +40,13 @@ export default {
|
|||
page: 1,
|
||||
rows: 15
|
||||
},
|
||||
total: 0
|
||||
total: 0,
|
||||
yunkongUrl: ''
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getItemList()
|
||||
this.getScreenConfigs()
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
@ -70,9 +73,16 @@ export default {
|
|||
}
|
||||
})
|
||||
},
|
||||
async getScreenConfigs() {
|
||||
const res = await getSystemTreeConfigs({ category: '系统对接' })
|
||||
if (res.success) {
|
||||
this.yunkongUrl = (res.data.find(item => item.name === '运控系统地址')?.values || [])[0]?.value
|
||||
}
|
||||
},
|
||||
goPage(row) {
|
||||
// TODO 替换为动态链接, token 是天融信 token?
|
||||
const url = row ? `http://36.111.150.83:9527/taskManageFlow?taskCode=${row.task_code}&src=fromYW` : 'http://36.111.150.83:9527/faultRepairsList'
|
||||
if (!this.yunkongUrl) return this.$message.error('运控系统地址未配置, 请联系管理员查看 管理中心-系统配置-系统对接-运控系统地址 页面是否配置正确')
|
||||
const url = row ? `${this.yunkongUrl}/taskManageFlow?taskCode=${row.task_code}&src=fromYW` : `${this.yunkongUrl}/faultRepairsList`
|
||||
console.log(url)
|
||||
window.open(url, '_blank')
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue