fix(xispeak): 修复反馈信息展示和交互问题
- 反馈人改用文本显示姓名,修复弹窗显示用户ID的问题 - 修复展开/收起反馈信息按钮无效 - 附件区域高度自适应,超出两个文件后滚轮控制 - 序号改为前端自动生成 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -17,8 +17,8 @@
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item label="反馈人" name="responPersonid">
|
<a-form-item label="反馈人">
|
||||||
<j-select-user v-model:value="formData.responPersonid" allow-clear @change="handleUserChange" />
|
<a-input :value="formData.responPersonname" disabled placeholder="自动填充当前用户" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!-- <a-col :span="12">-->
|
<!-- <a-col :span="12">-->
|
||||||
@@ -108,7 +108,6 @@
|
|||||||
import { buildUUID } from '/@/utils/uuid';
|
import { buildUUID } from '/@/utils/uuid';
|
||||||
import SUploadFile from '/@/components/semri/fileComponent/SUploadFile.vue';
|
import SUploadFile from '/@/components/semri/fileComponent/SUploadFile.vue';
|
||||||
import JSelectDept from '/@/components/Form/src/jeecg/components/JSelectDept.vue';
|
import JSelectDept from '/@/components/Form/src/jeecg/components/JSelectDept.vue';
|
||||||
import JSelectUser from '/@/components/Form/src/jeecg/components/JSelectUser.vue';
|
|
||||||
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
|
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
|
||||||
|
|
||||||
const emit = defineEmits(['success']);
|
const emit = defineEmits(['success']);
|
||||||
@@ -241,12 +240,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleUserChange(value, row) {
|
|
||||||
if (row) {
|
|
||||||
formData.responPersonname = row.realname || row.name || '';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function handleCancel() {
|
function handleCancel() {
|
||||||
visible.value = false;
|
visible.value = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -197,7 +197,7 @@
|
|||||||
</a-space>
|
</a-space>
|
||||||
</div>
|
</div>
|
||||||
<a-table
|
<a-table
|
||||||
v-if="showFeedbackInfo"
|
v-if="showFeedbackInfo && showFeedbackDetail"
|
||||||
rowKey="id"
|
rowKey="id"
|
||||||
size="small"
|
size="small"
|
||||||
bordered
|
bordered
|
||||||
@@ -206,7 +206,8 @@
|
|||||||
:pagination="false"
|
:pagination="false"
|
||||||
:scroll="{ x: 1980 }"
|
:scroll="{ x: 1980 }"
|
||||||
>
|
>
|
||||||
<template #bodyCell="{ column, record }">
|
<template #bodyCell="{ column, record, index }">
|
||||||
|
<template v-if="column.key === 'seq'">{{ index + 1 }}</template>
|
||||||
<template v-if="column.key === 'attachments'">
|
<template v-if="column.key === 'attachments'">
|
||||||
<SUploadFile v-if="record.id" class="feedback-attachment-list" :bussiness-id="record.id" :disabled="true" :multiple="true" />
|
<SUploadFile v-if="record.id" class="feedback-attachment-list" :bussiness-id="record.id" :disabled="true" :multiple="true" />
|
||||||
<span v-else>-</span>
|
<span v-else>-</span>
|
||||||
@@ -349,14 +350,14 @@
|
|||||||
|
|
||||||
const feedbackColumns = computed(() => {
|
const feedbackColumns = computed(() => {
|
||||||
const cols: any[] = [
|
const cols: any[] = [
|
||||||
{ title: '序号', dataIndex: 'num', align: 'center', width: 60 },
|
{ title: '序号', key: 'seq', align: 'center', width: 60 },
|
||||||
{ title: '反馈部门名称', dataIndex: 'responDeptname', align: 'center', width: 140 },
|
{ title: '反馈部门名称', dataIndex: 'responDeptname', align: 'center', width: 140 },
|
||||||
{ title: '反馈人姓名', dataIndex: 'responPersonname', align: 'center', width: 120 },
|
{ title: '反馈人姓名', dataIndex: 'responPersonname', align: 'center', width: 120 },
|
||||||
{ title: '措施内容', dataIndex: 'method', align: 'left', width: 200 },
|
{ title: '措施内容', dataIndex: 'method', align: 'left', width: 200 },
|
||||||
{ title: '完成状态', dataIndex: 'completionStatus_dictText', align: 'center', width: 100 },
|
{ title: '完成状态', dataIndex: 'completionStatus_dictText', align: 'center', width: 100 },
|
||||||
{ title: '是否有报送上级报告', dataIndex: 'isReportedToHigher_dictText', align: 'center', width: 140 },
|
{ title: '是否有报送上级报告', dataIndex: 'isReportedToHigher_dictText', align: 'center', width: 140 },
|
||||||
{ title: '进展情况', dataIndex: 'progress', align: 'left', width: 200 },
|
{ title: '进展情况', dataIndex: 'progress', align: 'left', width: 200 },
|
||||||
{ title: '落实情况', dataIndex: 'implStatus', align: 'left', width: 200 },
|
// { title: '落实情况', dataIndex: 'implStatus', align: 'left', width: 200 },
|
||||||
{ title: '附件', dataIndex: 'id', key: 'attachments', align: 'left', width: 280 },
|
{ title: '附件', dataIndex: 'id', key: 'attachments', align: 'left', width: 280 },
|
||||||
];
|
];
|
||||||
if (showJiJianFields.value) {
|
if (showJiJianFields.value) {
|
||||||
@@ -858,8 +859,9 @@
|
|||||||
min-width: 240px;
|
min-width: 240px;
|
||||||
|
|
||||||
:deep(.file-list-wrapper) {
|
:deep(.file-list-wrapper) {
|
||||||
min-height: 20px;
|
min-height: 36px;
|
||||||
max-height: 50px;
|
max-height: 130px;
|
||||||
|
overflow-y: auto;
|
||||||
padding: 4px 8px;
|
padding: 4px 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user