+
{{ item.proxy_name }}
@@ -184,7 +184,7 @@
selectProxyID = item.id
proxyEditInfo = {
nodeId: item.node_id,
- nodeId: selectProxyID,
+ proxyId: selectProxyID,
proxyName: item.proxy_name,
proxyType: item.proxy_type,
localIp: item.local_ip,
@@ -369,13 +369,13 @@ async function editProxy(proxyId) {
const editInfo = {
proxyId: proxyId,
- proxyName: proxyEditInfo.value.proxy_name,
- proxyType: proxyEditInfo.value.proxy_type,
- remotePort: proxyEditInfo.value.remote_port,
- localIp: proxyEditInfo.value.local_ip,
- localPort: proxyEditInfo.value.local_port,
+ proxyName: proxyEditInfo.value.proxyName,
+ proxyType: proxyEditInfo.value.proxyType,
+ remotePort: proxyEditInfo.value.remotePort,
+ localIp: proxyEditInfo.value.localIp,
+ localPort: proxyEditInfo.value.localPort,
domain: proxyEditInfo.value.domain,
- nodeId: proxyEditInfo.value.node
+ nodeId: proxyEditInfo.value.nodeId
}
let rs
try {
@@ -410,7 +410,7 @@ async function editProxy(proxyId) {
}
const rules = {
- proxy_name: {
+ proxyName: {
required: true,
trigger: ['blur', 'input'],
validator(rule, value) {
@@ -425,10 +425,10 @@ const rules = {
return true
}
},
- proxy_type: {
+ proxyType: {
required: true
},
- local_ip: {
+ localIp: {
required: true,
trigger: ['blur', 'input'],
validator(rule, value) {
@@ -447,7 +447,7 @@ const rules = {
return true
}
},
- local_port: {
+ localPort: {
required: true,
trigger: ['blur', 'input'],
validator(rule, value) {
@@ -466,7 +466,7 @@ const rules = {
return true
}
},
- remote_port: {
+ remotePort: {
required: true,
trigger: ['blur', 'input'],
validator(rule, value) {
@@ -560,13 +560,13 @@ initList()
const formRef = ref(null)
// 表单数据集合
const proxyEditInfo = ref({
- node: 0,
- id: 0,
- proxy_name: '',
- proxy_type: '1',
- local_ip: '',
- local_port: '',
- remote_port: '',
+ nodeId: 0,
+ proxyId: 0,
+ proxyName: '',
+ proxyType: '1',
+ localIp: '',
+ localPort: '',
+ remotePort: '',
domain: ''
})
@@ -602,7 +602,7 @@ function deleteProxy(id) {