|
@@ -282,7 +282,7 @@ const btnClick = (row, index, param) => {
|
|
|
flag.value = true;
|
|
|
type.value = "del";
|
|
|
// tableForm.event = 3;
|
|
|
- delName.value = index.flightNo;
|
|
|
+ delName.value = index.alarmname;
|
|
|
tableForm.alarmSceneId = index.alarmSceneId;
|
|
|
tableForm.IATACode = index.IATACode;
|
|
|
tableForm.departmentAirport = index.departmentAirport;
|
|
@@ -582,9 +582,15 @@ const resetTable = () => {
|
|
|
//新增-编辑-删除
|
|
|
const generalDataReception = async (data, event) => {
|
|
|
try {
|
|
|
- data = {
|
|
|
- ...data,
|
|
|
- };
|
|
|
+ if (event === 3) {
|
|
|
+ data = {
|
|
|
+ alarmSceneId: data.alarmSceneId
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ data = {
|
|
|
+ ...data,
|
|
|
+ };
|
|
|
+ }
|
|
|
const { code } = await dataToChange(serviceId.value, data, event);
|
|
|
if (code == 0) {
|
|
|
ElMessage.success(`操作成功`);
|