fix: 常规作业-新增作业-ct平台选择服务器报错

develop
sxj 2024-09-18 15:27:18 +08:00
parent 93f1713875
commit 86d31ca8d7
4 changed files with 43 additions and 382 deletions

File diff suppressed because it is too large Load Diff

View File

@ -188,7 +188,7 @@ export default defineComponent({
...others,
osCategory,
pasd: pasd || (password && decrypt(password)),
port: port || (osCategory.toUpperCase() === 'WINDOWS' ? 5986 : 22)
port: port || (osCategory?.toUpperCase() === 'WINDOWS' ? 5986 : 22)
}
})
dialogServerVisible.value = false

View File

@ -7,7 +7,7 @@ export const columns = [
selectable(row: any) {
const { segmentId, ip, status, osCategory } = row
// 没有 ip没有网络分组、非运行状态不能选择
if (!ip || !segmentId || status !== 'RUNNING' || osCategory.toUpperCase() === 'AIX' || osCategory === 'VMware ESXi') return false
if (!ip || !segmentId || status !== 'RUNNING' || osCategory?.toUpperCase() === 'AIX' || osCategory === 'VMware ESXi') return false
else return true
}
},

View File

@ -14,7 +14,8 @@ function resolve(dir) {
}
const httpType = 'https://'
// const proxyUrl = 'develop.cmp56.com:60006/' // 代理地址设置
const proxyUrl = '23.33.3.22:60006/' // 代理地址设置
// const proxyUrl = '23.33.3.22:60006/' // 代理地址设置
const proxyUrl = '10.10.33.91:60006/' // 代理地址设置
// const publicPath = process.env.NODE_ENV === 'production' ? '/cop-web/' : '/cop-web/';
const publicPath = '/cop-web/'
module.exports = {