heyujie
2022-02-16 5455dd4cd7c27d14bc7f98f110ae14163dbaacc1
对比库新增跳到最末
5个文件已修改
25 ■■■■■ 已修改文件
src/pages/library/components/addBase.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/library/components/baseList.vue 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/library/components/carList.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/library/components/personList.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/library/index/App.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/library/components/addBase.vue
@@ -286,7 +286,6 @@
  },
  methods: {
    onSubmit(formName) {
      debugger
      if (this.form.id) {
        // id不为空,修改底库
        this.$refs[formName].validate(async (valid) => {
src/pages/library/components/baseList.vue
@@ -193,25 +193,34 @@
        this.isAdmin || this.buttonAuthority.indexOf("," + authority + ",") > -1
      );
    },
    async init() {
    async init(typ) {
      await this.BaseManageData.querySyncTables();
      this.syncTableList = this.BaseManageData.syncTables;
      if (typ) {
        this.clickLast(typ);
      } else {
      this.defaultShow();
      }
      await this.BaseManageData.queryLocalTables();
      this.localTableList = this.BaseManageData.localTables;
      if (typ) {
        this.clickLast(typ);
      } else {
      this.defaultShow();
      }
    },
    add(type) {
      this.$emit("changeShow", null, type);
    },
    clickLast(type) {
      this.$nextTick(() => {
      // this.$nextTick(() => {
      // });
        this.clickCategory(
          this.syncTableList.length - 1,
          type,
          this.syncTableList[this.syncTableList.length - 1]
        );
      });
    },
    clickCategory(index, type, item) {
      this.categoryIndex = type + index;
src/pages/library/components/carList.vue
@@ -861,6 +861,7 @@
              message: "底库删除成功!",
            });
          }
          this.askDeleteShow=false
          this.$emit("onDelete");
        })
        .catch((err) => {
src/pages/library/components/personList.vue
@@ -1142,6 +1142,8 @@
              message: "底库删除成功!",
            });
          }
          this.askDeleteShow=false
          this.$emit("onDelete");
        })
        .catch((err) => {
src/pages/library/index/App.vue
@@ -119,9 +119,6 @@
      } else {
        this.baseForEdit = {};
        this.breeadCrumb[1].name = "添加底库";
        // this.$nextTick(() => {
        //   this.$refs.baseSync.clickLast(type)
        // })
      }
      this.syncType = type;
      this.showList = false;
@@ -136,8 +133,7 @@
    },
    closeAdd() {
      this.showList = true;
       this.$refs.baseSync.clickLast(this.syncType)
      this.$refs.baseSync.init(this.syncType);
    },
  },
  props: {