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>
|
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue