+
+
+
+
+
+
+
+
+
{{$t('table.search')}}
{{$t('table.add')}}
@@ -134,9 +143,9 @@
listQuery: {
current: 1,
size: 10,
- importance: undefined,
- title: undefined,
- type: undefined
+ 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 b2bd1023..e144394d 100644
--- a/neutrino-proxy-admin/src/views/proxy/portMapping.vue
+++ b/neutrino-proxy-admin/src/views/proxy/portMapping.vue
@@ -20,7 +20,7 @@
{{ scope.row.id }}
- ~
+
@@ -93,10 +93,17 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+