|
@ -119,16 +119,17 @@ |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
label="评分(百分制)" |
|
|
label="评分(百分制)" |
|
|
min-width="150"> |
|
|
min-width="120"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<div v-if="scope.row.isEdit"> |
|
|
<div v-if="scope.row.isEdit"> |
|
|
<el-input class="item_width_2" |
|
|
<!-- <el-input class="item_width_2" |
|
|
v-model.trim="scope.row.score"></el-input> |
|
|
v-model.number="scope.row.score" |
|
|
<!-- <el-input-number class="item_width_1" |
|
|
onkeyup="this.value = this.value.replace(/[^\d.]/g,'');"></el-input>--> |
|
|
|
|
|
<el-input-number class="item_width_1" |
|
|
v-model="scope.row.score" |
|
|
v-model="scope.row.score" |
|
|
:precision="1" |
|
|
:precision="1" |
|
|
:step="0.1" |
|
|
:controls="false" |
|
|
:max="100"></el-input-number> --> |
|
|
:max="100"></el-input-number> |
|
|
</div> |
|
|
</div> |
|
|
<span v-else>{{scope.row.score}}</span> |
|
|
<span v-else>{{scope.row.score}}</span> |
|
|
</template> |
|
|
</template> |
|
@ -340,7 +341,7 @@ export default { |
|
|
timeShow: '', |
|
|
timeShow: '', |
|
|
status: '', |
|
|
status: '', |
|
|
unitId: '', |
|
|
unitId: '', |
|
|
score: null |
|
|
score: undefined |
|
|
} |
|
|
} |
|
|
this.tableData.push(obj) |
|
|
this.tableData.push(obj) |
|
|
}, |
|
|
}, |
|
@ -430,6 +431,9 @@ export default { |
|
|
if (row.score !== 0 && !row.score) { |
|
|
if (row.score !== 0 && !row.score) { |
|
|
message = message + '评分不能为空;' |
|
|
message = message + '评分不能为空;' |
|
|
} |
|
|
} |
|
|
|
|
|
if (row.score > 100) { |
|
|
|
|
|
message = message + '评分不能超过100分;' |
|
|
|
|
|
} |
|
|
return message |
|
|
return message |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|