chore(config): 添加开发和生产环境配置文件及相关忽略规则
- 新增 .env.development 文件,配置开发环境变量 - 新增 .env.production 文件,配置生产环境变量及压缩选项 - 添加 .gitignore 文件,忽略常见临时文件和本地配置 - 新增 .npmrc 文件,配置私有npm仓库及认证信息 - 新增 .prettierrc.json,配置代码格式化规则 - 添加 403 错误页面背景图 svg 文件至 public/img/bg/目录
This commit is contained in:
88
src/api/tool/codesetting.js
Normal file
88
src/api/tool/codesetting.js
Normal file
@@ -0,0 +1,88 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-develop/code-setting/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-develop/code-setting/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-develop/code-setting/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-develop/code-setting/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-develop/code-setting/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const enable = id => {
|
||||
return request({
|
||||
url: '/blade-develop/code-setting/enable',
|
||||
method: 'post',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getEnableDetail = () => {
|
||||
return request({
|
||||
url: '/blade-develop/code-setting/enable-detail',
|
||||
method: 'get',
|
||||
params: {},
|
||||
});
|
||||
};
|
||||
|
||||
export const getTableForm = tableName => {
|
||||
return request({
|
||||
url: '/blade-develop/code-setting/table-form',
|
||||
method: 'get',
|
||||
params: {
|
||||
tableName,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getTablePrototype = (tableName, datasourceId) => {
|
||||
return request({
|
||||
url: '/blade-develop/code-setting/table-prototype',
|
||||
method: 'get',
|
||||
params: {
|
||||
tableName,
|
||||
datasourceId,
|
||||
},
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user