Merge pull request 'fix : 完善详情页面细节' (#120) from dj into master
Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/120
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="home-bg">
|
<div class="home-bg">
|
||||||
<el-row gutter="20">
|
<el-row gutter="20">
|
||||||
<el-col :xs="24" :sm="16" :md="18" :lg="20" :xl="20">
|
<el-col :xs="24" :sm="24" :md="18" :lg="18" :xl="18">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<h3>我的科创工作</h3>
|
<h3>我的科创工作</h3>
|
||||||
<el-row :gutter="20" class="statistics">
|
<el-row :gutter="20" class="statistics">
|
||||||
@@ -16,14 +16,14 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<h4>待办 ({{ todoNum }})</h4>
|
<h4>待办 ({{ todoNum }})</h4>
|
||||||
<fvTable ref="tableIns" :tableConfig="tableConfig" @headBtnClick="headBtnClick">
|
<fvTable ref="tableIns" class="home-table" :tableConfig="tableConfig" @headBtnClick="headBtnClick">
|
||||||
<template #empty>
|
<template #empty>
|
||||||
<el-empty description="暂无待办"/>
|
<el-empty description="暂无待办"/>
|
||||||
</template>
|
</template>
|
||||||
</fvTable>
|
</fvTable>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :xs="24" :sm="8" :md="6" :lg="4" :xl="4">
|
<el-col :xs="24" :sm="24" :md="6" :lg="6" :xl="6">
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<!-- <div class="right-top">-->
|
<!-- <div class="right-top">-->
|
||||||
<!-- <h3>欢迎回来, Sunshine</h3>-->
|
<!-- <h3>欢迎回来, Sunshine</h3>-->
|
||||||
@@ -161,13 +161,31 @@ const headBtnClick = (key) => {
|
|||||||
.right {
|
.right {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
}
|
:deep(.el-table) {
|
||||||
|
height: 300px!important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
@media only screen and (max-width: 1000px) {
|
||||||
|
.right {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
:deep(.el-table) {
|
||||||
|
height: 300px!important;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
//.right-gap {
|
//.right-gap {
|
||||||
// background-color: #EFEFEF;
|
// background-color: #EFEFEF;
|
||||||
// width: 20px;
|
// width: 20px;
|
||||||
// //margin-right: -10px;
|
// //margin-right: -10px;
|
||||||
//}
|
//}
|
||||||
|
:deep(.el-table) {
|
||||||
|
//height: 200px;
|
||||||
|
//max-height: 400px;
|
||||||
|
}
|
||||||
|
|
||||||
.home-bg {
|
.home-bg {
|
||||||
height: calc(100vh - 130px);
|
height: calc(100vh - 130px);
|
||||||
max-height: calc(100vh - 96px);
|
max-height: calc(100vh - 96px);
|
||||||
@@ -201,6 +219,7 @@ const headBtnClick = (key) => {
|
|||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
|
|
||||||
|
|
||||||
.el-table__empty-block {
|
.el-table__empty-block {
|
||||||
.el-empty {
|
.el-empty {
|
||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
@@ -276,7 +295,7 @@ const headBtnClick = (key) => {
|
|||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.right-top {
|
.right-top {
|
||||||
flex: 0.48;
|
flex: 0.48;
|
||||||
|
|
||||||
> div:first-child {
|
> div:first-child {
|
||||||
|
|||||||
@@ -1,30 +1,39 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="detail-block">
|
<div class="detail-block">
|
||||||
<div class="left-info">
|
<el-row gutter="20">
|
||||||
<baseTitle title="需求征集详情"></baseTitle>
|
<el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="14">
|
||||||
<div class="info">
|
<div class="left-info">
|
||||||
<div v-for="item in list">
|
<baseTitle title="需求征集详情"></baseTitle>
|
||||||
<span>{{ item.title }}:</span>
|
<div class="info">
|
||||||
<span>{{ item.text }}</span>
|
<div v-for="item in list">
|
||||||
|
<span>{{ item.title }}:</span>
|
||||||
|
<span>{{ item.text }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<baseTitle title="征集说明"></baseTitle>
|
||||||
|
<el-card>
|
||||||
|
{{ instructions }}
|
||||||
|
</el-card>
|
||||||
|
<baseTitle title="申请文件"></baseTitle>
|
||||||
|
<fvTable ref="tableIns" style="max-height: 200px" :tableConfig="tableConfig" @headBtnClick="headBtnClick" :pagination="false"></fvTable>
|
||||||
|
<baseTitle title="审核意见"></baseTitle>
|
||||||
|
<el-input
|
||||||
|
v-model="auditOpinion"
|
||||||
|
:rows="3"
|
||||||
|
type="textarea"
|
||||||
|
placeholder="请输入审核意见"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</el-col>
|
||||||
<baseTitle title="征集说明"></baseTitle>
|
<el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="10">
|
||||||
<el-card>
|
<div class="approval-record" >
|
||||||
{{ instructions }}
|
<baseTitle title="审批记录"></baseTitle>
|
||||||
</el-card>
|
<div class="process" id="approvalRecord">
|
||||||
<baseTitle title="申请文件"></baseTitle>
|
<process-tree ref="processTree" mode="view" id-name="approvalRecord"/>
|
||||||
<fvTable ref="tableIns" style="max-height: 200px" :tableConfig="tableConfig" @headBtnClick="headBtnClick" :pagination="false"></fvTable>
|
</div>
|
||||||
<baseTitle title="审核意见"></baseTitle>
|
</div>
|
||||||
<el-input
|
</el-col>
|
||||||
v-model="auditOpinion"
|
</el-row>
|
||||||
:rows="3"
|
|
||||||
type="textarea"
|
|
||||||
placeholder="请输入审核意见"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div class="approval-record">
|
|
||||||
<baseTitle title="审批记录"></baseTitle>
|
|
||||||
</div>
|
|
||||||
<div class="oper-page-btn">
|
<div class="oper-page-btn">
|
||||||
<el-button @click="handleSubmit">驳回</el-button>
|
<el-button @click="handleSubmit">驳回</el-button>
|
||||||
<el-button color="#DED0B2" @click="handleBack">同意</el-button>
|
<el-button color="#DED0B2" @click="handleBack">同意</el-button>
|
||||||
@@ -33,7 +42,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="jsx">
|
<script setup lang="jsx">
|
||||||
|
import {getInitiateInfo} from "@/api/workflow/process-definition.js";
|
||||||
|
import ProcessTree from '@/views/workflow/process/ProcessTree.vue';
|
||||||
|
import {useProcessStore} from '@/stores/processStore.js';
|
||||||
|
import {ElMessage} from "element-plus";
|
||||||
|
const processStore = useProcessStore()
|
||||||
const list = ref([
|
const list = ref([
|
||||||
{
|
{
|
||||||
title: '名称',
|
title: '名称',
|
||||||
@@ -49,6 +62,7 @@ const list = ref([
|
|||||||
text: '名称名称名称名称'
|
text: '名称名称名称名称'
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
|
const processTree = ref()
|
||||||
const instructions = ref('ds')
|
const instructions = ref('ds')
|
||||||
const auditOpinion = ref('')
|
const auditOpinion = ref('')
|
||||||
const tableConfig = reactive({
|
const tableConfig = reactive({
|
||||||
@@ -79,19 +93,33 @@ const tableConfig = reactive({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
api: '/admin/role'
|
api: ''
|
||||||
})
|
})
|
||||||
|
const getTree=async()=>{
|
||||||
|
getInitiateInfo('pronode_46c5e446-b4d1-495e-a97d-40667fa6aa9f').then(res => {
|
||||||
|
console.log('res11',res)
|
||||||
|
// processDefinition.value = res.data;
|
||||||
|
//构建表单及校验规则
|
||||||
|
processStore.setDesign(res.data)
|
||||||
|
nextTick(() => {
|
||||||
|
processTree.value.init()
|
||||||
|
})
|
||||||
|
}).catch(err => {
|
||||||
|
ElMessage.error(err);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
getTree()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.detail-block {
|
.detail-block {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
justify-content: space-between;
|
||||||
|
overflow-x: hidden;
|
||||||
|
overflow-y: auto;
|
||||||
|
|
||||||
.left-info {
|
.left-info {
|
||||||
flex: 0.6;
|
flex: 0.6;
|
||||||
margin-right: 30px;
|
|
||||||
|
|
||||||
.info {
|
.info {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -113,6 +141,31 @@ const tableConfig = reactive({
|
|||||||
|
|
||||||
.approval-record {
|
.approval-record {
|
||||||
flex: 0.4;
|
flex: 0.4;
|
||||||
|
|
||||||
|
|
||||||
|
.process{
|
||||||
|
//max-height: calc(100vh - 96px);
|
||||||
|
height: calc(100vh - 250px);
|
||||||
|
overflow: auto;
|
||||||
|
&::-webkit-scrollbar {
|
||||||
|
width: 6px;
|
||||||
|
height: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 滚动条轨道
|
||||||
|
&::-webkit-scrollbar-track {
|
||||||
|
background: rgb(239, 239, 239);
|
||||||
|
border-radius: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 小滑块
|
||||||
|
&::-webkit-scrollbar-thumb {
|
||||||
|
background: rgba(80, 81, 82, 0.29);
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user