|
|
@ -3,6 +3,7 @@ import { dateFormatter } from '@/utils/formatTime' |
|
|
|
import { TableColumn } from '@/types/table' |
|
|
|
import * as PszcCommonApi from '@/api/pszc/pszccommon' |
|
|
|
import * as DictApi from '@/utils/dict' |
|
|
|
import { number } from 'echarts' |
|
|
|
// 数据点
|
|
|
|
// const sjdList = await PszcCommonApi.selectHr108Pros({flag: '3' , type: '1',module:'2'})
|
|
|
|
const sjdList = DictApi.getStrDictOptions(DICT_TYPE.pszc_hr_puncherdata108_roll); |
|
|
@ -22,11 +23,11 @@ export const HrPuncherdata108 = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '数据点名称', |
|
|
|
field: 'icode', |
|
|
|
field: 'iname', |
|
|
|
isTable: true, |
|
|
|
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { |
|
|
|
return sjdList.find((obj) => obj.value === cellValue)?.label |
|
|
|
}, |
|
|
|
// formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
|
|
|
|
// return sjdList.find((obj) => obj.value === cellValue)?.label
|
|
|
|
// },
|
|
|
|
search: { |
|
|
|
show: true, |
|
|
|
component: 'Select', |
|
|
@ -54,6 +55,9 @@ export const HrPuncherdata108 = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'ivalue', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
formatter: (row,column,cellValue) => { |
|
|
|
return cellValue+"秒" |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '仪表的编号', |
|
|
|