修改bug

This commit is contained in:
yangjun 2026-03-03 11:14:04 +08:00
parent 71a590f029
commit 0c9f0e155d
2 changed files with 16 additions and 32 deletions

View File

@ -4,44 +4,22 @@
<template #detail> <template #detail>
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol" <a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol"
name="NuIssueInfoForm"> name="NuIssueInfoForm">
<a-row style="padding:14px;" class="card-class"> <a-row style="padding:14px;">
<!-- <a-col :span="24" style="border-bottom: 2px solid #f7f7f7; margin-bottom: 14px;"> <a-col :span="24" style="text-align: center;">
<p>
<span>机构名称</span>
<span>{{ formData.orgName_dictText }}</span>
</p>
<p> <p>
<span>发版类型</span> <span>发版类型</span>
<span>{{ formData.issueType_dictText }}</span> <span>{{ formData.issueType_dictText }}</span>
</p> <span style="margin-left: 40px;">发版日期</span>
<p>
<span>发版日期</span>
<span>{{ formData.createTime }}</span> <span>{{ formData.createTime }}</span>
</p> </p>
</a-col> </a-col>
<a-col :span="24" style="margin-top: 20px;"> <a-col :span="24" style="margin-top: 20px;">
<!-- <p>发版内容</p> -->
<div v-html="formData.content"></div> <div v-html="formData.content"></div>
</a-col> -->
<a-col :span="24">
<a-form-item label="机构名称" v-bind="validateInfos.orgName" id="NuIssueInfoForm-orgName"
name="orgName">
<a-input v-model:value="formData.orgName" placeholder="请输入机构名称" disabled></a-input>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="发版类型" v-bind="validateInfos.issueType_dictText"
id="NuEmployeesAdvisoryInfoForm-issueType_dictText" name="issueType_dictText">
<a-input v-model:value="formData.issueType_dictText" placeholder="请输入发版类型" disabled></a-input>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="发版日期" v-bind="validateInfos.createTime" id="NuEmployeesAdvisoryInfoForm-createTime"
name="createTime">
<a-input v-model:value="formData.createTime" placeholder="请输入发版日期" disabled></a-input>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="发版内容:" v-bind="validateInfos.content" id="NuEmployeesAdvisoryInfoForm-content"
name="content">
<div v-html="formData.content" style="background:#f9f9fa;padding:8px;"></div>
</a-form-item>
</a-col> </a-col>
</a-row> </a-row>
</a-form> </a-form>
@ -73,6 +51,7 @@ const formData = reactive<Record<string, any>>({
createTime: '', createTime: '',
issueType: '', issueType: '',
issueType_dictText: '', issueType_dictText: '',
orgName_dictText:'',
content: '', content: '',
orgName:'', orgName:'',
}); });

View File

@ -15,8 +15,11 @@
<a-col :span="24"> <a-col :span="24">
<a-form-item label="机构名称" v-bind="validateInfos.orgName" id="NuIssueInfoForm-orgName" <a-form-item label="机构名称" v-bind="validateInfos.orgName" id="NuIssueInfoForm-orgName"
name="orgName"> name="orgName">
<j-dict-select-tag type='list' v-model:value="formData.orgName" dictCode="sys_depart,depart_name,id" <!-- <j-dict-select-tag type='list' v-model:value="formData.orgName" dictCode="sys_depart,depart_name,id"
placeholder="请选择机构名称" allow-clear /> placeholder="请选择机构名称" allow-clear /> -->
<JSelectMultiple v-model:value="formData.orgName" placeholder="请选择机构名称" dictCode="sys_depart,depart_name,id"></JSelectMultiple>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="24"> <a-col :span="24">
@ -48,6 +51,8 @@ import { getValueType } from '/@/utils';
import { saveOrUpdate } from '../IssueInfo.api'; import { saveOrUpdate } from '../IssueInfo.api';
import { Form } from 'ant-design-vue'; import { Form } from 'ant-design-vue';
import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue'; import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
import JSelectMultiple from '/@/components/Form/src/jeecg/components/JSelectMultiple.vue';
const props = defineProps({ const props = defineProps({
formDisabled: { type: Boolean, default: false }, formDisabled: { type: Boolean, default: false },
formData: { type: Object, default: () => ({}) }, formData: { type: Object, default: () => ({}) },