From c25d7510b9e7cc376461d2e882ca0895a8f6459d Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Tue, 2 Aug 2022 16:49:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=83=E5=B1=80=E9=97=AE=E9=A2=98=E7=9F=A5?= =?UTF-8?q?=E8=AF=86=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/common/lang/en-us.js | 1 + jero-web/src/common/lang/zh-cn.js | 1 + .../components/problemKnowledgeBaseAdd.vue | 46 +++-------- .../components/problemKnowledgeBaseList.vue | 18 +---- .../problemKnowledgeBaseRelease.vue | 62 ++++++++++----- .../components/problemKnowledgeBaseView.vue | 77 ++++++++++++++++++- 6 files changed, 133 insertions(+), 72 deletions(-) diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js index db7e44757..7ed400d42 100644 --- a/jero-web/src/common/lang/en-us.js +++ b/jero-web/src/common/lang/en-us.js @@ -1219,4 +1219,5 @@ module.exports = { thereWhichCannotDeleted:'There are sub headings under this title, which cannot be deleted', sdt:'sdt', dre:'dre', + applicableInstructionsMarketList:'Applicable instructions of market list', } \ No newline at end of file diff --git a/jero-web/src/common/lang/zh-cn.js b/jero-web/src/common/lang/zh-cn.js index 13a03d29c..4611497fe 100644 --- a/jero-web/src/common/lang/zh-cn.js +++ b/jero-web/src/common/lang/zh-cn.js @@ -1322,4 +1322,5 @@ module.exports = { thereWhichCannotDeleted:'该标题下存在子标题无法进行删除', sdt:'工程接口人', dre:'填写人', + applicableInstructionsMarketList:'市场清单适用说明', } \ No newline at end of file diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseAdd.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseAdd.vue index 2b654d9c4..bb5cacdb6 100644 --- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseAdd.vue +++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseAdd.vue @@ -69,34 +69,19 @@
* - {{$t('category')}} + {{$t('problemClassification')}}
- -
-
- {{$t('problemClassification')}} -
- - - -
-
- -
@@ -113,34 +98,21 @@
+ +
- {{$t('documentNumber')}} + {{$t('standardNo')}}
+ :placeholder="$t('PleaseEnter')+$t('standardNo')"/>
- -
-
- {{$t('documentTitle')}} -
- - - -
-
-
-
@@ -405,4 +377,8 @@ border: 1px #00B3BE solid; color: #00B3BE; } + + .box-button { + height: 38px; + } \ No newline at end of file diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseList.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseList.vue index a3631bcf8..73fe2200f 100644 --- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseList.vue +++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseList.vue @@ -44,26 +44,10 @@ :class="{ 'null-input':item.checked }">
- - - - - - - -
@@ -296,7 +280,7 @@ font-weight: bold; color: #040B29; display: inline-block; - max-width: 180px; + max-width: calc(100% - 180px); text-overflow: ellipsis; white-space: nowrap; overflow: hidden; diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseRelease.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseRelease.vue index 1cb6d2823..628bdec05 100644 --- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseRelease.vue +++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseRelease.vue @@ -13,32 +13,16 @@
-
+
- - - - - - - -
@@ -49,6 +33,10 @@
+
@@ -87,7 +75,8 @@ downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download', pageNo: 1, url: { - getInfoList: 'search/document/getFullTextInfoList' + getInfoList: 'search/document/getFullTextInfoList', + deleteBatch: '' } } }, @@ -128,6 +117,30 @@ } }) window.open(newUrl.href, '_blank') + }, + edit(val) { + this.$router.push({ + path: '/problemKnowledgeBaseAdd', + query: { + id: val.id + } + }) + }, + deleteData(val) { + let _this = this + this.$confirm({ + content: _this.$t('ConfirmDelete'), + onOk() { + getAction(_this.url.deleteBatch, { ids: val.id }).then((res) => { + if (res.success) { + _this.$message.success(_this.$t('OperationSuccessful')) + _this.getList() + } else { + _this.$message.warning(res.message) + } + }) + } + }) } } } @@ -210,10 +223,21 @@ .text-text-right { padding: 19px 0; + width: calc(100% - 180px); box-sizing: border-box; /*margin-left: 38px;*/ } + .text-text-right-text { + width: 180px; + height: 100%; + text-align: center; + position: absolute; + right: 0; + top: 50%; + transform: translate-Y(-50%); + } + .null-input { background-color: #F2F4F8; } @@ -231,7 +255,7 @@ font-weight: bold; color: #040B29; display: inline-block; - max-width: 180px; + max-width: calc(100% - 180px); text-overflow: ellipsis; white-space: nowrap; overflow: hidden; diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseView.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseView.vue index 958c3f3a5..e00c3ad3e 100644 --- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseView.vue +++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseView.vue @@ -1,5 +1,21 @@ - \ No newline at end of file