1
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
f94013103e
commit
19896b85e0
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue