1
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-06-13 11:43:07 +08:00
parent f94013103e
commit 19896b85e0
1 changed files with 5 additions and 2 deletions

View File

@ -188,7 +188,7 @@
sortable="custom" show-overflow-tooltip>
<template slot-scope="scope">
<el-input-number v-model="scope.row.RandomOrder"
@change="(value) => handleChange(scope.row, value)" :min="1"
@change="(value, old) => handleChange(scope.row, value, old)" :min="1"
style="width: 150px;"></el-input-number>
</template>
</el-table-column>
@ -275,7 +275,7 @@ export default {
},
methods: {
//
async handleChange(row, value) {
async handleChange(row, value, old) {
try {
if (!this.searchData.DoctorUserId || !this.searchData.TrialReadingCriterionId) return false
let data = {
@ -292,8 +292,11 @@ export default {
this.loading = false
if (res.IsSuccess) {
this.getList()
} else {
row.RandomOrder = old
}
} catch (err) {
row.RandomOrder = old
console.log(err)
this.loading = false
}