haoxuan
2024-05-07 1cd64a26daed3e0eb7b4ccf74e50267d79eaef09
src/views/systemSetting/dataDictionary/index.vue
@@ -122,6 +122,7 @@
    // 搜索
    onFilterSearch(searchText) {
      this.getDataParams.keyword=searchText,
      this.pagerOptions.currPage = 1;
      this.getData()
    },
    // 新增
@@ -247,12 +248,8 @@
      })
    },
    rowClick(row,type){
      if(type==="查看"){
        this.editConfig.dialogTitle="查看"
        this.editConfig.visible=true
        this.editConfig.infomitton={...row,TabsIndex:this.TabsIndex}
      }else if(type==="修改"){
        this.editConfig.dialogTitle="修改"
      if(type!=="删除"){
        this.editConfig.dialogTitle=type
        this.editConfig.visible=true
        this.editConfig.infomitton={...row,TabsIndex:this.TabsIndex}
      }else if(type==="删除"){
@@ -263,6 +260,7 @@
        }).then(() => {
          deleteDict({id:row.ID}).then((res)=>{
            if(res&&res.code===200){
              this.pagerOptions.currPage = 1;
              this.getData()
              this.$message({
                type: 'success',
@@ -270,7 +268,9 @@
              });
            }
          })
        })
        }).catch(() => {
          console.log("取消删除")
        });
      }
    }
  }