Commit fdc7db0b by liangzhen

新增页面

1 parent e25ec54b
......@@ -142,6 +142,16 @@ export const routes = [
name: 'attachSynchronousArchiving',
component: () => import('@/views/assessChecks/attachSynchronousArchiving.vue'),
},
{
path: '/compliance/checkRules',
name: 'checkRules',
component: () => import('@/views/compliance/checkRules.vue'),
},
{
path: '/compliance/taskConfigure',
name: 'taskConfigure',
component: () => import('@/views/compliance/taskConfigure.vue'),
},
]
},
{
......
......@@ -730,8 +730,8 @@ export default {
name: "合规性检查规则库构建",
url: "",
children: [
{ name: "检查规则编制", url: "", children: [] },
{ name: "自动稽核任务配置", url: "", children: [] },
{ name: "检查规则编制", url: "/compliance/checkRules", children: [] },
{ name: "自动稽核任务配置", url: "/compliance/taskConfigure", children: [] },
],
},
{
......@@ -822,9 +822,6 @@ export default {
} else {
this.activeIndex = this.$route.path;
}
// this.$refs.kzMenu.open(0-0,['0','0-0'])
// this.handleOpen(0-0,['0','0-0'])
},
methods: {
......
<template>
<div class="main">
<el-table
@selection-change="handleSelectionChange"
ref="multipleTable"
:data="tableData"
tooltip-effect="dark"
style="width: 100%"
header-cell-class-name="custom-th-background"
class="eltable"
:row-class-name="tableRowClassName"
border
>
<el-table-column label="序号" width="55" type="index">
</el-table-column>
<el-table-column type="selection"> </el-table-column>
<el-table-column label="批次年度" width="auto" prop="batchYear">
</el-table-column>
<el-table-column prop="batchName" label="后评估批次名称" width="auto">
</el-table-column>
<el-table-column
prop="planReviewDate"
label="计划评审日期"
width="auto"
>
</el-table-column>
<el-table-column prop="expertName" label="后评估专家" width="auto">
</el-table-column>
<el-table-column prop="postEvalState" label="批次下发状态" width="auto"></el-table-column>
<el-table-column prop="status" label="后评估状态" width="auto">
</el-table-column>
<el-table-column prop="creator" label="创建人" width="auto">
</el-table-column>
<el-table-column prop="createTime" label="创建时间" width="auto">
</el-table-column>
</el-table>
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="currentPage"
:page-sizes="[5, 10, 20, 50]"
:page-size="100"
layout="total, sizes, prev, pager, next, jumper"
:total="tableData.length"
class="elpagination">
</el-pagination>
</div>
</template>
<script>
import { number } from 'echarts';
export default {
data() {
return {
currentPage:1,
pageSize:"5",
}
},
props: {
tableData: {
type: Array,
default:[],
},
total:{
type:Number,
default: "",
},
tbtyps:{
type: String,
default: "",
}
},
methods: {
handleSelectionChange(selection) {
if (Array.isArray(selection) && selection.length > 1) {
this.$refs.multipleTable.toggleRowSelection(selection[0],false);
this.$refs.multipleTable.toggleRowSelection(selection[1],true);
}
console.log( this.$refs.multipleTable.selection,'this.$refs.multipleTable.selection')
this.$emit('sendselection',this.$refs.multipleTable.selection)
},
handleSizeChange(val) {
console.log(`每页 ${val} 条`);
this.$emit('pageSize',this.pageSize)
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
this.currentPage=val
this.$emit('currentPage',this.currentPage)
},
tableRowClassName({row, rowIndex}) {
// console.log(rowIndex % 2,'333')
if (rowIndex % 2 == 1) {
return 'warning-row';
}
return ''
}
},
};
</script>
<style lang="scss" scoped>
.main {
font-size: 14px;
width: 100%;
height:70%;
.eltable{
height: 94%;
}
.elpagination{
text-align: right;
margin-right: 100px;
}
}
/deep/ .cell {
text-align: center;
}
/deep/ .el-table__header th {
background-color: #eeeeee;
font-weight: bold;
.cell {
color: #333;
}
}
/deep/ .el-table__body .el-checkbox__input.is-checked .el-checkbox__inner {
background-color: #333; /* 你想要的任何颜色 */
opacity: 0.7;
border-color: #333;
}
/deep/ .el-checkbox .is-checked .el-checkbox__inner {
background-color: #333; /* 你想要的任何颜色 */
opacity: 0.7;
border-color: #333;
}
/deep/ .el-checkbox__input.is-indeterminate .el-checkbox__inner{
background-color: #333; /* 你想要的任何颜色 */
opacity: 0.7;
border-color: #333;
}
/deep/ .el-table .warning-row {
background: #f0ffff;
// color: #2785E6;
}
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!