Commit 1f64280c by wangzhihui

修复一轮bug

1 parent b313b0e7
...@@ -167,7 +167,7 @@ export default { ...@@ -167,7 +167,7 @@ export default {
optionsName: "mentorPhoneList" optionsName: "mentorPhoneList"
}, },
{ {
label: "基本工资", label: "底薪",
name: "basicSalary", name: "basicSalary",
type: "input", type: "input",
width: "136px", width: "136px",
......
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
<div class="info-wrap-change"> <div class="info-wrap-change">
<div class="item-box"> <div class="item-box">
<div class="info-item"> <div class="info-item">
<label>基本工资:</label> <label>底薪:</label>
<el-form-item label="" prop="baseSalary" v-if="whiteFlag"> <el-form-item label="" prop="baseSalary" v-if="whiteFlag">
<el-input <el-input
v-model="detail.baseSalary" v-model="detail.baseSalary"
......
...@@ -106,7 +106,9 @@ export default { ...@@ -106,7 +106,9 @@ export default {
total: 0, total: 0,
currentPage: 1, currentPage: 1,
pageSize: 20, pageSize: 20,
storeSearchForm: {} storeSearchForm: {
staffName: ""
}
} }
}, },
...@@ -131,7 +133,7 @@ export default { ...@@ -131,7 +133,7 @@ export default {
handler(val) { handler(val) {
if (val) { if (val) {
this.selectedData = this.storeSelected this.selectedData = this.storeSelected
console.log(this.selectedData, "---------")
this.recoverySelection() this.recoverySelection()
} }
}, },
...@@ -139,6 +141,11 @@ export default { ...@@ -139,6 +141,11 @@ export default {
} }
}, },
methods: { methods: {
clearData() {
this.storeSearchForm.staffName = ""
this.currentPage = 1
console.log(this.storeSearchForm.staffPhone)
},
checkSelectable(row, index) { checkSelectable(row, index) {
const obj = this.selectingList.find((v) => v.staffPhone == row.staffPhone) const obj = this.selectingList.find((v) => v.staffPhone == row.staffPhone)
if (obj) { if (obj) {
......
...@@ -61,8 +61,8 @@ ...@@ -61,8 +61,8 @@
> >
<el-input <el-input
v-model="item.performanceSalarDeductionRatio" v-model="item.performanceSalarDeductionRatio"
placeholder="扣减比例" placeholder="请输入"
style="width: 120px" style="width: 140px"
@blur="validatePercentage(item)" @blur="validatePercentage(item)"
> >
<template slot="append">%</template> <template slot="append">%</template>
...@@ -142,8 +142,8 @@ ...@@ -142,8 +142,8 @@
> >
<el-input <el-input
v-model="item.performanceSalarDeductionRatio" v-model="item.performanceSalarDeductionRatio"
placeholder="扣减比例" placeholder="请输入"
style="width: 120px" style="width: 140px"
@blur="validatePercentage(item)" @blur="validatePercentage(item)"
> >
<template slot="append">%</template> <template slot="append">%</template>
...@@ -193,7 +193,7 @@ ...@@ -193,7 +193,7 @@
v-if="config.staffList && config.staffList.length > 0" v-if="config.staffList && config.staffList.length > 0"
> >
<el-tag <el-tag
@close="removeStaff(configIndex, staff)" @close="removeStaff(configIndex, index)"
v-for="(staff, index) in config.staffList" v-for="(staff, index) in config.staffList"
:key="configIndex + '-' + index" :key="configIndex + '-' + index"
closable closable
...@@ -336,6 +336,8 @@ export default { ...@@ -336,6 +336,8 @@ export default {
this.configIndex = index this.configIndex = index
this.getSelectingList(index) this.getSelectingList(index)
this.groupVisible = true this.groupVisible = true
this.$refs.selectTagForm.clearData && this.$refs.selectTagForm.clearData()
this.$refs.selectTagForm.getSelectingList && this.$refs.selectTagForm.getSelectingList &&
this.$refs.selectTagForm.getSelectingList() this.$refs.selectTagForm.getSelectingList()
}, },
...@@ -359,21 +361,21 @@ export default { ...@@ -359,21 +361,21 @@ export default {
maxAssessmentValue: "", maxAssessmentValue: "",
assessmentType: 1, assessmentType: 1,
minAssessmentValue: "", minAssessmentValue: "",
id: Date.now() id: Date.now() + 1
}, },
{ {
performanceSalarDeductionRatio: "", performanceSalarDeductionRatio: "",
maxAssessmentValue: "", maxAssessmentValue: "",
assessmentType: 1, assessmentType: 1,
minAssessmentValue: "", minAssessmentValue: "",
id: Date.now() id: Date.now() + 2
}, },
{ {
performanceSalarDeductionRatio: "", performanceSalarDeductionRatio: "",
maxAssessmentValue: "", maxAssessmentValue: "",
assessmentType: 2, assessmentType: 2,
minAssessmentValue: "", minAssessmentValue: "",
id: Date.now() id: Date.now() + 3
} }
], ],
staffList: [] staffList: []
...@@ -386,6 +388,7 @@ export default { ...@@ -386,6 +388,7 @@ export default {
) )
}, },
removeItem(configIndex, id) { removeItem(configIndex, id) {
console.log(configIndex, id)
const index = this.form.configList[configIndex].itemList.findIndex( const index = this.form.configList[configIndex].itemList.findIndex(
(item) => item.id === id (item) => item.id === id
) )
...@@ -486,12 +489,8 @@ export default { ...@@ -486,12 +489,8 @@ export default {
field === "maxAssessmentValue" && field === "maxAssessmentValue" &&
parseInt(item.minAssessmentValue) >= parseInt(value) parseInt(item.minAssessmentValue) >= parseInt(value)
) { ) {
this.$set( this.$set(item, "maxAssessmentValue", "")
item, // this.$message.warning("")
"maxAssessmentValue",
parseInt(item.minAssessmentValue) + 1
)
this.$message.warning("最大值必须大于最小值")
} }
}, },
// 验证百分比输入 // 验证百分比输入
...@@ -675,7 +674,7 @@ export default { ...@@ -675,7 +674,7 @@ export default {
opacity: 1; opacity: 1;
border: 1px solid #d1d1d1; border: 1px solid #d1d1d1;
background: #e8e8e8; background: #e8e8e8;
color: #666666; color: #2a58ad;
font-size: 14px; font-size: 14px;
text-align: center; text-align: center;
line-height: 32px; line-height: 32px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!