This commit is contained in:
张成
2025-10-08 15:10:33 +08:00
commit 2e1cd65b07
161 changed files with 19936 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import http from "@/utils/http";
class FileServe {
async upload_oos_img(row) {
let res = await http.postFormData("/sys_file/upload_oos_img", row);
return res;
}
async upload_Img(row) {
let res = await http.postFormData("/file/upload_Img", row);
return res;
}
}
const fileServe = new FileServe();
export default fileServe;

View File

@@ -0,0 +1,51 @@
import http from '@/utils/http';
/**
* 热门城市二维码配置相关API
*/
// 获取配置列表
const getHotCityQrConfigList = (params) => {
return http.get('/wch_hot_city_qr_config/list', { params });
};
// 获取所有配置
const getAllHotCityQrConfig = () => {
return http.get('/wch_hot_city_qr_config/all');
};
// 获取配置详情
const getHotCityQrConfigDetail = (id) => {
return http.get(`/wch_hot_city_qr_config/detail/${id}`);
};
// 创建配置
const createHotCityQrConfig = (data) => {
return http.post('/wch_hot_city_qr_config/create', data);
};
// 更新配置
const updateHotCityQrConfig = (id, data) => {
return http.post(`/wch_hot_city_qr_config/update/${id}`, data);
};
// 删除配置
const deleteHotCityQrConfig = (id) => {
return http.post(`/wch_hot_city_qr_config/delete/${id}`);
};
// 批量删除配置
const batchDeleteHotCityQrConfig = (ids) => {
return http.post('/wch_hot_city_qr_config/batch_delete', { ids });
};
export default {
getHotCityQrConfigList,
getAllHotCityQrConfig,
getHotCityQrConfigDetail,
createHotCityQrConfig,
updateHotCityQrConfig,
deleteHotCityQrConfig,
batchDeleteHotCityQrConfig
};

17
src/api/system/index.js Normal file
View File

@@ -0,0 +1,17 @@
// 系统 API 统一导出
export { default as fileServe } from './fileServe'
export { default as hotCityQrConfigServer } from './hot_city_qr_config_server'
export { default as plaAccountServer } from './pla_account_server'
export { default as rolePermissionServer } from './rolePermissionServer'
export { default as roleServer } from './roleServer'
export { default as shpProfitServer } from './shpProfitServer'
export { default as specificationServer } from './specificationServer'
export { default as sysAddressServer } from './sysAddressServer'
export { default as sysModuleServer } from './sysModuleServer'
export { default as sysLogServe } from './sys_log_serve'
export { default as systemTypeServer } from './systemType_server'
export { default as tableServer } from './tableServer'
export { default as userServer } from './userServer'
export { default as wchProfessionsServer } from './wch_professions_server'

View File

@@ -0,0 +1,38 @@
import http from '@/utils/http'
export default {
// 获取所有平台账户
all(param) {
return http.get('/pla_account/all', param)
},
// 获取平台账户详情
detail(param) {
return http.get('/pla_account/detail', param)
},
// 分页查询平台账户
page(param) {
return http.post('/pla_account/page', param)
},
// 新增平台账户
add(param) {
return http.post('/pla_account/add', param)
},
// 编辑平台账户
edit(param) {
return http.post('/pla_account/edit', param)
},
// 删除平台账户
del(param) {
return http.post('/pla_account/del', param)
},
// 导出平台账户数据
exportCsv(param) {
return http.post('/pla_account/export', param)
}
}

View File

@@ -0,0 +1,30 @@
import http from '@/utils/http'
class RolePermissionServer {
async getRoles(callback) {
let res = await http.get('/SysRolePermission/Query', {})
return res
}
async getRole(row) {
let res = await http.get('/SysRolePermission/QueryByRoleId', row)
return res
}
async add(row) {
let res = await http.post('/SysRolePermission/add', row)
return res
}
async edit(row) {
let res = await http.post('/SysRolePermission/edit', row)
return res
}
async del(row) {
let res = await http.post('/SysRolePermission/del', row)
return res
}
}
const rolePermissionServer = new RolePermissionServer()
export default rolePermissionServer

View File

@@ -0,0 +1,26 @@
import http from "@/utils/http";
class RoleServer {
async list() {
let res = await http.get("/sys_role/index", {});
return res;
}
async add(row) {
let res = await http.post("/sys_role/add", row);
return res;
}
async edit(row) {
let res = await http.post("/sys_role/edit", row);
return res;
}
async del(row) {
let res = await http.post("/sys_role/del", row);
return res;
}
}
const roleServer = new RoleServer();
export default roleServer;

View File

@@ -0,0 +1,15 @@
import http from '@/utils/http'
class ShpProfitServer {
async report(param) {
let res = await http.post('/shpProfit/report', param)
return res
}
async list(param) {
let res = await http.post('/shpProfit/list', param)
return res
}
}
const shpProfitServer = new ShpProfitServer()
export default shpProfitServer

View File

@@ -0,0 +1,25 @@
import http from '@/utils/http'
class SpecificationServer {
async list() {
let res = await http.post('/specification/list', {})
return res
}
async add(row) {
let res = await http.post('/specification/add', row)
return res
}
async edit(row) {
let res = await http.post('/specification/edit', row)
return res
}
async del(row) {
let res = await http.post('/specification/del', row)
return res
}
}
const specificationServer = new SpecificationServer()
export default specificationServer

View File

@@ -0,0 +1,10 @@
import http from "@/utils/http";
class SysAddress {
async index(param) {
let res = await http.get("/sys_address/index", param);
return res;
}
}
const sysAddress = new SysAddress();
export default sysAddress;

View File

@@ -0,0 +1,30 @@
import http from "@/utils/http";
class SysModuleServer {
async all() {
let res = await http.get("/sys_menu/all", {});
return res;
}
async list(row) {
let res = await http.get("/sys_menu/all", row);
return res;
}
async add(row) {
let res = await http.post("/sys_menu/add", row);
return res;
}
async edit(row) {
let res = await http.post("/sys_menu/edit", row);
return res;
}
async del(row) {
let res = await http.post("/sys_menu/del", row);
return res;
}
}
const sysModuleServer = new SysModuleServer();
export default sysModuleServer;

View File

@@ -0,0 +1,30 @@
import http from "@/utils/http";
class SysLogServe {
async all(param) {
let res = await http.get("/sys_log/all", param);
return res;
}
async detail(param) {
let res = await http.get("/sys_log/detail", param);
return res;
}
async delete(param) {
let res = await http.get("/sys_log/delete", param);
return res;
}
async delete_all(param) {
let res = await http.get("/sys_log/delete_all", param);
return res;
}
async operates(param) {
let res = await http.get("/sys_log/operates", param);
return res;
}
}
const sys_log_serve = new SysLogServe();
export default sys_log_serve;

View File

@@ -0,0 +1,38 @@
import http from '@/utils/http';
class systemTypeClServer {
async all(param) {
let res= await http.get('/sys_project_type/all', param);
return res;
}
async page(row) {
let res= await http.post('/sys_project_type/page', row);
return res;
}
async exportCsv(row) {
let res = http.fileExport("/sys_project_type/export", row);
return res;
}
async add(row) {
let res= await http.post('/sys_project_type/add', row);
return res;
}
async edit(row) {
let res= await http.post('/sys_project_type/edit', row);
return res;
}
async del(row) {
let res= await http.post('/sys_project_type/del', row);
return res;
}
}
const systemTypeServer = new systemTypeClServer();
export default systemTypeServer;

View File

@@ -0,0 +1,31 @@
import http from '@/utils/http'
class TableServer {
async getAll(callback) {
return await http.get('/table/index', {})
}
async add(row, callback) {
return await http.post('/table/add', row)
}
async edit(row, callback) {
return await http.post('/table/edit', row, function(res) {
callback && callback(res)
})
}
async del(row, callback) {
return await http.post('/table/del', row)
}
async autoApi(id) {
return await http.get('/template/api', { id: id })
}
async autoDb(id) {
return await http.get('/template/autoDb', { id: id })
}
}
const tableServer = new TableServer()
export default tableServer

View File

@@ -0,0 +1,40 @@
import http from "@/utils/http";
class UserServer {
async login(row) {
let res = await http.post("/sys_user/login", row);
return res;
}
async all() {
let res = await http.get("/sys_user/index", {});
return res;
}
async exportCsv(row) {
let res = http.fileExport("/sys_user/export", row);
return res;
}
async authorityMenus() {
let res = await http.post("/sys_user/authorityMenus", {});
return res;
}
async add(row) {
let res = await http.post("/sys_user/add", row);
return res;
}
async edit(row) {
let res = await http.post("/sys_user/edit", row);
return res;
}
async del(row) {
let res = await http.post("/sys_user/del", row);
return res;
}
}
const userServer = new UserServer();
export default userServer;

View File

@@ -0,0 +1,33 @@
import http from '@/utils/http'
export default {
// 获取职业列表
page: (params) => {
return http.post('/wch_professions/page', params)
},
// 获取所有职业
all: (params) => {
return http.post('/wch_professions/all', params)
},
// 新增职业
add: (params) => {
return http.post('/wch_professions/add', params)
},
// 更新职业
edit: (params) => {
return http.post('/wch_professions/edit', params)
},
// 删除职业
del: (params) => {
return http.post('/wch_professions/del', params)
},
// 导出职业数据
exportCsv: (params) => {
return http.post('/wch_professions/exportCsv', params)
}
}

View File

@@ -0,0 +1,30 @@
import http from "@/utils/http";
class FormFieldServer {
async all(param) {
let res = await http.get("/sys_form_field/all", param);
return res;
}
async page(row) {
let res = await http.post("/sys_form_field/page", row);
return res;
}
async add(row) {
let res = await http.post("/sys_form_field/add", row);
return res;
}
async edit(row) {
let res = await http.post("/sys_form_field/edit", row);
return res;
}
async del(row) {
let res = await http.post("/sys_form_field/del", row);
return res;
}
}
const formFieldServer = new FormFieldServer();
export default formFieldServer;

View File

@@ -0,0 +1,35 @@
import http from "@/utils/http";
class FormServer {
async all(param) {
let res = await http.get("/sys_form/all", param);
return res;
}
async page(row) {
let res = await http.post("/sys_form/page", row);
return res;
}
async generate(row) {
let res = await http.post("/sys_form/generate", row);
return res;
}
async add(row) {
let res = await http.post("/sys_form/add", row);
return res;
}
async edit(row) {
let res = await http.post("/sys_form/edit", row);
return res;
}
async del(row) {
let res = await http.post("/sys_form/del", row);
return res;
}
}
const formServer = new FormServer();
export default formServer;

View File

@@ -0,0 +1,10 @@
// 高级系统 API 统一导出
export { default as formFieldServer } from './formFieldServer'
export { default as formServer } from './formServer'
export { default as menuServer } from './menuServer'
export { default as modelFieldServer } from './modelFieldServer'
export { default as modelServer } from './modelServer'
export { default as paramSetupServer } from './paramSetupServer'
export { default as sysControlTypeServer } from './sysControlTypeServer'

View File

@@ -0,0 +1,49 @@
import http from "@/utils/http";
class MenuServer {
async list(row) {
let res = await http.get("/sys_menu/index", row);
return res;
}
async generate(row) {
let res = await http.post("/sys_menu/generate", row);
return res;
}
async add(row) {
let res = await http.post("/sys_menu/add", row);
return res;
}
async edit(row) {
let res = await http.post("/sys_menu/edit", row);
return res;
}
async del(row) {
let res = await http.post("/sys_menu/del", row);
return res;
}
async generate(row) {
let res = await http.post("/form/generate", row);
return res;
}
async generateModel(row) {
let res = await http.post("/model/generate", row);
return res;
}
async modelAll(row) {
let res = await http.post("/model/all", row);
return res;
}
async modelInterface(row) {
let res = await http.post("/model/interface", row);
return res;
}
}
const menuServer = new MenuServer();
export default menuServer;

View File

@@ -0,0 +1,32 @@
import http from "@/utils/http";
class ModelFieldServer {
async all(row) {
let res = await http.get("/sys_model_field/all", row);
return res;
}
async allByKey(row) {
let res = await http.get("/sys_model_field/allByKey", row, {
hideLoad: true
});
return res;
}
async add(row) {
let res = await http.post("/sys_model_field/add", row);
return res;
}
async edit(row) {
let res = await http.post("/sys_model_field/edit", row);
return res;
}
async del(row) {
let res = await http.post("/sys_model_field/del", row);
return res;
}
}
const modelFieldServer = new ModelFieldServer();
export default modelFieldServer;

View File

@@ -0,0 +1,40 @@
import http from "@/utils/http";
class ModelServer {
async interface(row) {
let res = await http.post("/sys_model/interface", row);
return res;
}
async all() {
let res = await http.get("/sys_model/all", {});
return res;
}
async detail(row) {
let res = await http.get("/sys_model/detail", row);
return res;
}
async regenerate(row) {
let res = await http.post("/sys_model/regenerate", row);
return res;
}
async add(row) {
let res = await http.post("/sys_model/add", row);
return res;
}
async edit(row) {
let res = await http.post("/sys_model/edit", row);
return res;
}
async del(row) {
let res = await http.post("/sys_model/del", row);
return res;
}
}
const modelServer = new ModelServer();
export default modelServer;

View File

@@ -0,0 +1,29 @@
import http from "@/utils/http";
class ParamSetupServer {
async getAll() {
return await http.get("/sys_parameter/index", {});
}
async getOne(key) {
return await http.get("/sys_parameter/key", { key });
}
async add(row) {
return await http.post("/sys_parameter/add", row);
}
async edit(row) {
return await http.post("/sys_parameter/edit", row);
}
async setSysConfig(row) {
return await http.post("/sys_parameter/setSysConfig", row);
}
async del(row) {
return await http.post("/sys_parameter/del", row);
}
}
const paramSetupServer = new ParamSetupServer();
export default paramSetupServer;

View File

@@ -0,0 +1,29 @@
import http from "@/utils/http";
class SysControlTypeServer {
async all(param) {
let res = await http.get("/sys_control_type/all", param);
return res;
}
async page(row) {
let res = await http.post("/sys_control_type/page", row);
return res;
}
async add(param) {
let res = await http.post("/sys_control_type/add", param);
return res;
}
async edit(param) {
let res = await http.post("/sys_control_type/edit", param);
return res;
}
async del(param) {
let res = await http.post("/sys_control_type/del", param);
return res;
}
}
const sysControlTypeServer = new SysControlTypeServer();
export default sysControlTypeServer;