--fix bug

This commit is contained in:
yuping
2023-02-04 01:49:52 +08:00
parent 3647b3c653
commit 5eae2714a8
8 changed files with 259 additions and 336 deletions

View File

@@ -305,13 +305,15 @@
<!-- 查看面授课弹框 end -->
<!-- 确定新建面授课弹窗 -->
<!-- 表格 -->
<div class="tableBox">
<div style="padding:10px 35px">
<a-table
:header-cell-style="{'text-align':'center'}"
style="border: 1px solid #f2f6fe"
:columns="columns1"
:data-source="tableData1"
:loading="tableDataTotal1 === -1"
:scroll="{ x: 600 }"
:loading="tableLoading"
:pagination="false"
:scroll="{x:'max-content'}"
>
<template #bodyCell="{ record, column }">
<template v-if="column.key === 'operation'">
@@ -339,9 +341,10 @@
</div>
<div class="pa">
<a-pagination
v-if="tableDataTotal1 > 10"
:showSizeChanger="false"
showQuickJumper="true"
hideOnSinglePage="true"
:showQuickJumper="true"
:hideOnSinglePage="true"
:pageSize="pageSize1"
:current="currentPage1"
:total="tableDataTotal1"
@@ -753,7 +756,7 @@
>
删除
</a-menu-item>
<!--新加 二维码
<!--新加 二维码
<a-menu-item @click="qrcodeVisible(record, 1)">
二维码
</a-menu-item>-->
@@ -1548,24 +1551,24 @@ import {checkPer} from "@/utils/utils";
//列表表格
const columns1 = [
{
title: "课程编号",
width: 130,
dataIndex: "offcourseNumber",
key: "offcourseNumber",
align: "center",
},
{
title: "名称",
width: 400,
dataIndex: "name",
key: "name",
ellipsis: true,
align: "center",
align: "left",
customRender: ({ text }) => {
return text ? text : "-";
},
},
{
title: "课程编号",
width: 130,
dataIndex: "offcourseNumber",
key: "offcourseNumber",
align: "center",
},
{
title: "内容分类",
width: 130,
@@ -1678,7 +1681,7 @@ const columns1 = [
},
{
title: "创建时间",
width: 160,
width: 100,
dataIndex: "createtime",
key: "9",
ellipsis: true,
@@ -1689,7 +1692,7 @@ const columns1 = [
},
{
title: "发布时间",
width: 160,
width: 100,
ellipsis: true,
dataIndex: "pubtime",
key: "10",
@@ -1715,7 +1718,7 @@ const columns1 = [
},
{
title: "操作",
width: 370,
width: 250,
dataIndex: "operation",
key: "operation",
fixed: "right",
@@ -2128,6 +2131,7 @@ export default defineComponent({
const store = useStore();
const state = reactive({
tableLoading:false,
//新加
stuColumns: [
{
@@ -2900,6 +2904,7 @@ export default defineComponent({
// 渲染列表1操作
const getTableDate = async () => {
state.tableLoading = true
console.log("我是点击搜索的数据", state.sysTypeId);
// let datas = state.tableData1;
let startTime = "";
@@ -2961,6 +2966,7 @@ export default defineComponent({
findClassFullName(sysTypeOptions.value, itm.sysTypeId) || "-";
});
state.tableData1 = datas;
state.tableLoading = false
};
function findClassFullName(list, classify, name = "") {