diff --git a/public/favicon.ico b/public/favicon.ico index 3f919d8..5a503f2 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/src/api/scale/ScaleInfo/index.ts b/src/api/scale/ScaleInfo/index.ts new file mode 100644 index 0000000..a8b4712 --- /dev/null +++ b/src/api/scale/ScaleInfo/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { ScaleInfoVO, ScaleInfoForm, ScaleInfoQuery } from '@/api/scale/ScaleInfo/types'; + +/** + * 查询心理测评量列表 + * @param query + * @returns {*} + */ + +export const listScaleInfo = (query?: ScaleInfoQuery): AxiosPromise => { + return request({ + url: '/scale/ScaleInfo/list', + method: 'get', + params: query + }); +}; + +/** + * 查询心理测评量详细 + * @param id + */ +export const getScaleInfo = (id: string | number): AxiosPromise => { + return request({ + url: '/scale/ScaleInfo/' + id, + method: 'get' + }); +}; + +/** + * 新增心理测评量 + * @param data + */ +export const addScaleInfo = (data: ScaleInfoForm) => { + return request({ + url: '/scale/ScaleInfo', + method: 'post', + data: data + }); +}; + +/** + * 修改心理测评量 + * @param data + */ +export const updateScaleInfo = (data: ScaleInfoForm) => { + return request({ + url: '/scale/ScaleInfo', + method: 'put', + data: data + }); +}; + +/** + * 删除心理测评量 + * @param id + */ +export const delScaleInfo = (id: string | number | Array) => { + return request({ + url: '/scale/ScaleInfo/' + id, + method: 'delete' + }); +}; diff --git a/src/api/scale/ScaleInfo/types.ts b/src/api/scale/ScaleInfo/types.ts new file mode 100644 index 0000000..35548be --- /dev/null +++ b/src/api/scale/ScaleInfo/types.ts @@ -0,0 +1,266 @@ +export interface ScaleInfoVO { + /** + * 主键 + */ + id: string | number; + + /** + * 量表名称 + */ + name: string; + + /** + * 量表编码 + */ + code: string; + + /** + * 标题 + */ + title: string; + + /** + * 子标题 + */ + subTitle: string; + + /** + * 标签 + */ + tags: string; + + /** + * 适合年龄段 + */ + ageRange: string; + + /** + * 测评次数 + */ + evalNums: number; + + /** + * 封面 + */ + coverImg: number; + + /** + * 价格/单次 + */ + price: number; + + /** + * 描述 + */ + note: string; + + /** + * 分钟 + */ + duration: number; + + /** + * 维度类型:0:单项单维,1:多项单维型,2:多项多维型 + */ + dimensionType: number; + + /** + * 状态(0正常 1停用) + */ + status: string; + + /** + * 量表类别:如情感,字典 + */ + type: number; + + /** + * 题量 + */ + questionsNum: number; + + /** + * 0:高分异常,1:低分异常 + */ + selectDirection: number; + +} + +export interface ScaleInfoForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 量表名称 + */ + name?: string; + + /** + * 量表编码 + */ + code?: string; + + /** + * 标题 + */ + title?: string; + + /** + * 子标题 + */ + subTitle?: string; + + /** + * 标签 + */ + tags?: string; + + /** + * 适合年龄段 + */ + ageRange?: string; + + /** + * 测评次数 + */ + evalNums?: number; + + /** + * 封面 + */ + coverImg?: number; + + /** + * 价格/单次 + */ + price?: number; + + /** + * 描述 + */ + note?: string; + + /** + * 分钟 + */ + duration?: number; + + /** + * 维度类型:0:单项单维,1:多项单维型,2:多项多维型 + */ + dimensionType?: number; + + /** + * 状态(0正常 1停用) + */ + status?: string; + + /** + * 量表类别:如情感,字典 + */ + type?: number; + + /** + * 题量 + */ + questionsNum?: number; + + /** + * 0:高分异常,1:低分异常 + */ + selectDirection?: number; + +} + +export interface ScaleInfoQuery extends PageQuery { + + /** + * 量表名称 + */ + name?: string; + + /** + * 量表编码 + */ + code?: string; + + /** + * 标题 + */ + title?: string; + + /** + * 子标题 + */ + subTitle?: string; + + /** + * 标签 + */ + tags?: string; + + /** + * 适合年龄段 + */ + ageRange?: string; + + /** + * 测评次数 + */ + evalNums?: number; + + /** + * 封面 + */ + coverImg?: number; + + /** + * 价格/单次 + */ + price?: number; + + /** + * 描述 + */ + note?: string; + + /** + * 分钟 + */ + duration?: number; + + /** + * 维度类型:0:单项单维,1:多项单维型,2:多项多维型 + */ + dimensionType?: number; + + /** + * 状态(0正常 1停用) + */ + status?: string; + + /** + * 量表类别:如情感,字典 + */ + type?: number; + + /** + * 题量 + */ + questionsNum?: number; + + /** + * 0:高分异常,1:低分异常 + */ + selectDirection?: number; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/views/scale/ScaleInfo/index.vue b/src/views/scale/ScaleInfo/index.vue new file mode 100644 index 0000000..66c1b42 --- /dev/null +++ b/src/views/scale/ScaleInfo/index.vue @@ -0,0 +1,413 @@ + + +