Commit 88ef0263 by 王志慧

fixed

1 parent 0b450c52
...@@ -68,11 +68,11 @@ ...@@ -68,11 +68,11 @@
</template> </template>
<template v-else-if="item == 'constructionBonus'"> <template v-else-if="item == 'constructionBonus'">
<div class="constructionBonus-wrap"> <div class="constructionBonus-wrap">
<el-form ref="form" size="small" :model="employeePerformanceConfig" label-width="154px" :inline="true"> <el-form ref="editFormRef2" size="small" :rules="editRule" :model="employeePerformanceConfig" label-width="160px" :inline="true">
<el-form-item label="升级订单施工奖励/元:"> <el-form-item label="升级订单施工奖励/元:" prop="upgradeConstructionBonus">
<el-input v-model="employeePerformanceConfig.upgradeConstructionBonus" placeholder="请输入"></el-input> <el-input v-model="employeePerformanceConfig.upgradeConstructionBonus" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="战败订单施工奖励/元:"> <el-form-item label="战败订单施工奖励/元:" prop="notUpgradeConstructionBonus">
<el-input v-model="employeePerformanceConfig.notUpgradeConstructionBonus" placeholder="请输入"></el-input> <el-input v-model="employeePerformanceConfig.notUpgradeConstructionBonus" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -668,9 +668,11 @@ export default { ...@@ -668,9 +668,11 @@ export default {
let params = {} let params = {}
let form1 = this.$refs.editFormRef.$refs[this.editChildRef].validate() let form1 = this.$refs.editFormRef.$refs[this.editChildRef].validate()
let form2 = this.$refs.editFormRef1.$refs[this.editChildRef].validate() let form2 = this.$refs.editFormRef1.$refs[this.editChildRef].validate()
Promise.all([form1, form2]) console.log( this.$refs.editFormRef2)
let form3 = this.$refs.editFormRef2&&this.$refs.editFormRef2[0].validate()
Promise.all([form1, form2,form3])
.then(res => { .then(res => {
if (res.length == 2) { if (res.length>=2) {
params = { params = {
...this.editForm ...this.editForm
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!