fix : 修复细节

This commit is contained in:
2024-05-12 15:35:40 +08:00
parent 8bdafdd087
commit d139b016a2
5 changed files with 30 additions and 62 deletions

View File

@@ -16,7 +16,7 @@
</el-col>
</el-row>
<h4>待办 ({{ todoNum }})</h4>
<fvTable ref="tableIns" class="home-table" :tableConfig="tableConfig" @headBtnClick="headBtnClick">
<fvTable ref="tableIns" class="home-table" :tableConfig="tableConfig">
<template #empty>
<el-empty description="暂无待办"/>
</template>
@@ -25,11 +25,6 @@
</el-col>
<el-col :xs="24" :sm="24" :md="6" :lg="6" :xl="6">
<div class="right">
<!-- <div class="right-top">-->
<!-- <h3>欢迎回来 Sunshine</h3>-->
<!-- <div>科技创新项目需求征集中 要求参见OA内部信</div>-->
<!-- </div>-->
<!-- <div class="right-gap"></div>-->
<div class="right-top ">
<div>
<h3>帮助文档</h3>
@@ -56,6 +51,7 @@
<script setup lang="jsx">
import 'element-plus/theme-chalk/display.css'
const router = useRouter()
const list = ref([
{
title: '待立项',
@@ -114,7 +110,7 @@ const tableConfig = reactive({
align: 'center',
},
{
prop: 'state',
prop: 'targetState',
label: '类型',
align: 'center',
showOverflowTooltip: false,
@@ -140,7 +136,7 @@ const tableConfig = reactive({
currentRender: ({row, index}) => {
return (
<div>
<el-button type="primary" link onClick={() => handleEdit(row)}>查看</el-button>
<el-button type="primary" link onClick={() => handleView(row)}>查看</el-button>
<el-button type="primary" link onClick={() => handleEdit(row)}>已读</el-button>
</div>
)
@@ -150,14 +146,18 @@ const tableConfig = reactive({
api: '/workflow/mosr/process/task',
params: {},
})
const headBtnClick = (key) => {
switch (key) {
case 'add':
handleAdd()
break;
const handleView = (row) => {
console.log('row', row)
if (row.requirementId) {
router.push({
path: '/projectdemand/demanddetail',
query: {
id: row.requirementId
}
})
}
}
</script>
<style lang="scss" scoped>
@@ -166,29 +166,21 @@ const headBtnClick = (key) => {
margin-top: 10px;
}
:deep(.el-table) {
height: 300px!important;
height: 300px !important;
}
}
@media only screen and (max-width: 1000px) {
.right {
margin-top: 10px;
}
:deep(.el-table) {
height: 300px!important;
height: 300px !important;
}
}
//.right-gap {
// background-color: #EFEFEF;
// width: 20px;
// //margin-right: -10px;
//}
:deep(.el-table) {
//height: 200px;
//max-height: 400px;
}
.home-bg {
height: calc(100vh - 130px);
@@ -277,21 +269,6 @@ const headBtnClick = (key) => {
flex-direction: column;
justify-content: space-between;
//.right-top {
// h3 {
// text-align: center;
// margin-bottom: 15px;
// }
//
// div {
// color: #909399;
// font-size: 14px;
// margin: 0 20px;
// letter-spacing: 1px;
// line-height: 25px;
// }
//}
.right-top {
flex: 0.5;
padding: 15px;