|
@@ -389,14 +389,16 @@ const company = ref("所属公司");
|
|
|
const data = ref([]);
|
|
|
//新增
|
|
|
const addForm = () => {
|
|
|
+ // console.log(companyID.value);
|
|
|
msgTitle.value = "新增机场信息维护";
|
|
|
flag.value = true;
|
|
|
type.value = "";
|
|
|
- for (const key in tableForm) {
|
|
|
- tableForm[key] = "";
|
|
|
- }
|
|
|
+ // for (const key in tableForm) {
|
|
|
+ // tableForm[key] = "";
|
|
|
+ // }
|
|
|
tableForm.event = 1;
|
|
|
tableForm.companyID = companyID;
|
|
|
+ tableForm.companyName = company;
|
|
|
};
|
|
|
//取消
|
|
|
const resetForm = () => {
|
|
@@ -478,7 +480,6 @@ const btnClick = (row, index, param) => {
|
|
|
};
|
|
|
//点击树事件
|
|
|
const handleNodeClick = (data) => {
|
|
|
- // console.log(data);
|
|
|
company.value = data.companyName;
|
|
|
tableForm.companyName = data.companyName;
|
|
|
companyID.value = data.companyID;
|