wangting
2024-11-26 2ad2a3cdd0df63b6557789ba8a9d968984fe5da3
Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/statusPool/index.vue
@@ -85,7 +85,7 @@
    <!-- 导入 -->
    <upload-file ref="upload" :fileType="upFileType" :fileUrl="fileUrl" :tipList="tipList" title="导入"
                 @updata="getTreeList"></upload-file>
                 @updata="getList"></upload-file>
    <!-- 查看使用范围 -->
    <el-dialog
@@ -107,7 +107,6 @@
      </avue-crud>
    </el-dialog>
  </basic-container>
</template>
<script>
@@ -208,24 +207,21 @@
    }
  },
  created() {
    this.getTreeList();
    this.getList();
  },
  methods: {
    // 左侧树请求
    getTreeList() {
    getList() {
      gridStatus(this.page.currentPage, this.page.pageSize).then(res => {
        const data = res.data.data;
        this.data = data;
        this.page.total = res.data.total;
        this.loading = false;
      }).catch(err => {
        this.$message.error(err);
      });
    },
    // 表格刷新
    handleRefresh() {
      this.getTreeList();
      this.getList();
    },
    // 表格多选
@@ -236,13 +232,13 @@
    //  条数
    sizeChange(val) {
      this.page.pageSize = val;
      this.getTreeList();
      this.getList();
    },
    // 页码
    currentChange(val) {
      this.page.currentPage = val;
      this.getTreeList();
      this.getList();
    },
    // 行单选
@@ -288,7 +284,7 @@
        deleteStatus(this.selectList).then(res => {
          if (res.data.code === 200) {
            this.$message.success(res.data.obj);
            this.getTreeList();
            this.getList();
          }
        })
      }).catch(() => {
@@ -311,7 +307,7 @@
        deleteStatus(list).then(res => {
          if (res.data.code === 200) {
            this.$message.success(res.data.obj);
            this.getTreeList();
            this.getList();
          }
        })
      }).catch(() => {
@@ -344,7 +340,7 @@
            if (res.data.code === 200) {
              this.$message.success(res.data.obj);
              this.loading = true;
              this.getTreeList();
              this.getList();
              this.visible = false;
            } else {
              this.$message.error(res.data.obj);