<template>
  <div class="client-platform-page client-exam-page">
    <!--  广告  -->
    <div class="client-banner-box">
      <div
        :style="{backgroundImage: `url(${bannerList[0].pic || require(`~/static/images/client/train/train-banner-background.png`)})`}"
        class="client-platform-banner"></div>
    </div>

    <!--  部门描述  -->
    <div class="client-container">
      <div class="client-description-box">
        行政部门主要负责企业的行政管理工作，配合业务部门进行文案写作、协调组织会议，商务接待、办公品采购等业务。
      </div>
    </div>

      <!--  岗位职责  -->
      <gangweiList label="岗位职责" :list="gangwei" :pc-num="3" :h5-num="2"></gangweiList>


    <!--  部分课程列表  -->
    <div class="platform-course-list client-container">
      <h4>部分课程列表</h4>
      <mtaTable :data="tableData" :config="tableConfig" @shi-kan="shiKan"></mtaTable>
      <div class="btn-groups center">
        <applyBtn class="btn-item" @active-pc="onApplyBtnActive" @active-h5="onApplyBtnActiveH5"/>
        <onlineInformationBtn />
      </div>
    </div>

    <videoDialog :source="curVideo" :visible.sync="visible"></videoDialog>
    <!--  申请方案  -->
    <applicationDialog :visible.sync="telDl"></applicationDialog>
  </div>
</template>

<script>
import mtaTable from "~/components/common/mtaTable";
import videoDialog from "~/components/common/videoDialog";
import freeTrialBtn from "~/components/common/freeTrialBtn";
import onlineInformationBtn from "~/components/common/onlineInformationBtn";
import pingfen from "~/components/common/pingfen";
import gangweiList from "@/components/common/layout/desComp/gangweiList";
import {BannerImgs, xingzhengguanli} from "~/defaultConfig";
import applicationDialog from "~/components/common/applicationDialog";
import applyBtn from "~/components/common/applyBtn";

/**
 * @ 产品与服务 -> 课程资源 -> 行政管理
 */

export default {
  name: "professionalQuality",
  layout: 'templateB',
  async asyncData({$axios}) {
    const arr = [
      $axios.$post(`/home/banner/list`, {'code': BannerImgs.xingzhenguanli}),
    ]
    const [res1] = await Promise.all(arr);
    return {
      bannerList: res1.data.data || [],
    }
  },
  components: {
    mtaTable, videoDialog,applicationDialog,applyBtn,
    freeTrialBtn, onlineInformationBtn, pingfen, gangweiList
  },
  head() {
    return {
      title: '在线考试平台_在线考试软件_试卷软件系统',
      meta: [
        {
          name: 'keywords',
          content: '考试平台,试卷系统,试卷软件'
        },
        {
          name: 'description',
          content: '青谷考试系统具有良好高并发性和访问安全部署、严格的考试监控防作弊功能、PC移动支持多终端，随时随地考试、丰富的考试管理功能。'
        }
      ],
    }
  },
  computed: {
    gangwei() {
      return xingzhengguanli
    }
  },
  data() {
    return {
      tableConfig: [
        {
          label: '课程名称',
          key: 'name'
        },
        {
          label: '使用行业',
          key: 'hangye'
        },
        {
          label: '使用人群',
          key: 'renqun'
        }
      ],
      tableData: [
        {
          name: '8堂课让你成为公文写作高手',
          shikanUrl: 'https://spdb.mtavip.com/03e3ae34dadb497686c2f0e4c15efbcc/b6db3eb841b947c496217409607580b4-1bf53e080a22492976077770b1dcf352-fd.mp4',
          hangye: '全行业',
          renqun: '行政专员'
        },
        {
          name: '商务礼仪，职场交往的加分利器',
          shikanUrl: '',
          hangye: '全行业',
          renqun: '行政主管'
        },
        {
          name: '职场能力方程组',
          shikanUrl: '',
          hangye: '全行业',
          renqun: '行政主管'
        },
        {
          name: '巧用思维导图、提高工作效率',
          shikanUrl: '',
          hangye: '全行业',
          renqun: '行政主管'
        },
        {
          name: '赢在执行',
          shikanUrl: '',
          hangye: '全行业',
          renqun: '行政主管'
        },
        {
          name: '时间管理',
          shikanUrl: '',
          hangye: '全行业',
          renqun: '行政主管'
        },
        {
          name: '信息安全',
          shikanUrl: '',
          hangye: '全行业',
          renqun: '行政主管'
        },
        {
          name: '高效主持会议',
          shikanUrl: '',
          hangye: '全行业',
          renqun: '销售经理'
        },
      ],
      curVideo: '',
      visible: false,
      telDl: false,
    }
  },
  methods: {
    shiKan({url}) {
      this.visible = true;
      this.curVideo = url;
    },
    onApplyBtnActive() {
      this.telDl = true;
    },
    onApplyBtnActiveH5() {
      this.$router.push({name: 'CourseDevelopPhone', query: {redirectUrl: '/product/xingZhengGuanLi',}});
    },
  }
}
</script>

<style lang="scss" scoped>


.platform-course-list {
  h4 {
    font-size: 30px;
    font-weight: 800;
    color: #333;
    text-align: center;
    margin-bottom: 98px;
  }
}

.client-description-box {
  width: 1257px;
  height: 279px;
  margin-top: 160px;
  text-align: center;
  padding: 110px;
  box-sizing: border-box;
  color: #565656;
  font-size: 24px;
  font-weight: 800;
  line-height: 48px;
  background-image: url("~static/productImage/p43.png");
  background-position: center;
  background-size: contain;
}

@media (max-width: 768px) {

  .client-xuexishouyi-box {
    .client-title {
      font-size: 20px;
      margin-bottom: 10%;
    }

    .products-services-box {
      flex-direction: column;
      img {
        width: 100%;
        margin-bottom: 5%;
      }
    }

    .my-imgCardLv2 {
      margin-bottom: 10%;
    }
  }

  .platform-course-list {
    h4 {
      font-size: 20px;
      margin-bottom: 10%;
    }
  }


  .client-description-box {
    width: 100%;
    height: 100%;
    margin-top: 30px;
    text-align: left;
    padding: 0px;
    box-sizing: border-box;
    color: #565656;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    background: none;
  }

}
</style>
