This commit is contained in:
仲么了
2024-01-22 19:56:30 +08:00
parent 4f285a61e5
commit 2dc9a788ed
4 changed files with 81 additions and 6 deletions

View File

@@ -64,6 +64,7 @@ const popupDictionary = ref()
const dictData = useDictData()
const DataSelect = dictData.getBasicData('Data')
const DataTypeSelect = dictData.getBasicData('Cs_Data_Type')
const ResourcesIdSelect = dictData.getBasicData('Data_Day')
const tableStore = new TableStore({
url: '/system-boot/csDictData/list',
method: 'POST',
@@ -78,7 +79,7 @@ const tableStore = new TableStore({
{ title: '数据谐波次数', field: 'harmStart' },
{ title: '数据统计方法', field: 'statMethod' },
{ title: '数据存储', field: 'classIdName' },
{ title: '数据来源', field: 'resourcesId' },
{ title: '数据来源', field: 'resourcesIdName' },
{
title: '操作',
align: 'center',
@@ -116,6 +117,7 @@ const tableStore = new TableStore({
loadCallback: () => {
tableStore.table.data.forEach((item: any) => {
item.classIdName = DataSelect.find((child: any) => child.id == item.classId)?.name || '/'
item.resourcesIdName = ResourcesIdSelect.find((child: any) => child.id == item.resourcesId)?.name || '/'
item.phaseName = item.phase === 'M' ? '/' : item.phase || '/'
for (let key in item) {
if (typeof item[key] !== 'number') {
@@ -126,7 +128,7 @@ const tableStore = new TableStore({
}
})
tableStore.table.params.searchState = ''
tableStore.table.params.searchValue = ''
tableStore.table.params.dataType = ''
tableStore.table.params.classId = ''
provide('tableStore', tableStore)