This commit is contained in:
sjl
2024-11-05 11:23:38 +08:00
parent c0fcba6a25
commit 7f8aeebb1e
6 changed files with 148 additions and 71 deletions

View File

@@ -1,3 +1,4 @@
import { storeToRefs } from 'pinia';
/**
* 该接口声明文件用来声明通用的接口定义,比如 请求参数Base、响应Base、分页等
*/
@@ -44,8 +45,11 @@ export interface ResPage<T> {
*/
export interface Dict {
id: string;
label: string;
name: string;
code: string;
value?: string;
sort?:number;
algoDescribe?: string;
children?: Dict[];
}

View File

@@ -108,23 +108,23 @@ export namespace Dict {
harmStart?:number | null;//起始次数
harmEnd?:number | null;//结束次数
classId?: string | null;//数据表表名
statMethod?:string | null;//数据统计类型最大、最小、平均、CP95
statMethod?:string;//数据统计类型最大、最小、平均、CP95
systemType?:string | null;//系统类别(区分用能/电能)
tranFlag?:number | null;//数据是否上送0:不上送 1:上送)
tranFlag?:number ;//数据是否上送0:不上送 1:上送)
tranRule?:string | null;//上送规则 变化:“change”周期 :“ period”
eventType?:string | null;//evt的事件类别 "1"、"2"
storeFlag?:string | null;//sts、di的是否存储 1:存储 0:不存 储;
storeFlag?:string ;//sts、di的是否存储 1:存储 0:不存 储;
curSts?:number | null;//sts、do的当前值
ctlSts?:number | null;//do的是否可远程控制 1:是 0:否;
ctlSts?:number;//do的是否可远程控制 1:是 0:否;
maxNum?:number | null;//设置最大值
minNum?: number | null;//设置最小值
setValue?:string | null;//参数为enum可设置的所有值序列
strlen?:number | null;//参数string可设置字符串的长度上 限
defaultValue?:string | null; //参数缺省值、告警code值
resourcesId?:string | null; //报表数据来源(统计表表名)
resourcesId?:string ; //报表数据来源(统计表表名)
limitName?:string | null; //限值字段名称
limitTable?:string | null;//限值表名
formula?:string | null;//超标判断方式
formula?:string ;//超标判断方式
primaryFormula?:string | null;//二次值转一次值公式
state:number;//状态0-删除 1-正常
createBy?:string | null;//创建用户

View File

@@ -26,7 +26,7 @@ export const logoutApi = () => {
}
//获取下拉框列表
export const getDictList = (params:string) =>{
return http.post('/dictData/dictDataCache',params)
export const getDictList = () =>{
return http.get<Dict>('/dictData/dictDataCache')
}