From 391eec3114a17e68652434c6eae610799d80290e Mon Sep 17 00:00:00 2001
From: ludc <ludc@vci-tech.com>
Date: 星期四, 16 一月 2025 11:13:43 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 Source/plt-web/plt-web-ui/src/views/processTemplate/customType/index.vue |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/Source/plt-web/plt-web-ui/src/views/processTemplate/customType/index.vue b/Source/plt-web/plt-web-ui/src/views/processTemplate/customType/index.vue
index 7b0a155..f13558c 100644
--- a/Source/plt-web/plt-web-ui/src/views/processTemplate/customType/index.vue
+++ b/Source/plt-web/plt-web-ui/src/views/processTemplate/customType/index.vue
@@ -8,6 +8,7 @@
       :option="option"
       :table-loading="tableLoading"
       @on-load="getTableList"
+      @refresh-change="getTableList"
       @row-save="rowSaveHandler"
       @row-update="rowUpdateHandler"
       @row-click="rowClickHandler"
@@ -51,7 +52,7 @@
 <script>
 import {mapGetters} from "vuex";
 import basicOption from "@/util/basic-option";
-import {deletePvolume, getPvolumesPage, savePvolume, updatePvolume} from "@/api/system/fileCab/api";
+import {getTypeList, saveType, updateType, deleteType} from "@/api/processTemplate/type";
 import func from "@/util/func";
 
 export default {
@@ -87,7 +88,7 @@
         addBtn:false,
         editBtn:false,
         delBtn:false,
-        calcHeight: -60,
+        calcHeight: -55,
         align:'left',
         headerAlign:'center',
         menuWidth:160,
@@ -112,7 +113,7 @@
     // 琛ㄦ牸璇锋眰
     getTableList() {
       this.tableLoading = true;
-      getPvolumesPage().then(res => {
+      getTypeList().then(res => {
         this.tableData = res.data.data;
         this.tableLoading = false;
       })
@@ -120,7 +121,7 @@
 
     // 鏂板
     rowSaveHandler(row, done, loading) {
-      savePvolume(row).then(res => {
+      saveType(row).then(res => {
         if (res.data.code === 200) {
           this.$message.success(res.data.obj);
           this.getTableList();
@@ -137,7 +138,7 @@
 
     // 缂栬緫
     rowUpdateHandler(row, index, done, loading) {
-      updatePvolume(row).then(res => {
+      updateType(row).then(res => {
         if (res.data.code === 200) {
           this.$message.success(res.data.obj);
           this.getTableList();
@@ -159,7 +160,7 @@
         cancelButtonText: '鍙栨秷',
         type: 'warning'
       }).then(() => {
-        deletePvolume(params).then(res => {
+        deleteType(params).then(res => {
           if (res.data.code === 200) {
             this.$message.success(res.data.obj);
             this.getTableList();

--
Gitblit v1.9.3