|
@ -29,10 +29,14 @@ |
|
|
> |
|
|
> |
|
|
<template #iname="{row}"> |
|
|
<template #iname="{row}"> |
|
|
<el-button :type="row.icode == 'Up_Roller_runtime' ? 'warning' : 'success'" link> |
|
|
<el-button :type="row.icode == 'Up_Roller_runtime' ? 'warning' : 'success'" link> |
|
|
<span>{{ row.iname }}</span> |
|
|
<span>{{ row.iname}}</span> |
|
|
</el-button> |
|
|
</el-button> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template #ivalue="{row}"> |
|
|
|
|
|
<span>{{ timesFormatter(row.ivalue)}}</span> |
|
|
|
|
|
</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> |
|
@ -64,6 +68,9 @@ import download from '@/utils/download' |
|
|
import { HrPuncherdata108,HrPuncherdata108Rules } from './hrPuncherdata108.data' |
|
|
import { HrPuncherdata108,HrPuncherdata108Rules } from './hrPuncherdata108.data' |
|
|
import * as HrPuncherdata108Api from '@/api/pszc/hrpuncherdata108' |
|
|
import * as HrPuncherdata108Api from '@/api/pszc/hrpuncherdata108' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
|
|
import dayjs from 'dayjs' |
|
|
|
|
|
import duration from 'dayjs/plugin/duration' |
|
|
|
|
|
dayjs.extend(duration); |
|
|
|
|
|
|
|
|
defineOptions({ name: 'OperationTimeData108' }) |
|
|
defineOptions({ name: 'OperationTimeData108' }) |
|
|
|
|
|
|
|
@ -218,6 +225,10 @@ const searchFormClick = (searchData) => { |
|
|
setSearchParams(param); // 刷新当前列表 |
|
|
setSearchParams(param); // 刷新当前列表 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const timesFormatter=(s)=>{ |
|
|
|
|
|
return dayjs.duration(s, 'seconds').format('HH时mm分ss秒'); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** 初始化 **/ |
|
|
/** 初始化 **/ |
|
|
onMounted(async () => { |
|
|
onMounted(async () => { |
|
|
getList(); |
|
|
getList(); |
|
|