From 745b9d30d264cd8e24175b3054f61a967e75969f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Thu, 2 Dec 2021 09:26:28 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E7=AC=A6=E5=90=88?= =?UTF-8?q?=E6=80=A7=E8=AF=A6=E6=83=85=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/details/complianceDetails/index.vue | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/pages/details/complianceDetails/index.vue b/src/pages/details/complianceDetails/index.vue index 9a33fbf29..5ae648fb6 100644 --- a/src/pages/details/complianceDetails/index.vue +++ b/src/pages/details/complianceDetails/index.vue @@ -4,15 +4,13 @@ 暂无评估结果 不满足 -
-
满足 -
-
加载中... @@ -170,12 +164,5 @@ export default { //width: 1200px; //margin: 0 auto; height: 100%; - .content{ - display: flex; - flex-direction: column; - justify-content: space-between; - height: calc(~'50% - 30px'); - overflow: auto; - } } From e15803f0991d200c2bf1b9897f05d6988dac8d24 Mon Sep 17 00:00:00 2001 From: shenyanpei Date: Thu, 2 Dec 2021 10:17:40 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E9=93=BE=E6=8E=A5=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/linkApi.js | 10 + src/pages/config/pages/linkManage/index.vue | 439 ++------------ .../pages/linkManage/linkType/firstLink.vue | 556 ++++++++++++++++++ .../pages/linkManage/linkType/secondLink.vue | 555 +++++++++++++++++ .../home2/components/empennage/index.vue | 412 +++++++------ 5 files changed, 1400 insertions(+), 572 deletions(-) create mode 100644 src/api/linkApi.js create mode 100644 src/pages/config/pages/linkManage/linkType/firstLink.vue create mode 100644 src/pages/config/pages/linkManage/linkType/secondLink.vue diff --git a/src/api/linkApi.js b/src/api/linkApi.js new file mode 100644 index 000000000..9ee01f0ba --- /dev/null +++ b/src/api/linkApi.js @@ -0,0 +1,10 @@ +import axios from "@/common/axiosV2"; + +export function getImg (data) { + return axios({ + url: 'api/sarUrl/tsUrl/getIconImg', + method: 'get', + params: data, + responseType: 'arraybuffer' + }) +} diff --git a/src/pages/config/pages/linkManage/index.vue b/src/pages/config/pages/linkManage/index.vue index 71ea7a573..49ecb9778 100644 --- a/src/pages/config/pages/linkManage/index.vue +++ b/src/pages/config/pages/linkManage/index.vue @@ -1,393 +1,68 @@ diff --git a/src/pages/config/pages/linkManage/linkType/firstLink.vue b/src/pages/config/pages/linkManage/linkType/firstLink.vue new file mode 100644 index 000000000..33888fac8 --- /dev/null +++ b/src/pages/config/pages/linkManage/linkType/firstLink.vue @@ -0,0 +1,556 @@ + + + + + + diff --git a/src/pages/config/pages/linkManage/linkType/secondLink.vue b/src/pages/config/pages/linkManage/linkType/secondLink.vue new file mode 100644 index 000000000..3d6f40b46 --- /dev/null +++ b/src/pages/config/pages/linkManage/linkType/secondLink.vue @@ -0,0 +1,555 @@ + + + + + + diff --git a/src/pages/home2/components/empennage/index.vue b/src/pages/home2/components/empennage/index.vue index 93343ec41..23244528b 100644 --- a/src/pages/home2/components/empennage/index.vue +++ b/src/pages/home2/components/empennage/index.vue @@ -1,202 +1,234 @@ From 9dd767c50db09faab3ab3b046ce9c4f1f16d33c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Thu, 2 Dec 2021 10:18:43 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E4=BC=A0=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/standInvolveProjectDetail.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/standInvolveProjectDetail.vue b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/standInvolveProjectDetail.vue index b68b90b2a..4e6e3b464 100644 --- a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/standInvolveProjectDetail.vue +++ b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/standInvolveProjectDetail.vue @@ -190,7 +190,7 @@ From ec2091875f7c472617e45851bcf22fa583ad4037 Mon Sep 17 00:00:00 2001 From: shenyanpei Date: Thu, 2 Dec 2021 10:36:01 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E9=93=BE=E6=8E=A5=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/linkManage/linkType/firstLink.vue | 42 +++++---- .../pages/linkManage/linkType/secondLink.vue | 45 ++++++---- .../home2/components/empennage/index.vue | 88 ++++++++----------- 3 files changed, 86 insertions(+), 89 deletions(-) diff --git a/src/pages/config/pages/linkManage/linkType/firstLink.vue b/src/pages/config/pages/linkManage/linkType/firstLink.vue index 33888fac8..025c33e0d 100644 --- a/src/pages/config/pages/linkManage/linkType/firstLink.vue +++ b/src/pages/config/pages/linkManage/linkType/firstLink.vue @@ -57,7 +57,7 @@ label="链接图标"> import Sortable from 'sortablejs' -import { getImg } from '@/api/linkApi.js' +import {getImg} from '@/api/linkApi.js' export default { name: "firstLink", @@ -415,11 +415,12 @@ export default { this.sarStandardsInfoEO.url = row.url this.sarStandardsInfoEO.sortId = row.sortId this.sarStandardsInfoEO.icon = row.icon - if (row.id !== '') { + if (row.icon !== '') { let imgId = { id: row.id } - getImg(imgId).then(res=>{ + // 图片转base64 + getImg(imgId).then(res => { if (res.ok) { const src = "data:image/png;base64," + @@ -445,26 +446,25 @@ export default { loading: 'Loading' }, res => { this.linkList = res.data - res.data.forEach(item=>{ + res.data.forEach(item => { if (item.type === 1) { this.linkListFirst.push(item) } }) - this.linkListFirst.forEach(item=>{ - if (item.id !== '') { + this.linkListFirst.forEach(item => { + if (item.icon !== '') { let imgId = { id: item.id } - getImg(imgId).then(res=>{ - if (res.ok) { - const src = - "data:image/png;base64," + - btoa( - new Uint8Array(res).reduce( - (data, byte) => data + String.fromCharCode(byte), "") - ) - item.icon = src - } + // 图片转base64 + getImg(imgId).then(res => { + const src = + "data:image/png;base64," + + btoa( + new Uint8Array(res).reduce( + (data, byte) => data + String.fromCharCode(byte), "") + ) + item.icon = src }) } }) @@ -526,13 +526,16 @@ export default { position: relative; overflow: hidden; } + .avatar-uploader .el-upload:hover { margin-top: 10px; border-color: #409EFF; } + .avatar-uploader { margin-top: 10px; } + .avatar-uploader-icon { font-size: 28px; color: #8c939d; @@ -541,15 +544,18 @@ export default { line-height: 100px; text-align: center; } + .avatar { width: 100px; height: 100px; display: block; } + .filter-tree { height: calc(~'100% - 50px') } - /deep/.el-input.is-disabled .el-input__inner { + + /deep/ .el-input.is-disabled .el-input__inner { background-color: #fff; } } diff --git a/src/pages/config/pages/linkManage/linkType/secondLink.vue b/src/pages/config/pages/linkManage/linkType/secondLink.vue index 3d6f40b46..b785a6b94 100644 --- a/src/pages/config/pages/linkManage/linkType/secondLink.vue +++ b/src/pages/config/pages/linkManage/linkType/secondLink.vue @@ -56,7 +56,8 @@ prop="icon" label="链接图标"> - @@ -153,8 +153,9 @@