--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

@@ -83,19 +83,19 @@
</div>
<!-- 搜索框及按钮 -->
<!-- 表格 -->
<div class="tableBox">
<div style="padding:10px 35px">
<a-table
:header-cell-style="{'text-align':'center'}"
style="border: 1px solid #f2f6fe;"
:columns="columns"
:data-source="tableData"
:loading="tableLoading"
:scroll="{ x: 700 }"
@expand="expandTable"
:pagination="false"
:header-cell-style="{'text-align':'center'}"
>
<template #bodyCell="{ record, column }">
<template v-if="column.key === 'operation'">
<a-space align="start">
<a-space>
<a-button v-if="(record.status===0 || record.status===2 || record.status===-5) && checkPer(record.permissions)" @click="handleEdit(record)" type="link">编辑</a-button>
<a-button v-if="record.type===1 && checkPer(record.permissions)" @click="createSub(record)" type="link">创建子项目</a-button>
<a-button v-if="record.type===2 && checkPer(record.permissions)" @click="createClass(record)" type="link">创建班级</a-button>
@@ -125,8 +125,8 @@
<a-pagination
v-if="tableDataTotal > 10"
:showSizeChanger="false"
showQuickJumper="true"
hideOnSinglePage="true"
:showQuickJumper="true"
:hideOnSinglePage="true"
:pageSize="pageSize"
v-model:current="searchParam.pageNo"
:total="tableDataTotal"
@@ -138,7 +138,7 @@
</div>
<!-- 表格 -->
<!-- 无项目 -->
<div class="tableBox" style="display: none">
<div style="display: none">
<div
class="taskbox"
@click="showModal1"
@@ -1341,30 +1341,26 @@ export default {
title: "项目名称",
dataIndex: "name",
key: "name",
width: 380,
// align: "center",
className: "h",
ellipsis: true,
// scopedSlots: { customRender: "action" }, //引入的插槽
// customRender: (text, record) => {
// console.log(text, record);
// return <span>{text.text}</span>;
// },
width: 400,
},
{
title: "项目经理",
dataIndex: "manager",
className: "h",
ellipsis: true,
key: "manager",
width: 300,
align: "center",
width: 200,
},
{
title: "状态",
dataIndex: "status",
// width: "30%",
className: "h",
key: "status",
width: 100,
align: "center",
width: 100,
customRender: (value) => {
return (
<div>
@@ -1385,15 +1381,15 @@ export default {
{
title: "创建人",
dataIndex: "createName",
// width: "30%",
className: "h",
key: "createName",
width: 100,
align: "center",
width: 100,
},
{
title: "是否审核",
dataIndex: "status",
// width: "30%",
className: "h",
key: "status",
width: 100,
align: "center",
@@ -1419,16 +1415,18 @@ export default {
title: "创建时间",
dataIndex: "createTime",
key: "createTime",
width: 180,
className: "h",
width: 200,
align: "center",
},
{
title: "操作",
dataIndex: "operation",
key: "operation",
width: 350,
className: "h",
align: "right",
fixed: "right",
width: 300,
scopedSlots: {customRender: "action"}
},
]);