Commit 5883d920 by 王志慧

style

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