diff --git a/src/api/inspect/inspecttemplate/index.ts b/src/api/inspect/inspecttemplate/index.ts
index 6a30823..a267022 100644
--- a/src/api/inspect/inspecttemplate/index.ts
+++ b/src/api/inspect/inspecttemplate/index.ts
@@ -10,6 +10,8 @@ export interface TemplateVO {
createId: string // 创建人
contentName: string // 模板名称
category: string // 模板类别
+ science: string // 科普知识
+ healthy: string // 健康指导
}
// 汇总模板 API
diff --git a/src/views/inspect/inspecttemplate/TemplateForm.vue b/src/views/inspect/inspecttemplate/TemplateForm.vue
index 25e1bb2..a902867 100644
--- a/src/views/inspect/inspecttemplate/TemplateForm.vue
+++ b/src/views/inspect/inspecttemplate/TemplateForm.vue
@@ -42,8 +42,16 @@
-
-
+
+
+
+
+
+
+
确 定
@@ -81,14 +98,18 @@ const formData = ref({
orderNum: undefined,
createId: undefined,
contentName: undefined,
- category: undefined
+ category: undefined,
+ science: undefined,
+ healthy: undefined
})
const formRules = reactive({
type: [{ required: true, message: '请选择检查项', trigger: 'change' }],
category: [{ required: true, message: '请选择部位', trigger: 'change' }],
contentName: [{ required: true, message: '请输入模板名称', trigger: 'blur' }],
status: [{ required: true, message: '请选择状态', trigger: 'change' }],
- content: [{ required: true, message: '请输入模板内容', trigger: 'blur' }]
+ content: [{ required: true, message: '请输入模板内容', trigger: 'blur' }],
+ science: [{ required: true, message: '请输入科普知识', trigger: 'blur' }],
+ healthy: [{ required: true, message: '请输入健康指导', trigger: 'blur' }]
})
const formRef = ref() // 表单 Ref
@@ -190,7 +211,9 @@ const resetForm = () => {
orderNum: undefined,
createId: undefined,
contentName: undefined,
- category: undefined
+ category: undefined,
+ science: undefined,
+ healthy: undefined
}
formRef.value?.resetFields()
}
diff --git a/src/views/inspect/inspecttemplate/index.vue b/src/views/inspect/inspecttemplate/index.vue
index 5aa0cfa..eef2d31 100644
--- a/src/views/inspect/inspecttemplate/index.vue
+++ b/src/views/inspect/inspecttemplate/index.vue
@@ -89,7 +89,9 @@
-
+
+
+
@@ -157,6 +159,8 @@ const queryParams = reactive({
orderNum: undefined,
contentName: undefined,
category: undefined,
+ science: undefined,
+ healthy: undefined
})
const queryFormRef = ref() // 搜索的表单
const exportLoading = ref(false) // 导出的加载中