From 7ed336271ebcc8c850b2882329311e59cc9e54b9 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Tue, 14 Dec 2021 16:52:49 +0800 Subject: [PATCH 1/2] fix issue --- templates/repo/header.tmpl | 7 ++++++- templates/repo/modelmanage/showinfo.tmpl | 6 ++++-- web_src/js/components/Model.vue | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 19e794ec9..138a323e1 100755 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -97,16 +97,21 @@ {{svg "octicon-code" 16}} {{.i18n.Tr "repo.code"}} diff --git a/templates/repo/modelmanage/showinfo.tmpl b/templates/repo/modelmanage/showinfo.tmpl index d522d9bca..f41bd7059 100644 --- a/templates/repo/modelmanage/showinfo.tmpl +++ b/templates/repo/modelmanage/showinfo.tmpl @@ -93,7 +93,7 @@ 标签 -
+
@@ -219,6 +219,7 @@ function tranSize(value){ return size+unitArr[index]; } function editorFn(context){ + debugger let id= context.dataset.id let text = context.dataset.desc $('#edit-td').replaceWith("
"); @@ -228,6 +229,7 @@ function editorCancel(text,id){ $('#edit-div').replaceWith(`
${text}
`) } function editorSure(text,id){ + debugger let description=$('#textarea-value').val() let data = { ID:id, @@ -258,7 +260,7 @@ function renderInfo(obj,accObj,id){ let labelArray = obj[key].trim().replace(/ +/g,' ').split(' ') let html='' for(let i=0;i${labelArray[i]}` + html += `${labelArray[i]}` } $('#Label').append(html) } diff --git a/web_src/js/components/Model.vue b/web_src/js/components/Model.vue index 60233696b..f87c78a36 100644 --- a/web_src/js/components/Model.vue +++ b/web_src/js/components/Model.vue @@ -458,7 +458,7 @@ export default { margin-right: 3px; font-size: 12px; } -/deep/ .el-table_1_column_1.is-left .cell {padding-right: 0px !important;} +/deep/ .el-table_1_column_1.is-left .cell {padding-right: 0px !important;white-space: nowrap;} /deep/ .el-table__expand-icon .el-icon-arrow-right{ font-family: element-icons!important; speak: none; From 9ea91c8f9eaac4e5ca88d2e0033515400228338d Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Tue, 14 Dec 2021 16:55:03 +0800 Subject: [PATCH 2/2] fix issue --- templates/repo/modelmanage/showinfo.tmpl | 2 -- 1 file changed, 2 deletions(-) diff --git a/templates/repo/modelmanage/showinfo.tmpl b/templates/repo/modelmanage/showinfo.tmpl index f41bd7059..f416347d3 100644 --- a/templates/repo/modelmanage/showinfo.tmpl +++ b/templates/repo/modelmanage/showinfo.tmpl @@ -219,7 +219,6 @@ function tranSize(value){ return size+unitArr[index]; } function editorFn(context){ - debugger let id= context.dataset.id let text = context.dataset.desc $('#edit-td').replaceWith("
"); @@ -229,7 +228,6 @@ function editorCancel(text,id){ $('#edit-div').replaceWith(`
${text}
`) } function editorSure(text,id){ - debugger let description=$('#textarea-value').val() let data = { ID:id,