Merge pull request 'fix : 完善详情页面细节' (#122) from dj into master

Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/122
This commit is contained in:
2024-05-10 09:56:23 +00:00

View File

@@ -1,41 +1,58 @@
<template> <template>
<div class="detail-block"> <div class="detail-block">
<el-row gutter="20"> <el-form :model="form" label-width="auto">
<el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="14"> <el-row gutter="20">
<div class="left-info"> <el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="14">
<baseTitle title="需求征集详情"></baseTitle> <baseTitle title="需求征集详情"></baseTitle>
<div class="info"> <div class="left-info">
<div v-for="item in list"> <el-row>
<span>{{ item.title }}</span> <el-col :span="12" v-for="item in list">
<span>{{ item.text }}</span> <el-form-item :label="item.title">
<span>{{ item.text }}</span>
</el-form-item>
</el-col>
<baseTitle title="征集说明"></baseTitle>
<el-col :span="24">
<el-form-item>
<el-card style="width: 100%">
{{ instructions }}
</el-card>
</el-form-item>
</el-col>
<baseTitle title="申请文件"></baseTitle>
<el-col :span="24">
<el-form-item>
<fvTable ref="tableIns" style="max-height: 200px;width: 100%" :tableConfig="tableConfig"
@headBtnClick="headBtnClick"
:pagination="false"></fvTable>
</el-form-item>
</el-col>
<baseTitle title="审核意见"></baseTitle>
<el-col :span="24">
<el-form-item>
<el-input
v-model="auditOpinion"
:rows="3"
type="textarea"
placeholder="请输入审核意见"
/>
</el-form-item>
</el-col>
</el-row>
</div>
</el-col>
<el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="10">
<div class="approval-record">
<baseTitle title="审批记录"></baseTitle>
<div class="process" id="approvalRecord">
<process-tree ref="processTree" mode="view" id-name="approvalRecord"/>
</div> </div>
</div> </div>
<baseTitle title="征集说明"></baseTitle> </el-col>
<el-card> </el-row>
{{ instructions }} </el-form>
</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>
</el-col>
<el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="10">
<div class="approval-record" >
<baseTitle title="审批记录"></baseTitle>
<div class="process" id="approvalRecord">
<process-tree ref="processTree" mode="view" id-name="approvalRecord"/>
</div>
</div>
</el-col>
</el-row>
<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>
</div> </div>
</div> </div>
@@ -46,6 +63,8 @@ import {getInitiateInfo} from "@/api/workflow/process-definition.js";
import ProcessTree from '@/views/workflow/process/ProcessTree.vue'; import ProcessTree from '@/views/workflow/process/ProcessTree.vue';
import {useProcessStore} from '@/stores/processStore.js'; import {useProcessStore} from '@/stores/processStore.js';
import {ElMessage} from "element-plus"; import {ElMessage} from "element-plus";
const form = ref();
const processStore = useProcessStore() const processStore = useProcessStore()
const list = ref([ const list = ref([
{ {
@@ -81,7 +100,7 @@ const tableConfig = reactive({
prop: 'oper', prop: 'oper',
label: '操作', label: '操作',
align: 'center', align: 'center',
width:'200px', width: '200px',
showOverflowTooltip: false, showOverflowTooltip: false,
currentRender: ({row, index}) => { currentRender: ({row, index}) => {
return ( return (
@@ -95,9 +114,9 @@ const tableConfig = reactive({
], ],
api: '' api: ''
}) })
const getTree=async()=>{ const getTree = async () => {
getInitiateInfo('pronode_46c5e446-b4d1-495e-a97d-40667fa6aa9f').then(res => { getInitiateInfo('pronode_46c5e446-b4d1-495e-a97d-40667fa6aa9f').then(res => {
console.log('res11',res) console.log('res11', res)
// processDefinition.value = res.data; // processDefinition.value = res.data;
//构建表单及校验规则 //构建表单及校验规则
processStore.setDesign(res.data) processStore.setDesign(res.data)
@@ -143,10 +162,11 @@ getTree()
flex: 0.4; flex: 0.4;
.process{ .process {
//max-height: calc(100vh - 96px); //max-height: calc(100vh - 96px);
height: calc(100vh - 250px); height: calc(100vh - 250px);
overflow: auto; overflow: auto;
&::-webkit-scrollbar { &::-webkit-scrollbar {
width: 6px; width: 6px;
height: 6px; height: 6px;