|
@@ -7,7 +7,7 @@
|
|
|
size="small"
|
|
|
:inline="true"
|
|
|
v-show="showSearch"
|
|
|
- label-width="68px"
|
|
|
+
|
|
|
>
|
|
|
<el-form-item :label="$t('tableManagement.tableCode')" prop="tableNumber">
|
|
|
<el-input
|
|
@@ -152,7 +152,7 @@
|
|
|
width="800px"
|
|
|
append-to-body
|
|
|
>
|
|
|
- <el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
|
|
+ <el-form ref="form" :model="form" :rules="rules" >
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item :label="$t('tableManagement.tableEncoding')" prop="tableNumber">
|
|
@@ -445,14 +445,19 @@ export default {
|
|
|
const confirmMsg = this.$t('tableManagement.confirmDeleteTableCode', { tableCode: code })
|
|
|
this.$modal
|
|
|
.confirm(confirmMsg)
|
|
|
- .then(() => {
|
|
|
- deleteTableInfo(row.id)
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- this.getList()
|
|
|
- this.$modal.msgSuccess(this.$t('tableManagement.deleteSuccess'))
|
|
|
+ .then(async () => {
|
|
|
+ try {
|
|
|
+ await deleteTableInfo(row.id)
|
|
|
+ this.$modal.msgSuccess(this.$t('tableManagement.deleteSuccess'))
|
|
|
+ this.getList()
|
|
|
+ } catch (error) {
|
|
|
+ console.log('error', error)
|
|
|
+ }
|
|
|
+
|
|
|
})
|
|
|
- .catch(() => {})
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|