Newer
Older
CallCenterFront / src / views / caseManage / components / knowledgeDetail.vue
StephanieGitHub on 21 Apr 2020 4 KB MOD:联调更新
<template>
  <el-dialog
    :visible.sync="dialogShow"
    title=""
    width="1000px"
    append-to-body>
    <div class="k-div">
      <div class="k-title">
        {{ knowledge.kName }}
      </div>
      <div class="k-subtitle">
        <div>所属类别:{{ knowledge.kTypeName }}</div>
        <div>发布人:{{ knowledge.publisherName }}</div>
        <div>发布时间:{{ knowledge.publishTime }}</div>
      </div>
      <el-scrollbar class="k-content">
        <div>
          {{ knowledge.kInfo }}
        </div>
      </el-scrollbar>
    </div>
  </el-dialog>
</template>

<script>
import { knowledgeDetail } from '@/api/knowledge'
export default {
  name: 'KnowledgeDetail',
  data() {
    return {
      knowledge: {
        kName: '',
        kTypeName: '',
        publisherName: '',
        kInfo: '',
        publishTime: ''
      },
      dialogShow: false
    }
  },
  methods: {
    //  初始化对话框
    initDialog(row) {
      this.dialogShow = true
      this.fetchKnowledge(row.kId)
    },
    // 请求详情
    fetchKnowledge(id) {
      knowledgeDetail(id).then(response => {
        if (response.code === 200) {
          this.knowledge = response.data
        }
      })
      // this.knowledge = {
      //   kName: '特困人员救助供养标准是什么?',
      //   kTypeName: '州民政局',
      //   kUserName: '周海瑞',
      //   kInfo: '2019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:6214502',
      //   publishTime: '2019-10-18 15:55:35'
      // }
    }
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
.k-div{
  text-align: center;
  padding: auto 20px;
  .k-title{
    color:#3a8ee6;
    font-size:25px;
    line-height: 25px;
  }
  .k-subtitle{
    margin-top: 15px;
    line-height: 1.5;
  }
  .k-content{
    text-align: justify;
    margin-top: 20px;
    font-size:16px;
    line-height: 20px;
    text-indent:25px;
    height:220px;
    .el-scrollbar__wrap {
      overflow-x: hidden;
    }
  }
}
</style>

<style rel="stylesheet/scss" lang="scss">
  .k-content {
    .el-scrollbar__wrap {
      overflow-x: hidden;
    }
  }
</style>