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> 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) => handleChange(scope.row, value)" :min="1" @change="(value, old) => handleChange(scope.row, value, old)" :min="1"
style="width: 150px;"></el-input-number> style="width: 150px;"></el-input-number>
</template> </template>
</el-table-column> </el-table-column>
@ -275,7 +275,7 @@ export default {
}, },
methods: { methods: {
// //
async handleChange(row, value) { 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
let data = { let data = {
@ -292,8 +292,11 @@ export default {
this.loading = false this.loading = false
if (res.IsSuccess) { if (res.IsSuccess) {
this.getList() this.getList()
} else {
row.RandomOrder = old
} }
} catch (err) { } catch (err) {
row.RandomOrder = old
console.log(err) console.log(err)
this.loading = false this.loading = false
} }