4.30 下午第一次提交

main
zz 6 months ago
parent d76edd1edf
commit 0784cb9e36

@ -51,4 +51,12 @@ export * from './apis/sys-wechat-api';
export * from './apis/sys-wechat-pay-api';
export * from './apis/sys-wechat-user-api';
export * from './apis/sys-wx-open-api';
export * from './apis/sys-faultInfomation-api';//zz
export * from './apis/sys-faultBase-api';//zz
export * from './apis/sys-stationBasic-api';//zz
export * from './apis/sys-peak-api';//zz

@ -88,6 +88,7 @@ export const SysDictTypeApiAxiosParamCreator = function (configuration?: Configu
* @throws {RequiredError}
*/
apiSysDictTypeAllDictListGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// console.log('xxx')
const localVarPath = `/api/sysDictType/allDictList`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, 'https://example.com');

@ -297,3 +297,10 @@ export * from './wx-open-id-login-input';
export * from './wx-open-id-output';
export * from './wx-phone-output';
export * from './yes-no-enum';
export * from './update-faultinformation-input';
export * from './sys-faultInfomation';//zz
export * from './faultinfomation';//zz
export * from './faultbasic';//zzadd字段
export * from './delete-faultbase-input';

@ -13,6 +13,7 @@ export const getDictDataList = (params?: any) =>
// 获取所有字典
export const getAllDictList = () =>
console.log('xxx')
request({
url: `${Api.AllDictList}`,
method: 'get',

@ -116,7 +116,7 @@ export const staticRoutes: Array<RouteRecordRaw> = [
meta: {
title: '登录',
},
}
},
/**
*
* `dynamicRoutes`

@ -131,6 +131,7 @@ const handleQuery = async () => {
state.loading = true;
let params = Object.assign(state.queryParams, state.tableParams);
var res = await getAPI(SysLogOpApi).apiSysLogOpPagePost(params);
state.logData = res.data.result?.items ?? [];
state.tableParams.total = res.data.result?.total;
state.loading = false;

@ -61,10 +61,25 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
open: JSON.parse(env.VITE_OPEN),
hmr: true,
proxy: {
'^/[Uu]pload': {
target: env.VITE_API_URL,
changeOrigin: true,
// '^/[Uu]pload': {
// target: env.VITE_API_URL,
// changeOrigin: true,
// },
'^/api/BaseStationInfo(.*)':{
target: 'http://192.168.2.15:5034', //
changeOrigin: true, // 改变源
},
'^/api/Disposition(.*)':{
target: 'http://192.168.2.21:5034', //
changeOrigin: true, // 改变源
},
'/api':{
target: 'http://192.168.2.13:5005', // 登录
changeOrigin: true, // 改变源
},
},
},
build: {

Loading…
Cancel
Save