配置满勤奖的获取接口联调,数据处理+保存配置满勤的接口联调
| | |
| | | :model="form" |
| | | label-width="150px" |
| | | label-position="right"> |
| | | <el-form-item v-if="constType==2" label="缺勤超过" label-width="100px" prop="cycle"> |
| | | <el-form-item v-if="constType==10" label="缺勤超过" label-width="100px" prop="absenteeism"> |
| | | |
| | | <el-input |
| | | style="width:calc(100% - 150px)" |
| | | class="margin_left_5px margin_right_5px" |
| | | v-model="form.cycle" |
| | | v-model="form.absenteeism" |
| | | placeholder="请输入"></el-input> |
| | | 天则满勤奖全额扣除 |
| | | </el-form-item> |
| | |
| | | return { |
| | | islook: false, |
| | | form: { |
| | | cycle:1, |
| | | absenteeism:1, |
| | | number:'', |
| | | }, |
| | | rules: { |
| | | cycle: [ |
| | | absenteeism: [ |
| | | { |
| | | required: true, |
| | | message: "请输入", |
| | |
| | | this.$nextTick(() => { |
| | | this.$refs["form"].resetFields(); |
| | | }); |
| | | this.form.cycle=this.editRow.cycle |
| | | this.form.absenteeism=this.editRow.absenteeism |
| | | this.form.number=null |
| | | } |
| | | }, |
| | | 'editRow.absenteeism': function () { |
| | | this.form.absenteeism=this.editRow.absenteeism |
| | | } |
| | | }, |
| | | methods: { |
| | | validatorNum(rule, value, callback) { |