wangting
2025-01-15 a0d36d46fcc10b52408ecd12d0cb319b35d7bd03
Source/plt-web/plt-web-ui/src/views/processTemplate/customType/index.vue
@@ -51,7 +51,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 {
@@ -112,7 +112,7 @@
    // 表格请求
    getTableList() {
      this.tableLoading = true;
      getPvolumesPage().then(res => {
      getTypeList().then(res => {
        this.tableData = res.data.data;
        this.tableLoading = false;
      })
@@ -120,7 +120,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 +137,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 +159,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();