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