diff --git a/src/api/scale/ScaleInfo/index.ts b/src/api/scale/ScaleInfo/index.ts deleted file mode 100644 index a8b4712..0000000 --- a/src/api/scale/ScaleInfo/index.ts +++ /dev/null @@ -1,63 +0,0 @@ -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 deleted file mode 100644 index 35548be..0000000 --- a/src/api/scale/ScaleInfo/types.ts +++ /dev/null @@ -1,266 +0,0 @@ -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/router/index.ts b/src/router/index.ts index 271385c..5fd2eaf 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -135,6 +135,20 @@ export const dynamicRoutes: RouteOption[] = [ } ] }, + { + path: '/scale/scale-factor', + component: Layout, + hidden: true, + permissions: ['scale:SysScale:edit'], + children: [ + { + path: 'index/:scaleId(\\d+)', + component: () => import('@/views/scale/SysScaleFactor/index.vue'), + name: 'ScaleFactor', + meta: { title: '因子列表', activeMenu: '/scale/factor', icon: '' } + } + ] + }, { path: '/system/oss-config', component: Layout, diff --git a/src/views/scale/ScaleInfo/index.vue b/src/views/scale/ScaleInfo-bak/index.vue similarity index 99% rename from src/views/scale/ScaleInfo/index.vue rename to src/views/scale/ScaleInfo-bak/index.vue index 66c1b42..a20ffa0 100644 --- a/src/views/scale/ScaleInfo/index.vue +++ b/src/views/scale/ScaleInfo-bak/index.vue @@ -179,7 +179,7 @@ - + @@ -410,4 +410,4 @@ const handleExport = () => { onMounted(() => { getList(); }); - + \ No newline at end of file