瀏覽代碼

上传最后修改

soft5566 2 年之前
父節點
當前提交
3113a09589
共有 5 個文件被更改,包括 52 次插入21 次删除
  1. 1 1
      src/App.vue
  2. 7 7
      src/components/pl-upload/index.vue
  3. 二進制
      src/icons/images/index/czsc.png
  4. 35 4
      src/layout/components/Navbar.vue
  5. 9 9
      src/views/perimeterMgr/index.vue

+ 1 - 1
src/App.vue

@@ -98,4 +98,4 @@
 			}
 		}
 	}
-</script>
+</script>

+ 7 - 7
src/components/pl-upload/index.vue

@@ -59,11 +59,11 @@
 				uploadFileList: [],
 				defFilterTypes: '.jpg, .jpeg, .png', // 默认上传类型
 				cosVal: {
-					SecretId: "AKIDCPVZdcWIxgHpy5FYxVyPiqkZGrhdXUBg",
-					SecretKey: "NkyCN3cz97qKaeXLvHOGxOcdS8f184pL",
-					SecurityToken: "1306339220",
-					Bucket: "wanzai-1306339220",
-					Region: "ap-shanghai",
+					SecretId: "AKIDJSP9gz469yZv77tQjotsgHguvjIgtvkL",
+					SecretKey: "b3MVRD1g8RYS9g195oMkvukQvDKZfbOz",
+					SecurityToken: "1320402385",
+					Bucket: "jinganminsu-1320402385",
+					Region: "ap-nanjing",
 				}
 			}
 		},
@@ -164,8 +164,8 @@
 				const key = `/uploads/minsu/${new Date().getTime()}`; // 设置上传到 COS 后的文件名
 				const cos = new COS(self.cosVal);
 				cos.putObject({
-						Bucket: "wanzai-1306339220",
-						Region: "ap-shanghai",
+						Bucket: "jinganminsu-1320402385",
+						Region: "ap-nanjing",
 						Key: key,
 						Body: file,
 					},

二進制
src/icons/images/index/czsc.png


+ 35 - 4
src/layout/components/Navbar.vue

@@ -16,11 +16,23 @@
 				<span class="svg-shuxian">
 					<svg-icon icon-class="shuxian" />
 				</span>
+				<span class="svg-czsc">
+					<el-tooltip content="操作手册" placement="bottom" effect="light">
+						<a href="https://www.jinganrenjiams.com/manage/" target="_blank">
+							<img src="../../icons/images/index/czsc.png" alt="">
+						</a>
+					</el-tooltip>
+				</span>
+				<span class="svg-shuxian">
+					<svg-icon icon-class="shuxian" />
+				</span>
 				<span class="svg-user">
 					<!-- <svg-icon icon-class="user" /> -->
-					<img src="../../icons/images/index/user.png" alt="">
+					<el-tooltip :content="role" placement="bottom" effect="light">
+						<img src="../../icons/images/index/user.png" alt="">
+					</el-tooltip>
 				</span>
-				<div class="right-role">{{role}}</div>
+				<!-- <div class="right-role">{{role}}</div> -->
 				<span class="svg-shuxian">
 					<svg-icon icon-class="shuxian" />
 				</span>
@@ -230,13 +242,32 @@
 					background-color: #E0E9FD;
 					color: #4493F8;
 					overflow: hidden;
-					
+
 					img {
 						width: 50px;
 						height: 50px;
 					}
 				}
 
+				.svg-czsc {
+					display: flex;
+					justify-content: center;
+					align-items: center;
+					width: 50px;
+					height: 50px;
+					font-size: 32px;
+					border-radius: 30px;
+					background-color: #E0E9FD;
+					color: #4493F8;
+					overflow: hidden;
+
+					img {
+						width: 60px;
+						height: 60px;
+						margin-top: 10px;
+					}
+				}
+
 				.right-role {
 					margin: auto 0 auto 10px;
 				}
@@ -311,4 +342,4 @@
 			// }
 		}
 	}
-</style>
+</style>

+ 9 - 9
src/views/perimeterMgr/index.vue

@@ -914,11 +914,11 @@
 				dialogModifyProductVisible: false, // 编辑产品对话框
 				delPerimeterId: '',
 				cosVal: {
-					SecretId: "AKIDCPVZdcWIxgHpy5FYxVyPiqkZGrhdXUBg",
-					SecretKey: "NkyCN3cz97qKaeXLvHOGxOcdS8f184pL",
-					SecurityToken: "1306339220",
-					Bucket: "wanzai-1306339220",
-					Region: "ap-shanghai",
+					SecretId: "AKIDJSP9gz469yZv77tQjotsgHguvjIgtvkL",
+					SecretKey: "b3MVRD1g8RYS9g195oMkvukQvDKZfbOz",
+					SecurityToken: "1320402385",
+					Bucket: "jinganminsu-1320402385",
+					Region: "ap-nanjing",
 				}
 			}
 		},
@@ -1164,8 +1164,8 @@
 				var that = this
 				const cos = new COS(this.cosVal);
 				cos.putObject({
-						Bucket: "wanzai-1306339220",
-						Region: "ap-shanghai",
+						Bucket: "jinganminsu-1320402385",
+						Region: "ap-nanjing",
 						Key: key,
 						Body: file,
 					},
@@ -1215,8 +1215,8 @@
 				var that = this
 				const cos = new COS(this.cosVal);
 				cos.putObject({
-						Bucket: "wanzai-1306339220",
-						Region: "ap-shanghai",
+						Bucket: "jinganminsu-1320402385",
+						Region: "ap-nanjing",
 						Key: key,
 						Body: file,
 					},