From 984f2d066a4b9ae8e0f6550d5a059b2f38907bb1 Mon Sep 17 00:00:00 2001 From: hLinx <327159425@qq.com> Date: Fri, 24 Feb 2023 16:08:54 +0800 Subject: [PATCH 1/4] =?UTF-8?q?bugfix:=20=E6=96=87=E6=9C=AC=E6=BA=A2?= =?UTF-8?q?=E5=87=BA=E4=BA=A4=E4=BA=92=E8=A7=84=E8=8C=83=20#1766?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/jb-edit/textarea.vue | 5 +++-- .../src/views/ticket-manage/list/index.vue | 17 +++++++++++------ .../src/views/white-ip/index/index.vue | 18 ++++++++++++------ 3 files changed, 26 insertions(+), 14 deletions(-) diff --git a/src/frontend/src/components/jb-edit/textarea.vue b/src/frontend/src/components/jb-edit/textarea.vue index a218e41bf1..748fc6b25b 100644 --- a/src/frontend/src/components/jb-edit/textarea.vue +++ b/src/frontend/src/components/jb-edit/textarea.vue @@ -34,6 +34,7 @@
{{ renderText }} @@ -206,7 +207,7 @@ $el.style.wordBreak = 'keep-all'; $el.style.whiteSpace = 'pre'; } - + this.$refs.valueTextBox.appendChild($el); const lineHeight = 24; @@ -214,7 +215,7 @@ const maxHeight = lineHeight * maxLine; let realHeight = 0; let realLength = 1; - + const calcLength = () => { const text = this.newVal.slice(0, realLength); $el.innerText = `${text} 展开展开`; diff --git a/src/frontend/src/views/ticket-manage/list/index.vue b/src/frontend/src/views/ticket-manage/list/index.vue index 12cea79ad6..5eba03072e 100644 --- a/src/frontend/src/views/ticket-manage/list/index.vue +++ b/src/frontend/src/views/ticket-manage/list/index.vue @@ -57,7 +57,8 @@ width="300" prop="id" key="id" - align="left"> + align="left" + show-overflow-tooltip> @@ -91,7 +92,8 @@ prop="description" key="description" min-width="150" - align="left"> + align="left" + show-overflow-tooltip> @@ -128,7 +130,8 @@ width="120" prop="creator" key="creator" - align="left" /> + align="left" + show-overflow-tooltip /> + align="left" + show-overflow-tooltip /> + align="left" + show-overflow-tooltip /> + align="left" + show-overflow-tooltip /> + align="left" + show-overflow-tooltip /> + align="left" + show-overflow-tooltip /> + align="left" + show-overflow-tooltip /> + align="left" + show-overflow-tooltip /> + align="left" + show-overflow-tooltip /> Date: Fri, 24 Feb 2023 16:10:50 +0800 Subject: [PATCH 2/4] =?UTF-8?q?bugfix:=20=E6=89=A7=E8=A1=8C=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E7=9A=84=E2=80=9C=E4=BB=BB=E5=8A=A1=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E2=80=9D=E5=AD=97=E6=AE=B5=E6=9E=9A=E4=B8=BE=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E7=BC=BA=E5=B0=91=E4=B8=80=E4=B8=AA=E2=80=9C=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E2=80=9D=20#1763?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/executive-history/list/index.vue | 10 +++++++--- src/frontend/src/views/executive-history/local.js | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/views/executive-history/list/index.vue b/src/frontend/src/views/executive-history/list/index.vue index a44ff9a45f..c958600145 100644 --- a/src/frontend/src/views/executive-history/list/index.vue +++ b/src/frontend/src/views/executive-history/list/index.vue @@ -332,6 +332,10 @@ name: I18n.t('history.等待确认'), id: 7, }, + { + name: I18n.t('history.状态异常'), + id: 9, + }, { name: I18n.t('history.强制终止中'), id: 10, @@ -496,15 +500,15 @@ startTime: '', endTime: '', }; - + const currentTime = new Date().getTime(); - + if (Object.prototype.hasOwnProperty.call(this.$route.query, 'startTime')) { defaultDateTime[0] = this.$route.query.startTime; } else { defaultDateTime[0] = prettyDateTimeFormat(currentTime - 86400000); } - + searchParams.startTime = defaultDateTime[0]; // eslint-disable-line prefer-destructuring if (Object.prototype.hasOwnProperty.call(this.$route.query, 'endTime')) { diff --git a/src/frontend/src/views/executive-history/local.js b/src/frontend/src/views/executive-history/local.js index f3e944fb06..db8909679f 100644 --- a/src/frontend/src/views/executive-history/local.js +++ b/src/frontend/src/views/executive-history/local.js @@ -47,6 +47,7 @@ export default { 执行成功: 'Successful', 执行失败: 'Failed', 等待确认: 'Waiting', + 状态异常: 'Abnormal', 强制终止中: 'Terminating', 强制终止成功: 'Terminated', 强制终止失败: 'Terminate failed', From fd98a2ba4156ae690dcacde3eafe2297abbbdbb7 Mon Sep 17 00:00:00 2001 From: hLinx <327159425@qq.com> Date: Fri, 24 Feb 2023 16:13:35 +0800 Subject: [PATCH 3/4] =?UTF-8?q?feature:=20=E6=90=9C=E7=B4=A2=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E6=A0=B7=E5=BC=8F=E8=A7=84=E8=8C=83=20#1767?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/script-manage/version/index.vue | 37 +++++++++++++++++-- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/src/frontend/src/views/script-manage/version/index.vue b/src/frontend/src/views/script-manage/version/index.vue index 3ad5ace57d..f2710f4b4c 100644 --- a/src/frontend/src/views/script-manage/version/index.vue +++ b/src/frontend/src/views/script-manage/version/index.vue @@ -258,6 +258,25 @@ :size="tableSize" @setting-change="handleSettingChange" /> + +
+
+ {{ $t('搜索结果为空') }} +
+
+ {{ $t('可以尝试调整关键词') }} + {{ $t('或') }} + + {{ $t('清空搜索条件') }} + +
+
+