| | |
| | | tableList: {}, |
| | | showCol: ["庄口", "生丝等级", "薪酬标准", "单位", "备注"], |
| | | tableColumn: [ |
| | | { label: "庄口", prop: "marketNumber",}, |
| | | { label: "庄口", prop: "marketName",}, |
| | | { label: "生丝等级", prop: "rawSilkGrade", }, |
| | | { label: "薪酬标准", prop: "payStandard" }, |
| | | { label: "单位", prop: "unit" }, |
| | |
| | | }, |
| | | // 新增 |
| | | addBtnClick() { |
| | | this.editConfig.infomitton={} |
| | | this.editConfig.dialogTitle="新增" |
| | | this.editConfig.visible=true |
| | | this.editConfig.infomitton={} |
| | | }, |
| | | // 保存 |
| | | saveBtnClick(){ |
| | |
| | | }) |
| | | }, |
| | | 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' |
| | |
| | | }); |
| | | } |
| | | }) |
| | | }) |
| | | }).catch(() => { |
| | | console.log("取消删除") |
| | | }); |
| | | } |
| | | } |
| | | } |