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: '数据点名称',
field: 'icode',
field: 'iname',
isTable: true,
// formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
// return sjdList1.find((obj) => obj.value === cellValue)?.label
// },
dictType: DICT_TYPE.pszc_hr_puncherdata108,
// dictType: DICT_TYPE.pszc_hr_puncherdata108,
search: {
show: true,
component: 'Select',

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

@ -27,6 +27,12 @@
v-model:currentPage="tableObject.currentPage"
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}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span>

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

@ -21,11 +21,11 @@ export const HrPuncherdata108 = useCrudSchemas(reactive<CrudSchema[]>([
},
{
label: '数据点名称',
field: 'icode',
field: 'iname',
isTable: true,
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return sjdList.find((obj) => obj.code === cellValue)?.label
},
// formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
// return sjdList.find((obj) => obj.code === cellValue)?.label
// },
// search: {
// show: true,
// 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 * 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: '仪表的编号',

Loading…
Cancel
Save