wangting
2024-11-21 819430870fb02cd550b1d925261c16f14157affd
处理路由bug
已修改2个文件
22 ■■■■ 文件已修改
Source/plt-web/plt-web-ui/src/router/avue-router.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/statusPool/index.vue 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/router/avue-router.js
@@ -182,7 +182,7 @@
          meta: meta,
          redirect: (() => {
            // 第一次进来但是没有子路由的 需要添加redirect
            if (!isChild && first && !isURL(path)) return `${path}/index`
            if (!isChild && first && !isURL(path)) return `/${code}/index`
            else return '';
          })(),
          // 整理子路由的route 配置
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,11 +207,10 @@
    }
  },
  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;
@@ -225,7 +223,7 @@
    // 表格刷新
    handleRefresh() {
      this.getTreeList();
      this.getList();
    },
    // 表格多选
@@ -236,13 +234,13 @@
    //  条数
    sizeChange(val) {
      this.page.pageSize = val;
      this.getTreeList();
      this.getList();
    },
    // 页码
    currentChange(val) {
      this.page.currentPage = val;
      this.getTreeList();
      this.getList();
    },
    // 行单选
@@ -288,7 +286,7 @@
        deleteStatus(this.selectList).then(res => {
          if (res.data.code === 200) {
            this.$message.success(res.data.obj);
            this.getTreeList();
            this.getList();
          }
        })
      }).catch(() => {
@@ -311,7 +309,7 @@
        deleteStatus(list).then(res => {
          if (res.data.code === 200) {
            this.$message.success(res.data.obj);
            this.getTreeList();
            this.getList();
          }
        })
      }).catch(() => {
@@ -344,7 +342,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);