+
+
+
+
+
+
+
+
+
{{$t('table.search')}}
{{$t('table.add')}}
@@ -60,8 +69,8 @@
@@ -132,11 +141,11 @@
total: null,
listLoading: true,
listQuery: {
- currentPage: 1,
- pageSize: 10,
- importance: undefined,
- title: undefined,
- type: undefined
+ current: 1,
+ size: 10,
+ enable: undefined,
+ isOnline: undefined,
+ userId: null
},
importanceOptions: [1, 2, 3],
calendarTypeOptions,
@@ -165,7 +174,11 @@
userId: [{ required: true, message: '请选择用户', trigger: 'blur' }],
name: [{ required: true, message: 'License名称不能为空', trigger: 'blur' }]
},
- downloadLoading: false
+ downloadLoading: false,
+ selectObj: {
+ statusOptions: [{ label: '启用', value: 1 }, { label: '禁用', value: 2 }],
+ onlineOptions: [{ label: '在线', value: 1 }, { label: '离线', value: 2 }]
+ }
}
},
filters: {
@@ -195,8 +208,7 @@
}
},
created() {
- this.getList()
- this.getUserList()
+ this.getDataList()
},
methods: {
getList() {
@@ -212,6 +224,17 @@
this.userList = response.data.data
})
},
+ getDataList() {
+ const loginName = this.$store.state.user.loginName
+ userList().then(response => {
+ this.userList = response.data.data
+ const curUser = this.userList.find((val) => val.loginName === loginName)
+ if (curUser) {
+ this.listQuery.userId = curUser.id
+ }
+ this.getList()
+ })
+ },
handleFilter() {
this.listQuery.current = 1
this.getList()
diff --git a/neutrino-proxy-admin/src/views/proxy/portMapping.vue b/neutrino-proxy-admin/src/views/proxy/portMapping.vue
index 2654131b..e8623dfe 100644
--- a/neutrino-proxy-admin/src/views/proxy/portMapping.vue
+++ b/neutrino-proxy-admin/src/views/proxy/portMapping.vue
@@ -65,8 +65,8 @@
@@ -79,7 +79,7 @@
-
+
import { fetchList, createUserPortMapping, updateUserPortMapping, updateEnableStatus, deletePortMapping } from '@/api/portMapping'
- import { portPoolList } from '@/api/portPool'
+ import { portPoolList, availablePortList } from '@/api/portPool'
import { licenseList } from '@/api/license'
import waves from '@/directive/waves' // 水波纹指令
import { parseTime } from '@/utils'
@@ -171,8 +171,8 @@
total: null,
listLoading: true,
listQuery: {
- currentPage: 1,
- pageSize: 10,
+ current: 1,
+ size: 10,
importance: undefined,
title: undefined,
type: undefined
@@ -241,7 +241,7 @@
},
created() {
this.getList()
- this.getPortPoolList()
+ // this.getPortPoolList()
this.getLicenseList()
},
methods: {
@@ -258,6 +258,11 @@
this.serverPortList = response.data.data
})
},
+ getAvailablePortList(licenseId) {
+ availablePortList(licenseId).then(response => {
+ this.serverPortList = response.data.data
+ })
+ },
getLicenseList() {
licenseList().then(response => {
this.licenseList = response.data.data
@@ -293,7 +298,7 @@
licenseId: undefined,
licenseName: undefined,
serverPort: undefined,
- clientIp: undefined,
+ clientIp: '127.0.0.1',
clientPort: undefined
}
},
@@ -356,8 +361,12 @@
})
},
selectedFeeItem(row, list) {
- this.temp.licenseId = row.id
- this.temp.licenseName = row.name
+ if (this.temp.licenseId !== row.id) {
+ this.temp.licenseId = row.id
+ this.temp.licenseName = row.name
+ this.getAvailablePortList(row.id)
+ this.temp.serverPort = null
+ }
},
handleDelete(row) {
this.$confirm('确定要删除吗?', '提示', {
diff --git a/neutrino-proxy-admin/src/views/system/jobManager.vue b/neutrino-proxy-admin/src/views/system/jobManager.vue
index ace4f5bc..d1854138 100644
--- a/neutrino-proxy-admin/src/views/system/jobManager.vue
+++ b/neutrino-proxy-admin/src/views/system/jobManager.vue
@@ -51,8 +51,8 @@
@@ -114,8 +114,8 @@
total: null,
listLoading: true,
listQuery: {
- currentPage: 1,
- pageSize: 10,
+ current: 1,
+ size: 10,
importance: undefined,
title: undefined,
type: undefined
diff --git a/neutrino-proxy-admin/src/views/system/portGroup.vue b/neutrino-proxy-admin/src/views/system/portGroup.vue
new file mode 100644
index 00000000..74c7fe62
--- /dev/null
+++ b/neutrino-proxy-admin/src/views/system/portGroup.vue
@@ -0,0 +1,346 @@
+
+
+
+
+ {{ $t('table.search') }}
+
+ {{ $t('table.add') }}
+
+
+
+
+
+
+ {{ scope.row.id }}
+
+
+
+
+ {{ scope.row.name }}
+
+
+
+
+ {{ scope.row.possessorType == 1 ? "用户:" : (scope.row.possessorType == 2 ? "License:" : "全局") }} {{ scope.row.possessor }}
+
+
+
+
+ {{ scope.row.createTime | parseTime('{y}-{m}-{d} {h}:{i}') }}
+
+
+
+
+ {{ scope.row.updateTime | parseTime('{y}-{m}-{d} {h}:{i}') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/neutrino-proxy-admin/src/views/system/portPool.vue b/neutrino-proxy-admin/src/views/system/portPool.vue
index e449ad88..98dd69ee 100644
--- a/neutrino-proxy-admin/src/views/system/portPool.vue
+++ b/neutrino-proxy-admin/src/views/system/portPool.vue
@@ -17,6 +17,11 @@
{{scope.row.port}}
+
+
+ {{scope.row.groupName}}
+
+
{{scope.row.createTime | parseTime('{y}-{m}-{d} {h}:{i}')}}
@@ -43,8 +48,8 @@
@@ -53,6 +58,15 @@
+
+
+
+
+
+
+
+