页面调整

This commit is contained in:
曹磊 2024-09-07 16:43:34 +08:00
parent 5f4e60a70f
commit 6c6ff8dc15
4 changed files with 36 additions and 15 deletions

View File

@ -7,13 +7,13 @@
<a-col :lg="6" >
<a-form-item name="kcrwdm">
<template #label><span title="课程任务代码">课程任务代码</span></template>
<j-input placeholder="请输入文件名称" v-model:value="queryParam.kcrwdm" allow-clear />
<j-input placeholder="请输入课程任务代码" v-model:value="queryParam.kcrwdm" allow-clear />
</a-form-item>
</a-col>
<a-col :lg="6" >
<a-form-item name="zymc">
<template #label><span title="专业">专业</span></template>
<j-input placeholder="请输入文件名称" v-model:value="queryParam.zymc" allow-clear />
<j-input placeholder="请输入专业名称" v-model:value="queryParam.zymc" allow-clear />
</a-form-item>
</a-col>
<a-col :lg="6" >
@ -34,14 +34,10 @@
<JSelectMultiple v-model:value="queryParam.kclb" placeholder="请选择课程类别" dictCode="kcxz"></JSelectMultiple>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
<a-col :lg="6">
<a-col :lg="18" style="text-align: right">
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
</a-col>
</span>
</a-col>
</a-row>
</a-form>
</div>

View File

@ -1,5 +1,5 @@
<template>
<BasicModal v-bind="$attrs" @register="registerModal" title="查看详情" :showCancelBtn="false" :showOkBtn="false" width="900px">
<BasicModal v-bind="$attrs" @register="registerModal" title="查看收件人" :showCancelBtn="false" :showOkBtn="false" width="900px">
<BasicForm @register="registerForm" disabled />
</BasicModal>
</template>
@ -7,11 +7,11 @@
import { ref, computed, unref } from 'vue';
import { BasicModal, useModalInner } from '/@/components/Modal';
import { BasicForm, useForm } from '/@/components/Form/index';
import { formSchema } from './notice.data';
import { detailSchema } from './notice.data';
//
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
schemas: formSchema,
schemas: detailSchema,
showActionButtonGroup: false,
});
//

View File

@ -27,10 +27,10 @@
<span :class="notice.sendStatus=='0'?'state-cg':notice.sendStatus=='1'?'state-fb':'state-cx'">{{showDictValue(notice.sendStatus, statusData)}}</span>
</a-col>
<a-col :span="8" class="item-text-right">
<a-button class="item-button-border" type="link" @click="handleDetail(notice)">收件人</a-button>
<a-button v-if="notice.sendStatus!=1" class="item-button-border" type="link" @click="handleEdit(notice)">编辑</a-button>
<a-button v-if="notice.sendStatus!=1" class="item-button-border" type="link" @click="handleDelete(notice)">删除</a-button>
<a-button v-if="notice.sendStatus!=1" class="item-button-border" type="link" @click="handleRelease(notice)">发布</a-button>
<!-- <a-button v-if="notice.sendStatus==1" class="item-button-border" type="link" @click="handleDetail(notice)">详情</a-button> -->
<a-button v-if="notice.sendStatus==1" class="item-button-border" type="link" @click="handleReturn(notice)">撤回</a-button>
</a-col>
</a-row>

View File

@ -116,7 +116,7 @@ export const formSchema: FormSchema[] = [
// },
{
field: 'msgType',
label: '接收用户',
label: '接收专家',
defaultValue: 'USER',
component: 'JDictSelectTag',
required: true,
@ -125,7 +125,6 @@ export const formSchema: FormSchema[] = [
dictCode: 'msg_type',
placeholder: '请选择发布范围',
},
show: false,
},
{
field: 'userIds',
@ -156,3 +155,29 @@ export const formSchema: FormSchema[] = [
// render: render.renderTinymce,
},
];
export const detailSchema: FormSchema[] = [
{
field: 'msgType',
label: '接收专家',
defaultValue: 'USER',
component: 'JDictSelectTag',
required: true,
componentProps: {
type: 'radio',
dictCode: 'msg_type',
placeholder: '请选择发布范围',
},
},
{
field: 'userIds',
label: '指定专家',
component: 'JSelectExpert',
required: true,
componentProps: {
rowKey: 'id',
labelKey: 'realname',
},
ifShow: ({ values }) => values.msgType == 'USER',
},
];