阅片顺序手动修改添加限制条件
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
parent
108d01f81c
commit
48633a1ed4
|
@ -188,8 +188,9 @@
|
|||
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="1" style="width: 150px;"
|
||||
:disabled="scope.row.ReadingTaskState === 1"></el-input-number>
|
||||
@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>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
@ -278,6 +279,7 @@ 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,
|
||||
|
@ -298,6 +300,8 @@ export default {
|
|||
} catch (err) {
|
||||
row.RandomOrder = old
|
||||
console.log(err)
|
||||
this.$message.warning(err)
|
||||
this.getList()
|
||||
this.loading = false
|
||||
}
|
||||
},
|
||||
|
@ -364,8 +368,11 @@ export default {
|
|||
getReadingTaskList(this.searchData)
|
||||
.then((res) => {
|
||||
this.loading = false
|
||||
this.list = res.Result.CurrentPageData
|
||||
this.total = res.Result.TotalCount
|
||||
this.list = []
|
||||
this.$nextTick(() => {
|
||||
this.list = res.Result.CurrentPageData
|
||||
this.total = res.Result.TotalCount
|
||||
})
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false
|
||||
|
|
Loading…
Reference in New Issue