代码提交
This commit is contained in:
parent
690e72e589
commit
2b327c6fac
|
@ -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<ScaleInfoVO[]> => {
|
||||
return request({
|
||||
url: '/scale/ScaleInfo/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询心理测评量详细
|
||||
* @param id
|
||||
*/
|
||||
export const getScaleInfo = (id: string | number): AxiosPromise<ScaleInfoVO> => {
|
||||
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<string | number>) => {
|
||||
return request({
|
||||
url: '/scale/ScaleInfo/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -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,
|
||||
|
|
|
@ -179,7 +179,7 @@
|
|||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="封面" prop="converImg">
|
||||
<image-upload v-model="form.coverImg" />
|
||||
<image-upload v-model="form.coverImg" :limit="1" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
@ -410,4 +410,4 @@ const handleExport = () => {
|
|||
onMounted(() => {
|
||||
getList();
|
||||
});
|
||||
</script>
|
||||
</script>
|
Loading…
Reference in New Issue