From 8e06febe6fa4a0fd8b6bc81b4c8cdf11e882b71f Mon Sep 17 00:00:00 2001 From: dataeaseShu <106045316+dataeaseShu@users.noreply.github.com> Date: Fri, 30 Sep 2022 15:52:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=201.=E9=A6=96=E6=AC=A1=E6=B7=BB=E5=8A=A0AP?= =?UTF-8?q?I=E6=95=B0=E6=8D=AE=E6=BA=90=E8=BE=93=E5=85=A5=E5=90=8D?= =?UTF-8?q?=E7=A7=B0-=E7=82=B9=E5=87=BB=E6=B7=BB=E5=8A=A0=E6=97=B6?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=9C=AA=E6=AD=A3=E5=B8=B8=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=20=202.=20api=E6=95=B0=E6=8D=AE=E9=9B=86=EF=BC=8C=E6=96=B0?= =?UTF-8?q?=E5=BB=BA=E6=95=B0=E6=8D=AE=E8=A1=A8=E7=9A=84=E6=97=B6=E5=80=99?= =?UTF-8?q?=EF=BC=8C=E6=8F=90=E7=A4=BA=E4=BC=9A=E9=87=8D=E5=8F=A0=203.?= =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E6=95=B0=E6=8D=AE=E6=BA=90=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/deCustomCm/deTextarea.vue | 4 +++- frontend/src/icons/svg/de-ds-warning.svg | 13 ++++++++++ frontend/src/styles/index.scss | 6 +++++ .../panel/template/component/TemplateList.vue | 12 ++++++++-- .../system/datasource/DsConfiguration.vue | 24 ++++++++++--------- .../src/views/system/datasource/DsTree.vue | 2 +- 6 files changed, 46 insertions(+), 15 deletions(-) create mode 100644 frontend/src/icons/svg/de-ds-warning.svg diff --git a/frontend/src/components/deCustomCm/deTextarea.vue b/frontend/src/components/deCustomCm/deTextarea.vue index eac7a758dc..1ca36bdfe8 100644 --- a/frontend/src/components/deCustomCm/deTextarea.vue +++ b/frontend/src/components/deCustomCm/deTextarea.vue @@ -27,8 +27,9 @@ export default { update: function (el, binding) { const lg = binding.value?.length || 0; const count = el.querySelector(".el-input__count"); + if (!count) return if (!lg) { - if (count.classList.contains("no-zore")) { + if (count?.classList?.contains("no-zore")) { count.classList.remove("no-zore"); } count.innerHTML = "0/200"; @@ -44,6 +45,7 @@ export default { num.style.color = "#1F2329"; total.innerHTML = "/200"; num.innerHTML = lg; + if (!newCount) return newCount.classList.add("el-input__count", "no-zore"); newCount.appendChild(num); newCount.appendChild(total); diff --git a/frontend/src/icons/svg/de-ds-warning.svg b/frontend/src/icons/svg/de-ds-warning.svg new file mode 100644 index 0000000000..2f7ac5ab05 --- /dev/null +++ b/frontend/src/icons/svg/de-ds-warning.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/frontend/src/styles/index.scss b/frontend/src/styles/index.scss index ccc4c58cd5..65d6747ee0 100644 --- a/frontend/src/styles/index.scss +++ b/frontend/src/styles/index.scss @@ -1581,3 +1581,9 @@ div:focus { cursor: pointer; } } + +.de-icon-sence { + margin-right: 9px; + width: 16px !important; + height: 12px !important; +} \ No newline at end of file diff --git a/frontend/src/views/panel/template/component/TemplateList.vue b/frontend/src/views/panel/template/component/TemplateList.vue index 2a23c83f1a..5b82eb0292 100644 --- a/frontend/src/views/panel/template/component/TemplateList.vue +++ b/frontend/src/views/panel/template/component/TemplateList.vue @@ -26,8 +26,8 @@ v-for="ele in templateListComputed" :key="ele.name" > - - {{ ele.name }} + + {{ ele.name }}
{{ $t('datasource.data_table') }} - {{ $t('commons.add') }} + {{ $t('commons.add') }}
{ jsonFields[i].checked = false }) - this.$message.error( - jsonFields[i].name + - ', ' + - i18n.t('datasource.has_repeat_field_name') - ) - return + this.errMsg.push(jsonFields[i].name) } } this.apiItem.fields.push(jsonFields[i]) diff --git a/frontend/src/views/system/datasource/DsTree.vue b/frontend/src/views/system/datasource/DsTree.vue index e321b0dd33..2c996052b6 100644 --- a/frontend/src/views/system/datasource/DsTree.vue +++ b/frontend/src/views/system/datasource/DsTree.vue @@ -77,7 +77,7 @@