Commit 37346f99 by 林家欣

联调业务大厅我要培训

parent eade3126
......@@ -27,6 +27,11 @@ const businessGetDetailById = (params = {}) => {
return POST(`${Prefix}/office/eanupc/api/getDetailById`, params)
}
// 根据季度回去培训计划列表和详情
const businessGetPlanBranchList = (params = {}) => {
return POST(`${Prefix}/office/planbranch/api/getList`, params)
}
// 常见问题列表
const businessGetFaqListByTypeName = (params = {}) => {
return GET(`${Prefix2}/tm/faq/third/getFaqListByTypeName`, params)
......@@ -42,6 +47,7 @@ export default {
businessGetTop4,
businessGetEanUpcByCondition,
businessGetDetailById,
businessGetPlanBranchList,
businessGetFaqListByTypeName,
businessGetFaqById,
}
......@@ -10,6 +10,19 @@ const getCodeBook = (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 {
getCodeBook,
servicePartnersFrontList,
serviceCasesFrontList,
}
......@@ -192,8 +192,8 @@ export default {
};
const businessGetFaqListByTypeNameRes =
await this.$api.business.businessGetFaqListByTypeName(params);
const { returnCode, data } = businessGetFaqListByTypeNameRes;
if (returnCode === 200) {
const { success, data } = businessGetFaqListByTypeNameRes;
if (success) {
console.log(businessGetFaqListByTypeNameRes, "常见问题");
this.pageParams.total = data.totalRows;
this.list.forEach((el) => {
......
......@@ -34,8 +34,8 @@ export default {
};
const businessGetFaqByIdRes =
await this.$api.business.businessGetFaqById(params);
const { returnCode, data } = businessGetFaqByIdRes;
if (returnCode === 200) {
const { success, data } = businessGetFaqByIdRes;
if (success) {
console.log(businessGetFaqByIdRes, "常见问题详情");
this.lsspCate.name = data.name
this.msg = data;
......
......@@ -9,7 +9,7 @@
为更好的开展我国商品条码系统成员教育培训工作,使我国商品条码系统成员第一时间了解各地区分支机构培训时间及培训内容,现将中国物品编码中心全国分支机构培训计划进行公布。
</p>
<div class="pxjh-cate">
<span>2021年度</span>
<span>{{year}}年度</span>
<button @click="jump">点击查询分支机构联系方式</button>
</div>
<ul class="nav nav-tabs" id="myTab" role="tablist">
......@@ -119,162 +119,34 @@ export default {
ico: "",
name: "线上培训公告",
},
year: '',
currentList: [],
tabs: [
{
id: "one",
name: "第一季度",
list: [
{
name: "北京分中心",
fileUrl: "",
},
{
name: "天津分中心",
fileUrl: "",
},
{
name: "河北分中心",
fileUrl: "",
},
{
name: "山西分中心",
fileUrl: "",
},
{
name: "内蒙古分中心",
fileUrl: "",
},
],
},
{
id: "two",
name: "第二季度",
list: [
{
name: "辽宁分中心",
fileUrl: "",
},
{
name: "沈阳分中心",
fileUrl: "",
},
{
name: "大连分中心",
fileUrl: "",
},
{
name: "吉林分中心",
fileUrl: "",
},
{
name: "长春分中心",
fileUrl: "",
},
{
name: "黑龙江分中心",
fileUrl: "",
},
],
},
{
id: "three",
name: "第三季度",
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",
name: "第四季度",
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 {
},
created() {
this.handelTab(0);
this.year = this.$moment(new Date()).format('YYYY');
},
methods: {
handelTab(i) {
console.log(i, "handelTab");
this.currentList = this.tabs[i].list;
this.getPlanBranchList(i+1);
},
// 根据季度回去培训计划列表和详情
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() {
......
......@@ -4,7 +4,7 @@
<div class="row" v-for="(tmpA, i) in newList" :key="i">
<div class="col-lg-4" v-for="(tmpB, ii) in tmpA" :key="ii">
<span
><a :href="tmpB.fileUrl">{{ tmpB.name }}</a></span
><a :href="tmpB.ppath">{{ tmpB.name }}</a></span
>
</div>
</div>
......@@ -16,9 +16,6 @@ import { groupList } from "../../../utils/utils";
export default {
props: ["list"],
created() {
console.log(this.newList, "list");
},
computed: {
newList() {
return groupList(this.list, 3);
......
......@@ -75,7 +75,21 @@ export default {
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>
......
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