giime 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +38 -38
- package/es/api/productCenter/categoryManage/getCompanyCategoryTree.d.ts +18 -0
- package/es/api/productCenter/categoryManage/getCompanyCategoryTree.mjs +8 -0
- package/es/api/productCenter/categoryManage/getCompanyCategoryTree.mjs.map +1 -0
- package/es/api/productCenter/categoryManage/index.d.ts +2 -0
- package/es/api/productCenter/categoryManage/index.mjs +3 -0
- package/es/api/productCenter/categoryManage/index.mjs.map +1 -0
- package/es/api/productCenter/categoryManage/useGetCompanyCategoryTree.d.ts +24 -0
- package/es/api/productCenter/categoryManage/useGetCompanyCategoryTree.mjs +18 -0
- package/es/api/productCenter/categoryManage/useGetCompanyCategoryTree.mjs.map +1 -0
- package/es/api/productCenter/index.d.ts +1 -0
- package/es/api/productCenter/index.mjs +4 -0
- package/es/api/productCenter/index.mjs.map +1 -0
- package/es/api/productCenter/request.d.ts +2 -0
- package/es/api/productCenter/request.mjs +20 -0
- package/es/api/productCenter/request.mjs.map +1 -0
- package/es/giime/version.d.ts +1 -1
- package/es/giime/version.mjs +1 -1
- package/es/giime/version.mjs.map +1 -1
- package/es/hooks/store/useCompanyCategoryList/index.d.ts +6 -6
- package/es/hooks/store/useCompanyCategoryList/index.mjs +2 -2
- package/es/hooks/store/useCompanyCategoryList/index.mjs.map +1 -1
- package/es/index.css +38 -38
- package/es/utils/src/http/devProxy.mjs +5 -0
- package/es/utils/src/http/devProxy.mjs.map +1 -1
- package/lib/api/productCenter/categoryManage/getCompanyCategoryTree.d.ts +18 -0
- package/lib/api/productCenter/categoryManage/getCompanyCategoryTree.js +10 -0
- package/lib/api/productCenter/categoryManage/getCompanyCategoryTree.js.map +1 -0
- package/lib/api/productCenter/categoryManage/index.d.ts +2 -0
- package/lib/api/productCenter/categoryManage/index.js +10 -0
- package/lib/api/productCenter/categoryManage/index.js.map +1 -0
- package/lib/api/productCenter/categoryManage/useGetCompanyCategoryTree.d.ts +24 -0
- package/lib/api/productCenter/categoryManage/useGetCompanyCategoryTree.js +20 -0
- package/lib/api/productCenter/categoryManage/useGetCompanyCategoryTree.js.map +1 -0
- package/lib/api/productCenter/index.d.ts +1 -0
- package/lib/api/productCenter/index.js +11 -0
- package/lib/api/productCenter/index.js.map +1 -0
- package/lib/api/productCenter/request.d.ts +2 -0
- package/lib/api/productCenter/request.js +24 -0
- package/lib/api/productCenter/request.js.map +1 -0
- package/lib/giime/version.d.ts +1 -1
- package/lib/giime/version.js +1 -1
- package/lib/giime/version.js.map +1 -1
- package/lib/hooks/store/useCompanyCategoryList/index.d.ts +6 -6
- package/lib/hooks/store/useCompanyCategoryList/index.js +2 -2
- package/lib/hooks/store/useCompanyCategoryList/index.js.map +1 -1
- package/lib/index.css +38 -38
- package/lib/utils/src/http/devProxy.js +5 -0
- package/lib/utils/src/http/devProxy.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -778,35 +778,27 @@ video {
|
|
|
778
778
|
margin: 0;
|
|
779
779
|
}
|
|
780
780
|
|
|
781
|
-
[data-v-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
[data-v-a0a106bd] .gmTableNoBorder .el-table__inner-wrapper:before {
|
|
786
|
-
height: 0;
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
[data-v-a0a106bd] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
|
|
790
|
-
height: 0;
|
|
781
|
+
[data-v-ec3af0bb] .gmSearchForm .el-form-item {
|
|
782
|
+
margin-right: 0;
|
|
783
|
+
margin-bottom: 4px;
|
|
791
784
|
}
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
785
|
+
.gm-number-interval-single[data-v-47a13fd0] {
|
|
786
|
+
border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
|
|
787
|
+
box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
|
|
788
|
+
background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
|
|
795
789
|
}
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
790
|
+
.gm-number-interval-single[data-v-47a13fd0] [data-v-47a13fd0] .el-input__wrapper {
|
|
791
|
+
box-shadow: none;
|
|
792
|
+
background: none;
|
|
799
793
|
}
|
|
800
794
|
|
|
801
|
-
[data-v-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
.gm-flex-center[data-v-2a79bac9] {
|
|
805
|
-
align-items: center;
|
|
795
|
+
.gm-number-interval-close[data-v-47a13fd0] {
|
|
796
|
+
display: none;
|
|
797
|
+
color: var(--el-input-icon-color, var(--el-text-color-placeholder));
|
|
806
798
|
}
|
|
807
799
|
|
|
808
|
-
.gm-
|
|
809
|
-
|
|
800
|
+
.gm-number-interval-single[data-v-47a13fd0]:hover .gm-number-interval-close[data-v-47a13fd0] {
|
|
801
|
+
display: flex;
|
|
810
802
|
}
|
|
811
803
|
.circular[data-v-b391445c] {
|
|
812
804
|
animation: loading-rotate-b391445c 2s linear infinite;
|
|
@@ -839,27 +831,35 @@ video {
|
|
|
839
831
|
stroke-dashoffset: -120px;
|
|
840
832
|
}
|
|
841
833
|
}
|
|
842
|
-
[data-v-
|
|
843
|
-
|
|
844
|
-
margin-bottom: 4px;
|
|
834
|
+
.gm-flex-center[data-v-2a79bac9] {
|
|
835
|
+
align-items: center;
|
|
845
836
|
}
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
|
|
837
|
+
|
|
838
|
+
.gm-flex-justify-between[data-v-2a79bac9] {
|
|
839
|
+
justify-content: space-between;
|
|
850
840
|
}
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
background: none;
|
|
841
|
+
[data-v-a0a106bd] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
842
|
+
border-right: none;
|
|
854
843
|
}
|
|
855
844
|
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
color: var(--el-input-icon-color, var(--el-text-color-placeholder));
|
|
845
|
+
[data-v-a0a106bd] .gmTableNoBorder .el-table__inner-wrapper:before {
|
|
846
|
+
height: 0;
|
|
859
847
|
}
|
|
860
848
|
|
|
861
|
-
|
|
862
|
-
|
|
849
|
+
[data-v-a0a106bd] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
|
|
850
|
+
height: 0;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
[data-v-a0a106bd] .gmTableNoBorder.el-table--border:after {
|
|
854
|
+
height: 0;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
[data-v-a0a106bd] .gmTableNoBorder.el-table--border:before {
|
|
858
|
+
height: 0;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
[data-v-a0a106bd] .gmTableNoBorder .el-table__border-left-patch {
|
|
862
|
+
height: 0;
|
|
863
863
|
}
|
|
864
864
|
|
|
865
865
|
.pagination-container[data-v-19230954] {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type AxiosRequestConfig } from 'axios';
|
|
2
|
+
export interface GetCompanyCategoryTreeResponse {
|
|
3
|
+
code: number;
|
|
4
|
+
data: GetCompanyCategoryTreeResponseDatum[];
|
|
5
|
+
message: string;
|
|
6
|
+
}
|
|
7
|
+
export interface GetCompanyCategoryTreeResponseDatum extends Record<string, unknown> {
|
|
8
|
+
_child: GetCompanyCategoryTreeResponseDatum[];
|
|
9
|
+
chinese_cate_tree: string;
|
|
10
|
+
id: number;
|
|
11
|
+
name: string;
|
|
12
|
+
parent_id: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* 获取公司分类列表树
|
|
16
|
+
* /basic/v1/category/getTreeList
|
|
17
|
+
*/
|
|
18
|
+
export declare function getCompanyCategoryTree(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCompanyCategoryTreeResponse, any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCompanyCategoryTree.mjs","sources":["../../../../../../packages/api/productCenter/categoryManage/getCompanyCategoryTree.ts"],"sourcesContent":["import request from '@giime/api/productCenter/request';\r\nimport { type AxiosRequestConfig } from 'axios';\r\n\r\nexport interface GetCompanyCategoryTreeResponse {\r\n code: number;\r\n data: GetCompanyCategoryTreeResponseDatum[];\r\n message: string;\r\n}\r\n\r\nexport interface GetCompanyCategoryTreeResponseDatum extends Record<string, unknown> {\r\n _child: GetCompanyCategoryTreeResponseDatum[];\r\n chinese_cate_tree: string;\r\n id: number;\r\n name: string;\r\n parent_id: string;\r\n}\r\n\r\n/**\r\n * 获取公司分类列表树\r\n * /basic/v1/category/getTreeList\r\n */\r\nexport function getCompanyCategoryTree(config?: AxiosRequestConfig) {\r\n return request.get<GetCompanyCategoryTreeResponse>(`/basic/v1/category/getTreeList`, config);\r\n}\r\n"],"names":["request"],"mappings":";;AAqBO,SAAS,uBAAuB,MAA6B,EAAA;AAClE,EAAO,OAAAA,OAAA,CAAQ,GAAoC,CAAA,CAAA,8BAAA,CAAA,EAAkC,MAAM,CAAA,CAAA;AAC7F;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type UseAxiosOptions } from '@vueuse/integrations/useAxios';
|
|
2
|
+
import { type AxiosRequestConfig } from 'axios';
|
|
3
|
+
import type { GetCompanyCategoryTreeResponse } from './getCompanyCategoryTree';
|
|
4
|
+
/**
|
|
5
|
+
* 获取公司分类列表树
|
|
6
|
+
* /basic/v1/category/getTreeList
|
|
7
|
+
*/
|
|
8
|
+
export declare function useGetCompanyCategoryTree(config?: AxiosRequestConfig, options?: UseAxiosOptions<GetCompanyCategoryTreeResponse>): {
|
|
9
|
+
exec: (axiosConfig?: AxiosRequestConfig) => Promise<import("@vueuse/integrations/useAxios").StrictUseAxiosReturn<GetCompanyCategoryTreeResponse, import("axios").AxiosResponse<GetCompanyCategoryTreeResponse, any>, any>>;
|
|
10
|
+
execute: (url?: string | AxiosRequestConfig<any> | undefined, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@vueuse/integrations/useAxios").StrictUseAxiosReturn<GetCompanyCategoryTreeResponse, import("axios").AxiosResponse<GetCompanyCategoryTreeResponse, any>, any>>;
|
|
11
|
+
response: import("vue").ShallowRef<import("axios").AxiosResponse<GetCompanyCategoryTreeResponse, any> | undefined>;
|
|
12
|
+
data: import("vue").Ref<GetCompanyCategoryTreeResponse | undefined>;
|
|
13
|
+
isFinished: import("vue").Ref<boolean>;
|
|
14
|
+
isLoading: import("vue").Ref<boolean>;
|
|
15
|
+
isAborted: import("vue").Ref<boolean>;
|
|
16
|
+
error: import("vue").ShallowRef<unknown>;
|
|
17
|
+
abort: (message?: string | undefined) => void;
|
|
18
|
+
cancel: (message?: string | undefined) => void;
|
|
19
|
+
isCanceled: import("vue").Ref<boolean>;
|
|
20
|
+
then<TResult1 = import("@vueuse/integrations/useAxios").StrictUseAxiosReturn<GetCompanyCategoryTreeResponse, import("axios").AxiosResponse<GetCompanyCategoryTreeResponse, any>, any>, TResult2 = never>(onfulfilled?: ((value: import("@vueuse/integrations/useAxios").StrictUseAxiosReturn<GetCompanyCategoryTreeResponse, import("axios").AxiosResponse<GetCompanyCategoryTreeResponse, any>, any>) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<TResult1 | TResult2>;
|
|
21
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null | undefined): Promise<import("@vueuse/integrations/useAxios").StrictUseAxiosReturn<GetCompanyCategoryTreeResponse, import("axios").AxiosResponse<GetCompanyCategoryTreeResponse, any>, any> | TResult>;
|
|
22
|
+
finally(onfinally?: (() => void) | null | undefined): Promise<import("@vueuse/integrations/useAxios").StrictUseAxiosReturn<GetCompanyCategoryTreeResponse, import("axios").AxiosResponse<GetCompanyCategoryTreeResponse, any>, any>>;
|
|
23
|
+
[Symbol.toStringTag]: string;
|
|
24
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { useAxios } from '@vueuse/integrations/useAxios';
|
|
2
|
+
import service from '../request.mjs';
|
|
3
|
+
|
|
4
|
+
function useGetCompanyCategoryTree(config, options) {
|
|
5
|
+
const useAxiosReturn = useAxios(
|
|
6
|
+
"/basic/v1/category/getTreeList",
|
|
7
|
+
{ method: "get", ...config },
|
|
8
|
+
service,
|
|
9
|
+
{ immediate: false, ...options }
|
|
10
|
+
);
|
|
11
|
+
function exec(axiosConfig) {
|
|
12
|
+
return useAxiosReturn.execute(axiosConfig);
|
|
13
|
+
}
|
|
14
|
+
return { ...useAxiosReturn, exec };
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { useGetCompanyCategoryTree };
|
|
18
|
+
//# sourceMappingURL=useGetCompanyCategoryTree.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGetCompanyCategoryTree.mjs","sources":["../../../../../../packages/api/productCenter/categoryManage/useGetCompanyCategoryTree.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from '@vueuse/integrations/useAxios';\r\nimport { type AxiosRequestConfig } from 'axios';\r\nimport request from '@giime/api/productCenter/request';\r\nimport type { GetCompanyCategoryTreeResponse } from './getCompanyCategoryTree';\r\n\r\n/**\r\n * 获取公司分类列表树\r\n * /basic/v1/category/getTreeList\r\n */\r\nexport function useGetCompanyCategoryTree(config?: AxiosRequestConfig, options?: UseAxiosOptions<GetCompanyCategoryTreeResponse>) {\r\n const useAxiosReturn = useAxios<GetCompanyCategoryTreeResponse>(\r\n '/basic/v1/category/getTreeList',\r\n { method: 'get', ...config },\r\n request,\r\n { immediate: false, ...options },\r\n );\r\n\r\n function exec(axiosConfig?: AxiosRequestConfig) {\r\n return useAxiosReturn.execute(axiosConfig);\r\n }\r\n return { ...useAxiosReturn, exec };\r\n}\r\n"],"names":["request"],"mappings":";;;AASgB,SAAA,yBAAA,CAA0B,QAA6B,OAA2D,EAAA;AAChI,EAAA,MAAM,cAAiB,GAAA,QAAA;AAAA,IACrB,gCAAA;AAAA,IACA,EAAE,MAAA,EAAQ,KAAO,EAAA,GAAG,MAAO,EAAA;AAAA,IAC3BA,OAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACjC,CAAA;AAEA,EAAA,SAAS,KAAK,WAAkC,EAAA;AAC9C,IAAO,OAAA,cAAA,CAAe,QAAQ,WAAW,CAAA,CAAA;AAAA,GAC3C;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACnC;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './categoryManage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import '../../utils/index.mjs';
|
|
2
|
+
import '../utils/index.mjs';
|
|
3
|
+
import { createAxios } from '../../utils/src/http/createAxios.mjs';
|
|
4
|
+
import { resetBaseURLInterceptorsRequest } from '../utils/resetAxiosBaseUrl.mjs';
|
|
5
|
+
|
|
6
|
+
const viteModes = [
|
|
7
|
+
{ mode: "development", url: "/product-center-api" },
|
|
8
|
+
{ mode: "production", url: "https://manage.giikin.com/product-center" },
|
|
9
|
+
{ mode: "test", url: "http://192.168.4.125:10086/product-center" }
|
|
10
|
+
];
|
|
11
|
+
const baseUrlEnvKey = "VITE_BASE_PRODUCT_CENTER_API";
|
|
12
|
+
const { service } = createAxios({
|
|
13
|
+
baseURL: "",
|
|
14
|
+
successCode: 200,
|
|
15
|
+
withCredentials: false
|
|
16
|
+
});
|
|
17
|
+
resetBaseURLInterceptorsRequest(service, { baseUrlEnvKey, viteModes });
|
|
18
|
+
|
|
19
|
+
export { service as default };
|
|
20
|
+
//# sourceMappingURL=request.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.mjs","sources":["../../../../../packages/api/productCenter/request.ts"],"sourcesContent":["import { createAxios } from '@giime/utils';\r\nimport { resetBaseURLInterceptorsRequest } from '../utils';\r\n\r\nconst viteModes = [\r\n { mode: 'development', url: '/product-center-api' },\r\n { mode: 'production', url: 'https://manage.giikin.com/product-center' },\r\n { mode: 'test', url: 'http://192.168.4.125:10086/product-center' },\r\n];\r\nconst baseUrlEnvKey = 'VITE_BASE_PRODUCT_CENTER_API';\r\n\r\nconst { service } = createAxios({\r\n baseURL: '',\r\n successCode: 200,\r\n withCredentials: false,\r\n});\r\n// 添加重置请求的baseURL 请求拦截器\r\nresetBaseURLInterceptorsRequest(service, { baseUrlEnvKey, viteModes });\r\nexport default service;\r\n"],"names":[],"mappings":";;;;;AAGA,MAAM,SAAY,GAAA;AAAA,EAChB,EAAE,IAAA,EAAM,aAAe,EAAA,GAAA,EAAK,qBAAsB,EAAA;AAAA,EAClD,EAAE,IAAA,EAAM,YAAc,EAAA,GAAA,EAAK,0CAA2C,EAAA;AAAA,EACtE,EAAE,IAAA,EAAM,MAAQ,EAAA,GAAA,EAAK,2CAA4C,EAAA;AACnE,CAAA,CAAA;AACA,MAAM,aAAgB,GAAA,8BAAA,CAAA;AAEhB,MAAA,EAAE,OAAQ,EAAA,GAAI,WAAY,CAAA;AAAA,EAC9B,OAAS,EAAA,EAAA;AAAA,EACT,WAAa,EAAA,GAAA;AAAA,EACb,eAAiB,EAAA,KAAA;AACnB,CAAC,EAAA;AAED,+BAAA,CAAgC,OAAS,EAAA,EAAE,aAAe,EAAA,SAAA,EAAW,CAAA;;;;"}
|
package/es/giime/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.4.
|
|
1
|
+
export declare const version = "0.4.4";
|
package/es/giime/version.mjs
CHANGED
package/es/giime/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.4.
|
|
1
|
+
{"version":3,"file":"version.mjs","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.4.4';\n"],"names":[],"mappings":"AAAO,MAAM,OAAU,GAAA;;;;"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**公司分类列表 */
|
|
2
2
|
export declare const useCompanyCategoryListStore: import("pinia").StoreDefinition<"gmCompanyCategoryList", import("pinia")._UnwrapAll<Pick<{
|
|
3
|
-
companyCategoryList: import("vue").ComputedRef<import("../../../api/
|
|
3
|
+
companyCategoryList: import("vue").ComputedRef<import("../../../api/productCenter").GetCompanyCategoryTreeResponseDatum[]>;
|
|
4
4
|
isLoading: import("vue").Ref<boolean>;
|
|
5
|
-
getCompanyCategoryList: () => Promise<import("@vueuse/integrations/useAxios").StrictUseAxiosReturn<import("../../../api/
|
|
5
|
+
getCompanyCategoryList: () => Promise<import("@vueuse/integrations/useAxios").StrictUseAxiosReturn<import("../../../api/productCenter").GetCompanyCategoryTreeResponse, import("axios").AxiosResponse<import("../../../api/productCenter").GetCompanyCategoryTreeResponse, any>, any> | undefined>;
|
|
6
6
|
}, "isLoading">>, Pick<{
|
|
7
|
-
companyCategoryList: import("vue").ComputedRef<import("../../../api/
|
|
7
|
+
companyCategoryList: import("vue").ComputedRef<import("../../../api/productCenter").GetCompanyCategoryTreeResponseDatum[]>;
|
|
8
8
|
isLoading: import("vue").Ref<boolean>;
|
|
9
|
-
getCompanyCategoryList: () => Promise<import("@vueuse/integrations/useAxios").StrictUseAxiosReturn<import("../../../api/
|
|
9
|
+
getCompanyCategoryList: () => Promise<import("@vueuse/integrations/useAxios").StrictUseAxiosReturn<import("../../../api/productCenter").GetCompanyCategoryTreeResponse, import("axios").AxiosResponse<import("../../../api/productCenter").GetCompanyCategoryTreeResponse, any>, any> | undefined>;
|
|
10
10
|
}, "companyCategoryList">, Pick<{
|
|
11
|
-
companyCategoryList: import("vue").ComputedRef<import("../../../api/
|
|
11
|
+
companyCategoryList: import("vue").ComputedRef<import("../../../api/productCenter").GetCompanyCategoryTreeResponseDatum[]>;
|
|
12
12
|
isLoading: import("vue").Ref<boolean>;
|
|
13
|
-
getCompanyCategoryList: () => Promise<import("@vueuse/integrations/useAxios").StrictUseAxiosReturn<import("../../../api/
|
|
13
|
+
getCompanyCategoryList: () => Promise<import("@vueuse/integrations/useAxios").StrictUseAxiosReturn<import("../../../api/productCenter").GetCompanyCategoryTreeResponse, import("axios").AxiosResponse<import("../../../api/productCenter").GetCompanyCategoryTreeResponse, any>, any> | undefined>;
|
|
14
14
|
}, "getCompanyCategoryList">>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, onMounted } from 'vue';
|
|
2
2
|
import { defineStore } from 'pinia';
|
|
3
|
-
import '../../../api/
|
|
4
|
-
import { useGetCompanyCategoryTree } from '../../../api/
|
|
3
|
+
import '../../../api/productCenter/index.mjs';
|
|
4
|
+
import { useGetCompanyCategoryTree } from '../../../api/productCenter/categoryManage/useGetCompanyCategoryTree.mjs';
|
|
5
5
|
|
|
6
6
|
const useCompanyCategoryListStore = defineStore("gmCompanyCategoryList", () => {
|
|
7
7
|
const { isLoading, exec, data: companyCategoryListData } = useGetCompanyCategoryTree();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../../packages/hooks/store/useCompanyCategoryList/index.ts"],"sourcesContent":["import { computed, onMounted } from 'vue';\r\nimport { defineStore } from 'pinia';\r\nimport { useGetCompanyCategoryTree } from '@giime/api/
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../packages/hooks/store/useCompanyCategoryList/index.ts"],"sourcesContent":["import { computed, onMounted } from 'vue';\r\nimport { defineStore } from 'pinia';\r\nimport { useGetCompanyCategoryTree } from '@giime/api/productCenter';\r\n\r\n/**公司分类列表 */\r\nexport const useCompanyCategoryListStore = defineStore('gmCompanyCategoryList', () => {\r\n const { isLoading, exec, data: companyCategoryListData } = useGetCompanyCategoryTree();\r\n const companyCategoryList = computed(() => companyCategoryListData.value?.data ?? []);\r\n\r\n const getCompanyCategoryList = async () => {\r\n if (companyCategoryList.value.length !== 0 || isLoading.value) {\r\n return;\r\n }\r\n return exec();\r\n };\r\n onMounted(() => {\r\n getCompanyCategoryList();\r\n });\r\n return {\r\n companyCategoryList,\r\n isLoading,\r\n getCompanyCategoryList,\r\n };\r\n});\r\n"],"names":[],"mappings":";;;;;AAKa,MAAA,2BAAA,GAA8B,WAAY,CAAA,uBAAA,EAAyB,MAAM;AACpF,EAAA,MAAM,EAAE,SAAW,EAAA,IAAA,EAAM,IAAM,EAAA,uBAAA,KAA4B,yBAA0B,EAAA,CAAA;AACrF,EAAA,MAAM,sBAAsB,QAAS,CAAA,MAAM,wBAAwB,KAAO,EAAA,IAAA,IAAQ,EAAE,CAAA,CAAA;AAEpF,EAAA,MAAM,yBAAyB,YAAY;AACzC,IAAA,IAAI,mBAAoB,CAAA,KAAA,CAAM,MAAW,KAAA,CAAA,IAAK,UAAU,KAAO,EAAA;AAC7D,MAAA,OAAA;AAAA,KACF;AACA,IAAA,OAAO,IAAK,EAAA,CAAA;AAAA,GACd,CAAA;AACA,EAAA,SAAA,CAAU,MAAM;AACd,IAAuB,sBAAA,EAAA,CAAA;AAAA,GACxB,CAAA,CAAA;AACD,EAAO,OAAA;AAAA,IACL,mBAAA;AAAA,IACA,SAAA;AAAA,IACA,sBAAA;AAAA,GACF,CAAA;AACF,CAAC;;;;"}
|
package/es/index.css
CHANGED
|
@@ -778,35 +778,27 @@ video {
|
|
|
778
778
|
margin: 0;
|
|
779
779
|
}
|
|
780
780
|
|
|
781
|
-
[data-v-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
[data-v-a0a106bd] .gmTableNoBorder .el-table__inner-wrapper:before {
|
|
786
|
-
height: 0;
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
[data-v-a0a106bd] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
|
|
790
|
-
height: 0;
|
|
781
|
+
[data-v-ec3af0bb] .gmSearchForm .el-form-item {
|
|
782
|
+
margin-right: 0;
|
|
783
|
+
margin-bottom: 4px;
|
|
791
784
|
}
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
785
|
+
.gm-number-interval-single[data-v-47a13fd0] {
|
|
786
|
+
border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
|
|
787
|
+
box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
|
|
788
|
+
background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
|
|
795
789
|
}
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
790
|
+
.gm-number-interval-single[data-v-47a13fd0] [data-v-47a13fd0] .el-input__wrapper {
|
|
791
|
+
box-shadow: none;
|
|
792
|
+
background: none;
|
|
799
793
|
}
|
|
800
794
|
|
|
801
|
-
[data-v-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
.gm-flex-center[data-v-2a79bac9] {
|
|
805
|
-
align-items: center;
|
|
795
|
+
.gm-number-interval-close[data-v-47a13fd0] {
|
|
796
|
+
display: none;
|
|
797
|
+
color: var(--el-input-icon-color, var(--el-text-color-placeholder));
|
|
806
798
|
}
|
|
807
799
|
|
|
808
|
-
.gm-
|
|
809
|
-
|
|
800
|
+
.gm-number-interval-single[data-v-47a13fd0]:hover .gm-number-interval-close[data-v-47a13fd0] {
|
|
801
|
+
display: flex;
|
|
810
802
|
}
|
|
811
803
|
.circular[data-v-b391445c] {
|
|
812
804
|
animation: loading-rotate-b391445c 2s linear infinite;
|
|
@@ -839,27 +831,35 @@ video {
|
|
|
839
831
|
stroke-dashoffset: -120px;
|
|
840
832
|
}
|
|
841
833
|
}
|
|
842
|
-
[data-v-
|
|
843
|
-
|
|
844
|
-
margin-bottom: 4px;
|
|
834
|
+
.gm-flex-center[data-v-2a79bac9] {
|
|
835
|
+
align-items: center;
|
|
845
836
|
}
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
|
|
837
|
+
|
|
838
|
+
.gm-flex-justify-between[data-v-2a79bac9] {
|
|
839
|
+
justify-content: space-between;
|
|
850
840
|
}
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
background: none;
|
|
841
|
+
[data-v-a0a106bd] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
842
|
+
border-right: none;
|
|
854
843
|
}
|
|
855
844
|
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
color: var(--el-input-icon-color, var(--el-text-color-placeholder));
|
|
845
|
+
[data-v-a0a106bd] .gmTableNoBorder .el-table__inner-wrapper:before {
|
|
846
|
+
height: 0;
|
|
859
847
|
}
|
|
860
848
|
|
|
861
|
-
|
|
862
|
-
|
|
849
|
+
[data-v-a0a106bd] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
|
|
850
|
+
height: 0;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
[data-v-a0a106bd] .gmTableNoBorder.el-table--border:after {
|
|
854
|
+
height: 0;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
[data-v-a0a106bd] .gmTableNoBorder.el-table--border:before {
|
|
858
|
+
height: 0;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
[data-v-a0a106bd] .gmTableNoBorder .el-table__border-left-patch {
|
|
862
|
+
height: 0;
|
|
863
863
|
}
|
|
864
864
|
|
|
865
865
|
.pagination-container[data-v-19230954] {
|
|
@@ -34,6 +34,11 @@ const giimeDevProxy = {
|
|
|
34
34
|
target: "http://192.168.4.125:10086/amazon-agent",
|
|
35
35
|
changeOrigin: true,
|
|
36
36
|
rewrite: (p) => p.replace(/^\/amazon-agent-api/, "")
|
|
37
|
+
},
|
|
38
|
+
"/product-center-api": {
|
|
39
|
+
target: "http://192.168.4.125:10086/product-center/",
|
|
40
|
+
changeOrigin: true,
|
|
41
|
+
rewrite: (p) => p.replace(/^\/product-center-api/, "")
|
|
37
42
|
}
|
|
38
43
|
};
|
|
39
44
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devProxy.mjs","sources":["../../../../../../packages/utils/src/http/devProxy.ts"],"sourcesContent":["import type { ProxyOptions } from 'vite';\r\n\r\nexport const giimeDevProxy: Record<string, string | ProxyOptions> = {\r\n // https://cn.vitejs.dev/config/#server-proxy\r\n '/gstore-api': {\r\n target: 'http://192.168.4.125:10086/gstore/',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/gstore-api/, ''),\r\n },\r\n '/material-api': {\r\n target: 'http://192.168.4.130:8002',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/material-api/, ''),\r\n },\r\n '/shop-admin-api': {\r\n target: 'http://192.168.4.130:8001',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/shop-admin-api/, ''),\r\n },\r\n '/gateway-api': {\r\n target: 'http://192.168.1.115:8082/',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/gateway-api/, ''),\r\n },\r\n '/third-api': {\r\n target: 'https://third-gw.giimall.net/',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/third-api/, ''),\r\n },\r\n '/basic-api': {\r\n target: 'http://192.168.4.171:9501/',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/basic-api/, ''),\r\n },\r\n '/amazon-agent-api': {\r\n target: 'http://192.168.4.125:10086/amazon-agent',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/amazon-agent-api/, ''),\r\n },\r\n};\r\n"],"names":[],"mappings":"AAEO,MAAM,aAAuD,GAAA;AAAA;AAAA,EAElE,aAAe,EAAA;AAAA,IACb,MAAQ,EAAA,oCAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,iBAAiB,EAAE,CAAA;AAAA,GAC7C;AAAA,EACA,eAAiB,EAAA;AAAA,IACf,MAAQ,EAAA,2BAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,mBAAmB,EAAE,CAAA;AAAA,GAC/C;AAAA,EACA,iBAAmB,EAAA;AAAA,IACjB,MAAQ,EAAA,2BAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,qBAAqB,EAAE,CAAA;AAAA,GACjD;AAAA,EACA,cAAgB,EAAA;AAAA,IACd,MAAQ,EAAA,4BAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,kBAAkB,EAAE,CAAA;AAAA,GAC9C;AAAA,EACA,YAAc,EAAA;AAAA,IACZ,MAAQ,EAAA,+BAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,gBAAgB,EAAE,CAAA;AAAA,GAC5C;AAAA,EACA,YAAc,EAAA;AAAA,IACZ,MAAQ,EAAA,4BAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,gBAAgB,EAAE,CAAA;AAAA,GAC5C;AAAA,EACA,mBAAqB,EAAA;AAAA,IACnB,MAAQ,EAAA,yCAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,uBAAuB,EAAE,CAAA;AAAA,GACnD;AACF;;;;"}
|
|
1
|
+
{"version":3,"file":"devProxy.mjs","sources":["../../../../../../packages/utils/src/http/devProxy.ts"],"sourcesContent":["import type { ProxyOptions } from 'vite';\r\n\r\nexport const giimeDevProxy: Record<string, string | ProxyOptions> = {\r\n // https://cn.vitejs.dev/config/#server-proxy\r\n '/gstore-api': {\r\n target: 'http://192.168.4.125:10086/gstore/',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/gstore-api/, ''),\r\n },\r\n '/material-api': {\r\n target: 'http://192.168.4.130:8002',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/material-api/, ''),\r\n },\r\n '/shop-admin-api': {\r\n target: 'http://192.168.4.130:8001',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/shop-admin-api/, ''),\r\n },\r\n '/gateway-api': {\r\n target: 'http://192.168.1.115:8082/',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/gateway-api/, ''),\r\n },\r\n '/third-api': {\r\n target: 'https://third-gw.giimall.net/',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/third-api/, ''),\r\n },\r\n '/basic-api': {\r\n target: 'http://192.168.4.171:9501/',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/basic-api/, ''),\r\n },\r\n '/amazon-agent-api': {\r\n target: 'http://192.168.4.125:10086/amazon-agent',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/amazon-agent-api/, ''),\r\n },\r\n '/product-center-api': {\r\n target: 'http://192.168.4.125:10086/product-center/',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/product-center-api/, ''),\r\n },\r\n};\r\n"],"names":[],"mappings":"AAEO,MAAM,aAAuD,GAAA;AAAA;AAAA,EAElE,aAAe,EAAA;AAAA,IACb,MAAQ,EAAA,oCAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,iBAAiB,EAAE,CAAA;AAAA,GAC7C;AAAA,EACA,eAAiB,EAAA;AAAA,IACf,MAAQ,EAAA,2BAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,mBAAmB,EAAE,CAAA;AAAA,GAC/C;AAAA,EACA,iBAAmB,EAAA;AAAA,IACjB,MAAQ,EAAA,2BAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,qBAAqB,EAAE,CAAA;AAAA,GACjD;AAAA,EACA,cAAgB,EAAA;AAAA,IACd,MAAQ,EAAA,4BAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,kBAAkB,EAAE,CAAA;AAAA,GAC9C;AAAA,EACA,YAAc,EAAA;AAAA,IACZ,MAAQ,EAAA,+BAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,gBAAgB,EAAE,CAAA;AAAA,GAC5C;AAAA,EACA,YAAc,EAAA;AAAA,IACZ,MAAQ,EAAA,4BAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,gBAAgB,EAAE,CAAA;AAAA,GAC5C;AAAA,EACA,mBAAqB,EAAA;AAAA,IACnB,MAAQ,EAAA,yCAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,uBAAuB,EAAE,CAAA;AAAA,GACnD;AAAA,EACA,qBAAuB,EAAA;AAAA,IACrB,MAAQ,EAAA,4CAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,yBAAyB,EAAE,CAAA;AAAA,GACrD;AACF;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type AxiosRequestConfig } from 'axios';
|
|
2
|
+
export interface GetCompanyCategoryTreeResponse {
|
|
3
|
+
code: number;
|
|
4
|
+
data: GetCompanyCategoryTreeResponseDatum[];
|
|
5
|
+
message: string;
|
|
6
|
+
}
|
|
7
|
+
export interface GetCompanyCategoryTreeResponseDatum extends Record<string, unknown> {
|
|
8
|
+
_child: GetCompanyCategoryTreeResponseDatum[];
|
|
9
|
+
chinese_cate_tree: string;
|
|
10
|
+
id: number;
|
|
11
|
+
name: string;
|
|
12
|
+
parent_id: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* 获取公司分类列表树
|
|
16
|
+
* /basic/v1/category/getTreeList
|
|
17
|
+
*/
|
|
18
|
+
export declare function getCompanyCategoryTree(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCompanyCategoryTreeResponse, any>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var request = require('../request.js');
|
|
4
|
+
|
|
5
|
+
function getCompanyCategoryTree(config) {
|
|
6
|
+
return request.default.get(`/basic/v1/category/getTreeList`, config);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
exports.getCompanyCategoryTree = getCompanyCategoryTree;
|
|
10
|
+
//# sourceMappingURL=getCompanyCategoryTree.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCompanyCategoryTree.js","sources":["../../../../../../packages/api/productCenter/categoryManage/getCompanyCategoryTree.ts"],"sourcesContent":["import request from '@giime/api/productCenter/request';\r\nimport { type AxiosRequestConfig } from 'axios';\r\n\r\nexport interface GetCompanyCategoryTreeResponse {\r\n code: number;\r\n data: GetCompanyCategoryTreeResponseDatum[];\r\n message: string;\r\n}\r\n\r\nexport interface GetCompanyCategoryTreeResponseDatum extends Record<string, unknown> {\r\n _child: GetCompanyCategoryTreeResponseDatum[];\r\n chinese_cate_tree: string;\r\n id: number;\r\n name: string;\r\n parent_id: string;\r\n}\r\n\r\n/**\r\n * 获取公司分类列表树\r\n * /basic/v1/category/getTreeList\r\n */\r\nexport function getCompanyCategoryTree(config?: AxiosRequestConfig) {\r\n return request.get<GetCompanyCategoryTreeResponse>(`/basic/v1/category/getTreeList`, config);\r\n}\r\n"],"names":["request"],"mappings":";;;;AAqBO,SAAS,uBAAuB,MAA6B,EAAA;AAClE,EAAO,OAAAA,eAAA,CAAQ,GAAoC,CAAA,CAAA,8BAAA,CAAA,EAAkC,MAAM,CAAA,CAAA;AAC7F;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var getCompanyCategoryTree = require('./getCompanyCategoryTree.js');
|
|
4
|
+
var useGetCompanyCategoryTree = require('./useGetCompanyCategoryTree.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
exports.getCompanyCategoryTree = getCompanyCategoryTree.getCompanyCategoryTree;
|
|
9
|
+
exports.useGetCompanyCategoryTree = useGetCompanyCategoryTree.useGetCompanyCategoryTree;
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type UseAxiosOptions } from '@vueuse/integrations/useAxios';
|
|
2
|
+
import { type AxiosRequestConfig } from 'axios';
|
|
3
|
+
import type { GetCompanyCategoryTreeResponse } from './getCompanyCategoryTree';
|
|
4
|
+
/**
|
|
5
|
+
* 获取公司分类列表树
|
|
6
|
+
* /basic/v1/category/getTreeList
|
|
7
|
+
*/
|
|
8
|
+
export declare function useGetCompanyCategoryTree(config?: AxiosRequestConfig, options?: UseAxiosOptions<GetCompanyCategoryTreeResponse>): {
|
|
9
|
+
exec: (axiosConfig?: AxiosRequestConfig) => Promise<import("@vueuse/integrations/useAxios").StrictUseAxiosReturn<GetCompanyCategoryTreeResponse, import("axios").AxiosResponse<GetCompanyCategoryTreeResponse, any>, any>>;
|
|
10
|
+
execute: (url?: string | AxiosRequestConfig<any> | undefined, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@vueuse/integrations/useAxios").StrictUseAxiosReturn<GetCompanyCategoryTreeResponse, import("axios").AxiosResponse<GetCompanyCategoryTreeResponse, any>, any>>;
|
|
11
|
+
response: import("vue").ShallowRef<import("axios").AxiosResponse<GetCompanyCategoryTreeResponse, any> | undefined>;
|
|
12
|
+
data: import("vue").Ref<GetCompanyCategoryTreeResponse | undefined>;
|
|
13
|
+
isFinished: import("vue").Ref<boolean>;
|
|
14
|
+
isLoading: import("vue").Ref<boolean>;
|
|
15
|
+
isAborted: import("vue").Ref<boolean>;
|
|
16
|
+
error: import("vue").ShallowRef<unknown>;
|
|
17
|
+
abort: (message?: string | undefined) => void;
|
|
18
|
+
cancel: (message?: string | undefined) => void;
|
|
19
|
+
isCanceled: import("vue").Ref<boolean>;
|
|
20
|
+
then<TResult1 = import("@vueuse/integrations/useAxios").StrictUseAxiosReturn<GetCompanyCategoryTreeResponse, import("axios").AxiosResponse<GetCompanyCategoryTreeResponse, any>, any>, TResult2 = never>(onfulfilled?: ((value: import("@vueuse/integrations/useAxios").StrictUseAxiosReturn<GetCompanyCategoryTreeResponse, import("axios").AxiosResponse<GetCompanyCategoryTreeResponse, any>, any>) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<TResult1 | TResult2>;
|
|
21
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null | undefined): Promise<import("@vueuse/integrations/useAxios").StrictUseAxiosReturn<GetCompanyCategoryTreeResponse, import("axios").AxiosResponse<GetCompanyCategoryTreeResponse, any>, any> | TResult>;
|
|
22
|
+
finally(onfinally?: (() => void) | null | undefined): Promise<import("@vueuse/integrations/useAxios").StrictUseAxiosReturn<GetCompanyCategoryTreeResponse, import("axios").AxiosResponse<GetCompanyCategoryTreeResponse, any>, any>>;
|
|
23
|
+
[Symbol.toStringTag]: string;
|
|
24
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var useAxios = require('@vueuse/integrations/useAxios');
|
|
4
|
+
var request = require('../request.js');
|
|
5
|
+
|
|
6
|
+
function useGetCompanyCategoryTree(config, options) {
|
|
7
|
+
const useAxiosReturn = useAxios.useAxios(
|
|
8
|
+
"/basic/v1/category/getTreeList",
|
|
9
|
+
{ method: "get", ...config },
|
|
10
|
+
request.default,
|
|
11
|
+
{ immediate: false, ...options }
|
|
12
|
+
);
|
|
13
|
+
function exec(axiosConfig) {
|
|
14
|
+
return useAxiosReturn.execute(axiosConfig);
|
|
15
|
+
}
|
|
16
|
+
return { ...useAxiosReturn, exec };
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
exports.useGetCompanyCategoryTree = useGetCompanyCategoryTree;
|
|
20
|
+
//# sourceMappingURL=useGetCompanyCategoryTree.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGetCompanyCategoryTree.js","sources":["../../../../../../packages/api/productCenter/categoryManage/useGetCompanyCategoryTree.ts"],"sourcesContent":["import { type UseAxiosOptions, useAxios } from '@vueuse/integrations/useAxios';\r\nimport { type AxiosRequestConfig } from 'axios';\r\nimport request from '@giime/api/productCenter/request';\r\nimport type { GetCompanyCategoryTreeResponse } from './getCompanyCategoryTree';\r\n\r\n/**\r\n * 获取公司分类列表树\r\n * /basic/v1/category/getTreeList\r\n */\r\nexport function useGetCompanyCategoryTree(config?: AxiosRequestConfig, options?: UseAxiosOptions<GetCompanyCategoryTreeResponse>) {\r\n const useAxiosReturn = useAxios<GetCompanyCategoryTreeResponse>(\r\n '/basic/v1/category/getTreeList',\r\n { method: 'get', ...config },\r\n request,\r\n { immediate: false, ...options },\r\n );\r\n\r\n function exec(axiosConfig?: AxiosRequestConfig) {\r\n return useAxiosReturn.execute(axiosConfig);\r\n }\r\n return { ...useAxiosReturn, exec };\r\n}\r\n"],"names":["useAxios","request"],"mappings":";;;;;AASgB,SAAA,yBAAA,CAA0B,QAA6B,OAA2D,EAAA;AAChI,EAAA,MAAM,cAAiB,GAAAA,iBAAA;AAAA,IACrB,gCAAA;AAAA,IACA,EAAE,MAAA,EAAQ,KAAO,EAAA,GAAG,MAAO,EAAA;AAAA,IAC3BC,eAAA;AAAA,IACA,EAAE,SAAA,EAAW,KAAO,EAAA,GAAG,OAAQ,EAAA;AAAA,GACjC,CAAA;AAEA,EAAA,SAAS,KAAK,WAAkC,EAAA;AAC9C,IAAO,OAAA,cAAA,CAAe,QAAQ,WAAW,CAAA,CAAA;AAAA,GAC3C;AACA,EAAO,OAAA,EAAE,GAAG,cAAA,EAAgB,IAAK,EAAA,CAAA;AACnC;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './categoryManage';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('./categoryManage/index.js');
|
|
4
|
+
var getCompanyCategoryTree = require('./categoryManage/getCompanyCategoryTree.js');
|
|
5
|
+
var useGetCompanyCategoryTree = require('./categoryManage/useGetCompanyCategoryTree.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.getCompanyCategoryTree = getCompanyCategoryTree.getCompanyCategoryTree;
|
|
10
|
+
exports.useGetCompanyCategoryTree = useGetCompanyCategoryTree.useGetCompanyCategoryTree;
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('../../utils/index.js');
|
|
6
|
+
require('../utils/index.js');
|
|
7
|
+
var createAxios = require('../../utils/src/http/createAxios.js');
|
|
8
|
+
var resetAxiosBaseUrl = require('../utils/resetAxiosBaseUrl.js');
|
|
9
|
+
|
|
10
|
+
const viteModes = [
|
|
11
|
+
{ mode: "development", url: "/product-center-api" },
|
|
12
|
+
{ mode: "production", url: "https://manage.giikin.com/product-center" },
|
|
13
|
+
{ mode: "test", url: "http://192.168.4.125:10086/product-center" }
|
|
14
|
+
];
|
|
15
|
+
const baseUrlEnvKey = "VITE_BASE_PRODUCT_CENTER_API";
|
|
16
|
+
const { service } = createAxios.createAxios({
|
|
17
|
+
baseURL: "",
|
|
18
|
+
successCode: 200,
|
|
19
|
+
withCredentials: false
|
|
20
|
+
});
|
|
21
|
+
resetAxiosBaseUrl.resetBaseURLInterceptorsRequest(service, { baseUrlEnvKey, viteModes });
|
|
22
|
+
|
|
23
|
+
exports.default = service;
|
|
24
|
+
//# sourceMappingURL=request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.js","sources":["../../../../../packages/api/productCenter/request.ts"],"sourcesContent":["import { createAxios } from '@giime/utils';\r\nimport { resetBaseURLInterceptorsRequest } from '../utils';\r\n\r\nconst viteModes = [\r\n { mode: 'development', url: '/product-center-api' },\r\n { mode: 'production', url: 'https://manage.giikin.com/product-center' },\r\n { mode: 'test', url: 'http://192.168.4.125:10086/product-center' },\r\n];\r\nconst baseUrlEnvKey = 'VITE_BASE_PRODUCT_CENTER_API';\r\n\r\nconst { service } = createAxios({\r\n baseURL: '',\r\n successCode: 200,\r\n withCredentials: false,\r\n});\r\n// 添加重置请求的baseURL 请求拦截器\r\nresetBaseURLInterceptorsRequest(service, { baseUrlEnvKey, viteModes });\r\nexport default service;\r\n"],"names":["createAxios","resetBaseURLInterceptorsRequest"],"mappings":";;;;;;;;;AAGA,MAAM,SAAY,GAAA;AAAA,EAChB,EAAE,IAAA,EAAM,aAAe,EAAA,GAAA,EAAK,qBAAsB,EAAA;AAAA,EAClD,EAAE,IAAA,EAAM,YAAc,EAAA,GAAA,EAAK,0CAA2C,EAAA;AAAA,EACtE,EAAE,IAAA,EAAM,MAAQ,EAAA,GAAA,EAAK,2CAA4C,EAAA;AACnE,CAAA,CAAA;AACA,MAAM,aAAgB,GAAA,8BAAA,CAAA;AAEhB,MAAA,EAAE,OAAQ,EAAA,GAAIA,uBAAY,CAAA;AAAA,EAC9B,OAAS,EAAA,EAAA;AAAA,EACT,WAAa,EAAA,GAAA;AAAA,EACb,eAAiB,EAAA,KAAA;AACnB,CAAC,EAAA;AAEDC,iDAAA,CAAgC,OAAS,EAAA,EAAE,aAAe,EAAA,SAAA,EAAW,CAAA;;;;"}
|
package/lib/giime/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.4.
|
|
1
|
+
export declare const version = "0.4.4";
|
package/lib/giime/version.js
CHANGED
package/lib/giime/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.4.
|
|
1
|
+
{"version":3,"file":"version.js","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.4.4';\n"],"names":[],"mappings":";;AAAO,MAAM,OAAU,GAAA;;;;"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**公司分类列表 */
|
|
2
2
|
export declare const useCompanyCategoryListStore: import("pinia").StoreDefinition<"gmCompanyCategoryList", import("pinia")._UnwrapAll<Pick<{
|
|
3
|
-
companyCategoryList: import("vue").ComputedRef<import("../../../api/
|
|
3
|
+
companyCategoryList: import("vue").ComputedRef<import("../../../api/productCenter").GetCompanyCategoryTreeResponseDatum[]>;
|
|
4
4
|
isLoading: import("vue").Ref<boolean>;
|
|
5
|
-
getCompanyCategoryList: () => Promise<import("@vueuse/integrations/useAxios").StrictUseAxiosReturn<import("../../../api/
|
|
5
|
+
getCompanyCategoryList: () => Promise<import("@vueuse/integrations/useAxios").StrictUseAxiosReturn<import("../../../api/productCenter").GetCompanyCategoryTreeResponse, import("axios").AxiosResponse<import("../../../api/productCenter").GetCompanyCategoryTreeResponse, any>, any> | undefined>;
|
|
6
6
|
}, "isLoading">>, Pick<{
|
|
7
|
-
companyCategoryList: import("vue").ComputedRef<import("../../../api/
|
|
7
|
+
companyCategoryList: import("vue").ComputedRef<import("../../../api/productCenter").GetCompanyCategoryTreeResponseDatum[]>;
|
|
8
8
|
isLoading: import("vue").Ref<boolean>;
|
|
9
|
-
getCompanyCategoryList: () => Promise<import("@vueuse/integrations/useAxios").StrictUseAxiosReturn<import("../../../api/
|
|
9
|
+
getCompanyCategoryList: () => Promise<import("@vueuse/integrations/useAxios").StrictUseAxiosReturn<import("../../../api/productCenter").GetCompanyCategoryTreeResponse, import("axios").AxiosResponse<import("../../../api/productCenter").GetCompanyCategoryTreeResponse, any>, any> | undefined>;
|
|
10
10
|
}, "companyCategoryList">, Pick<{
|
|
11
|
-
companyCategoryList: import("vue").ComputedRef<import("../../../api/
|
|
11
|
+
companyCategoryList: import("vue").ComputedRef<import("../../../api/productCenter").GetCompanyCategoryTreeResponseDatum[]>;
|
|
12
12
|
isLoading: import("vue").Ref<boolean>;
|
|
13
|
-
getCompanyCategoryList: () => Promise<import("@vueuse/integrations/useAxios").StrictUseAxiosReturn<import("../../../api/
|
|
13
|
+
getCompanyCategoryList: () => Promise<import("@vueuse/integrations/useAxios").StrictUseAxiosReturn<import("../../../api/productCenter").GetCompanyCategoryTreeResponse, import("axios").AxiosResponse<import("../../../api/productCenter").GetCompanyCategoryTreeResponse, any>, any> | undefined>;
|
|
14
14
|
}, "getCompanyCategoryList">>;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var pinia = require('pinia');
|
|
5
|
-
require('../../../api/
|
|
6
|
-
var useGetCompanyCategoryTree = require('../../../api/
|
|
5
|
+
require('../../../api/productCenter/index.js');
|
|
6
|
+
var useGetCompanyCategoryTree = require('../../../api/productCenter/categoryManage/useGetCompanyCategoryTree.js');
|
|
7
7
|
|
|
8
8
|
const useCompanyCategoryListStore = pinia.defineStore("gmCompanyCategoryList", () => {
|
|
9
9
|
const { isLoading, exec, data: companyCategoryListData } = useGetCompanyCategoryTree.useGetCompanyCategoryTree();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../packages/hooks/store/useCompanyCategoryList/index.ts"],"sourcesContent":["import { computed, onMounted } from 'vue';\r\nimport { defineStore } from 'pinia';\r\nimport { useGetCompanyCategoryTree } from '@giime/api/
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../packages/hooks/store/useCompanyCategoryList/index.ts"],"sourcesContent":["import { computed, onMounted } from 'vue';\r\nimport { defineStore } from 'pinia';\r\nimport { useGetCompanyCategoryTree } from '@giime/api/productCenter';\r\n\r\n/**公司分类列表 */\r\nexport const useCompanyCategoryListStore = defineStore('gmCompanyCategoryList', () => {\r\n const { isLoading, exec, data: companyCategoryListData } = useGetCompanyCategoryTree();\r\n const companyCategoryList = computed(() => companyCategoryListData.value?.data ?? []);\r\n\r\n const getCompanyCategoryList = async () => {\r\n if (companyCategoryList.value.length !== 0 || isLoading.value) {\r\n return;\r\n }\r\n return exec();\r\n };\r\n onMounted(() => {\r\n getCompanyCategoryList();\r\n });\r\n return {\r\n companyCategoryList,\r\n isLoading,\r\n getCompanyCategoryList,\r\n };\r\n});\r\n"],"names":["defineStore","useGetCompanyCategoryTree","computed","onMounted"],"mappings":";;;;;;;AAKa,MAAA,2BAAA,GAA8BA,iBAAY,CAAA,uBAAA,EAAyB,MAAM;AACpF,EAAA,MAAM,EAAE,SAAW,EAAA,IAAA,EAAM,IAAM,EAAA,uBAAA,KAA4BC,mDAA0B,EAAA,CAAA;AACrF,EAAA,MAAM,sBAAsBC,YAAS,CAAA,MAAM,wBAAwB,KAAO,EAAA,IAAA,IAAQ,EAAE,CAAA,CAAA;AAEpF,EAAA,MAAM,yBAAyB,YAAY;AACzC,IAAA,IAAI,mBAAoB,CAAA,KAAA,CAAM,MAAW,KAAA,CAAA,IAAK,UAAU,KAAO,EAAA;AAC7D,MAAA,OAAA;AAAA,KACF;AACA,IAAA,OAAO,IAAK,EAAA,CAAA;AAAA,GACd,CAAA;AACA,EAAAC,aAAA,CAAU,MAAM;AACd,IAAuB,sBAAA,EAAA,CAAA;AAAA,GACxB,CAAA,CAAA;AACD,EAAO,OAAA;AAAA,IACL,mBAAA;AAAA,IACA,SAAA;AAAA,IACA,sBAAA;AAAA,GACF,CAAA;AACF,CAAC;;;;"}
|
package/lib/index.css
CHANGED
|
@@ -778,35 +778,27 @@ video {
|
|
|
778
778
|
margin: 0;
|
|
779
779
|
}
|
|
780
780
|
|
|
781
|
-
[data-v-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
[data-v-a0a106bd] .gmTableNoBorder .el-table__inner-wrapper:before {
|
|
786
|
-
height: 0;
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
[data-v-a0a106bd] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
|
|
790
|
-
height: 0;
|
|
781
|
+
[data-v-ec3af0bb] .gmSearchForm .el-form-item {
|
|
782
|
+
margin-right: 0;
|
|
783
|
+
margin-bottom: 4px;
|
|
791
784
|
}
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
785
|
+
.gm-number-interval-single[data-v-47a13fd0] {
|
|
786
|
+
border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
|
|
787
|
+
box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
|
|
788
|
+
background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
|
|
795
789
|
}
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
790
|
+
.gm-number-interval-single[data-v-47a13fd0] [data-v-47a13fd0] .el-input__wrapper {
|
|
791
|
+
box-shadow: none;
|
|
792
|
+
background: none;
|
|
799
793
|
}
|
|
800
794
|
|
|
801
|
-
[data-v-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
.gm-flex-center[data-v-2a79bac9] {
|
|
805
|
-
align-items: center;
|
|
795
|
+
.gm-number-interval-close[data-v-47a13fd0] {
|
|
796
|
+
display: none;
|
|
797
|
+
color: var(--el-input-icon-color, var(--el-text-color-placeholder));
|
|
806
798
|
}
|
|
807
799
|
|
|
808
|
-
.gm-
|
|
809
|
-
|
|
800
|
+
.gm-number-interval-single[data-v-47a13fd0]:hover .gm-number-interval-close[data-v-47a13fd0] {
|
|
801
|
+
display: flex;
|
|
810
802
|
}
|
|
811
803
|
.circular[data-v-b391445c] {
|
|
812
804
|
animation: loading-rotate-b391445c 2s linear infinite;
|
|
@@ -839,27 +831,35 @@ video {
|
|
|
839
831
|
stroke-dashoffset: -120px;
|
|
840
832
|
}
|
|
841
833
|
}
|
|
842
|
-
[data-v-
|
|
843
|
-
|
|
844
|
-
margin-bottom: 4px;
|
|
834
|
+
.gm-flex-center[data-v-2a79bac9] {
|
|
835
|
+
align-items: center;
|
|
845
836
|
}
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
|
|
837
|
+
|
|
838
|
+
.gm-flex-justify-between[data-v-2a79bac9] {
|
|
839
|
+
justify-content: space-between;
|
|
850
840
|
}
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
background: none;
|
|
841
|
+
[data-v-a0a106bd] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
842
|
+
border-right: none;
|
|
854
843
|
}
|
|
855
844
|
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
color: var(--el-input-icon-color, var(--el-text-color-placeholder));
|
|
845
|
+
[data-v-a0a106bd] .gmTableNoBorder .el-table__inner-wrapper:before {
|
|
846
|
+
height: 0;
|
|
859
847
|
}
|
|
860
848
|
|
|
861
|
-
|
|
862
|
-
|
|
849
|
+
[data-v-a0a106bd] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
|
|
850
|
+
height: 0;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
[data-v-a0a106bd] .gmTableNoBorder.el-table--border:after {
|
|
854
|
+
height: 0;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
[data-v-a0a106bd] .gmTableNoBorder.el-table--border:before {
|
|
858
|
+
height: 0;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
[data-v-a0a106bd] .gmTableNoBorder .el-table__border-left-patch {
|
|
862
|
+
height: 0;
|
|
863
863
|
}
|
|
864
864
|
|
|
865
865
|
.pagination-container[data-v-19230954] {
|
|
@@ -36,6 +36,11 @@ const giimeDevProxy = {
|
|
|
36
36
|
target: "http://192.168.4.125:10086/amazon-agent",
|
|
37
37
|
changeOrigin: true,
|
|
38
38
|
rewrite: (p) => p.replace(/^\/amazon-agent-api/, "")
|
|
39
|
+
},
|
|
40
|
+
"/product-center-api": {
|
|
41
|
+
target: "http://192.168.4.125:10086/product-center/",
|
|
42
|
+
changeOrigin: true,
|
|
43
|
+
rewrite: (p) => p.replace(/^\/product-center-api/, "")
|
|
39
44
|
}
|
|
40
45
|
};
|
|
41
46
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devProxy.js","sources":["../../../../../../packages/utils/src/http/devProxy.ts"],"sourcesContent":["import type { ProxyOptions } from 'vite';\r\n\r\nexport const giimeDevProxy: Record<string, string | ProxyOptions> = {\r\n // https://cn.vitejs.dev/config/#server-proxy\r\n '/gstore-api': {\r\n target: 'http://192.168.4.125:10086/gstore/',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/gstore-api/, ''),\r\n },\r\n '/material-api': {\r\n target: 'http://192.168.4.130:8002',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/material-api/, ''),\r\n },\r\n '/shop-admin-api': {\r\n target: 'http://192.168.4.130:8001',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/shop-admin-api/, ''),\r\n },\r\n '/gateway-api': {\r\n target: 'http://192.168.1.115:8082/',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/gateway-api/, ''),\r\n },\r\n '/third-api': {\r\n target: 'https://third-gw.giimall.net/',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/third-api/, ''),\r\n },\r\n '/basic-api': {\r\n target: 'http://192.168.4.171:9501/',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/basic-api/, ''),\r\n },\r\n '/amazon-agent-api': {\r\n target: 'http://192.168.4.125:10086/amazon-agent',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/amazon-agent-api/, ''),\r\n },\r\n};\r\n"],"names":[],"mappings":";;AAEO,MAAM,aAAuD,GAAA;AAAA;AAAA,EAElE,aAAe,EAAA;AAAA,IACb,MAAQ,EAAA,oCAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,iBAAiB,EAAE,CAAA;AAAA,GAC7C;AAAA,EACA,eAAiB,EAAA;AAAA,IACf,MAAQ,EAAA,2BAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,mBAAmB,EAAE,CAAA;AAAA,GAC/C;AAAA,EACA,iBAAmB,EAAA;AAAA,IACjB,MAAQ,EAAA,2BAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,qBAAqB,EAAE,CAAA;AAAA,GACjD;AAAA,EACA,cAAgB,EAAA;AAAA,IACd,MAAQ,EAAA,4BAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,kBAAkB,EAAE,CAAA;AAAA,GAC9C;AAAA,EACA,YAAc,EAAA;AAAA,IACZ,MAAQ,EAAA,+BAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,gBAAgB,EAAE,CAAA;AAAA,GAC5C;AAAA,EACA,YAAc,EAAA;AAAA,IACZ,MAAQ,EAAA,4BAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,gBAAgB,EAAE,CAAA;AAAA,GAC5C;AAAA,EACA,mBAAqB,EAAA;AAAA,IACnB,MAAQ,EAAA,yCAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,uBAAuB,EAAE,CAAA;AAAA,GACnD;AACF;;;;"}
|
|
1
|
+
{"version":3,"file":"devProxy.js","sources":["../../../../../../packages/utils/src/http/devProxy.ts"],"sourcesContent":["import type { ProxyOptions } from 'vite';\r\n\r\nexport const giimeDevProxy: Record<string, string | ProxyOptions> = {\r\n // https://cn.vitejs.dev/config/#server-proxy\r\n '/gstore-api': {\r\n target: 'http://192.168.4.125:10086/gstore/',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/gstore-api/, ''),\r\n },\r\n '/material-api': {\r\n target: 'http://192.168.4.130:8002',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/material-api/, ''),\r\n },\r\n '/shop-admin-api': {\r\n target: 'http://192.168.4.130:8001',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/shop-admin-api/, ''),\r\n },\r\n '/gateway-api': {\r\n target: 'http://192.168.1.115:8082/',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/gateway-api/, ''),\r\n },\r\n '/third-api': {\r\n target: 'https://third-gw.giimall.net/',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/third-api/, ''),\r\n },\r\n '/basic-api': {\r\n target: 'http://192.168.4.171:9501/',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/basic-api/, ''),\r\n },\r\n '/amazon-agent-api': {\r\n target: 'http://192.168.4.125:10086/amazon-agent',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/amazon-agent-api/, ''),\r\n },\r\n '/product-center-api': {\r\n target: 'http://192.168.4.125:10086/product-center/',\r\n changeOrigin: true,\r\n rewrite: p => p.replace(/^\\/product-center-api/, ''),\r\n },\r\n};\r\n"],"names":[],"mappings":";;AAEO,MAAM,aAAuD,GAAA;AAAA;AAAA,EAElE,aAAe,EAAA;AAAA,IACb,MAAQ,EAAA,oCAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,iBAAiB,EAAE,CAAA;AAAA,GAC7C;AAAA,EACA,eAAiB,EAAA;AAAA,IACf,MAAQ,EAAA,2BAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,mBAAmB,EAAE,CAAA;AAAA,GAC/C;AAAA,EACA,iBAAmB,EAAA;AAAA,IACjB,MAAQ,EAAA,2BAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,qBAAqB,EAAE,CAAA;AAAA,GACjD;AAAA,EACA,cAAgB,EAAA;AAAA,IACd,MAAQ,EAAA,4BAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,kBAAkB,EAAE,CAAA;AAAA,GAC9C;AAAA,EACA,YAAc,EAAA;AAAA,IACZ,MAAQ,EAAA,+BAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,gBAAgB,EAAE,CAAA;AAAA,GAC5C;AAAA,EACA,YAAc,EAAA;AAAA,IACZ,MAAQ,EAAA,4BAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,gBAAgB,EAAE,CAAA;AAAA,GAC5C;AAAA,EACA,mBAAqB,EAAA;AAAA,IACnB,MAAQ,EAAA,yCAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,uBAAuB,EAAE,CAAA;AAAA,GACnD;AAAA,EACA,qBAAuB,EAAA;AAAA,IACrB,MAAQ,EAAA,4CAAA;AAAA,IACR,YAAc,EAAA,IAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,yBAAyB,EAAE,CAAA;AAAA,GACrD;AACF;;;;"}
|