diff --git a/src/components/AssetUserTable/index.vue b/src/components/AssetUserTable/index.vue index 616ae8619..b4b79edcf 100644 --- a/src/components/AssetUserTable/index.vue +++ b/src/components/AssetUserTable/index.vue @@ -178,7 +178,7 @@ export default { title: this.$t('common.Delete'), type: 'primary', callback: (val) => { - this.$axios.delete(`/api/v1/assets/asset-users/${val.cellValue}/`).then(() => { + this.$axios.delete(`/api/v1/assets/asset-users/${val.row.id}/`).then(() => { this.$message.success(this.$t('common.deleteSuccessMsg')) this.$refs.ListTable.reloadTable() }) @@ -189,7 +189,7 @@ export default { title: this.$t('common.Test'), callback: (val) => { this.$axios.post( - `/api/v1/assets/asset-users/tasks/?id=${val.cellValue}`, + `/api/v1/assets/asset-users/tasks/?id=${val.row.id}`, { action: 'test' } ).then(res => { window.open(`/#/ops/celery/task/${res.task}/log/`, '', 'width=900,height=600') diff --git a/src/userviews/assets/index.vue b/src/userviews/assets/index.vue index c17f4171b..7ba310a0a 100644 --- a/src/userviews/assets/index.vue +++ b/src/userviews/assets/index.vue @@ -128,7 +128,7 @@ export default { name: 'favor', type: 'info', fa: function(row, cellValue) { - if (this.checkFavorite(cellValue)) { + if (this.checkFavorite(row.id)) { return 'fa-star' } return 'fa-star-o' diff --git a/src/views/assets/Domain/DomainDetail/GatewayList.vue b/src/views/assets/Domain/DomainDetail/GatewayList.vue index 0e652228c..106a8c476 100644 --- a/src/views/assets/Domain/DomainDetail/GatewayList.vue +++ b/src/views/assets/Domain/DomainDetail/GatewayList.vue @@ -81,7 +81,7 @@ export default { return this.$message.error(this.$t('common.BadRequestErrorMsg')) } else { this.portInput = val.row.port - this.cellValue = val.cellValue + this.cellValue = val.row.id } }.bind(this) } diff --git a/src/views/assets/SystemUser/SystemUserDetail/AssetList.vue b/src/views/assets/SystemUser/SystemUserDetail/AssetList.vue index 67bd55131..0c265daab 100644 --- a/src/views/assets/SystemUser/SystemUserDetail/AssetList.vue +++ b/src/views/assets/SystemUser/SystemUserDetail/AssetList.vue @@ -77,7 +77,7 @@ export default { title: this.$t('common.Delete'), type: 'danger', callback: (val) => { - this.$axios.delete(`/api/v1/assets/system-users-assets-relations/${val.cellValue}/`).then(() => { + this.$axios.delete(`/api/v1/assets/system-users-assets-relations/${val.row.id}/`).then(() => { this.$message.success(this.$t('common.deleteSuccessMsg')) this.$refs.ListTable.reloadTable() }) diff --git a/src/views/sessions/SessionList/OnlineList.vue b/src/views/sessions/SessionList/OnlineList.vue index bca8eb90d..5f73cbc9f 100644 --- a/src/views/sessions/SessionList/OnlineList.vue +++ b/src/views/sessions/SessionList/OnlineList.vue @@ -42,9 +42,9 @@ export default { can: (row, cellValue) => { return row.can_join }, - callback: function({ cellValue, tableData }) { + callback: function({ row, tableData }) { // 跳转到luna页面 - const joinUrl = '/luna/join/?shareroom=' + cellValue + const joinUrl = '/luna/join/?shareroom=' + row.id window.open(joinUrl, 'height=600, width=800, top=400, left=400, toolbar=no, menubar=no, scrollbars=no, location=no, status=no') } } diff --git a/src/views/sessions/Storage/CommandStorage.vue b/src/views/sessions/Storage/CommandStorage.vue index 64cd5fd60..f334f640f 100644 --- a/src/views/sessions/Storage/CommandStorage.vue +++ b/src/views/sessions/Storage/CommandStorage.vue @@ -72,7 +72,7 @@ export default { title: this.$t('sessions.test'), type: 'primary', callback: function({ row, col, cellValue, reload }) { - TestCommandStorage(cellValue).then(data => { + TestCommandStorage(row.id).then(data => { if (!data.is_valid) { this.$message.error(data.msg) } else { diff --git a/src/views/sessions/Storage/ReplayStorage.vue b/src/views/sessions/Storage/ReplayStorage.vue index ad26e651d..4fda800ae 100644 --- a/src/views/sessions/Storage/ReplayStorage.vue +++ b/src/views/sessions/Storage/ReplayStorage.vue @@ -93,7 +93,7 @@ export default { title: this.$t('sessions.test'), type: 'primary', callback: function({ row, col, cellValue, reload }) { - TestReplayStorage(cellValue).then(data => { + TestReplayStorage(row.id).then(data => { if (!data.is_valid) { this.$message.error(data.msg) } else { diff --git a/src/views/xpack/Cloud/SyncInstanceTask/SyncInstanceTaskDetail/HistoryList.vue b/src/views/xpack/Cloud/SyncInstanceTask/SyncInstanceTaskDetail/HistoryList.vue index ab6bea2b1..5aa93d3d4 100644 --- a/src/views/xpack/Cloud/SyncInstanceTask/SyncInstanceTaskDetail/HistoryList.vue +++ b/src/views/xpack/Cloud/SyncInstanceTask/SyncInstanceTaskDetail/HistoryList.vue @@ -67,7 +67,7 @@ export default { title: this.$t('common.View'), type: 'primary', callback: function(val) { - window.open(`/#/ops/celery/task/${val.cellValue}/log/`, '', 'width=900,height=600') + window.open(`/#/ops/celery/task/${val.row.id}/log/`, '', 'width=900,height=600') } } ]