From b63263d360e956720a38291de8047e5138bd00b8 Mon Sep 17 00:00:00 2001 From: lanyuanxiaoyao Date: Tue, 2 Jan 2024 09:56:36 +0800 Subject: [PATCH] =?UTF-8?q?refactor(web):=20=E5=85=B3=E9=97=ADdebug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/test.http | 7 ++- web/components/tool-tab.js | 94 ++++++++++++++++++++++---------------- web/index.html | 2 +- 3 files changed, 61 insertions(+), 42 deletions(-) diff --git a/test/test.http b/test/test.http index 044d41b..89807c5 100644 --- a/test/test.http +++ b/test/test.http @@ -1,3 +1,4 @@ +# @host = 132.126.207.130 @host = 132.122.116.142 @port = 35690 @username = AxhEbscwsJDbYMH2 @@ -6,6 +7,7 @@ @queue-url = {{url}}/hudi_services/queue @scheduler-url = {{url}}/hudi_services/service_scheduler @web-url = {{url}}/hudi_services/service_web +@services-url = {{url}}/hudi_services/service_cloud_query ### 队列名称 GET {{queue-url}}/queue/names @@ -49,7 +51,7 @@ GET http://{{username}}:{{password}}@132.122.116.146:18166/info/compaction_metri GET http://{{username}}:{{password}}@132.122.116.150:27510/table/list_compaction_metrics?search_flink_job_id=1542097996099055616&search_alias=acct_acct_item_fs ### Query Scheduler -GET {{scheduler-url}}/schedule/all_focus +GET {{scheduler-url}}/schedule/all_un_scheduled ### schedule table GET {{scheduler-url}}/schedule/table?flink_job_id=1542097993246928896&alias=crm_order_ord_prod_inst_attr_his_b @@ -68,3 +70,6 @@ GET http://132.122.116.149:35680/api/message_id?flink_job_id=1542097984132706304 ### Deploy plan GET {{web-url}}/cloud/deploy_plan + +### Get info query services +GET {{services-url}}/cloud/services?service_name=center-gateway-new diff --git a/web/components/tool-tab.js b/web/components/tool-tab.js index 804c158..0a7b334 100644 --- a/web/components/tool-tab.js +++ b/web/components/tool-tab.js @@ -2,6 +2,60 @@ function toolTab() { return { title: `小工具`, tab: [ + { + type: 'panel', + title: '乱七八糟小工具', + body: [ + { + type: 'action', + label: 'SQL日志', + actionType: 'dialog', + dialog: { + title: '日志', + ...readOnlyDialogOptions(), + size: 'lg', + body: { + type: 'crud', + api: '${base}/log/query_sql_log', + ...crudCommonOptions(), + loadDataOnce: true, + perPage: 50, + headerToolbar: [ + "reload", + paginationCommonOptions(undefined, 10), + ], + footerToolbar: [ + paginationCommonOptions(undefined, 10), + ], + columns: [ + { + name: 'sql', + label: 'SQL', + }, + { + name: 'createTime', + label: '执行时间', + }, + ], + } + } + }, + { + type: 'action', + label: 'ZK节点', + className: 'ml-2', + actionType: 'dialog', + dialog: { + title: '日志', + ...readOnlyDialogOptions(), + size: 'lg', + body: { + + } + } + } + ] + }, { type: 'form', title: '查询时间线', @@ -158,46 +212,6 @@ function toolTab() { } ] }, - { - type: 'panel', - title: 'SQL日志', - body: [ - { - type: 'action', - label: '查看', - actionType: 'dialog', - dialog: { - title: '日志', - ...readOnlyDialogOptions(), - size: 'lg', - body: { - type: 'crud', - api: '${base}/log/query_sql_log', - ...crudCommonOptions(), - loadDataOnce: true, - perPage: 50, - headerToolbar: [ - "reload", - paginationCommonOptions(undefined, 10), - ], - footerToolbar: [ - paginationCommonOptions(undefined, 10), - ], - columns: [ - { - name: 'sql', - label: 'SQL', - }, - { - name: 'createTime', - label: '执行时间', - }, - ], - } - } - } - ] - } ] } } \ No newline at end of file diff --git a/web/index.html b/web/index.html index 1f29ee5..b33cf31 100644 --- a/web/index.html +++ b/web/index.html @@ -76,7 +76,7 @@ ] } } - let debug = true + let debug = false let server = amis.embed( '#root', amisJSON,