shanyunduo.cheng

航班导入页面

......@@ -7,8 +7,8 @@
v-for="item in flightType"
:key="item.id"
:label="item.englishName"
:value="item.englishName"
></el-option>
:value="item.code"
>{{item.englishName}}</el-option>
</el-select>
</el-form-item>
<el-form-item>
......@@ -32,6 +32,7 @@
>
</el-form-item>
</el-form>
<div style="font-size: 12px;font-weight: 700;">提示:<span style="color:#0000FF">以下为所提交的数据或出错信息</span></div>
<el-table
ref="filterTable"
......@@ -122,7 +123,9 @@ export default {
importFlight(file, this.form.type).then((res) => {
if (res.code != 200) {
this.$message.error(res.msg);
this.tableData = res.data;
} else {
this.$message.success('导入成功');
this.tableData = res.data;
}
});
......@@ -152,7 +155,7 @@ export default {
});
}
this.flightType = response.data;
this.form.type = response.data[0].englishName;
this.form.type = response.data[0].code;
});
},
};
......