|
|
@@ -67,6 +67,8 @@ const tableProps = [
|
|
|
"ctrl",
|
|
|
]
|
|
|
|
|
|
+let env = 'test'
|
|
|
+
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -93,14 +95,10 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- // 点击重试
|
|
|
- async clickRetry(id) {
|
|
|
- const res = await this.$post("/api/admin/cert/getList", { id })
|
|
|
- console.log(res)
|
|
|
- },
|
|
|
// 点击用户的 uid
|
|
|
clickName(item) {
|
|
|
- window.open(`https://www.proginn.com/cert/freelancer?id=${item.id}`)
|
|
|
+ if(env === 'test')window.open(`https://dev.test.proginn.com/cert/freelancer?id=${item.id}`)
|
|
|
+ else window.open(`https://www.proginn.com/cert/freelancer?id=${item.id}`)
|
|
|
},
|
|
|
// 根据状态显示图表样式
|
|
|
tableRowClassName({ row, rowIndex }) {
|
|
|
@@ -124,8 +122,8 @@ export default {
|
|
|
const res = await this.$post("/api/admin/cert/getList", { page })
|
|
|
// console.log(res)
|
|
|
const data = res.data
|
|
|
+ env = data.current_env
|
|
|
this.tableData = this.formatTableData(res.data.list)
|
|
|
- // console.log(this.tableData)
|
|
|
this.totalCount = Number(data.total)
|
|
|
this.totalPage = data.totalPage
|
|
|
}
|