business.js 1.28 KB
import request from '@/utils/request'
import SERVER from './config'

class business {
  // 宗海空间属性
  async getZhK105ById (bsmSjsb) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/ZhK105/detail',
      method: 'get',
      params: {
        bsmSjsb: bsmSjsb
      }
    })
  }
  //用海状况
  async getKtfZhYhzkById (bsmSjsb) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/KtfZhYhzk/detail',
      method: 'get',
      params: {
        bsmSjsb: bsmSjsb
      }
    })
  }
  // 宗海空间属性-修改
  async updateZhK105 (data) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/ZhK105/edit',
      method: 'post',
      data
    })
  }
  //修改用海状况
  async updateKtfZhYhzk (data) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/KtfZhYhzk/edit',
      method: 'post',
      data
    })
  }
  // 非结构化文档
  async getFjF100ById (bsmSjsb) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/FjF100/detail',
      method: 'get',
      params: {
        bsmSjsb: bsmSjsb
      }
    })
  }

  //非结构化文档-修改
  async updateFjF100 (data) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/FjF100/edit',
      method: 'post',
      data
    })
  }

  
}
export default new business()