| | |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="模板名称" align="center" prop="templateName" /> |
| | | <el-table-column label="调整系数" align="center" prop="adjustCoefficient" /> |
| | | <el-table-column label="调整计算方式" align="center" prop="adjustWay" /> |
| | | <el-table-column label="调整系数计算方式" align="center" prop="adjustWay" /> |
| | | <el-table-column label="状态" align="center" prop="status" /> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope"> |
| | |
| | | <!-- 添加或修改考核模板对话框 --> |
| | | <el-dialog :title="title" :visible.sync="open" width="700px" append-to-body> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| | | <el-form-item label="模板名称" prop="adjustCoefficient"> |
| | | <el-input v-model="form.tempalteName" placeholder="请输入模板名称" /> |
| | | <el-form-item label="模板名称" prop="templateName"> |
| | | <el-input v-model="form.templateName" placeholder="请输入模板名称" /> |
| | | </el-form-item> |
| | | <el-form-item label="考核规则"> |
| | | <div class="row-warp"> |
| | |
| | | const id = row.id || this.ids |
| | | getCheckTemplate(id).then(response => { |
| | | this.form = response.data; |
| | | this.tempRuleFormList = this.form.ruleFormList; |
| | | this.open = true; |
| | | this.title = "修改考核模板"; |
| | | }); |
| | |
| | | submitForm() { |
| | | this.$refs["form"].validate(valid => { |
| | | if (valid) { |
| | | this.form.ruleFormList = this.ruleFormList; |
| | | if (this.form.id != null) { |
| | | updateCheckTemplate(this.form).then(response => { |
| | | this.$modal.msgSuccess("修改成功"); |