Compare commits

..

No commits in common. "24ff1772ddb59fec2091c9dd636fa597d5a0ab51" and "0634df6e333a7f8bc1eab9bdda8e8e6197e6468f" have entirely different histories.

1 changed files with 4 additions and 11 deletions

View File

@ -188,9 +188,8 @@
sortable="custom" show-overflow-tooltip>
<template slot-scope="scope">
<el-input-number v-model="scope.row.RandomOrder"
@change="(value, old) => handleChange(scope.row, value, old)" :min="0" style="width: 150px;"
v-if="scope.row.ReadingTaskState !== 1"></el-input-number>
<span v-else>{{ scope.row.RandomOrder }}</span>
@change="(value, old) => handleChange(scope.row, value, old)" :min="1" style="width: 150px;"
:disabled="scope.row.ReadingTaskState === 1"></el-input-number>
</template>
</el-table-column>
</el-table>
@ -279,7 +278,6 @@ export default {
async handleChange(row, value, old) {
try {
if (!this.searchData.DoctorUserId || !this.searchData.TrialReadingCriterionId) return false
if (!value) throw this.$t('trials:readOrder:message:min1')
let data = {
TrialId: this.$route.query.trialId,
TrialReadingCriterionId: this.searchData.TrialReadingCriterionId,
@ -300,8 +298,6 @@ export default {
} catch (err) {
row.RandomOrder = old
console.log(err)
this.$message.warning(err)
this.getList()
this.loading = false
}
},
@ -368,11 +364,8 @@ export default {
getReadingTaskList(this.searchData)
.then((res) => {
this.loading = false
this.list = []
this.$nextTick(() => {
this.list = res.Result.CurrentPageData
this.total = res.Result.TotalCount
})
this.list = res.Result.CurrentPageData
this.total = res.Result.TotalCount
})
.catch(() => {
this.loading = false