Browse Source

穿孔机管理

master
songguoqiang 1 year ago
parent
commit
bea8beb95f
  1. 4
      src/views/pszc/hrpuncherdata108/operationtimedata108/hrPuncherdata108.data.ts
  2. 6
      src/views/pszc/hrpuncherdata108/operationtimedata108/index.vue
  3. 8
      src/views/pszc/hrpuncherdata108/rollcountdata108/hrPuncherdata108.data.ts
  4. 12
      src/views/pszc/hrpuncherdata108/rolltimedata108/hrPuncherdata108.data.ts

4
src/views/pszc/hrpuncherdata108/operationtimedata108/hrPuncherdata108.data.ts

@ -23,12 +23,12 @@ export const HrPuncherdata108 = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '数据点名称', label: '数据点名称',
field: 'icode', field: 'iname',
isTable: true, isTable: true,
// formatter: (_: Recordable, __: TableColumn, cellValue: number) => { // formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
// return sjdList1.find((obj) => obj.value === cellValue)?.label // return sjdList1.find((obj) => obj.value === cellValue)?.label
// }, // },
dictType: DICT_TYPE.pszc_hr_puncherdata108, // dictType: DICT_TYPE.pszc_hr_puncherdata108,
search: { search: {
show: true, show: true,
component: 'Select', component: 'Select',

6
src/views/pszc/hrpuncherdata108/operationtimedata108/index.vue

@ -27,6 +27,12 @@
v-model:currentPage="tableObject.currentPage" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
> >
<template #iname="{row}">
<el-button :type="row.icode == 'Up_Roller_runtime' ? 'warning' : 'success'" link>
<span>{{ row.iname }}</span>
</el-button>
</template>
<template #code="{row}"> <template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)"> <el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span> <span>{{ row.code }}</span>

8
src/views/pszc/hrpuncherdata108/rollcountdata108/hrPuncherdata108.data.ts

@ -21,11 +21,11 @@ export const HrPuncherdata108 = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '数据点名称', label: '数据点名称',
field: 'icode', field: 'iname',
isTable: true, isTable: true,
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { // formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return sjdList.find((obj) => obj.code === cellValue)?.label // return sjdList.find((obj) => obj.code === cellValue)?.label
}, // },
// search: { // search: {
// show: true, // show: true,
// component: 'Select', // component: 'Select',

12
src/views/pszc/hrpuncherdata108/rolltimedata108/hrPuncherdata108.data.ts

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

Loading…
Cancel
Save