|
@@ -31,12 +31,12 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col>
|
|
|
- <el-form-item label="英文全称" size="default">
|
|
|
+ <el-form-item label="英文全称" size="default" prop="englishFullName" :rules="formRules.isNotNull">
|
|
|
<el-input v-model="tableForm.englishFullName" placeholder="请输入英文全称" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col>
|
|
|
- <el-form-item label="英文简称" size="default">
|
|
|
+ <el-form-item label="英文简称" prop="englishAbbreviation" size="default" :rules="formRules.isNotNull">
|
|
|
<el-input v-model="tableForm.englishAbbreviation" placeholder="请输入英文简称" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -219,12 +219,17 @@ const submitForm = () => {
|
|
|
});
|
|
|
};
|
|
|
const resetTable = () => {
|
|
|
- page.value = 0
|
|
|
- noMore.value = false
|
|
|
- tableData.value = []
|
|
|
-}
|
|
|
+ page.value = 0;
|
|
|
+ noMore.value = false;
|
|
|
+ tableData.value = [];
|
|
|
+};
|
|
|
|
|
|
-const btnAuthMap = [, 'new_airlines_button', 'airline_editor_button', 'airlines_delete_button']
|
|
|
+const btnAuthMap = [
|
|
|
+ ,
|
|
|
+ "new_airlines_button",
|
|
|
+ "airline_editor_button",
|
|
|
+ "airlines_delete_button",
|
|
|
+];
|
|
|
//新增-编辑-删除
|
|
|
const generalDataReception = async (data) => {
|
|
|
try {
|
|
@@ -235,7 +240,7 @@ const generalDataReception = async (data) => {
|
|
|
serviceId: serviceId.value,
|
|
|
dataContent: JSON.stringify(data),
|
|
|
btnAuth: btnAuthMap[data.event],
|
|
|
- })
|
|
|
+ });
|
|
|
if (code == 0) {
|
|
|
ElMessage.success(`操作成功`);
|
|
|
// this.$message.success("操作成功");
|