|
@@ -91,19 +91,22 @@
|
|
|
<el-input type="number"
|
|
|
@mousewheel.native.prevent
|
|
|
min="0"
|
|
|
- max="10"
|
|
|
+ max="100"
|
|
|
v-model.trim="teacherRate"
|
|
|
- placeholder="请输入内容"></el-input>
|
|
|
+ placeholder="请输入内容">
|
|
|
+ <template slot="append">%</template></el-input></el-input>
|
|
|
</div>
|
|
|
- <div>
|
|
|
+ <div >
|
|
|
<span style="padding-right: 8px;">学生</span>
|
|
|
<el-input type="number"
|
|
|
@mousewheel.native.prevent
|
|
|
min="0"
|
|
|
- max="10"
|
|
|
+ max="100"
|
|
|
v-model.trim="studentRate"
|
|
|
- placeholder="请输入内容"></el-input>
|
|
|
+ placeholder="请输入内容">
|
|
|
+ <template slot="append">%</template></el-input>
|
|
|
</div>
|
|
|
+
|
|
|
</el-col>
|
|
|
<el-col :span="20"
|
|
|
v-else>
|
|
@@ -113,19 +116,41 @@
|
|
|
type="number"
|
|
|
@mousewheel.native.prevent
|
|
|
min="0"
|
|
|
- max="10"
|
|
|
+ max="100"
|
|
|
v-model.trim="teacherRate"
|
|
|
- placeholder="请输入内容"></el-input>
|
|
|
+ placeholder="请输入内容">
|
|
|
+ <template slot="append">%</template>
|
|
|
+ </el-input>
|
|
|
</div>
|
|
|
- <div>
|
|
|
+ <div >
|
|
|
<span style="padding-right: 8px;">学生</span>
|
|
|
<el-input disabled
|
|
|
type="number"
|
|
|
@mousewheel.native.prevent
|
|
|
min="0"
|
|
|
+ max="100"
|
|
|
+ v-model.trim="studentRate"
|
|
|
+ placeholder="请输入内容">
|
|
|
+ <template slot="append">%</template>
|
|
|
+ </el-input>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row >
|
|
|
+ <el-col :span="6" style="height:40px;line-height:40px;">薪酬比例:</el-col>
|
|
|
+ <el-col :span="18">
|
|
|
+ <div>
|
|
|
+
|
|
|
+ <el-input disabled
|
|
|
+
|
|
|
+ :disabled='true'
|
|
|
+ @mousewheel.native.prevent
|
|
|
+ min="0"
|
|
|
max="10"
|
|
|
v-model.trim="studentRate"
|
|
|
- placeholder="请输入内容"></el-input>
|
|
|
+ placeholder="">
|
|
|
+ <template slot="append">%</template></el-input>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -206,8 +231,8 @@ export default {
|
|
|
this.showRight = true
|
|
|
this.showMessage = result
|
|
|
if (result.complaints.status != 'ING') {
|
|
|
- this.teacherRate = result.complaints.teacherLiabilityRatio
|
|
|
- this.studentRate = result.complaints.studentLiabilityRatio
|
|
|
+ this.teacherRate = result.complaints.teacherLiabilityRatio*10
|
|
|
+ this.studentRate = result.complaints.studentLiabilityRatio*10
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -249,19 +274,20 @@ export default {
|
|
|
let params = {
|
|
|
id: id
|
|
|
}
|
|
|
- let teacherRate = this.teacherRate
|
|
|
- let studentRate = this.studentRate
|
|
|
+ let teacherRate = this.teacherRate / 10
|
|
|
+ let studentRate = this.studentRate / 10
|
|
|
+
|
|
|
if (type == 'submit') {
|
|
|
- if (teacherRate < 0 || teacherRate > 10 || Number(teacherRate) == NaN) {
|
|
|
+ if (teacherRate < 0 || teacherRate > 100 || Number(teacherRate) == NaN) {
|
|
|
this.$message.error('老师责任比输入有误')
|
|
|
return
|
|
|
}
|
|
|
- if (studentRate < 0 || studentRate > 10 || Number(studentRate) == NaN) {
|
|
|
+ if (studentRate < 0 || studentRate > 100 || Number(studentRate) == NaN) {
|
|
|
this.$message.error('学生责任比输入有误')
|
|
|
return
|
|
|
}
|
|
|
if (studentRate + teacherRate != 10) {
|
|
|
- this.$message.error('责任比之和为必须为10')
|
|
|
+ this.$message.error('责任比之和为必须为100')
|
|
|
return
|
|
|
}
|
|
|
params.status = 'PASS'
|
|
@@ -286,14 +312,17 @@ export default {
|
|
|
watch: {
|
|
|
teacherRate (newvalue, oldvalue) {
|
|
|
if (newvalue) {
|
|
|
- this.studentRate = 10 - newvalue
|
|
|
+ this.studentRate = parseInt(100 - newvalue)
|
|
|
}
|
|
|
},
|
|
|
studentRate (newvalue, oldvalue) {
|
|
|
if (newvalue) {
|
|
|
- this.teacherRate = 10 - newvalue
|
|
|
+ this.teacherRate = parseInt(100 - newvalue)
|
|
|
}
|
|
|
}
|
|
|
+ },
|
|
|
+ computed:{
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</script>
|