Commit 11aeea0d authored by 刘殿昕's avatar 刘殿昕

./static

parent e4d790a4
...@@ -2,21 +2,25 @@ ...@@ -2,21 +2,25 @@
<div class="menu"> <div class="menu">
<img src="../assets/imgs/home_img_logo.png" alt class="logo" /> <img src="../assets/imgs/home_img_logo.png" alt class="logo" />
<div style="float:right;cursor: pointer;position:relative;" class="user_hover"> <div style="float:right;cursor: pointer;position:relative;" class="user_hover">
<span class="user">{{ userInfo.user_name }}</span> <span
v-if="userInfo.user_name && userInfo.user_name !=''"
class="user"
>{{ userInfo.user_name }}</span>
<span v-else @click="gotopage('login')" class="user">请登录</span>
<img <img
class="user_pic" class="user_pic"
:src=" :src="
userInfo.picture_path || require('../assets/imgs/home_ic_user.png') userInfo.picture_path || require('../assets/imgs/home_ic_user.png')
" "
/> />
<div class="user_menu"> <div v-if="userInfo.user_name && userInfo.user_name !=''" class="user_menu">
<div <div
v-for="(item, index) in user_arr" v-for="(item, index) in user_arr"
:key="index + 700" :key="index + 700"
@click="gotopage(item.path)" @click="gotopage(item.path)"
>{{ item.name }}</div> >{{ item.name }}</div>
</div> </div>
<div class="sj"></div> <div v-if="userInfo.user_name && userInfo.user_name !=''" class="sj"></div>
</div> </div>
<div <div
style="float:right;cursor: pointer;position:relative;" style="float:right;cursor: pointer;position:relative;"
...@@ -27,7 +31,7 @@ ...@@ -27,7 +31,7 @@
<el-badge v-if="menuCartNum != 0" :value="menuCartNum" :max="99" class="number"></el-badge> <el-badge v-if="menuCartNum != 0" :value="menuCartNum" :max="99" class="number"></el-badge>
<img src="../assets/imgs/home_ic_shop.png" alt class="car_img" /> <img src="../assets/imgs/home_ic_shop.png" alt class="car_img" />
</div> </div>
<div class="shop_menu"> <div v-if="userInfo.user_name && userInfo.user_name !=''" class="shop_menu">
<div class="shop_list_title">最近加入的服务:</div> <div class="shop_list_title">最近加入的服务:</div>
<div <div
v-for="(item, index) in shopping_list" v-for="(item, index) in shopping_list"
...@@ -186,8 +190,10 @@ export default { ...@@ -186,8 +190,10 @@ export default {
methods: { methods: {
gotopage(n) { gotopage(n) {
if (n == "logout") { if (n == "logout") {
window.location.href = "/iam/api/logout";
} else if (n == "login") {
let path = this.$route.path; let path = this.$route.path;
window.location.href = "/iam/api/logout?ReturnUrl=" + path; window.location.href = "/iam/login/#/login?ReturnUrl=" + path;
} else { } else {
this.$router.push(n); this.$router.push(n);
} }
...@@ -262,7 +268,12 @@ export default { ...@@ -262,7 +268,12 @@ export default {
} }
.user { .user {
float: right; float: right;
margin-right: 113px; display: inline-block;
width: 140px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-right: 40px;
font-size: 16px; font-size: 16px;
} }
.user_pic { .user_pic {
......
...@@ -36,32 +36,32 @@ export default { ...@@ -36,32 +36,32 @@ export default {
switch (node.data.nodeType) { switch (node.data.nodeType) {
case "workload": case "workload":
node.type = "image"; node.type = "image";
node.img = "/static/topology_ic_shujufw.svg"; node.img = "./static/topology_ic_shujufw.svg";
node.size = [15, 15]; node.size = [15, 15];
break; break;
case "app": case "app":
node.type = "image"; node.type = "image";
node.img = "/static/topology_ic_shujufw.svg"; node.img = "./static/topology_ic_shujufw.svg";
node.size = [15, 15]; node.size = [15, 15];
break; break;
case "unknow source": case "unknow source":
node.type = "image"; node.type = "image";
node.img = "/static/topology_ic_shujufw.svg"; node.img = "./static/topology_ic_shujufw.svg";
node.size = [15, 15]; node.size = [15, 15];
break; break;
case "service": case "service":
node.type = "image"; node.type = "image";
node.img = "/static/topology_ic_shujufw.svg"; node.img = "./static/topology_ic_shujufw.svg";
node.size = [15, 15]; node.size = [15, 15];
break; break;
case "service entry": case "service entry":
node.type = "image"; node.type = "image";
node.img = "/static/topology_ic_shujufw.svg"; node.img = "./static/topology_ic_shujufw.svg";
node.size = [15, 15]; node.size = [15, 15];
break; break;
default: default:
node.type = "image"; node.type = "image";
node.img = "/static/topology_ic_shujufw.svg"; node.img = "./static/topology_ic_shujufw.svg";
node.size = [15, 15]; node.size = [15, 15];
break; break;
} }
...@@ -224,7 +224,7 @@ export default { ...@@ -224,7 +224,7 @@ export default {
x: legendX, x: legendX,
y: legendBeginY, y: legendBeginY,
type: "image", type: "image",
img: "/static/topology_ic_shujufw.svg", img: "./static/topology_ic_shujufw.svg",
size: [15, 15], size: [15, 15],
label: "数据服务" label: "数据服务"
}, },
...@@ -233,7 +233,7 @@ export default { ...@@ -233,7 +233,7 @@ export default {
x: legendX, x: legendX,
y: legendBeginY + legendYPadding * 1, y: legendBeginY + legendYPadding * 1,
type: "image", type: "image",
img: "/static/topology_ic_shikongfw.svg", img: "./static/topology_ic_shikongfw.svg",
size: [15, 15], size: [15, 15],
label: "时空服务" label: "时空服务"
}, },
...@@ -242,7 +242,7 @@ export default { ...@@ -242,7 +242,7 @@ export default {
x: legendX, x: legendX,
y: legendBeginY + legendYPadding * 2, y: legendBeginY + legendYPadding * 2,
type: "image", type: "image",
img: "/static/topology_ic_shipinfw.svg", img: "./static/topology_ic_shipinfw.svg",
size: [15, 15], size: [15, 15],
label: "视频服务" label: "视频服务"
}, },
...@@ -251,7 +251,7 @@ export default { ...@@ -251,7 +251,7 @@ export default {
x: legendX, x: legendX,
y: legendBeginY + legendYPadding * 3, y: legendBeginY + legendYPadding * 3,
type: "image", type: "image",
img: "/static/topology_ic_ganzhifw.svg", img: "./static/topology_ic_ganzhifw.svg",
size: [15, 15], size: [15, 15],
label: "感知服务" label: "感知服务"
}, },
...@@ -260,7 +260,7 @@ export default { ...@@ -260,7 +260,7 @@ export default {
x: legendX, x: legendX,
y: legendBeginY + legendYPadding * 4, y: legendBeginY + legendYPadding * 4,
type: "image", type: "image",
img: "/static/topology_ic_zonghefw.svg", img: "./static/topology_ic_zonghefw.svg",
size: [15, 15], size: [15, 15],
label: "综合服务" label: "综合服务"
} }
......
<template> <template>
<div class="code-main"> <div class="code-main">
<v-apaas-code url="/static/data.json"></v-apaas-code> <v-apaas-code url="./static/data.json"></v-apaas-code>
</div> </div>
</template> </template>
......
...@@ -75,7 +75,7 @@ export default { ...@@ -75,7 +75,7 @@ export default {
methods: { methods: {
init() { init() {
this.$http this.$http
.get("/static/serviceshop.json") .get("./static/serviceshop.json")
.then((response) => { .then((response) => {
let data = response.body; let data = response.body;
let servicesShopInfo = [ let servicesShopInfo = [
......
...@@ -532,7 +532,7 @@ export default { ...@@ -532,7 +532,7 @@ export default {
}); });
}, },
getData() { getData() {
let url = "/static/antv.json"; let url = "./static/antv.json";
this.$http this.$http
.get(url) .get(url)
.then((response) => { .then((response) => {
......
...@@ -991,7 +991,7 @@ export default { ...@@ -991,7 +991,7 @@ export default {
}, },
getUserData() { getUserData() {
this.$http this.$http
.get("/static/workpalce.json") .get("./static/workpalce.json")
.then((response) => { .then((response) => {
console.log(response); console.log(response);
let data = response.data.data; let data = response.data.data;
...@@ -1002,7 +1002,7 @@ export default { ...@@ -1002,7 +1002,7 @@ export default {
}, },
getoperatingdata() { getoperatingdata() {
this.$http this.$http
.get("/static/workpalce.json") .get("./static/workpalce.json")
.then((response) => { .then((response) => {
console.log(response); console.log(response);
let data = response.data.data; let data = response.data.data;
...@@ -1017,7 +1017,7 @@ export default { ...@@ -1017,7 +1017,7 @@ export default {
}, },
getappusedata() { getappusedata() {
this.$http this.$http
.get("/static/workpalce.json") .get("./static/workpalce.json")
.then((response) => { .then((response) => {
console.log(response); console.log(response);
let data = response.data.data; let data = response.data.data;
...@@ -1027,7 +1027,7 @@ export default { ...@@ -1027,7 +1027,7 @@ export default {
}, },
getfwlxdata() { getfwlxdata() {
this.$http this.$http
.get("/static/workpalce.json") .get("./static/workpalce.json")
.then((response) => { .then((response) => {
console.log(response); console.log(response);
let data = response.data.data; let data = response.data.data;
...@@ -1037,7 +1037,7 @@ export default { ...@@ -1037,7 +1037,7 @@ export default {
}, },
getyylxdata() { getyylxdata() {
this.$http this.$http
.get("/static/workpalce.json") .get("./static/workpalce.json")
.then((response) => { .then((response) => {
console.log(response); console.log(response);
let data = response.data.data; let data = response.data.data;
...@@ -1047,7 +1047,7 @@ export default { ...@@ -1047,7 +1047,7 @@ export default {
}, },
getHealth() { getHealth() {
this.$http this.$http
.get("/static/workpalce.json") .get("./static/workpalce.json")
.then((response) => { .then((response) => {
console.log(response); console.log(response);
let data = response.data.data; let data = response.data.data;
...@@ -1057,7 +1057,7 @@ export default { ...@@ -1057,7 +1057,7 @@ export default {
}, },
getAppData() { getAppData() {
this.$http this.$http
.get("/static/workpalce.json") .get("./static/workpalce.json")
.then((response) => { .then((response) => {
console.log(response); console.log(response);
let data = response.data.data; let data = response.data.data;
...@@ -1067,7 +1067,7 @@ export default { ...@@ -1067,7 +1067,7 @@ export default {
}, },
getInfoData() { getInfoData() {
this.$http this.$http
.get("/static/workpalce.json") .get("./static/workpalce.json")
.then((response) => { .then((response) => {
console.log(response); console.log(response);
let data = response.data.data; let data = response.data.data;
......
...@@ -267,7 +267,7 @@ export default { ...@@ -267,7 +267,7 @@ export default {
}, },
getServiceapplyInfo() { getServiceapplyInfo() {
this.$http this.$http
.get("/static/applyappdetail.json") .get("./static/applyappdetail.json")
.then((response) => { .then((response) => {
let data = response.data.data; let data = response.data.data;
this.$set(this.servicead_arr[1], "info", data.appapplyinfo.scene); this.$set(this.servicead_arr[1], "info", data.appapplyinfo.scene);
...@@ -279,7 +279,7 @@ export default { ...@@ -279,7 +279,7 @@ export default {
}, },
getServiceBaseInfo() { getServiceBaseInfo() {
this.$http this.$http
.get("/static/applyappdetail.json") .get("./static/applyappdetail.json")
.then((response) => { .then((response) => {
let data = response.data.data; let data = response.data.data;
this.$set(this.list_arr[0], "info", data.appbaseinfo.intorduce); this.$set(this.list_arr[0], "info", data.appbaseinfo.intorduce);
...@@ -297,7 +297,7 @@ export default { ...@@ -297,7 +297,7 @@ export default {
}, },
getServiceInfo() { getServiceInfo() {
this.$http this.$http
.get("/static/applyappdetail.json") .get("./static/applyappdetail.json")
.then((response) => { .then((response) => {
let data = response.data.data; let data = response.data.data;
this.$set(this.service_header_arr, "id", data.appInfo.id); this.$set(this.service_header_arr, "id", data.appInfo.id);
......
...@@ -237,7 +237,7 @@ export default { ...@@ -237,7 +237,7 @@ export default {
}, },
getapplyinfo(){ getapplyinfo(){
this.$http this.$http
.get("/static/approvalappdetail.json") .get("./static/approvalappdetail.json")
.then((response) => { .then((response) => {
let data = response.data.data; let data = response.data.data;
this.$set(this.list_arr[0], "info", data.appbaseinfo.company); this.$set(this.list_arr[0], "info", data.appbaseinfo.company);
...@@ -252,7 +252,7 @@ export default { ...@@ -252,7 +252,7 @@ export default {
}, },
getheaderinfo(){ getheaderinfo(){
this.$http this.$http
.get("/static/approvalappdetail.json") .get("./static/approvalappdetail.json")
.then((response) => { .then((response) => {
let data = response.data.data; let data = response.data.data;
this.$set(this.service_header_arr, "name", data.appInfo.name); this.$set(this.service_header_arr, "name", data.appInfo.name);
......
...@@ -497,7 +497,7 @@ export default { ...@@ -497,7 +497,7 @@ export default {
}, },
getImageInfo() { getImageInfo() {
this.$http this.$http
.get("/static/deployappdetail.json") .get("./static/deployappdetail.json")
.then((response) => { .then((response) => {
console.log(response); console.log(response);
let data = response.data.data; let data = response.data.data;
...@@ -507,7 +507,7 @@ export default { ...@@ -507,7 +507,7 @@ export default {
}, },
getServiceyxztInfo() { getServiceyxztInfo() {
this.$http this.$http
.get("/static/servicedetail1.json") .get("./static/servicedetail1.json")
.then((response) => { .then((response) => {
console.log(response); console.log(response);
let data = response.data.data; let data = response.data.data;
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
"example": "无请求示例", "example": "无请求示例",
"format": "UTF-8", "format": "UTF-8",
"responseParamUrl": "params_arr", "responseParamUrl": "params_arr",
"codeExampleUrl": "/static/data.json" "codeExampleUrl": "./static/data.json"
}, },
"servicebaseinfo": [ "servicebaseinfo": [
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment