Commit 37346f99 by 林家欣

联调业务大厅我要培训

parent eade3126
...@@ -27,6 +27,11 @@ const businessGetDetailById = (params = {}) => { ...@@ -27,6 +27,11 @@ const businessGetDetailById = (params = {}) => {
return POST(`${Prefix}/office/eanupc/api/getDetailById`, params) return POST(`${Prefix}/office/eanupc/api/getDetailById`, params)
} }
// 根据季度回去培训计划列表和详情
const businessGetPlanBranchList = (params = {}) => {
return POST(`${Prefix}/office/planbranch/api/getList`, params)
}
// 常见问题列表 // 常见问题列表
const businessGetFaqListByTypeName = (params = {}) => { const businessGetFaqListByTypeName = (params = {}) => {
return GET(`${Prefix2}/tm/faq/third/getFaqListByTypeName`, params) return GET(`${Prefix2}/tm/faq/third/getFaqListByTypeName`, params)
...@@ -42,6 +47,7 @@ export default { ...@@ -42,6 +47,7 @@ export default {
businessGetTop4, businessGetTop4,
businessGetEanUpcByCondition, businessGetEanUpcByCondition,
businessGetDetailById, businessGetDetailById,
businessGetPlanBranchList,
businessGetFaqListByTypeName, businessGetFaqListByTypeName,
businessGetFaqById, businessGetFaqById,
} }
...@@ -10,6 +10,19 @@ const getCodeBook = (params = {}) => { ...@@ -10,6 +10,19 @@ const getCodeBook = (params = {}) => {
return POST(`${Prefix}/office/product/api/findPage`, params) return POST(`${Prefix}/office/product/api/findPage`, params)
} }
// 服务商列表
const servicePartnersFrontList = (params = {}) => {
return POST(`${Prefix}/office/partners/api/frontList`, params)
}
// 案例介绍
const serviceCasesFrontList = (params = {}) => {
return POST(`${Prefix}/office/cases/api/frontList`, params)
}
export default { export default {
getCodeBook, getCodeBook,
servicePartnersFrontList,
serviceCasesFrontList,
} }
...@@ -192,8 +192,8 @@ export default { ...@@ -192,8 +192,8 @@ export default {
}; };
const businessGetFaqListByTypeNameRes = const businessGetFaqListByTypeNameRes =
await this.$api.business.businessGetFaqListByTypeName(params); await this.$api.business.businessGetFaqListByTypeName(params);
const { returnCode, data } = businessGetFaqListByTypeNameRes; const { success, data } = businessGetFaqListByTypeNameRes;
if (returnCode === 200) { if (success) {
console.log(businessGetFaqListByTypeNameRes, "常见问题"); console.log(businessGetFaqListByTypeNameRes, "常见问题");
this.pageParams.total = data.totalRows; this.pageParams.total = data.totalRows;
this.list.forEach((el) => { this.list.forEach((el) => {
......
...@@ -34,8 +34,8 @@ export default { ...@@ -34,8 +34,8 @@ export default {
}; };
const businessGetFaqByIdRes = const businessGetFaqByIdRes =
await this.$api.business.businessGetFaqById(params); await this.$api.business.businessGetFaqById(params);
const { returnCode, data } = businessGetFaqByIdRes; const { success, data } = businessGetFaqByIdRes;
if (returnCode === 200) { if (success) {
console.log(businessGetFaqByIdRes, "常见问题详情"); console.log(businessGetFaqByIdRes, "常见问题详情");
this.lsspCate.name = data.name this.lsspCate.name = data.name
this.msg = data; this.msg = data;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
为更好的开展我国商品条码系统成员教育培训工作,使我国商品条码系统成员第一时间了解各地区分支机构培训时间及培训内容,现将中国物品编码中心全国分支机构培训计划进行公布。 为更好的开展我国商品条码系统成员教育培训工作,使我国商品条码系统成员第一时间了解各地区分支机构培训时间及培训内容,现将中国物品编码中心全国分支机构培训计划进行公布。
</p> </p>
<div class="pxjh-cate"> <div class="pxjh-cate">
<span>2021年度</span> <span>{{year}}年度</span>
<button @click="jump">点击查询分支机构联系方式</button> <button @click="jump">点击查询分支机构联系方式</button>
</div> </div>
<ul class="nav nav-tabs" id="myTab" role="tablist"> <ul class="nav nav-tabs" id="myTab" role="tablist">
...@@ -119,162 +119,34 @@ export default { ...@@ -119,162 +119,34 @@ export default {
ico: "", ico: "",
name: "线上培训公告", name: "线上培训公告",
}, },
year: '',
currentList: [],
tabs: [ tabs: [
{ {
id: "one", id: "one",
name: "第一季度", name: "第一季度",
list: [ list: [
{
name: "北京分中心",
fileUrl: "",
},
{
name: "天津分中心",
fileUrl: "",
},
{
name: "河北分中心",
fileUrl: "",
},
{
name: "山西分中心",
fileUrl: "",
},
{
name: "内蒙古分中心",
fileUrl: "",
},
], ],
}, },
{ {
id: "two", id: "two",
name: "第二季度", name: "第二季度",
list: [ list: [
{
name: "辽宁分中心",
fileUrl: "",
},
{
name: "沈阳分中心",
fileUrl: "",
},
{
name: "大连分中心",
fileUrl: "",
},
{
name: "吉林分中心",
fileUrl: "",
},
{
name: "长春分中心",
fileUrl: "",
},
{
name: "黑龙江分中心",
fileUrl: "",
},
], ],
}, },
{ {
id: "three", id: "three",
name: "第三季度", name: "第三季度",
list: [ list: [
{
name: "上海分中心",
fileUrl: "",
},
{
name: "江苏分中心",
fileUrl: "",
},
{
name: "南京办事处",
fileUrl: "",
},
{
name: "浙江分中心",
fileUrl: "",
},
{
name: "杭州分中心",
fileUrl: "",
},
{
name: "宁波分中心",
fileUrl: "",
},
{
name: "福建分中心",
fileUrl: "",
},
{
name: "厦门办事处",
fileUrl: "",
},
{
name: "江西分中心",
fileUrl: "",
},
{
name: "山东分中心",
fileUrl: "",
},
{
name: "青岛办事处",
fileUrl: "",
},
{
name: "烟台办事处",
fileUrl: "",
},
], ],
}, },
{ {
id: "four", id: "four",
name: "第四季度", name: "第四季度",
list: [ list: [
{
name: "河南分中心",
fileUrl: "",
},
{
name: "湖北分中心",
fileUrl: "",
},
{
name: "武汉分中心",
fileUrl: "",
},
{
name: "湖南分中心",
fileUrl: "",
},
{
name: "广东分中心",
fileUrl: "",
},
{
name: "深圳分中心",
fileUrl: "",
},
{
name: "广州分中心",
fileUrl: "",
},
{
name: "珠海分中心",
fileUrl: "",
},
{
name: "广西分中心",
fileUrl: "",
},
{
name: "海南分中心",
fileUrl: "",
},
], ],
}, },
], ],
...@@ -283,12 +155,26 @@ export default { ...@@ -283,12 +155,26 @@ export default {
}, },
created() { created() {
this.handelTab(0); this.handelTab(0);
this.year = this.$moment(new Date()).format('YYYY');
}, },
methods: { methods: {
handelTab(i) { handelTab(i) {
console.log(i, "handelTab"); console.log(i, "handelTab");
this.currentList = this.tabs[i].list; this.getPlanBranchList(i+1);
this.updateKey = new Date().getTime(); },
// 根据季度回去培训计划列表和详情
async getPlanBranchList(classnum) {
const params = {
classnum,
};
const businessGetPlanBranchListRes =
await this.$api.business.businessGetPlanBranchList(params);
const { success, data } = businessGetPlanBranchListRes;
if (success) {
this.currentList = data;
this.updateKey = new Date().getTime();
console.log(this.currentList, "根据季度回去培训计划列表和详情")
}
}, },
// 培训视频课程点击进入 // 培训视频课程点击进入
pxspkcHandelClick() { pxspkcHandelClick() {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<div class="row" v-for="(tmpA, i) in newList" :key="i"> <div class="row" v-for="(tmpA, i) in newList" :key="i">
<div class="col-lg-4" v-for="(tmpB, ii) in tmpA" :key="ii"> <div class="col-lg-4" v-for="(tmpB, ii) in tmpA" :key="ii">
<span <span
><a :href="tmpB.fileUrl">{{ tmpB.name }}</a></span ><a :href="tmpB.ppath">{{ tmpB.name }}</a></span
> >
</div> </div>
</div> </div>
...@@ -16,9 +16,6 @@ import { groupList } from "../../../utils/utils"; ...@@ -16,9 +16,6 @@ import { groupList } from "../../../utils/utils";
export default { export default {
props: ["list"], props: ["list"],
created() {
console.log(this.newList, "list");
},
computed: { computed: {
newList() { newList() {
return groupList(this.list, 3); return groupList(this.list, 3);
......
...@@ -75,7 +75,21 @@ export default { ...@@ -75,7 +75,21 @@ export default {
serviceList: [{value: '全部服务行业'}, {value: '医疗'}, {value: '零售'}, {value: '电子商务'}, {value: '食品烟酒'}, {value: '物流'}, {value: '服装'}, {value: '快速消费品'}, {value: '消费电子产品'}, {value: '制造和零部件'}, {value: '建材'}, {value: '其他'},] serviceList: [{value: '全部服务行业'}, {value: '医疗'}, {value: '零售'}, {value: '电子商务'}, {value: '食品烟酒'}, {value: '物流'}, {value: '服装'}, {value: '快速消费品'}, {value: '消费电子产品'}, {value: '制造和零部件'}, {value: '建材'}, {value: '其他'},]
} }
}, },
methods: {}, created() {
this.partnersFrontList();
},
methods: {
// 服务商列表
async partnersFrontList() {
const params = {};
const businessGetPlanBranchListRes =
await this.$api.business.servicePartnersFrontList(params);
const { success, data } = businessGetPlanBranchListRes;
if (success) {
console.log(data, "服务商列表")
}
},
},
}; };
</script> </script>
......
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