| | |
| | | 修改 |
| | | </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']" |
| | |
| | | <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> |
| | |
| | | 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"; |
| | | |
| | | |
| | |
| | | } |
| | | } |
| | | 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 { |