From 123566d92fae8861adc39149c1f6a9679a0e259e Mon Sep 17 00:00:00 2001 From: Jay <csj123456> Date: 星期三, 19 二月 2025 14:08:33 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/data/ind/item/index.vue | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/views/data/ind/item/index.vue b/src/views/data/ind/item/index.vue index f677122..3a3c9a9 100644 --- a/src/views/data/ind/item/index.vue +++ b/src/views/data/ind/item/index.vue @@ -91,11 +91,16 @@ 修改 </el-button> <el-button - v-hasPermi="['data:ind-item:update']" link type="primary" @click="getCurrentData(scope.row.itemNo)"> 当前值 + </el-button> + <el-button + link + type="primary" + @click="getHistoryData(scope.row)"> + 历史值 </el-button> <el-button v-hasPermi="['data:ind-item:delete']" @@ -124,7 +129,8 @@ <DerIndDefineForm ref="derFormRef" @success="getList" /> <CalIndDefineForm ref="calFormRef" @success="getList" /> <SelectItemType ref="itemTypeSel"/> - <IndCurrentData ref="indCurrentData" /> + <IndCurrentData ref="indCurrentData"/> + <IndHistoryChart ref="indHistoryChart"/> </template> <script lang="ts" setup> @@ -139,6 +145,7 @@ import * as ItemApi from '@/api/data/ind/item/item' import * as CategoryApi from "@/api/data/ind/category"; import IndCurrentData from './IndCurrentData.vue' + import IndHistoryChart from './IndHistoryChart.vue' import {handleTree} from "@/utils/tree"; @@ -219,11 +226,15 @@ } } const indCurrentData = ref() - const getCurrentData = (itemNo: string) => { indCurrentData.value.open(itemNo) } + const indHistoryChart = ref() + const getHistoryData = (raw: object) => { + indHistoryChart.value.open(raw) + } + /** 删除按钮操作 */ const handleDelete = async (id: number) => { try { -- Gitblit v1.9.3