Commit 5883d920 by 王志慧

style

1 parent 9ca2e748
......@@ -58,7 +58,7 @@
</el-form-item>
</template>
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleDelete(item, scope.index)">删除</el-button>
<el-button @click="handleDelete(item, scope.index)" type="text" size="small">删除</el-button>
</div>
</GLTable>
<div class="add-txt" @click="addLine(item)">
......@@ -329,15 +329,21 @@ export default {
}
],
commissionBonusTable: {
tableOption: true,
tableOption: {
width: '80px'
},
tableColumns: []
},
successRateBonusTable: {
tableOption: true,
tableOption: {
width: '80px'
},
tableColumns: []
},
highCustomerUnitBonusTable: {
tableOption: true,
tableOption: {
width: '80px'
},
tableColumns: []
},
addHtmls: ['minimumWage', 'commissionBonus', 'highCustomerUnitBonus', 'successRateBonus', 'constructionBonus'],
......@@ -357,16 +363,21 @@ export default {
tableColumns: [
{
label: '门店名称',
prop: 'merchantName'
prop: 'merchantName',
width: 300,
line:1
},
{
label: '商户号',
prop: 'merchantId'
prop: 'merchantId',
width: 300,
line:1
},
{
label: '操作',
prop: '',
addHtml: 'customBtn'
addHtml: 'customBtn',
width: 80,
}
]
},
......@@ -455,9 +466,10 @@ export default {
this.changeFormAttr('performanceFormData', 'isHide', showList0, this.editForm.staffType == 0 ? false : true)
this.changeFormAttr('performanceFormData', 'isHide', showList1, this.editForm.staffType == 0 ? true : false)
}
this.clearData('staffType')
},
clearData(type) {
console.log(type)
let form = this.employeePerformanceConfig
let data = {
minimumWage: ['minimumWage'],
......@@ -465,21 +477,21 @@ export default {
successRateBonus: ['successRateBonusList'],
highCustomerUnitBonus: ['highCustomerUnitBonusList'],
constructionBonus: ['upgradeConstructionBonus', 'notUpgradeConstructionBonus'],
performance: ['basicWage', 'minimumWage', 'commissionBonusList', 'successRateBonusList', 'highCustomerUnitBonusList', 'upgradeConstructionBonus', 'notUpgradeConstructionBonus']
}
performance: ['basicWage', 'minimumWage', 'commissionBonusList', 'successRateBonusList', 'highCustomerUnitBonusList', 'upgradeConstructionBonus', 'notUpgradeConstructionBonus'],
staffType:['upgradeConstructionBonus','notUpgradeConstructionBonus','commissionBonusList','successRateBonusList','highCustomerUnitBonusList']
}
data[type] &&
data[type].forEach(item => {
form[item] = ''
})
if (type == 'performance') {
let FlagList = ['highCustomerUnitBonus', 'successRateBonus', 'commissionBonus']
if (type == 'performance'||type=='staffType') {
let FlagList = ['highCustomerUnitBonus', 'successRateBonus', 'commissionBonus','constructionBonus']
FlagList.forEach(item => {
form[item + 'BFlag'] = false
form[item + 'Flag'] = form[item + 'BFlag'] ? 1 : 0
})
}
console.log(form)
},
//table表头文案
initTableColumns(value) {
......@@ -537,7 +549,7 @@ export default {
isEndEdit: true
})
if (line == 2) {
//上一行区间结束值/元置为可编辑
//上一行区间结束值/元 设为可编辑
formData[formData.length - 2].isEndEdit = false
formData[formData.length - 2].endValue = ''
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!