Commit 1f64280c by wangzhihui

修复一轮bug

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