Browse Source

项目优化

master
songguoqiang 1 year ago
parent
commit
58d1834923
  1. 2
      src/views/pszc/hrelongatordata108/operationtimedata108/index.vue
  2. 2
      src/views/pszc/hrelongatordata90/operationtimedata90/index.vue
  3. 2
      src/views/pszc/hrpuncherdata108/operationtimedata108/index.vue
  4. 2
      src/views/pszc/hrpuncherdata90/operationtimedata90/index.vue
  5. 14
      src/views/pszc/hrsizingmilldata108/hrSizingmilldata108.data.ts
  6. 7
      src/views/pszc/hrsizingmilldata108/index.vue
  7. 8
      src/views/pszc/hrsizingmilldata90/hrSizingmilldata90.data.ts
  8. 9
      src/views/pszc/hrsizingmilldata90/index.vue

2
src/views/pszc/hrelongatordata108/operationtimedata108/index.vue

@ -28,7 +28,7 @@
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
> >
<template #iname="{row}"> <template #iname="{row}">
<el-button :type="row.icode == 'Down_Roller_runtime' || row.icode == 'Up_Roller_runtime' ? 'success' : 'warning'" link> <el-button :type="row.icode == 'Down_Roller_runtime' || row.icode == 'Up_Roller_runtime' ? 'success' : 'danger'" link>
<span>{{ row.iname}}</span> <span>{{ row.iname}}</span>
</el-button> </el-button>
</template> </template>

2
src/views/pszc/hrelongatordata90/operationtimedata90/index.vue

@ -28,7 +28,7 @@
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
> >
<template #iname="{row}"> <template #iname="{row}">
<el-button :type="row.icode == 'Down_Roller_runtime' || row.icode == 'Up_Roller_runtime' ? 'success' : 'warning'" link> <el-button :type="row.icode == 'Down_Roller_runtime' || row.icode == 'Up_Roller_runtime' ? 'success' : 'danger'" link>
<span>{{ row.iname}}</span> <span>{{ row.iname}}</span>
</el-button> </el-button>
</template> </template>

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

@ -28,7 +28,7 @@
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
> >
<template #iname="{row}"> <template #iname="{row}">
<el-button :type="row.icode == 'Down_Roller_runtime' || row.icode == 'Up_Roller_runtime' ? 'success' : 'warning'" link> <el-button :type="row.icode == 'Down_Roller_runtime' || row.icode == 'Up_Roller_runtime' ? 'success' : 'danger'" link>
<span>{{ row.iname}}</span> <span>{{ row.iname}}</span>
</el-button> </el-button>
</template> </template>

2
src/views/pszc/hrpuncherdata90/operationtimedata90/index.vue

@ -28,7 +28,7 @@
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
> >
<template #iname="{row}"> <template #iname="{row}">
<el-button :type="row.icode == 'Up_Roller_runtime' ? 'warning' : 'success'" link> <el-button :type="row.icode == 'Down_Roller_runtime' || row.icode == 'Up_Roller_runtime' ? 'success' : 'danger'" link>
<span>{{ row.iname}}</span> <span>{{ row.iname}}</span>
</el-button> </el-button>
</template> </template>

14
src/views/pszc/hrsizingmilldata108/hrSizingmilldata108.data.ts

@ -20,11 +20,11 @@ export const HrSizingmilldata108 = 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',
@ -63,9 +63,9 @@ export const HrSizingmilldata108 = useCrudSchemas(reactive<CrudSchema[]>([
label: '仪表的名称', label: '仪表的名称',
field: 'mcode', field: 'mcode',
isTable: true, isTable: true,
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { // formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return yqbList.find((obj) => obj.code === cellValue)?.label // return yqbList.find((obj) => obj.code === cellValue)?.label
}, // },
search: { search: {
show: true, show: true,
component: 'Select', component: 'Select',

7
src/views/pszc/hrsizingmilldata108/index.vue

@ -31,6 +31,13 @@
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 == 'Sizing_hr_stoptime'? 'danger' : 'success'" link>
<span>{{ row.iname}}</span>
</el-button>
</template>
<template #ivalue="{ row }"> <template #ivalue="{ row }">
<span>{{ timesFormatter(row.ivalue) }}</span> <span>{{ timesFormatter(row.ivalue) }}</span>
</template> </template>

8
src/views/pszc/hrsizingmilldata90/hrSizingmilldata90.data.ts

@ -20,11 +20,11 @@ export const HrSizingmilldata90 = 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',

9
src/views/pszc/hrsizingmilldata90/index.vue

@ -27,7 +27,14 @@
v-model:currentPage="tableObject.currentPage" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
> >
<template #ivalue="{ row }">
<template #iname="{row}">
<el-button :type="row.icode == 'Main_start' ? 'danger' : 'success'" link>
<span>{{ row.iname}}</span>
</el-button>
</template>
<template #ivalue="{ row }">
<span>{{ timesFormatter(row.ivalue) }}</span> <span>{{ timesFormatter(row.ivalue) }}</span>
</template> </template>

Loading…
Cancel
Save