提交修改

This commit is contained in:
quyixiao 2020-09-01 15:54:41 +08:00
parent 09c57c310d
commit f054604581
2 changed files with 22 additions and 26 deletions

View File

@ -12,11 +12,11 @@
<div id="keyResultEditorElem" class="editor"></div> <div id="keyResultEditorElem" class="editor"></div>
</el-form-item> </el-form-item>
<el-form-item label="3.5-考核标准" v-show="auth.keyResult35 >= 1 " prop="keyResult35"> <el-form-item label="3.5-考核标准" v-show="auth.keyResult35 >= 1 && this.type ===1 " prop="keyResult35">
<div id="keyResultEditorElem3_5" class="editor"></div> <div id="keyResultEditorElem3_5" class="editor"></div>
</el-form-item> </el-form-item>
<el-form-item label="3.7-考核标准" v-show="auth.keyResult37 >= 1" prop="keyResult37"> <el-form-item label="3.7-考核标准" v-show="auth.keyResult37 >= 1 && this.type ===1" prop="keyResult37">
<div id="keyResultEditorElem3_7" class="editor"></div> <div id="keyResultEditorElem3_7" class="editor"></div>
</el-form-item> </el-form-item>
@ -29,7 +29,7 @@
</el-form-item> </el-form-item>
<el-form-item label="绩效排序" v-show="auth.priority >= 1" prop="priority"> <el-form-item label="绩效排序" v-show="auth.priority >= 1" prop="priority">
<el-input :disabled="auth.priority < 2 " v-model="dataForm.priority" placeholder="优先级别,数字越大,越在排列在表前面"></el-input> <el-input :disabled="auth.priority < 2 " v-model="dataForm.priority" placeholder="数字越大,越在排列在表前面"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="上级评分" v-show="auth.superScore >= 1"> <el-form-item label="上级评分" v-show="auth.superScore >= 1">
@ -155,7 +155,7 @@ export default {
superScore: '', superScore: '',
acquireScore: '', acquireScore: '',
scoreComment: '', scoreComment: '',
priority: 0 priority: ''
}, },
dataRule: { dataRule: {
scoreComment: [ scoreComment: [
@ -163,9 +163,6 @@ export default {
], ],
checkWeight: [ checkWeight: [
{validator: validNum, required: true, trigger: 'blur'} {validator: validNum, required: true, trigger: 'blur'}
],
priority: [
{validator: validPriority, required: true, trigger: 'blur'}
] ]
} }
} }
@ -211,11 +208,12 @@ export default {
if (this.scoreCommentEditor !== null) { if (this.scoreCommentEditor !== null) {
this.scoreCommentEditor.txt.html('') this.scoreCommentEditor.txt.html('')
} }
if (this.keyResultEditorElem3_5 !== null) { if (this.keyResultEditorElem3_5 !== null) {
this.keyResultEditorElem3_5.txt.html('') this.keyResultEditorElem3_5.txt.html('')
} }
if (this.keyResultEditorElem3_7 !== null) { if (this.keyResultEditorElem3_7 !== null) {
this.keyResultEditorElem3_7.txt.html('') this.keyResultEditorElem3_7.txt.html('')
} }
this.visible = true this.visible = true
this.$nextTick(async () => { this.$nextTick(async () => {
@ -289,10 +287,10 @@ export default {
this.scoreCommentEditor.txt.html(this.dataForm.scoreComment || '') this.scoreCommentEditor.txt.html(this.dataForm.scoreComment || '')
} }
if (this.keyResultEditorElem3_5 !== null) { if (this.keyResultEditorElem3_5 !== null) {
this.keyResultEditorElem3_5.txt.html(this.dataForm.keyResult35 || '') this.keyResultEditorElem3_5.txt.html(this.dataForm.keyResult35 || '')
} }
if (this.keyResultEditorElem3_7 !== null) { if (this.keyResultEditorElem3_7 !== null) {
this.keyResultEditorElem3_7.txt.html(this.dataForm.keyResult37 || '') this.keyResultEditorElem3_7.txt.html(this.dataForm.keyResult37 || '')
} }
} }
} }
@ -371,18 +369,15 @@ export default {
} }
} }
if (this.auth.priority === 2) { if (this.auth.priority === 2) {
if (this.dataForm.priority !== 0) { if (!this.stringIsNull(this.dataForm.priority) && !/^(0|[1-9][0-9]*)$/.test(this.dataForm.priority)) {
if (!this.dataForm.priority) {
this.alertInfo('优先级不能为空')
return
}
}
if (!/^(0|[1-9][0-9]*)$/.test(this.dataForm.priority)) {
this.alertInfo('请输入大于或等于0的整数') this.alertInfo('请输入大于或等于0的整数')
return return
} }
} }
let priority1 = this.dataForm.priority
if (this.stringIsNull(this.dataForm.priority)) {
priority1 = 0
}
recorddetailAddOrUpdate({ recorddetailAddOrUpdate({
'id': this.dataForm.id || undefined, 'id': this.dataForm.id || undefined,
'type': this.type, 'type': this.type,
@ -397,7 +392,7 @@ export default {
'scoreComment': Base64.encode(this.scoreCommentEditor.txt.html()), 'scoreComment': Base64.encode(this.scoreCommentEditor.txt.html()),
'recordId': this.recordResultId, 'recordId': this.recordResultId,
'recordType': this.recordType, 'recordType': this.recordType,
'priority': this.dataForm.priority 'priority': priority1
}).then(res => { }).then(res => {
if (res && res.code === 0) { if (res && res.code === 0) {
this.$message({ this.$message({

View File

@ -17,6 +17,7 @@
</el-step> </el-step>
</el-steps> </el-steps>
</div> </div>
<div class="titleCenter"> <div class="titleCenter">
<span>考核月份<b>{{checkMonth}}</b></span> <span>考核月份<b>{{checkMonth}}</b></span>
<span>员工姓名<b>{{ staffName }}</b></span> <span>员工姓名<b>{{ staffName }}</b></span>
@ -72,7 +73,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="关键结果" prop="keyResult" align="left" width="350"> <el-table-column label="关键结果" prop="keyResult" align="left" width="280">
<template slot-scope="scope" > <template slot-scope="scope" >
<div v-html="scope.row.keyResult" class="rich"> <div v-html="scope.row.keyResult" class="rich">
</div> </div>
@ -80,7 +81,7 @@
</el-table-column> </el-table-column>
<el-table-column label="3.5-考核标准" prop="keyResult35" align="left" width="350"> <el-table-column label="3.5-考核标准" prop="keyResult35" align="left" width="280">
<template slot-scope="scope" > <template slot-scope="scope" >
<div v-html="scope.row.keyResult35" class="rich"> <div v-html="scope.row.keyResult35" class="rich">
</div> </div>
@ -88,7 +89,7 @@
</el-table-column> </el-table-column>
<el-table-column label="3.7-考核标准" prop="keyResult37" align="left" width="350"> <el-table-column label="3.7-考核标准" prop="keyResult37" align="left" width="280">
<template slot-scope="scope" > <template slot-scope="scope" >
<div v-html="scope.row.keyResult37" class="rich"> <div v-html="scope.row.keyResult37" class="rich">
</div> </div>
@ -104,13 +105,13 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="考核结果(员工填写)" prop="checkResult" width="350" align="left"> <el-table-column label="考核结果(员工填写)" prop="checkResult" width="280" align="left">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-html="scope.row.checkResult" class="rich"> <div v-html="scope.row.checkResult" class="rich">
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="直属上级评分(100%" prop="superScore" align="left" width="160"></el-table-column> <el-table-column label="直属上级评分(100%" prop="superScore" align="left" width="120"></el-table-column>
<el-table-column label="得分" prop="acquireScore" align="center"> <el-table-column label="得分" prop="acquireScore" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="conatnt-name"> <div class="conatnt-name">
@ -118,7 +119,7 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="评分说明(直属上级填写)" width="300" prop="scoreComment"> <el-table-column label="评分说明(直属上级填写)" width="280" prop="scoreComment">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-html="scope.row.scoreComment" class="rich"> <div v-html="scope.row.scoreComment" class="rich">
</div> </div>