13937891274
2022-08-04 be76681e5865d3e05945570f9c1c709db0a4514f
src/views/contingencyManagement/panManagement/component/abolishLibrary.vue
@@ -123,6 +123,29 @@
    const onCancel = () => {
      closeDialog();
    };
    const onReduction = async (data: any, formEl: FormInstance) => {
      isShowDialog.value = false;
      emergencyPlanApi()
          .addEmergencyPlan(data)
          .then((res) => {
            if (res.data.code == 200) {
              ElMessage({
                showClose: true,
                message: res.data.msg,
                type: 'success',
              });
              emit('myAdd', true);
            } else {
              ElMessage({
                showClose: true,
                message: res.data.msg,
                type: 'error',
              });
              emit('myAdd', true);
            }
            formEl.resetFields();
          });
    }
    // 分页
    const pageIndex = ref();
    const pageSize = ref();
@@ -163,6 +186,7 @@
      // onSubmit,
      total,
      emit,
      onReduction,
    };
  },
});