田源
2024-08-15 bc90fb7e0c6c8313e7d5fcf3aba57e3a1f975c93
Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/statusPool/index.vue
@@ -2,10 +2,10 @@
  <basic-container>
    <avue-crud
      ref="useCrud"
      :table-loading="loading"
      :data="data"
      :option="option"
      :page.sync="page"
      :table-loading="loading"
      @selection-change="selectChange"
      @row-click="rowClickHandler"
      @refresh-change="handleRefresh"
@@ -232,8 +232,12 @@
        row,
        this.$refs.useCrud,
        this.lastIndex,
        (newIndex) => { this.lastIndex = newIndex; },
        () => { this.selectList = []; }
        (newIndex) => {
          this.lastIndex = newIndex;
        },
        () => {
          this.selectList = [];
        }
      );
    },
@@ -315,7 +319,8 @@
    // 创建或编辑保存
    addSaveHandler() {
      const saveFunction = this.dialogTitle === 'add' ? addSave : editSave;
      this.$refs.form.validate((valid) => {
        if (valid) {
      saveFunction(this.form).then(res => {
        if (res.data.code === 200) {
          this.$message.success(res.data.obj);
@@ -328,6 +333,10 @@
      }).catch(error => {
        this.$message.error(error);
      });
        } else {
          return false;
        }
      });
    },
    // 导出