-
-
-
-
-
+
+
+
+
+
@@ -93,7 +93,7 @@
-
+
-
-
-
{{topologyInfo.name}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+ endpoint
+
+
+
+
@@ -216,21 +233,6 @@
-
-
-
-
- endpoint
-
-
-
@@ -1549,7 +1547,6 @@ export default {
upload () {
const form = new FormData()
form.append('file', this.file)
- console.log(this.file)
if (this.uploadPic.name) {
form.append('name', this.uploadPic.name)
} else {
@@ -1562,7 +1559,7 @@ export default {
if (res.code == 200) {
this.$message({ duration: 2000, type: 'success', message: this.$t('tip.saveSuccess') })
this.uploadPicShow = false
- this.dealImg(`monitor/project/topo/icon/${res.data.id}/0`).then((data,header) => {
+ this.dealImg(`monitor/project/topo/icon/${res.data.id}/1`).then((data,header) => {
const group = this.tools.find(tool => tool.group === this.uploadPic.unit)
if (group) {
group.children.push({
@@ -1618,7 +1615,7 @@ export default {
res.data.list.forEach((item, index) => {
item.imageName = item.name
delete item.name
- promiseArr.push(this.dealImg(`monitor/project/topo/icon/${item.id}/0`))
+ promiseArr.push(this.dealImg(`monitor/project/topo/icon/${item.id}/1`))
imgArr.push({ ...item })
})
Promise.all(promiseArr).then((res2,header) => {
@@ -1662,7 +1659,7 @@ export default {
const promiseArr = []
imgidList.forEach((item, index) => {
if (item.data.imageId) {
- promiseArr.push(this.dealImg(`monitor/project/topo/icon/${item.data.imageId}/0`))
+ promiseArr.push(this.dealImg(`monitor/project/topo/icon/${item.data.imageId}/1`))
} else {
promiseArr.push('')
}
@@ -1688,13 +1685,10 @@ export default {
if (url) {
return new Promise((resolve, reject) => {
this.$axios
- .get(url, {
- responseType: 'arraybuffer'
- })
- .then((res, resHeader) => {
+ .get(url)
+ .then((res) => {
return {
- data: ('data:image/jpeg;base64,' + btoa(new Uint8Array(res.data).reduce((data, byte) => data + String.fromCharCode(byte), ''))),
- header: resHeader
+ data: ('data:image/jpeg;base64,' + res.data),
}
})
.then(data => {
@@ -2038,601 +2032,624 @@ export default {
}
diff --git a/nezha-fronted/src/components/common/rightBox/batchModifyEndpoint.vue b/nezha-fronted/src/components/common/rightBox/batchModifyEndpoint.vue
index 55bf823c4..07bcd12b4 100644
--- a/nezha-fronted/src/components/common/rightBox/batchModifyEndpoint.vue
+++ b/nezha-fronted/src/components/common/rightBox/batchModifyEndpoint.vue
@@ -851,7 +851,7 @@ export default {
width: 37.5%;
margin-right: 2%;
background: #FFFFFF;
- border: 1px solid #E7EAED;
+ border: 1px solid $--right-box-border-color;
border-radius: 2px;
position: relative;
}
@@ -875,7 +875,7 @@ export default {
width: 100%;
background: #FFFFFF;
- border: 1px solid #E7EAED;
+ border: 1px solid $--right-box-border-color;
border-radius: 2px;
}
/* end--table*/
@@ -884,7 +884,7 @@ export default {
.search-box{
width: calc(100% - 10px);
padding: 10px 5px;
- border-bottom: 1px solid #E7EAED;
+ border-bottom: 1px solid $--right-box-border-color;
display: flex;
}
/deep/ .new-search .search-input-all{
diff --git a/nezha-fronted/src/components/common/table/nzDataList.vue b/nezha-fronted/src/components/common/table/nzDataList.vue
index 9a6f2a24a..f2b267dda 100644
--- a/nezha-fronted/src/components/common/table/nzDataList.vue
+++ b/nezha-fronted/src/components/common/table/nzDataList.vue
@@ -5,7 +5,7 @@