| | |
| | | <TableCommonView |
| | | :table-list="tableList" |
| | | @selTableCol="selTableCol" |
| | | @tableRowClick="tableRowClick" |
| | | > |
| | | <template slot="tableButton"> |
| | | <el-table-column label="操作" width="180"> |
| | | <el-table-column label="操作" width="110"> |
| | | <template slot-scope="scope"> |
| | | <el-button @click.stop="handleClick(scope.row)" type="text" size="small">修改</el-button> |
| | | <el-button @click.stop="delClick(scope.row)" type="text" size="small">删除</el-button> |
| | |
| | | { label: "工种", prop: "workTypeNames",min:100 }, |
| | | { label: "薪资类型", prop: "salaryType",min:110 }, |
| | | { label: "计费周期", prop: "cycle",min:110 }, |
| | | { label: "计费公式定义", prop: "salaryFormula",min:140 }, |
| | | { label: "计费公式定义", prop: "salaryFormulaValue",min:140 }, |
| | | { label: "添加时间", prop: "createTime",min:130 }, |
| | | { label: "添加人", prop: "addPeople",min:110 }, |
| | | ], |
| | |
| | | workTypeNames=workTypeNames+','+item.workTypeNames[i].name |
| | | } |
| | | } |
| | | let salaryFormulaValue='' |
| | | salaryFormulaValue=item.salaryFormula?item.salaryFormula.split(",").join(''):[] |
| | | return { |
| | | ...item, |
| | | workTypeNames:workTypeNames |
| | | workTypeNames:workTypeNames, |
| | | salaryFormulaValue:salaryFormulaValue, |
| | | } |
| | | }) |
| | | this.tableList.tableInfomation = list || [] |
| | |
| | | refresh(){ |
| | | this.getData() |
| | | }, |
| | | // 表格行点击 |
| | | tableRowClick(row) { |
| | | console.log(row, "row") |
| | | }, |
| | | // 编辑 |
| | | handleClick(row) { |
| | | let config=JSON.parse(JSON.stringify(row)); |
| | | this.editRow = { ...config, |
| | | this.editRow = { |
| | | ...config, |
| | | title:'编辑', |
| | | type:'edit', |
| | | id:config.ID, |
| | | workTypeObj:{ |
| | | value:config.workTypeId, |
| | | label:config.workType, |
| | |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | deleteSalaryPlanInfo({ id: row.id }).then((response) => { |
| | | deleteSalaryPlanInfo({ id: row.ID }).then((response) => { |
| | | if (response.code === 200) { |
| | | this.$message.success("删除成功") |
| | | this.getData() |