From 1ded895492d34003c7c12611615fce3a466ea5d2 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期五, 26 四月 2024 14:32:40 +0800 Subject: [PATCH] 薪资方案列表联调字段调试+处计费公式定义数据形式用列表显示+删薪资方案接口联调+保存薪资方案接口联调 --- src/views/employeeSalary/salaryPlan/index.vue | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/views/employeeSalary/salaryPlan/index.vue b/src/views/employeeSalary/salaryPlan/index.vue index 21c5787..ce8fc4a 100644 --- a/src/views/employeeSalary/salaryPlan/index.vue +++ b/src/views/employeeSalary/salaryPlan/index.vue @@ -12,10 +12,9 @@ <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> @@ -54,7 +53,7 @@ { 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 }, ], @@ -117,9 +116,12 @@ 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 || [] @@ -152,16 +154,14 @@ 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, @@ -177,7 +177,7 @@ type: "warning" }) .then(() => { - deleteSalaryPlanInfo({ id: row.id }).then((response) => { + deleteSalaryPlanInfo({ id: row.ID }).then((response) => { if (response.code === 200) { this.$message.success("鍒犻櫎鎴愬姛") this.getData() -- Gitblit v1.8.0