src/views/systemSetting/silkPriceStandard/index.vue
@@ -54,7 +54,7 @@
      tableList: {},
      showCol: ["庄口", "生丝等级", "薪酬标准", "单位", "备注"],
      tableColumn: [
        { label: "庄口", prop: "marketNumber",},
        { label: "庄口", prop: "marketName",},
        { label: "生丝等级", prop: "rawSilkGrade", },
        { label: "薪酬标准", prop: "payStandard" },
        { label: "单位", prop: "unit" },
@@ -86,9 +86,9 @@
    },
    // 新增
    addBtnClick() {
      this.editConfig.infomitton={}
      this.editConfig.dialogTitle="新增"
      this.editConfig.visible=true
      this.editConfig.infomitton={}
    },
    // 保存
    saveBtnClick(){
@@ -157,22 +157,25 @@
      })
    },
    handleClick(row,type){
      if(type==="查看"){
        this.editConfig.infomitton=row
        this.editConfig.dialogTitle=type
        this.editConfig.visible=true
      }else if(type==="修改"){
        this.editConfig.infomitton=row
      if(type!=="删除"){
        this.editConfig.infomitton={
            ...row,
            market:{
            ID:row.marketId,
            name:row.marketName,
          }
        }
        this.editConfig.dialogTitle=type
        this.editConfig.visible=true
      }else if(type==="删除"){
        this.$confirm(`确认删除${row.name}吗?`, '提示', {
        this.$confirm(`确认删除吗?`, '提示', {
          confirmButtonText: '确定',
          cancelButtonText: '取消',
          type: 'warning'
        }).then(() => {
          deletePriceStandard({id:row.ID}).then((res)=>{
            if(res&&res.code===200){
              this.pagerOptions.currPage = 1;
              this.getData()
              this.$message({
                type: 'success',
@@ -180,7 +183,9 @@
              });
            }
          })
        })
        }).catch(() => {
          console.log("取消删除")
        });
      }
    }
  }