Commit efd742cf authored by 张俊's avatar 张俊

合并

parents c4a104dc 6537e94e
src/assets/imgs/ic_true.png

1.51 KB | W: | H:

src/assets/imgs/ic_true.png

1.51 KB | W: | H:

src/assets/imgs/ic_true.png
src/assets/imgs/ic_true.png
src/assets/imgs/ic_true.png
src/assets/imgs/ic_true.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -3,6 +3,11 @@ ...@@ -3,6 +3,11 @@
<div class="apass_breadcrumb"> <div class="apass_breadcrumb">
<slot name="breadcrumb"></slot> <slot name="breadcrumb"></slot>
</div> </div>
<div class="main-container top_container" v-if="$slots.top">
<slot name="top"></slot>
</div>
<div class="main-container"> <div class="main-container">
<div class="header-container" v-if="!hideHeader"> <div class="header-container" v-if="!hideHeader">
<div class="header-left apass_button"> <div class="header-left apass_button">
...@@ -18,6 +23,28 @@ ...@@ -18,6 +23,28 @@
" "
></i> ></i>
</el-button> </el-button>
<div
v-for="(item, index) in selectFilter"
:key="'select_' + index"
class="select_container"
>
<span class="select_title" v-text="item.name"></span>
<el-select
v-model="item.value"
placeholder="请选择"
@change="listAction"
>
<el-option
v-for="(v, i) in item.options"
:key="'select_' + index + '_option_' + i"
:label="v.name"
:value="v.value"
>
</el-option>
</el-select>
</div>
<slot name="header-left"></slot> <slot name="header-left"></slot>
</div> </div>
<div class="header-center"> <div class="header-center">
...@@ -51,7 +78,7 @@ ...@@ -51,7 +78,7 @@
<list-table <list-table
:header="listHeader" :header="listHeader"
:data="listData" :data="listData"
:padding-left="35" :padding-left="listPaddingLeft"
></list-table> ></list-table>
</div> </div>
...@@ -84,6 +111,10 @@ export default { ...@@ -84,6 +111,10 @@ export default {
type: Array, type: Array,
default: () => [], default: () => [],
}, },
otherFilter: {
type: Array,
default: () => [],
},
listHeader: { listHeader: {
type: Array, type: Array,
default: () => [], default: () => [],
...@@ -116,8 +147,21 @@ export default { ...@@ -116,8 +147,21 @@ export default {
currentPage: 1, currentPage: 1,
timer: null, timer: null,
pageSizes: [15, 50, 100], pageSizes: [15, 50, 100],
selectFilter: [],
}), }),
methods: { methods: {
initOtherFilter() {
this.otherFilter.forEach((item) => {
this.$set(this.filter, item.prop, item.default);
this.selectFilter.push({
name: item.name,
prop: item.prop,
value: item.default,
options: item.options,
});
});
},
searchAction(value) { searchAction(value) {
this.listAction(); this.listAction();
}, },
...@@ -140,8 +184,15 @@ export default { ...@@ -140,8 +184,15 @@ export default {
} }
this.timer = setTimeout(() => { this.timer = setTimeout(() => {
let selectFilter = {};
this.selectFilter.forEach((item) => {
selectFilter[item.prop] = item.value;
});
this.$emit("list-action", { this.$emit("list-action", {
...this.filter, ...this.filter,
...selectFilter,
keyword: this.searchValue, keyword: this.searchValue,
size: this.pageSize, size: this.pageSize,
page: this.currentPage, page: this.currentPage,
...@@ -150,6 +201,10 @@ export default { ...@@ -150,6 +201,10 @@ export default {
}, },
}, },
mounted() { mounted() {
if (this.otherFilter && this.otherFilter.length > 0) {
this.initOtherFilter();
}
this.listAction(); this.listAction();
}, },
}; };
...@@ -182,7 +237,17 @@ export default { ...@@ -182,7 +237,17 @@ export default {
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
} }
.header-container .el-button + .el-button { .header-container .select_container {
display: inline-block;
vertical-align: middle;
}
.header-container .select_container .select_title {
font-size: 14px;
color: #242c43;
margin-right: 10px;
}
.header-container .el-button + .el-button,
.header-container .select_container + .select_container {
margin-left: 25px; margin-left: 25px;
} }
.apass_filter { .apass_filter {
...@@ -195,4 +260,8 @@ export default { ...@@ -195,4 +260,8 @@ export default {
.list-container { .list-container {
flex-grow: 1; flex-grow: 1;
} }
.top_container {
flex-grow: 0;
margin-bottom: 20px;
}
</style> </style>
<template> <template>
<div class="apass_table"> <div class="apass_table">
<el-table :data="data" :height="height"> <el-table :data="data" :height="height">
<el-table-column :width="Math.max(paddingLeft - 10, 0)" v-if="icon"></el-table-column> <el-table-column v-if="paddingLeft > 10" :width="paddingLeft - 10"></el-table-column>
<el-table-column <el-table-column
v-for="(item, index) in header" v-for="(item, index) in header"
:label="item.label" :label="item.label"
...@@ -62,6 +62,33 @@ ...@@ -62,6 +62,33 @@
<span class="use" v-if="item.prop=='cpu'">{{scope.row['cpu_use']}}.00mm</span> <span class="use" v-if="item.prop=='cpu'">{{scope.row['cpu_use']}}.00mm</span>
<span class="use" v-if="item.prop=='mermoy'">{{scope.row['memory_use']}}.00Mi</span> <span class="use" v-if="item.prop=='mermoy'">{{scope.row['memory_use']}}.00Mi</span>
</div> </div>
<div v-else-if="item.type === 'image'" class="img_content">
<img
:src="item.getImage && item.getImage(scope.row)"
:width="item.size"
/>
</div>
<div
v-else-if="
item.type === 'tooltip' &&
item.getLength &&
item.getLength(scope.row) > 1
"
>
<el-tooltip
placement="right-start"
popper-class="apass_table_tooltip"
>
<div
slot="content"
v-html="item.getContent && item.getContent(scope.row)"
></div>
<span
v-text="(item.getText && item.getText(scope.row)) + '..'"
style="text-decoration: underline;color: #515fe7;"
></span>
</el-tooltip>
</div>
<span <span
v-else v-else
v-text=" v-text="
...@@ -89,10 +116,6 @@ export default { ...@@ -89,10 +116,6 @@ export default {
type: [Number, String], type: [Number, String],
default: () => 50, default: () => 50,
}, },
icon:{
type: Boolean,
default: true,
},
height:{ height:{
type: Number, type: Number,
default: null, default: null,
...@@ -162,4 +185,17 @@ export default { ...@@ -162,4 +185,17 @@ export default {
font-size: 12px; font-size: 12px;
color: rgba(26, 34, 54, 1); color: rgba(26, 34, 54, 1);
} }
.apass_table_tooltip {
font-size: 12px;
line-height: 20px;
}
</style>
<style scoped>
.img_content {
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
</style> </style>
This diff is collapsed.
<template> <template>
<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 <div style="float:right;cursor: pointer;position:relative;" class="user_hover">
style="float:right;cursor: pointer;position:relative;" <span v-if="userInfo.user_name && userInfo.user_name != ''" class="user">{{ userInfo.user_name }}</span>
class="user_hover"
>
<span
v-if="userInfo.user_name && userInfo.user_name != ''"
class="user"
>{{ userInfo.user_name }}</span
>
<span v-else @click="gotopage('login')" class="user">请登录</span> <span v-else @click="gotopage('login')" class="user">请登录</span>
<img <img :class="userInfo.picture_path ? 'user_pic' : 'user_default'" :src="
:class="userInfo.picture_path ? 'user_pic' : 'user_default'"
:src="
userInfo.picture_path || require('../assets/imgs/home_ic_user.png') userInfo.picture_path || require('../assets/imgs/home_ic_user.png')
" " />
/> <div v-if="userInfo.user_name && userInfo.user_name != ''" class="user_menu">
<div <div v-for="(item, index) in user_arr" :key="index + 700" @click="gotopage(item.path)">
v-if="userInfo.user_name && userInfo.user_name != ''"
class="user_menu"
>
<div
v-for="(item, index) in user_arr"
:key="index + 700"
@click="gotopage(item.path)"
>
{{ item.name }} {{ item.name }}
</div> </div>
</div> </div>
<div <div v-if="userInfo.user_name && userInfo.user_name != ''" class="sj"></div>
v-if="userInfo.user_name && userInfo.user_name != ''"
class="sj"
></div>
</div> </div>
<div <div style="float:right;cursor: pointer;position:relative;" class="shop_hover" @click="gotopage('/shop/shopping_cart')">
style="float:right;cursor: pointer;position:relative;"
class="shop_hover"
@click="gotopage('/shop/shopping_cart')"
>
<div class="car"> <div class="car">
<el-badge <el-badge v-if="menuCartNum != 0" :value="menuCartNum" :max="99" class="number"></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 <div v-if="userInfo.user_name && userInfo.user_name != ''" class="shop_menu">
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" :key="'shopping' + index" class="shop_list_cell shop_line">
v-for="(item, index) in shopping_list"
:key="'shopping' + index"
class="shop_list_cell shop_line"
>
<img :src="item.service.cover" class="shop_img" /> <img :src="item.service.cover" class="shop_img" />
<div class="shop_cell_msgs"> <div class="shop_cell_msgs">
<p @click="getDetail(item.id)" class="shop_cell_name over_one"> <p @click="getDetail(item.id)" class="shop_cell_name over_one">
{{ {{ item.service_id == 0 ? item.application.app_name : item.service.name }}
item.service_id == 0
? item.application.app_name
: item.service.name
}}
</p> </p>
<p class="shop_cell_msg bover_one"> <p class="shop_cell_msg bover_one">
{{ {{ item.service_id == 0 ? item.application.ywly : item.service.sectors_name }}
item.service_id == 0
? item.application.ywly
: item.service.sectors_name
}}
</p> </p>
<p class="shop_cell_msg over_one"> <p class="shop_cell_msg over_one">
{{ {{ item.service_id == 0 ? item.application.org : item.service.organization_name }}
item.service_id == 0
? item.application.org
: item.service.organization_name
}}
</p> </p>
</div> </div>
<div> <div>
<img <img @click.stop="deleteItem(item.id)" src="../assets/imgs/ic_delete.png" alt />
@click.stop="deleteItem(item.id)"
src="../assets/imgs/ic_delete.png"
alt
/>
</div> </div>
</div> </div>
<div class="shop_footer"> <div class="shop_footer">
<el-button @click="settlement" size="small" class="shop_settlement" <el-button @click="settlement" size="small" class="shop_settlement">去购物车申请结算</el-button>
>去购物车申请结算</el-button
>
</div> </div>
</div> </div>
<div <div v-if="userInfo.user_name && userInfo.user_name != ''" class="shop_sj"></div>
v-if="userInfo.user_name && userInfo.user_name != ''"
class="shop_sj"
></div>
</div> </div>
<div style="float:right"> <div style="float:right">
<div <div v-for="(item, index) in menu_arr" :key="index + 200" class="menu_box user_hover" @click="navAction(item.visit_url)" :style="{ color: now_menu == item.visit_url ? '#fff' : '' }">
v-for="(item, index) in menu_arr"
:key="index + 200"
class="menu_box user_hover"
@click="navAction(item.visit_url)"
:style="{ color: now_menu == item.visit_url ? '#fff' : '' }"
>
{{ item.menu_name }} {{ item.menu_name }}
<div <div class="user_menu" v-if="item.Child && item.Child.length" style="left: 30px;">
class="user_menu" <div v-for="(v, indexs) in item.Child" :key="indexs + 700" @click.stop="gotoChildPage(v, item.visit_url)">
v-if="item.Child && item.Child.length"
style="left: 30px;"
>
<div
v-for="(v, indexs) in item.Child"
:key="indexs + 700"
@click.stop="gotoChildPage(v, item.visit_url)"
>
{{ v.menu_name }} {{ v.menu_name }}
</div> </div>
</div> </div>
<div <div class="sj" v-if="item.Child && item.Child.length" style="left: 60px;"></div>
class="sj"
v-if="item.Child && item.Child.length"
style="left: 60px;"
></div>
<div class="bottom_show" v-if="now_menu == item.visit_url"></div> <div class="bottom_show" v-if="now_menu == item.visit_url"></div>
</div> </div>
</div> </div>
...@@ -146,10 +71,10 @@ export default { ...@@ -146,10 +71,10 @@ export default {
{ name: "消息通知", path: "/user/message" }, { name: "消息通知", path: "/user/message" },
{ name: "收银中心", path: "" }, { name: "收银中心", path: "" },
{ name: "关于BD-aPaaS", path: "" }, { name: "关于BD-aPaaS", path: "" },
{ name: "退出登录", path: "logout" }, { name: "退出登录", path: "logout" }
], ],
shopping_list: [], shopping_list: [],
menuCartNum: 0, menuCartNum: 0
}; };
}, },
mounted() { mounted() {
...@@ -162,15 +87,16 @@ export default { ...@@ -162,15 +87,16 @@ export default {
}, },
userInfo() { userInfo() {
return this.$store.state.userInfo || {}; return this.$store.state.userInfo || {};
}, }
}, },
watch: { watch: {
getMenuCartState(newVal) { getMenuCartState(newVal) {
this.getList(); this.getList();
}, }
}, },
methods: { methods: {
gotopage(n) { gotopage(n) {
console.log("function gotopage,menu test:" + n);
if (n == "logout") { if (n == "logout") {
window.location.href = "/iam/api/logout"; window.location.href = "/iam/api/logout";
} else if (n == "login") { } else if (n == "login") {
...@@ -185,7 +111,7 @@ export default { ...@@ -185,7 +111,7 @@ export default {
}, },
deleteItem(id) { deleteItem(id) {
let query = [id]; let query = [id];
this.$api.serviceShop.delShoppingCart(query).then((response) => { this.$api.serviceShop.delShoppingCart(query).then(response => {
this.getList(); this.getList();
}); });
}, },
...@@ -195,26 +121,29 @@ export default { ...@@ -195,26 +121,29 @@ export default {
this.$router.push({ name: "shoppingCart" }); this.$router.push({ name: "shoppingCart" });
}, },
navAction(path) { navAction(path) {
this.$router.push(path); console.log("function navAction,menu test:" + path);
this.now_menu = path; this.now_menu = path;
window.sessionStorage.setItem("menuVisitUrl", path); window.sessionStorage.setItem("menuVisitUrl", path);
this.$router.push(path);
}, },
gotoChildPage(v, parent) { gotoChildPage(v, parent) {
console.log("function gotoChildPage,menu test:" + v + "|" + parent);
if (v.visit_url) { if (v.visit_url) {
if (v.visit_url == "/fwgl/" || v.visit_url == "/yygl/") { if (v.visit_url == "/fwgl/" || v.visit_url == "/yygl/") {
this.$router.push(v.visit_url + this.$store.getters.level); this.$router.push(v.visit_url + this.$store.getters.level);
} else if (parent == "/services_shop") { } else if (parent == "/services_shop") {
this.$router.push(v.visit_url);
this.$store.commit("serviceShopMenuAct", v.visit_url); this.$store.commit("serviceShopMenuAct", v.visit_url);
this.$router.push(v.visit_url);
} else { } else {
this.$router.push(v.visit_url); this.$router.push(v.visit_url);
} }
this.now_menu = parent; this.now_menu = parent;
window.sessionStorage.setItem("menuVisitUrl", parent); window.sessionStorage.setItem("menuVisitUrl", parent);
} }
}, },
getList() { getList() {
this.$api.serviceShop.getShoppingCart().then((response) => { this.$api.serviceShop.getShoppingCart().then(response => {
if (response.data.success == "1") { if (response.data.success == "1") {
this.menuCartNum = response.data.data.valid this.menuCartNum = response.data.data.valid
? response.data.data.valid.length ? response.data.data.valid.length
...@@ -233,15 +162,15 @@ export default { ...@@ -233,15 +162,15 @@ export default {
this.now_menu = visit_url ? visit_url : "/services_shop"; this.now_menu = visit_url ? visit_url : "/services_shop";
}, },
getNowMenu() { getNowMenu() {
this.$api.general.getNowMenu({ teamName: "APAAS3" }).then((response) => { this.$api.general.getNowMenu({ teamName: "APAAS3" }).then(response => {
if (response.data.success == 1) { if (response.data.success == 1) {
this.menu_arr = this.menu_arr =
(response.data.data[0] && response.data.data[0].Child) || []; (response.data.data[0] && response.data.data[0].Child) || [];
this.getMenuIndex(); this.getMenuIndex();
} }
}); });
}, }
}, }
}; };
</script> </script>
......
...@@ -50,11 +50,11 @@ export default { ...@@ -50,11 +50,11 @@ export default {
score: 0, score: 0,
starInfo: [ starInfo: [
{ {
star: 1, star: 5,
percent: 0, percent: 0,
}, },
{ {
star: 2, star: 4,
percent: 0, percent: 0,
}, },
{ {
...@@ -62,11 +62,11 @@ export default { ...@@ -62,11 +62,11 @@ export default {
percent: 0, percent: 0,
}, },
{ {
star: 4, star: 2,
percent: 0, percent: 0,
}, },
{ {
star: 5, star: 1,
percent: 0, percent: 0,
}, },
], ],
...@@ -79,7 +79,7 @@ export default { ...@@ -79,7 +79,7 @@ export default {
return { return {
score: data.avgScore || 0, score: data.avgScore || 0,
starInfo: [1, 2, 3, 4, 5].map((star) => { starInfo: [5,4,3,2,1].map((star) => {
let percent = let percent =
this.commentsTtotal > 0 this.commentsTtotal > 0
? (((data.scoreStatic && data.scoreStatic[star]) || 0) / ? (((data.scoreStatic && data.scoreStatic[star]) || 0) /
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
></service-tab-detail> ></service-tab-detail>
</el-tab-pane> </el-tab-pane>
<!-- 规格定价 --> <!-- 规格说明 -->
<el-tab-pane <el-tab-pane
:label="specificationTitle" :label="specificationTitle"
name="specification" name="specification"
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
></service-tab-specification> ></service-tab-specification>
</el-tab-pane> </el-tab-pane>
<!-- 提供机构 --> <!-- 提供组织 -->
<el-tab-pane :label="providerTitle" name="provider" v-if="providerData"> <el-tab-pane :label="providerTitle" name="provider" v-if="providerData">
<service-tab-provider <service-tab-provider
class="service_info" class="service_info"
...@@ -65,11 +65,11 @@ export default { ...@@ -65,11 +65,11 @@ export default {
}, },
specificationTitle: { specificationTitle: {
type: String, type: String,
default: () => "规格定价", default: () => "规格说明",
}, },
providerTitle: { providerTitle: {
type: String, type: String,
default: () => "提供机构", default: () => "提供组织",
}, },
commentsTitle: { commentsTitle: {
type: String, type: String,
......
<template> <template>
<div class="shop_card"> <div class="shop_card">
<div class="shop_car-img" v-if="data.img" @click="intoDetail"> <div class="shop_car-img" v-if="showImg" @click="intoDetail">
<img :src="data.img" width="100%" /> <img :src="data.cover" width="100%" />
</div> </div>
<div class="shop_card-top"> <div class="shop_card-top">
<p <p
class="shop_card-title text_clip_2" class="shop_card-title text_clip_2"
v-text="data.title" v-text="data.name"
:title="data.title" :title="data.name"
@click="intoDetail" @click="intoDetail"
></p> ></p>
<p class="shop_card-text under_text"> <p class="shop_card-text under_text">
<span <span class="text_clip" v-text="data.department_name" :title="data.department_name"></span>
class="text_clip"
v-text="data.provider"
:title="data.provider"
></span>
<span> <span>
<i class="el-icon-star-on"></i> <el-rate
<span v-text="data.rate"></span> v-model="data.score"
disabled
show-score
text-color="#ea7d19"
score-template="{value}"
></el-rate>
</span> </span>
</p> </p>
</div> </div>
...@@ -28,16 +29,22 @@ ...@@ -28,16 +29,22 @@
</p> </p>
<p class="shop_card-text update_time"> <p class="shop_card-text update_time">
<img :src="require('@/assets/imgs/icon_shijian.png')" style="margin-right: 5px;" /> <img :src="require('@/assets/imgs/icon_shijian.png')" style="margin-right: 5px;" />
<span class="text_clip" v-text="'更新时间:' + data.updateTime"></span> <span class="text_clip" v-text="'更新时间:' + helper.dateStringTransform(data.update_date)"></span>
</p> </p>
<div class="shop_card-text access"> <div class="shop_card-text access">
<span> <span>
<img :src="require('@/assets/imgs/icon_liulan.png')" /> <img :src="require('@/assets/imgs/icon_liulan.png')" />
<span class="text_clip" v-text="data.viewCount + '次浏览'"></span> <span
class="text_clip"
v-text="helper.numberFormat(data.view_count, 2) + (data.view_count > 10000 ? '万' : '') + '次浏览'"
></span>
</span> </span>
<span> <span>
<img :src="require('@/assets/imgs/icon_huoqu1.png')" /> <img :src="require('@/assets/imgs/icon_huoqu1.png')" />
<span class="text_clip" v-text="data.numberOfMonth + '次获取'"></span> <span
class="text_clip"
v-text="helper.numberFormat(data.apply_count, 2) + (data.apply_count > 10000 ? '万' : '') + '次获取'"
></span>
</span> </span>
</div> </div>
</div> </div>
...@@ -45,22 +52,32 @@ ...@@ -45,22 +52,32 @@
</template> </template>
<script> <script>
import helper from "@/services/helper";
export default { export default {
props: { props: {
data: { data: {
type: Object, type: Object,
required: true, default: () => {}
}, },
detailPath: { detailPath: {
type: String, type: String,
required: true, required: true
}, },
showImg: {
type: Boolean,
default: false
}
},
data() {
return {
helper
};
}, },
methods: { methods: {
intoDetail() { intoDetail() {
this.$router.push(this.detailPath + this.data.id); this.$router.push(this.detailPath + this.data.id);
}, }
}, }
}; };
</script> </script>
......
This diff is collapsed.
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<ul class="shop_cards"> <ul class="shop_cards">
<li v-for="(item, index) in data" :key="'card_' + index"> <li v-for="(item, index) in data" :key="'card_' + index">
<shop-card :data="item" :detail-path="detailPath"></shop-card> <shop-card :data="item" :showImg="showImg" :detail-path="detailPath"></shop-card>
</li> </li>
</ul> </ul>
</div> </div>
...@@ -20,33 +20,37 @@ import shopCard from "./shop-card"; ...@@ -20,33 +20,37 @@ import shopCard from "./shop-card";
export default { export default {
components: { components: {
shopCard, shopCard
}, },
props: { props: {
name: { name: {
type: String, type: String,
required: true, required: true
}, },
to: { to: {
type: String, type: String,
required: true, required: true
}, },
detailPath: { detailPath: {
type: String, type: String,
required: true, required: true
}, },
data: { data: {
type: Array, type: Array,
required: true, default: () => []
}, },
showImg: {
type: Boolean,
default: false
}
}, },
methods: { methods: {
goto() { goto() {
if (this.to) { if (this.to) {
this.$router.push(this.to); this.$router.push(this.to);
} }
}, }
}, }
}; };
</script> </script>
......
<template> <template>
<div class="services_shop-container"> <div class="services_shop-container">
<div class="services_shop-carousel"> <div class="services_shop-carousel">
<el-carousel height="400px"> <el-carousel height="400px" arrow="never">
<el-carousel-item <el-carousel-item v-for="(banner, index) in banners" :key="'banner_' + index">
v-for="(banner, index) in banners" <img :src="banner.image_url" width="100%" @click="goto(banner.url)" />
:key="'banner_' + index"
>
<img :src="banner" width="100%" />
</el-carousel-item> </el-carousel-item>
</el-carousel> </el-carousel>
<ul class="services_shop-info"> <ul class="services_shop-info">
...@@ -18,16 +15,12 @@ ...@@ -18,16 +15,12 @@
<div class="right-container"> <div class="right-container">
<p v-text="item.name"></p> <p v-text="item.name"></p>
<p> <p>
<span v-text="item.value"></span> <span>{{ helper.numberFormat(item.value, 2) }}</span>
<span v-text="item.unit"></span> <span>{{ item.value > 10000 ? "" : "" }}</span>
</p> </p>
</div> </div>
</li> </li>
<li <li class="info_line" :key="'line_' + index" v-if="index + 1 < servicesShopInfo.length"></li>
class="info_line"
:key="'line_' + index"
v-if="index + 1 < servicesShopInfo.length"
></li>
</template> </template>
</ul> </ul>
</div> </div>
...@@ -38,6 +31,7 @@ ...@@ -38,6 +31,7 @@
to="/shop/data_service_list" to="/shop/data_service_list"
detail-path="/shop/sjfwDetail/" detail-path="/shop/sjfwDetail/"
:data="hot_datas" :data="hot_datas"
:showImg="false"
></shop-list> ></shop-list>
<!-- 精品地图 --> <!-- 精品地图 -->
...@@ -46,6 +40,7 @@ ...@@ -46,6 +40,7 @@
to="/shop/space_time_service_list" to="/shop/space_time_service_list"
detail-path="/shop/skfwDetail/" detail-path="/shop/skfwDetail/"
:data="map_datas" :data="map_datas"
:showImg="true"
></shop-list> ></shop-list>
<!-- 综合应用 --> <!-- 综合应用 -->
...@@ -54,84 +49,90 @@ ...@@ -54,84 +49,90 @@
to="/shop/comprehensive_app_list" to="/shop/comprehensive_app_list"
detail-path="/shop/zhfwDetail/" detail-path="/shop/zhfwDetail/"
:data="comprehensive_datas" :data="comprehensive_datas"
:showImg="true"
></shop-list> ></shop-list>
</div> </div>
</template> </template>
<script> <script>
import shopList from "@/components/shop-list"; import shopList from "@/components/shop-list";
import helper from "@/services/helper";
export default { export default {
components: { components: {
shopList, shopList
}, },
data: () => ({ data: () => ({
banners: null, banners: null,
servicesShopInfo: null, servicesShopInfo: [
hot_datas: [],
map_datas: [],
comprehensive_datas: [],
}),
methods: {
init() {
this.$http
.get("./static/serviceshop.json")
.then((response) => {
let data = response.body;
let servicesShopInfo = [
{ {
name: "服务总数", name: "服务总数",
value: "", value: 0,
unit: "", icon: require("@/assets/imgs/shop_ic_fuwuzs.png")
icon: require("@/assets/imgs/shop_ic_fuwuzs.png"),
}, },
{ {
name: "用户总数", name: "用户总数",
value: "", value: 0,
unit: "", icon: require("@/assets/imgs/shop_ic_yonghuzs.png")
icon: require("@/assets/imgs/shop_ic_yonghuzs.png"),
}, },
{ {
name: "接入机构", name: "接入机构",
value: "", value: 0,
unit: "", icon: require("@/assets/imgs/shop_ic_jierujg.png")
icon: require("@/assets/imgs/shop_ic_jierujg.png"),
}, },
{ {
name: "接入系统", name: "接入系统",
value: "", value: 0,
unit: "", icon: require("@/assets/imgs/shop_ic_jieruxt.png")
icon: require("@/assets/imgs/shop_ic_jieruxt.png"),
}, },
{ {
name: "服务请求次数", name: "服务请求次数",
value: ".2", value: 0,
unit: "亿", icon: require("@/assets/imgs/shop_ic_fuwuzs.png")
icon: require("@/assets/imgs/shop_ic_fuwuzs.png"), }
],
hot_datas: [],
map_datas: [],
comprehensive_datas: [],
helper
}),
methods: {
init(type) {
this.$api.serviceShop.getFeaturedList({ type }).then(response => {
if (type == "hotdata") {
this.hot_datas = response.data.data;
} else if (type == "hgmap") {
this.map_datas = response.data.data;
} else if (type == "zhapp") {
this.comprehensive_datas = response.data.data;
}
});
}, },
]; getBenner() {
this.$api.serviceShop.getBenner().then(response => {
this.banners = data.banners; this.banners = response.data.data;
this.servicesShopInfo = servicesShopInfo.map((item) => {
let temp = data.servicesShopInfo.find((v) => v.name === item.name);
return {
...item,
value: temp && temp.value,
};
}); });
this.hot_datas = data.hot_datas; },
this.map_datas = data.map_datas; getGeneralOverview() {
this.comprehensive_datas = data.comprehensive_datas; this.$api.serviceShop.getGeneralOverview().then(response => {
}) let data = response.data.data;
.catch(function(error) { this.servicesShopInfo[0].value = data.service_num;
console.log(error); this.servicesShopInfo[1].value = data.person_num;
this.servicesShopInfo[2].value = data.org_num;
this.servicesShopInfo[3].value = data.system_num;
this.servicesShopInfo[4].value = data.request_num;
}); });
}, },
goto(page) {
window.location.href = page;
}
}, },
mounted() { mounted() {
this.init(); this.getBenner();
}, this.init("hotdata");
this.init("hgmap");
this.init("zhapp");
}
}; };
</script> </script>
......
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
下一步 下一步
</el-button> </el-button>
</div> </div>
<image-detail ref="imageDetail" :image="selectedImage"></image-detail> <image-detail ref="imageDetail"></image-detail>
</app-build-step> </app-build-step>
<app-build-step <app-build-step
title="上传部署文件" title="上传部署文件"
...@@ -360,7 +360,6 @@ export default { ...@@ -360,7 +360,6 @@ export default {
msg: "", msg: "",
submit: null, submit: null,
}, },
selectedImage: null,
}), }),
methods: { methods: {
preStep() { preStep() {
...@@ -575,8 +574,7 @@ export default { ...@@ -575,8 +574,7 @@ export default {
} }
}, },
showImageDetail(item) { showImageDetail(item) {
this.selectedImage = item; this.$refs.imageDetail.showDialog(item);
this.$refs.imageDetail.showDialog();
}, },
}, },
mounted() { mounted() {
......
This diff is collapsed.
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<el-input placeholder="请输入内容" style="float:right;" v-model="pod_name" prefix-icon="el-icon-search"></el-input> <el-input placeholder="请输入内容" style="float:right;" v-model="pod_name" prefix-icon="el-icon-search"></el-input>
</div> </div>
<div style="padding:20px;padding-top:0px;"> <div style="padding:20px;padding-top:0px;">
<apass-table :header="header_arr" :data="tableData" :icon="false" :height="560"></apass-table> <apass-table :header="header_arr" :data="tableData" :icon="false" :height="560" :paddingLeft="5"></apass-table>
<list-pagination <list-pagination
:total="listTotal" :total="listTotal"
:page-sizes="pageSizes" :page-sizes="pageSizes"
......
...@@ -64,6 +64,17 @@ businessArea=${params.businessArea}&developable=${params.developable}&orgSource= ...@@ -64,6 +64,17 @@ businessArea=${params.businessArea}&developable=${params.developable}&orgSource=
submitShoppingCart() { submitShoppingCart() {
return axios.post(`/apaas/serviceapp/v3/shopcart/apply`, params); return axios.post(`/apaas/serviceapp/v3/shopcart/apply`, params);
}, },
// Service Shop Page
getFeaturedList(params) {
return axios.get(`/apaas/service/v3/recommend/show/featured/list/${params.type}`);
},
getBenner() {
return axios.get(`/apaas/service/v3/recommend/show/banners/list`);
},
getGeneralOverview() {
return axios.get(`/apaas/service/v3/statistics/other/index`);
}
} }
export default serviceShop; export default serviceShop;
...@@ -8,9 +8,9 @@ const store = new Vuex.Store({ ...@@ -8,9 +8,9 @@ const store = new Vuex.Store({
userInfo: null, // 用户信息 userInfo: null, // 用户信息
serviceShopMenu: "/shop/data_service_list", // 服务超市侧边栏 serviceShopMenu: "/shop/data_service_list", // 服务超市侧边栏
fwglNav: [ fwglNav: [
["注册发布的服务", "申请的服务" /* , "云资源服务" */], // 普通用户 ["注册发布的服务", "申请的服务", "云资源服务"], // 普通用户
["组织服务管理", "服务审批管理" /* , "云资源管理" */], // 组织管理员 ["组织服务管理", "服务审批管理", "云资源管理"], // 组织管理员
["平台服务管理", "服务审批管理" /* , "云资源管理" */], // 超级管理员 ["平台服务管理", "服务审批管理", "云资源管理"], // 超级管理员
], // 服务管理列表,onlyRead ], // 服务管理列表,onlyRead
yyglNav: [ yyglNav: [
["应用仓库", "我部署的应用", "申请的应用"], // 普通用户 ["应用仓库", "我部署的应用", "申请的应用"], // 普通用户
......
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