WangHan
2024-12-19 ed6c6350015d52ea1cb033c7558f72b721ece84a
admin-web/src/views/foundation/material/index.vue
@@ -218,7 +218,7 @@
            {
              title: '编辑',
              events: (row) => {
                this.showAudit(row);
                this.showAdd(row.id);
              },
            },
            {
@@ -294,14 +294,10 @@
        .catch(() => {
        });
    },
    showAdd() {
      // if (!this.editSetting.orgId) {
      //   this.$message.warning('请先选择左侧机构')
      // } else {
        this.editSetting.id = null;
        this.editSetting.title = '新增';
        this.editSetting.show = true;
      // }
    showAdd(id) {
      this.editSetting.id = id;
      this.editSetting.title = id?'编辑':'新增';
      this.editSetting.show = true;
    },
    showSpecs(row) {
      this.specsSetting.goodsTemplatesId = row.id;
@@ -310,7 +306,7 @@
    // 查询table列表
    search(pageNum) {
      if (pageNum != undefined) {
        this.$refs.myTable.search(pageNum)
        this.$refs.myTable.search({pageNum})
      } else {
        this.$refs.myTable.search()
      }