12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- import {request} from "@/utils/request";
- //获取所属驿站
- export function getSiteList(params: any) {
- return request<any>(
- {
- url: "companyService/company/getSiteList",
- method: 'get',
- params: params,
- },
- {
- isNew: true,
- },
- );
- }
- //获取县区
- export function getRegionList(params: any) {
- return request<any>(
- {
- url: "system/area/getCityList",
- method: 'get',
- params: params,
- },
- {
- isNew: true,
- },
- );
- }
- //获取街道
- export function getStreeList(params: any) {
- return request<any>(
- {
- url: "system/area/getAreaList",
- method: 'get',
- params: params,
- },
- {
- isNew: true,
- },
- );
- }
- //提交添加
- export function saveCompanyPost(data:any){
- return request(
- {
- url:'companyService/company/saveAppCompanyPost',
- method:'post',
- data
- }
- )
- }
- //获取企业信息
- export function getCompanyList(params:any){
- return request({
- url:'companyService/company/getList',
- method:'get',
- params
- },{
- isNew:true
- })
- }
- //获取企业岗位信息
- export function getCompanyPostList(params:any){
- return request({
- url:'companyService/post/getList',
- method:'get',
- params
- },{
- isNew:true
- })
- }
- export function getCompanyById(id: string) {
- return request({
- url: 'companyService/company/getCompanyByID',
- method: 'get',
- params: {id}
- }, {
- isNew: true
- })
- }
- export function getCurrentDate() {
- const now = new Date();
- const year = now.getFullYear();
- const month = (now.getMonth() + 1).toString().padStart(2, '0');
- const day = now.getDate().toString().padStart(2, '0');
- const currentDate = `${year}-${month}-${day}`;
- return currentDate;
- }
|