| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- import { $http } from "./config";
- export default {
- // 登录
- login(data) {
- return $http("/user/web/login", data);
- },
- // 获取首页信息
- getIndexData(data) {
- return $http("/index", data);
- },
- // 新增船东
- addShipOwner(data) {
- return $http("/shipOwner/add", data);
- },
- // 获取船东列表
- getShipOwnerList(data) {
- return $http("/shipOwner/list", data);
- },
- // 获取船东详情
- getShipOwnerDetail(data) {
- return $http("/shipOwner/detail", data);
- },
- // 更新船东信息
- updateShipOwner(data) {
- return $http("/shipOwner/update", data);
- },
- // 新增船舶
- addShip(data) {
- return $http("/ship/add", data);
- },
- // 删除船舶
- deleteShip(data) {
- return $http("/ship/delete", data);
- },
- // 删除船舶证书
- deleteShipCert(data) {
- return $http("/ship/delete/cert", data);
- },
- // 首页船舶详情
- getIndexShipDetail(data) {
- return $http("/index/detail", data);
- },
- // 船舶详情
- getShipDetail(data) {
- return $http("/ship/detail", data);
- },
- // 获取船舶列表
- getShipList(data) {
- return $http("/ship/list", data);
- },
- // 使用mmsi匹配船舶
- searchShip(data) {
- return $http("/ship/search", data);
- },
- // 更新船舶基础信息
- updateShip(data) {
- return $http("/ship/update", data);
- },
- // 更新证书有效期
- updateShipCertValid(data) {
- return $http("/ship/update/cert/valid", data);
- },
- // 获取证书/保险列表
- getCertList(data) {
- return $http("/cert/list", data);
- },
- // 获取初始化数据-新增船舶
- getAddShipCerts(data) {
- return $http("/cert/addShip/type", data);
- },
- // 获取证书及有效期类型-证书列表
- getCertListType(data) {
- return $http("/cert/certList/type", data);
- },
- // 新增安全检查模板
- addSecurityTemplate(data) {
- return $http("/security/template/add", data);
- },
- // 删除安全检查模板
- deleteSecurityTemplate(data) {
- return $http("/security/template/delete", data);
- },
- // 获取安全检查模板详情
- getSecurityTemplateDetail(data) {
- return $http("/security/template/detail", data);
- },
- // 获取安全检查项目下拉
- getSecurityTemplateTypeSelect() {
- return $http("/security/template/item/select");
- },
- // 获取安全检查模板列表
- getSecurityTemplateList(data) {
- return $http("/security/template/list", data);
- },
- // 修改安全检查模板
- updateSecurityTemplate(data) {
- return $http("/security/template/update", data);
- },
- // 获取首页通知数据
- getIndexNotice() {
- return $http("/index/notice", {});
- },
- // 发布船舶安检
- addSecurityCheck(data) {
- return $http("/security/check/add", data);
- },
- // 发起船舶安检-安检模板下拉选择
- getAddTemplateSelect(data) {
- return $http("/security/check/add/template/select", data);
- },
- // 发起船舶安检-根据模板选择船舶
- getAddTemplateShipSelect(data) {
- return $http("/security/check/add/template/ship/select", data);
- },
- // 安检列表
- getSecurityCheckList(data) {
- return $http("/security/check/list", data);
- },
- // 船舶安检详情
- getSecurityCheckDetail(data) {
- return $http("/security/check/ship/detail", data);
- },
- // 审核安检项目
- checkSecurityItem(data) {
- return $http("/security/check/ship/item/check", data);
- },
- // 船舶安检列表
- getSecurityCheckShipList(data) {
- return $http("/security/check/ship/list", data);
- },
- };
|