From 6c6ff8dc156751b86de60c4502e5b51f3aadeb2c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com>
Date: Sat, 7 Sep 2024 16:43:34 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../bl/xxhbjwxtxsmd/XxhbjwxtxsmdList.vue | 14 ++++-----
.../src/views/system/notice/DetailModal.vue | 6 ++--
.../src/views/system/notice/index.vue | 2 +-
.../src/views/system/notice/notice.data.ts | 29 +++++++++++++++++--
4 files changed, 36 insertions(+), 15 deletions(-)
diff --git a/jeecgboot-vue3/src/views/bl/xxhbjwxtxsmd/XxhbjwxtxsmdList.vue b/jeecgboot-vue3/src/views/bl/xxhbjwxtxsmd/XxhbjwxtxsmdList.vue
index 8477e90..3a32f30 100644
--- a/jeecgboot-vue3/src/views/bl/xxhbjwxtxsmd/XxhbjwxtxsmdList.vue
+++ b/jeecgboot-vue3/src/views/bl/xxhbjwxtxsmd/XxhbjwxtxsmdList.vue
@@ -7,13 +7,13 @@
课程任务代码
-
+
专业
-
+
@@ -34,13 +34,9 @@
-
-
-
- 查询
- 重置
-
-
+
+ 查询
+ 重置
diff --git a/jeecgboot-vue3/src/views/system/notice/DetailModal.vue b/jeecgboot-vue3/src/views/system/notice/DetailModal.vue
index c1771ef..a31675e 100644
--- a/jeecgboot-vue3/src/views/system/notice/DetailModal.vue
+++ b/jeecgboot-vue3/src/views/system/notice/DetailModal.vue
@@ -1,5 +1,5 @@
-
+
@@ -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,
});
//表单赋值
diff --git a/jeecgboot-vue3/src/views/system/notice/index.vue b/jeecgboot-vue3/src/views/system/notice/index.vue
index b78720f..32798b1 100644
--- a/jeecgboot-vue3/src/views/system/notice/index.vue
+++ b/jeecgboot-vue3/src/views/system/notice/index.vue
@@ -27,10 +27,10 @@
{{showDictValue(notice.sendStatus, statusData)}}
+ 收件人
编辑
删除
发布
-
撤回
diff --git a/jeecgboot-vue3/src/views/system/notice/notice.data.ts b/jeecgboot-vue3/src/views/system/notice/notice.data.ts
index 5b14665..20e8865 100644
--- a/jeecgboot-vue3/src/views/system/notice/notice.data.ts
+++ b/jeecgboot-vue3/src/views/system/notice/notice.data.ts
@@ -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',
+ },
+];