修改bug
This commit is contained in:
parent
00e2e507ed
commit
32fa37cd57
|
|
@ -5,6 +5,12 @@ import { render } from '/@/utils/common/renderUtils';
|
|||
import { getWeekMonthQuarterYear } from '/@/utils';
|
||||
//列表数据
|
||||
export const columns: BasicColumn[] = [
|
||||
{
|
||||
title: '机构名称',
|
||||
align: "center",
|
||||
dataIndex: 'orgName',
|
||||
width: 240,
|
||||
},
|
||||
{
|
||||
title: '发版日期',
|
||||
align: "center",
|
||||
|
|
|
|||
|
|
@ -5,6 +5,13 @@
|
|||
<a-form ref="formRef" @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol"
|
||||
:wrapper-col="wrapperCol">
|
||||
<a-row :gutter="24">
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="orgName">
|
||||
<template #label><span title="机构名称">机构名称</span></template>
|
||||
<j-dict-select-tag type='list' v-model:value="queryParam.orgName" dictCode="sys_depart,depart_name,depart_name"
|
||||
placeholder="请选择机构名称" allow-clear />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="createTime">
|
||||
<template #label><span title="发版日期">发版日期</span></template>
|
||||
|
|
@ -15,8 +22,8 @@
|
|||
<a-col :lg="6">
|
||||
<a-form-item name="issueType">
|
||||
<template #label><span title="发版类型">发版类型</span></template>
|
||||
<j-select-multiple placeholder="请选择发版类型" v-model:value="queryParam.issueType" dictCode="issue_type"
|
||||
allow-clear />
|
||||
<j-dict-select-tag type='list' placeholder="请选择发版类型" v-model:value="queryParam.issueType" dictCode="issue_type"
|
||||
allow-clear />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :xl="6" :lg="7" :md="8" :sm="24" style=" margin-top: 0.3%;">
|
||||
|
|
@ -76,6 +83,7 @@ import IssueInfoDetailModal from './components/IssueInfoDetailModal.vue'
|
|||
import { useUserStore } from '/@/store/modules/user';
|
||||
import JSelectMultiple from '/@/components/Form/src/jeecg/components/JSelectMultiple.vue';
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
|
||||
|
||||
const formRef = ref();
|
||||
const queryParam = reactive<any>({});
|
||||
|
|
|
|||
|
|
@ -12,6 +12,13 @@
|
|||
placeholder="请选择发版类型" allow-clear />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="机构名称" v-bind="validateInfos.orgName" id="NuIssueInfoForm-orgName"
|
||||
name="orgName">
|
||||
<j-dict-select-tag type='list' v-model:value="formData.orgName" dictCode="sys_depart,depart_name,depart_name"
|
||||
placeholder="请选择机构名称" allow-clear />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="发版日期" v-bind="validateInfos.createTime" id="NuIssueInfoForm-createTime"
|
||||
name="createTime">
|
||||
|
|
@ -54,6 +61,7 @@ const formData = reactive<Record<string, any>>({
|
|||
issueType: '',
|
||||
content: '',
|
||||
createTime: '',
|
||||
orgName: '',
|
||||
});
|
||||
const { createMessage } = useMessage();
|
||||
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });
|
||||
|
|
@ -63,6 +71,7 @@ const confirmLoading = ref<boolean>(false);
|
|||
const validatorRules = reactive({
|
||||
issueType: [{ required: true, message: '请选择发版类型!' },],
|
||||
content: [{ required: true, message: '请输入发版内容!' },],
|
||||
orgName: [{ required: true, message: '请选择机构!' },],
|
||||
});
|
||||
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false });
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue