Newer
Older
KaiFengPC / src / views / sponeScreen / evaluationKH / ziJinJiXiao.vue
@zhangdeliang zhangdeliang 22 days ago 2 KB update
<template>
  <!-- 资金绩效评价 -->
  <div class="jiXiaoPingJia">
    <div class="partTitleHM">资金绩效评价</div>
    <div class="ListBoxBody">
      <div class="content">
        <div class="table_content">
          <el-table ref="table" :data="tableData">
            <el-table-column label="机制建设考核" prop="partitionName" show-overflow-tooltip />
            <el-table-column label="目标要求" prop="quotaTarget" show-overflow-tooltip />
            <el-table-column label="现状情况" prop="reformAchievement" />
            <el-table-column width="80px">
              <template #default="{ row }">
                <div class="monitor" @click.stop="monitorIconClick(row)">查看</div>
              </template>
            </el-table-column>
          </el-table>
        </div>
      </div>
    </div>
    <el-dialog v-model="opens" title="资金绩效评价佐证材料" append-to-body width="700px">
      <el-table :data="tableData2" style="width: 100%; margin-bottom: 30px" max-height="400">
        <el-table-column type="index" label="序号" width="50"> </el-table-column>
        <el-table-column prop="name" label="文件"> </el-table-column>
        <el-table-column label="操作" class-name="small-padding fixed-width" width="100">
          <template #default="scope">
            <div @click="handleFileDetail(scope.row)" style="cursor: pointer; color: #00d1ff">预览</div>
          </template>
        </el-table-column>
      </el-table>
    </el-dialog>
  </div>
</template>

<script setup>
import { hmyztQuotaDataList, querySysFileByType } from '@/api/sponeScreen/jxkh.js';
const { proxy } = getCurrentInstance();
const tableData = ref([]);
const tableData2 = ref([]);

const opens = ref(false);
const getData = async () => {
  const res = await hmyztQuotaDataList({ quotaType: 'zjjxpj' });
  if (res?.code !== 200) return;
  tableData.value = res?.data || [];
};

const monitorIconClick = async val => {
  opens.value = true;

  const res = await querySysFileByType({ quotaType: val.remark });
  if (res?.code !== 200) return;
  tableData2.value = res?.data || [];
  console.log(tableData2.value, '8888888888');
};

//查看文件
const handleFileDetail = row => {
  window.open(row.url);
};
onMounted(() => {
  getData();
});
</script>

<style lang="scss" scoped>
.jiXiaoPingJia {
  width: 460px;

  .ListBoxBody {
    background: rgba(8, 75, 125, 1);
    padding: 10px;
    margin-top: -3px;
    .content {
      height: 100%;

      .img_box {
        width: 100%;
        height: 100%;
      }

      .tabs {
        height: 36px;
        color: #fff;
        margin-bottom: 10px;
      }

      .table_content {
        height: 98%;
      }

      .monitor {
        width: 50px;
        height: 20px;
        background: linear-gradient(0deg, #0566d7 0%, #007eff 100%);
        border-radius: 11px;
        color: #d2efff;
      }
    }
  }
}
.consts {
  width: 100%;
  height: 400px;
}

.el-message-box {
  background: #004565 !important;
}
</style>