From d50f2acc73dc53a334c5feeb25a7e60e3df91f81 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 30 三月 2026 11:16:06 +0800
Subject: [PATCH] 酒泉 1.设备功能迁移
---
src/views/equipmentManagement/calibration/index.vue | 38 +++++---------------------------------
1 files changed, 5 insertions(+), 33 deletions(-)
diff --git a/src/views/equipmentManagement/calibration/index.vue b/src/views/equipmentManagement/calibration/index.vue
index 3ace389..7dfd405 100644
--- a/src/views/equipmentManagement/calibration/index.vue
+++ b/src/views/equipmentManagement/calibration/index.vue
@@ -57,10 +57,10 @@
<script setup>
import {onMounted, ref} from "vue";
-import {ElMessageBox, ElMessage} from "element-plus";
+import {ElMessageBox} from "element-plus";
import useUserStore from "@/store/modules/user.js";
import CalibrationDia from "@/views/equipmentManagement/measurementEquipment/components/calibrationDia.vue";
-import {ledgerRecordListPage, ledgerRecordDelete} from "@/api/equipmentManagement/calibration.js";
+import {ledgerRecordListPage} from "@/api/equipmentManagement/calibration.js";
const { proxy } = getCurrentInstance();
const userStore = useUserStore()
@@ -134,7 +134,6 @@
{
dataType: "action",
label: "鎿嶄綔",
- width: 140,
align: "center",
fixed: 'right',
operation: [
@@ -144,16 +143,9 @@
clickFun: (row) => {
openCalibrationDia("edit", row);
},
- },
- {
- name: "鍒犻櫎",
- type: "text",
- style: {
- color: "#F56C6C"
- },
- clickFun: (row) => {
- handleDelete(row);
- },
+ disabled: (row) => {
+ return row.userId !== userStore.id
+ }
},
],
},
@@ -201,26 +193,6 @@
calibrationDia.value?.openDialog(type, row)
})
}
-
-// 鍒犻櫎璁板綍
-const handleDelete = (row) => {
- ElMessageBox.confirm(`纭鍒犻櫎璁¢噺鍣ㄥ叿缂栧彿涓�"${row.code}"鐨勬瀹氳褰曞悧锛焋, "鍒犻櫎纭", {
- confirmButtonText: "纭",
- cancelButtonText: "鍙栨秷",
- type: "warning",
- })
- .then(() => {
- ledgerRecordDelete([row.id]).then(() => {
- ElMessage.success("鍒犻櫎鎴愬姛");
- getList();
- }).catch(() => {
- ElMessage.error("鍒犻櫎澶辫触");
- });
- })
- .catch(() => {
- proxy.$modal.msg("宸插彇娑堝垹闄�");
- });
-};
// 瀵煎嚭
const handleOut = () => {
--
Gitblit v1.9.3