diff options
| author | MHSanaei <mc.sanaei@gmail.com> | 2023-02-18 15:37:32 +0300 |
|---|---|---|
| committer | MHSanaei <mc.sanaei@gmail.com> | 2023-02-18 15:37:32 +0300 |
| commit | b412df70f1b2e9f10b75e095a2329f10b48e01b5 (patch) | |
| tree | 9d69f34fc53ce9662996494718a7f6aabab0b648 /web/html/xui/inbounds.html | |
| parent | fe9844b51b04bb924bb0e5444b493668c9df92a2 (diff) | |
update pack 2
Diffstat (limited to 'web/html/xui/inbounds.html')
| -rw-r--r-- | web/html/xui/inbounds.html | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index ba2d1b4c..fa91b923 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -152,7 +152,7 @@ const columns = [{ title: '{{ i18n "pages.inbounds.operate" }}', align: 'center', - width: 40, + width: 50, scopedSlots: { customRender: 'action' }, }, { title: '{{ i18n "pages.inbounds.enable" }}', @@ -160,6 +160,11 @@ width: 40, scopedSlots: { customRender: 'enable' }, }, { + title: "Id", + align: 'center', + dataIndex: "id", + width: 20, + }, { title: '{{ i18n "pages.inbounds.remark" }}', align: 'center', width: 60, @@ -192,8 +197,8 @@ }]; const innerColumns = [ - { title: '', width: 20, scopedSlots: { customRender: 'actions' } }, - { title: '{{ i18n "pages.inbounds.client" }}', width: 80, scopedSlots: { customRender: 'client' } }, + { title: '', width: 70, scopedSlots: { customRender: 'actions' } }, + { title: '{{ i18n "pages.inbounds.client" }}', width: 60, scopedSlots: { customRender: 'client' } }, { title: '{{ i18n "pages.inbounds.traffic" }}↑|↓', width: 80, scopedSlots: { customRender: 'traffic' } }, { title: '{{ i18n "pages.inbounds.expireDate" }}', width: 70, scopedSlots: { customRender: 'expiryTime' } }, { title: 'UID', width: 150, dataIndex: "id" }, @@ -201,15 +206,15 @@ ]; const innerTrojanColumns = [ - { title: '', width: 20, scopedSlots: { customRender: 'actions' } }, - { title: '{{ i18n "pages.inbounds.client" }}', width: 80, scopedSlots: { customRender: 'client' } }, + { title: '', width: 70, scopedSlots: { customRender: 'actions' } }, + { title: '{{ i18n "pages.inbounds.client" }}', width: 60, scopedSlots: { customRender: 'client' } }, { title: '{{ i18n "pages.inbounds.traffic" }}↑|↓', width: 80, scopedSlots: { customRender: 'traffic' } }, { title: '{{ i18n "pages.inbounds.expireDate" }}', width: 70, scopedSlots: { customRender: 'expiryTime' } }, { title: 'Password', width: 150, dataIndex: "password" }, ]; const innerOneColumns = [ - { title: '', width: 50, scopedSlots: { customRender: 'actions' } }, + { title: '', width: 70, scopedSlots: { customRender: 'actions' } }, ]; const app = new Vue({ @@ -276,7 +281,7 @@ this.showQrcode(dbInbound); break; case "edit": - this.openEditInbound(dbInbound); + this.openEditInbound(dbInbound.id); break; case "resetTraffic": this.resetTraffic(dbInbound); @@ -299,7 +304,8 @@ isEdit: false }); }, - openEditInbound(dbInbound) { + openEditInbound(dbInbound_id) { + dbInbound = this.dbInbounds.find(row => row.id === dbInbound_id); const inbound = dbInbound.toInbound(); inModal.show({ title: '{{ i18n "pages.inbounds.modifyInbound"}}', |
