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