0512新功能优化a
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
|
||||
<ContentWrap>
|
||||
<el-table v-loading="loading" :data="list">
|
||||
<el-table-column align="center" label="ID" prop="id" width="88" />
|
||||
<el-table-column :index="getRowIndex" align="center" label="序号" type="index" width="88" />
|
||||
<el-table-column align="center" label="年度" prop="kYear" width="120" />
|
||||
<el-table-column align="center" label="K值" width="120">
|
||||
<template #default="scope">
|
||||
@@ -67,7 +67,13 @@
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="创建时间" prop="createTime" width="180" />
|
||||
<el-table-column
|
||||
align="center"
|
||||
label="创建时间"
|
||||
prop="createTime"
|
||||
width="180"
|
||||
:formatter="dateFormatter"
|
||||
/>
|
||||
<el-table-column align="center" fixed="right" label="操作" width="160">
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
@@ -144,6 +150,7 @@
|
||||
<script lang="ts" setup>
|
||||
import type { FormRules } from 'element-plus'
|
||||
import * as YearKValueApi from '@/api/tjt/yearKValue'
|
||||
import { dateFormatter } from '@/utils/formatTime'
|
||||
import { formatPercentText, fromPercentValue, toPercentValue } from '@/views/tjt/shared/planning'
|
||||
|
||||
defineOptions({ name: 'TjtYearKValue' })
|
||||
@@ -168,6 +175,9 @@ const queryParams = reactive<YearKValueApi.YearKValuePageReqVO>({
|
||||
enabledFlag: undefined
|
||||
})
|
||||
|
||||
const getRowIndex = (index: number) =>
|
||||
(queryParams.pageNo - 1) * queryParams.pageSize + index + 1
|
||||
|
||||
const createFormData = (): YearKValueApi.YearKValueVO => ({
|
||||
kYear: new Date().getFullYear(),
|
||||
kValue: 0.4,
|
||||
|
||||
Reference in New Issue
Block a user