<template>
  <el-dialog
      :before-close="handleClose"
      :modal="true"
      :modal-append-to-body="false"
      :visible.sync="dialogVisible"
      class="dissatisfied-detail"
      title=""
      width="1118px"
  >
    <div class="content">
      <div class="main-title main-title2">
        <Title text="查看更多"/>
      </div>

      <div class="contents">
        <el-row>
          <el-col :span="12">
            <div class="items">
              <div class="label">所属网格：</div>
              <div class="value">xxxx社区第一网格</div>
            </div>
          </el-col>
        </el-row>
        <Tabs v-model="type" :list="typeList" @changeVal="typeChange"/>
        <div class="table">
          <el-table v-loading="loading" :data="list" element-loading-background="rgba(0, 0, 0, 0.3)"
                    height="250px">
            <el-table-column label="序号" type="index"/>

            <el-table-column label="服务时间" prop="key" v-if="type === 1"/>
            <el-table-column label="需求类型" prop="key" v-if="type === 1"/>
            <el-table-column label="需求内容" prop="key" v-if="type === 1"/>
            <el-table-column label="满意度" prop="key" v-if="type === 1"/>
            <el-table-column label="状态" prop="key" v-if="type === 1"/>

            <el-table-column label="服务类型" prop="key" v-if="type !== 1"/>
            <el-table-column label="服务事项" prop="key" v-if="type !== 1"/>
            <el-table-column label="来自" prop="key" v-if="type !== 1"/>
            <el-table-column label="服务时间" prop="key" v-if="type !== 1"/>
            <el-table-column label="服务人数" prop="key" v-if="type !== 1"/>

            <el-table-column label="操作" prop="op">
              <template slot-scope="scope">
                <span class="view" @click="handleViews(scope.row)">查看</span>
              </template>
            </el-table-column>
          </el-table>
          <Pagination
              v-show="total > 0"
              :limit.sync="queryParams.pageSize"
              :page.sync="queryParams.pageNo"
              :total="total"
              @pagination="getList"
          />
        </div>
      </div>
    </div>
  </el-dialog>
</template>

<script>
import Pagination from "@/views/dataBoard/satisfactionEval/components/Pagination";
import Tabs from "@/views/dataBoard/satisfactionEval/components/Tabs/index.vue";
import CallPhone from "@/views/dataBoard/cpts/CallPhone";
import Title from "@/views/dataBoard/satisfactionEval/components/Title";

export default {
  name: "MapResourceInfoMore",
  components: {Pagination, Tabs, CallPhone, Title},
  data() {
    return {
      dialogVisible: false,
      total: 10,
      queryParams: {},
      type: "1",
      list: [],
      loading: false,
      typeList: [
        {
          label: "个性服务",
          value: 1,
        },
        {
          label: "服务找人",
          value: 2,
        },
        {
          label: "温暖找人",
          value: 3,
        },
        {
          label: "岗位找人",
          value: 4,
        },
        {
          label: "技能找人",
          value: 5,
        },
      ],
    }
  },
  mounted() {

  },
  methods: {
    handleClose(done) {
      this.dialogVisible = false;
    },
    open(id) {
      this.dialogVisible = true;
    },
    getList() {

    },
    typeChange() {

    }
  }
}
</script>

<style lang="scss" scoped>
@import "@/assets/scss/dataBoard/table2.scss";

@import "~@/assets/scss/dataBoard/dialog.scss";

.contents {
  padding: 40px 50px;

  .items {
    font-size: 14px;
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 17px;

    .label {
      color: #9CB4D3;
    }

    .value {
      color: #FFFFFF;
    }
  }
}

.table {
  margin-top: 20px;
}

.handle {
  font-size: 14px;
  margin-left: 10px;
  color: #9A69EC;
}

.view {
  font-size: 14px;
  margin-left: 10px;
  color: #007FF1;
}
</style>