|
@@ -42,25 +42,37 @@
|
|
|
<div class="flex">
|
|
|
<el-button size="default" type="success" @click="handleDownload">导出</el-button>
|
|
|
</div>
|
|
|
- <!-- <img src="/images/print.png" alt="" /> -->
|
|
|
+ <div>
|
|
|
+ <img src="/images/print.png" alt="" />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="tableList">
|
|
|
<div class="tableDiv">
|
|
|
<el-table ref="multipleTableRef" :data="tableData" height="100%" style="width: 100%" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55" />
|
|
|
<el-table-column prop="sm_name" width="200" label="学校" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="sm_name" width="200" label="课程名称" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="sm_name" width="" label="年级" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column prop="ks_name" width="200" label="课程名称" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column prop="grade_name" width="" label="年级" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column prop="sm_name" width="" label="班级" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="sm_name" width="" label="学科" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column prop="subject_name" width="" label="学科" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column prop="sm_name" width="" label="学生数" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="sm_name" width="" label="创建人" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="sm_name" width="" label="时间" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column label="操作" width="80">
|
|
|
+ <el-table-column prop="ks_zjjsxm" width="" label="创建人" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column width="180" label="时间" show-overflow-tooltip>
|
|
|
+ <template #default="scope">
|
|
|
+ {{dealWithDateTime(scope.row.create_dateline * 1000)}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="操作" width="80" v-if="activeTab==1">
|
|
|
<template #default="scope">
|
|
|
<el-button text size="default" type="primary" @click="handleAudit(scope.row.id)">审核</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="状态" width="80" v-else>
|
|
|
+ <template #default="scope">
|
|
|
+ <span v-if="activeTab==2" style="color: #26D48A;">已通过</span>
|
|
|
+ <span v-if="activeTab==3" style="color: #FF0000;">未通过</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
<div class="paginationDiv">
|
|
@@ -78,6 +90,7 @@
|
|
|
<script setup >
|
|
|
import { reactive, ref, onMounted } from "vue";
|
|
|
import { download } from "~/utils/request";
|
|
|
+import { dealWithDateTime } from "~/utils/common-util.js"
|
|
|
import { gradeList, subjectList, ssyskcList } from "./api.js";
|
|
|
import detail from "./detail.vue";
|
|
|
|
|
@@ -140,10 +153,9 @@ async function initData() {
|
|
|
keyword: ruleForm.keyword,
|
|
|
ks_status: activeTab.value,
|
|
|
};
|
|
|
- // let data = await ssyskcList(obj);
|
|
|
- // total.value = parseInt(data.total_rows);
|
|
|
- // tableData.value = data.page_data;
|
|
|
- tableData.value = [{}, {}]
|
|
|
+ let data = await ssyskcList(obj);
|
|
|
+ total.value = parseInt(data.total_rows);
|
|
|
+ tableData.value = data.page_data;
|
|
|
}
|
|
|
|
|
|
const dialogVisible = ref(false);
|