@voplus/morpho-document 6.0.46 → 6.0.48
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/es/data/tenant-service/TenantServiceStore.js +3 -3
- package/es/data/tenant-service/TenantServiceStore.js.map +1 -1
- package/es/data/tenant-service/interfaces.d.ts +4 -0
- package/es/data/tenant-service/types.d.ts +3 -1
- package/es/data/tenant-service-execution/TenantServiceExecutionStore.js +2 -2
- package/es/data/tenant-service-execution/TenantServiceExecutionStore.js.map +1 -1
- package/es/data/tenant-service-execution/hooks.d.ts +1 -1
- package/es/data/tenant-service-execution/hooks.js +1 -1
- package/es/data/tenant-service-execution/hooks.js.map +1 -1
- package/es/data/tenant-service-execution/interfaces.d.ts +14 -3
- package/es/modules/tenant-service/components/TenantServiceHeader/index.d.ts +0 -2
- package/es/modules/tenant-service/components/TenantServiceHeader/index.js +2 -2
- package/es/modules/tenant-service/components/TenantServiceHeader/index.js.map +1 -1
- package/es/modules/tenant-service/components/TenantServiceInterval/index.d.ts +5 -0
- package/es/modules/tenant-service/components/TenantServiceInterval/index.js +36 -0
- package/es/modules/tenant-service/components/TenantServiceInterval/index.js.map +1 -0
- package/es/modules/tenant-service/components/TenantServiceInterval/index.less +32 -0
- package/es/modules/tenant-service/components/TenantServiceInterval/state.d.ts +28 -0
- package/es/modules/tenant-service/components/TenantServiceInterval/state.js +177 -0
- package/es/modules/tenant-service/components/TenantServiceInterval/state.js.map +1 -0
- package/es/modules/tenant-service/components/TenantServiceItem/index.d.ts +0 -2
- package/es/modules/tenant-service/components/TenantServiceItem/index.js +15 -18
- package/es/modules/tenant-service/components/TenantServiceItem/index.js.map +1 -1
- package/es/modules/tenant-service/components/TenantServiceItem/index.less +1 -0
- package/es/modules/tenant-service/components/TenantServiceList/index.d.ts +0 -2
- package/es/modules/tenant-service/components/TenantServiceList/index.js +3 -19
- package/es/modules/tenant-service/components/TenantServiceList/index.js.map +1 -1
- package/es/modules/tenant-service/components/TenantServiceProperties/index.d.ts +1 -3
- package/es/modules/tenant-service/components/TenantServiceProperties/index.js +17 -7
- package/es/modules/tenant-service/components/TenantServiceProperties/index.js.map +1 -1
- package/es/modules/tenant-service/components/TenantServicePropertiesView/index.d.ts +0 -3
- package/es/modules/tenant-service/components/TenantServicePropertiesView/index.js +2 -4
- package/es/modules/tenant-service/components/TenantServicePropertiesView/index.js.map +1 -1
- package/es/modules/tenant-service/components/TenantServiceQuickViewDialog/index.d.ts +1 -1
- package/es/modules/tenant-service/components/TenantServiceQuickViewDialog/index.js +13 -4
- package/es/modules/tenant-service/components/TenantServiceQuickViewDialog/index.js.map +1 -1
- package/es/modules/tenant-service/components/TenantServiceReference/index.d.ts +5 -0
- package/es/modules/tenant-service/components/TenantServiceReference/index.js +14 -0
- package/es/modules/tenant-service/components/TenantServiceReference/index.js.map +1 -0
- package/es/modules/tenant-service/components/TenantServiceTabs/index.js +9 -16
- package/es/modules/tenant-service/components/TenantServiceTabs/index.js.map +1 -1
- package/es/modules/tenant-service/pages/TenantServiceDefaultView/index.js +4 -10
- package/es/modules/tenant-service/pages/TenantServiceDefaultView/index.js.map +1 -1
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionHeader/index.d.ts +6 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionHeader/index.js +19 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionHeader/index.js.map +1 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionHeader/index.less +12 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionItem/index.d.ts +5 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionItem/index.js +34 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionItem/index.js.map +1 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionItem/index.less +29 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionList/index.d.ts +16 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionList/index.js +52 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionList/index.js.map +1 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionList/index.less +12 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionMessagesList/index.d.ts +7 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionMessagesList/index.js +24 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionMessagesList/index.js.map +1 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionMessagesList/index.less +27 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionProperties/index.d.ts +20 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionProperties/index.js +46 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionProperties/index.js.map +1 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionPropertiesView/index.d.ts +9 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionPropertiesView/index.js +16 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionPropertiesView/index.js.map +1 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionPropertiesView/index.less +4 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionQuickViewDialog/index.d.ts +8 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionQuickViewDialog/index.js +22 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionQuickViewDialog/index.js.map +1 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionQuickViewDialog/index.less +7 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionTabs/index.d.ts +6 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionTabs/index.js +24 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionTabs/index.js.map +1 -0
- package/es/modules/tenant-service-execution/controls/TenantServiceExecutionMenu/index.d.ts +6 -0
- package/es/modules/tenant-service-execution/controls/TenantServiceExecutionMenu/index.js +9 -0
- package/es/modules/tenant-service-execution/controls/TenantServiceExecutionMenu/index.js.map +1 -0
- package/es/modules/tenant-service-execution/pages/TenantServiceExecutionDefaultView/index.d.ts +3 -0
- package/es/modules/tenant-service-execution/pages/TenantServiceExecutionDefaultView/index.js +30 -0
- package/es/modules/tenant-service-execution/pages/TenantServiceExecutionDefaultView/index.js.map +1 -0
- package/es/modules/tenant-service-execution/pages/TenantServiceExecutionDefaultView/index.less +17 -0
- package/es/pages/Signature/Letter/LetterViewer/index.less +1 -1
- package/es/routes.d.ts +12 -0
- package/es/routes.js +31 -5
- package/es/routes.js.map +1 -1
- package/package.json +1 -1
- package/es/modules/tenant-service/components/TenantServiceSelect/index.d.ts +0 -12
- package/es/modules/tenant-service/components/TenantServiceSelect/index.js +0 -44
- package/es/modules/tenant-service/components/TenantServiceSelect/index.js.map +0 -1
|
@@ -30,7 +30,7 @@ export class TenantServiceStore extends Store {
|
|
|
30
30
|
/** Edit an existing item on server. */
|
|
31
31
|
async edit(id, options) {
|
|
32
32
|
await this.action(async () => {
|
|
33
|
-
const r = await this.endpoint.post(`/api/
|
|
33
|
+
const r = await this.endpoint.post(`/api/settings/hosted-services/${id}`, new RequestBuilder().json(options.data));
|
|
34
34
|
const t = await r.json();
|
|
35
35
|
this.items.overwrite(t.id, t);
|
|
36
36
|
}, options);
|
|
@@ -45,7 +45,7 @@ export class TenantServiceStore extends Store {
|
|
|
45
45
|
}
|
|
46
46
|
if (query)
|
|
47
47
|
query = "?".concat(query);
|
|
48
|
-
const r = await this.endpoint.post(`/api/
|
|
48
|
+
const r = await this.endpoint.post(`/api/settings/hosted-services${query}`, new RequestBuilder().json(options ? options : { Filters: [] }));
|
|
49
49
|
return (await r.json());
|
|
50
50
|
}
|
|
51
51
|
async load(id, options) {
|
|
@@ -54,7 +54,7 @@ export class TenantServiceStore extends Store {
|
|
|
54
54
|
query = query.concat(`includes=${options.includes}`);
|
|
55
55
|
if (query)
|
|
56
56
|
query = "?".concat(query);
|
|
57
|
-
const r = await this.endpoint.get(`/api/
|
|
57
|
+
const r = await this.endpoint.get(`/api/settings/hosted-services/${id}${query}`);
|
|
58
58
|
return await r.json();
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TenantServiceStore.js","sourceRoot":"","sources":["../../../src/data/tenant-service/TenantServiceStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAG/E,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAIlC,MAAM,SAAS,GAAG,oBAAoB,CAAC;AAEvC,gDAAgD;AAChD,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IAI5C,YAAmC,QAAqB;QACvD,KAAK,EAAE,CAAC;QADU;;;;mBAAgB,QAAQ;WAAa;QAHxD,wBAAwB;QACR;;;;mBAAe,SAAS;WAAC;QAMzC,oCAAoC;QACpB;;;;mBAA4C,IAAI,UAAU,CACzE,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAqB,CAAA,EAC/D,UAAU,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAClC;WAAC;IANF,CAAC;IAQD,uCAAuC;IAChC,KAAK,CAAC,IAAI,CAAC,EAAU,EAAE,OAAiC;QAC9D,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;YAC5B,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CACjC,
|
|
1
|
+
{"version":3,"file":"TenantServiceStore.js","sourceRoot":"","sources":["../../../src/data/tenant-service/TenantServiceStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAA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@@ -14,4 +14,8 @@ export interface ITenantService extends ILoadable {
|
|
|
14
14
|
isRunning: boolean;
|
|
15
15
|
/** enable of the tenant service. */
|
|
16
16
|
enable?: boolean;
|
|
17
|
+
/** last start of the tenant service. */
|
|
18
|
+
lastStart?: string;
|
|
19
|
+
/** Interval 是每次运行最小间隔,只保证不会小于这个间隔,后台用分钟记录. */
|
|
20
|
+
interval?: number;
|
|
17
21
|
}
|
|
@@ -7,7 +7,9 @@ export type LoadTenantServiceOptions = {
|
|
|
7
7
|
} & LoadOptions<ITenantService>;
|
|
8
8
|
export type TenantServiceEditOptions = {
|
|
9
9
|
/** enable of the tenant service. */
|
|
10
|
-
Enable
|
|
10
|
+
Enable?: boolean;
|
|
11
|
+
/** interval of the tenant service. */
|
|
12
|
+
Interval?: number;
|
|
11
13
|
};
|
|
12
14
|
export type EditTenantServiceOptions = {
|
|
13
15
|
data: TenantServiceEditOptions;
|
|
@@ -37,7 +37,7 @@ export class TenantServiceExecutionStore extends Store {
|
|
|
37
37
|
}
|
|
38
38
|
if (query)
|
|
39
39
|
query = "?".concat(query);
|
|
40
|
-
const r = await this.endpoint.post(`/api/
|
|
40
|
+
const r = await this.endpoint.post(`/api/settings/hosted-services/executions${query}`, new RequestBuilder().json(options ? options : { Filters: [] }));
|
|
41
41
|
return (await r.json());
|
|
42
42
|
}
|
|
43
43
|
async load(id, options) {
|
|
@@ -46,7 +46,7 @@ export class TenantServiceExecutionStore extends Store {
|
|
|
46
46
|
query = query.concat(`includes=${options.includes}`);
|
|
47
47
|
if (query)
|
|
48
48
|
query = "?".concat(query);
|
|
49
|
-
const r = await this.endpoint.get(`/api/
|
|
49
|
+
const r = await this.endpoint.get(`/api/settings/hosted-services/executions/${id}${query}`);
|
|
50
50
|
return await r.json();
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TenantServiceExecutionStore.js","sourceRoot":"","sources":["../../../src/data/tenant-service-execution/TenantServiceExecutionStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAG/E,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAIlC,MAAM,SAAS,GAAG,6BAA6B,CAAC;AAEhD,gDAAgD;AAChD,MAAM,OAAO,2BAA4B,SAAQ,KAAK;IAIrD,YAAmC,QAAqB;QACvD,KAAK,EAAE,CAAC;QADU;;;;mBAAgB,QAAQ;WAAa;QAHxD,wBAAwB;QACR;;;;mBAAe,SAAS;WAAC;QAMzC,oCAAoC;QACpB;;;;mBAAqD,IAAI,UAAU,CAClF,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAA8B,CAAA,EACxE,UAAU,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAClC;WAAC;IANF,CAAC;IAQD;;OAEG;IACI,KAAK,CAAC,QAAQ,CAAC,OAAiC;QACtD,IAAI,KAAK,GAAG,EAAE,CAAC;QACf,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,EAAE,CAAC;YACvB,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,YAAY,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;QACtD,CAAC;QACD,IAAI,KAAK;YAAE,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAErC,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CACjC,
|
|
1
|
+
{"version":3,"file":"TenantServiceExecutionStore.js","sourceRoot":"","sources":["../../../src/data/tenant-service-execution/TenantServiceExecutionStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,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AChB,EAAU,EACV,OAA0C;QAE1C,IAAI,KAAK,GAAG,EAAE,CAAC;QACf,IAAI,OAAO,CAAC,QAAQ;YAAE,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,YAAY,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3E,IAAI,KAAK;YAAE,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACrC,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,4CAA4C,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;QAC5F,OAAO,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;IACvB,CAAC;CACD;AAED,2BAA2B;AAC3B,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAAG,EAAE;IAClD,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAC;IACxC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;QACpC,OAAO,CAAC,eAAe,CAAC,IAAI,2BAA2B,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;IACvF,CAAC;IACD,OAAO,OAAO,CAAC,UAAU,CAAC,SAAS,CAAiC,CAAC;AACtE,CAAC,CAAC"}
|
|
@@ -7,4 +7,4 @@ import { ITenantServiceExecution } from "./interfaces";
|
|
|
7
7
|
* @param {LoadDocumentOptions} options - options
|
|
8
8
|
*/
|
|
9
9
|
export declare const useTenantServiceExecution: (id: string, options?: LoadTenantServiceExecutionOptions) => ITenantServiceExecution;
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const useTenantServiceExecutionListEffect: (list: ListDataContextState<ITenantServiceExecution> | null, effect: (list: ITenantServiceExecution[], total: number) => void, options?: LoadDocumentListOptions) => void;
|
|
@@ -10,7 +10,7 @@ export const useTenantServiceExecution = (id, options) => {
|
|
|
10
10
|
const store = useTenantServiceExecutionStore();
|
|
11
11
|
return useLoadCountedMapItem(id, store.items, (calculatedOptions) => store.load(id, calculatedOptions), options);
|
|
12
12
|
};
|
|
13
|
-
export const
|
|
13
|
+
export const useTenantServiceExecutionListEffect = (list, effect, options) => {
|
|
14
14
|
const deps = options ? options : {};
|
|
15
15
|
const store = useTenantServiceExecutionStore();
|
|
16
16
|
// Call useListLoaderEffect and ensure won't load twice for same loading options.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data/tenant-service-execution/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGjE,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAG/E;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACxC,EAAU,EACV,OAA2C,EAC1C,EAAE;IACH,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAAwC,CAAC;IACxE,MAAM,KAAK,GAAG,8BAA8B,EAAE,CAAC;IAC/C,OAAO,qBAAqB,CAC3B,EAAE,EACF,KAAK,CAAC,KAAK,EACX,CAAC,iBAAiB,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,iBAAiB,CAAC,EACxD,OAAO,CACP,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data/tenant-service-execution/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGjE,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAG/E;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACxC,EAAU,EACV,OAA2C,EAC1C,EAAE;IACH,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAAwC,CAAC;IACxE,MAAM,KAAK,GAAG,8BAA8B,EAAE,CAAC;IAC/C,OAAO,qBAAqB,CAC3B,EAAE,EACF,KAAK,CAAC,KAAK,EACX,CAAC,iBAAiB,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,iBAAiB,CAAC,EACxD,OAAO,CACP,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAClD,IAA0D,EAC1D,MAAgE,EAChE,OAAiC,EAChC,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA8B,CAAC;IACjE,MAAM,KAAK,GAAG,8BAA8B,EAAE,CAAC;IAE/C,iFAAiF;IACjF,OAAO,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9F,CAAC,CAAC"}
|
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
import { ILoadable } from "@voplus/morpho-data";
|
|
2
|
+
export type IMessage = {
|
|
3
|
+
date: string | Date;
|
|
4
|
+
message: string;
|
|
5
|
+
isError: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type IService = {
|
|
8
|
+
id: string | number;
|
|
9
|
+
name: string;
|
|
10
|
+
serviceId: string;
|
|
11
|
+
};
|
|
2
12
|
export interface ITenantServiceExecution extends ILoadable {
|
|
3
13
|
/** id of the tenant service execution.
|
|
4
14
|
* 注意Alex给的是 id:number, 但如果是number有多个地方会报错
|
|
5
15
|
*/
|
|
6
16
|
id: string;
|
|
17
|
+
service: IService;
|
|
7
18
|
/** start time of the tenant service execution. */
|
|
8
|
-
startTime
|
|
19
|
+
startTime: string | Date;
|
|
9
20
|
/** complete time of the tenant service execution. */
|
|
10
|
-
completeTime
|
|
21
|
+
completeTime: string | Date;
|
|
11
22
|
/** message of the tenant service execution. */
|
|
12
|
-
|
|
23
|
+
messages: IMessage[];
|
|
13
24
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import "./index.less";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { ITenantService } from "../../../../data/tenant-service";
|
|
4
3
|
declare const TenantServiceHeader: (props: {
|
|
5
4
|
id: string;
|
|
6
|
-
data?: ITenantService;
|
|
7
5
|
}) => React.JSX.Element;
|
|
8
6
|
export default TenantServiceHeader;
|
|
@@ -3,12 +3,12 @@ import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
|
3
3
|
import { Open } from "../../../../controls/ToolBar/buttons";
|
|
4
4
|
import { observe } from "@voplus/morpho-ui";
|
|
5
5
|
import React from "react";
|
|
6
|
+
import { useTenantService } from "../../../../data/tenant-service";
|
|
6
7
|
import Routes from "../../../../routes";
|
|
7
8
|
import TenantServiceMenu from "../../controls/TenantServiceMenu";
|
|
8
9
|
const TenantServiceHeader = (props) => {
|
|
9
10
|
const id = props.id;
|
|
10
|
-
|
|
11
|
-
const tenantService = props.data;
|
|
11
|
+
const tenantService = useTenantService(id);
|
|
12
12
|
return observe(() => (React.createElement("div", { className: "tenant-service-header" },
|
|
13
13
|
React.createElement("div", null, tenantService.name),
|
|
14
14
|
React.createElement(ToolBar, { showMenu: false },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServiceHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServiceHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AAEjE,MAAM,mBAAmB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACrD,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,aAAa,GAAG,gBAAgB,CAAC,EAAE,CAAC,CAAC;IAE3C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,uBAAuB;QACrC,iCAAM,aAAa,CAAC,IAAI,CAAO;QAC/B,oBAAC,OAAO,IAAC,QAAQ,EAAE,KAAK;YACvB,oBAAC,IAAI,IAAC,GAAG,EAAE,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,CAAC,GAAI;YAC9C,oBAAC,iBAAiB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CACtC,CACL,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { Button, Popover, InputNumber } from "antd";
|
|
4
|
+
import { useTenantServiceStore, useTenantService } from "../../../../data/tenant-service";
|
|
5
|
+
import dayjs from "dayjs";
|
|
6
|
+
import duration from "dayjs/plugin/duration";
|
|
7
|
+
import { State } from "./state";
|
|
8
|
+
import "./index.less";
|
|
9
|
+
dayjs.extend(duration);
|
|
10
|
+
const TenantServiceInterval = (props) => {
|
|
11
|
+
const { id } = props;
|
|
12
|
+
const store = useTenantServiceStore();
|
|
13
|
+
const [state] = useState(new State(store));
|
|
14
|
+
const tenantService = useTenantService(id);
|
|
15
|
+
state.update(tenantService);
|
|
16
|
+
return observe(() => (React.createElement("div", null,
|
|
17
|
+
React.createElement(Popover, { title: "Interval", trigger: ["click"], open: state.visible, className: props.className, onOpenChange: (open) => state.onVisibleChange(open), overlayClassName: "tenant-service-interval-popover", content: React.createElement("div", null,
|
|
18
|
+
React.createElement("div", null,
|
|
19
|
+
React.createElement(InputNumber, { min: 0, max: 365, value: state.days, onChange: (value) => state.onChangeDays(value !== null && value !== void 0 ? value : 0) }),
|
|
20
|
+
"Days",
|
|
21
|
+
React.createElement(InputNumber, { min: 0, max: 23, value: state.hours, onChange: (value) => state.onChangeHours(value !== null && value !== void 0 ? value : 0) }),
|
|
22
|
+
"Hours",
|
|
23
|
+
React.createElement(InputNumber, { min: 0, max: 59, value: state.minutes, onChange: (value) => state.onChangeMinutes(value !== null && value !== void 0 ? value : 0) }),
|
|
24
|
+
"Minutes"),
|
|
25
|
+
React.createElement("div", { className: "tenant-service-interval-popover_footer" },
|
|
26
|
+
React.createElement(Button, { type: "link", loading: state.loading, onClick: () => state.onSave() }, "Save"))) },
|
|
27
|
+
React.createElement("span", null,
|
|
28
|
+
state.days,
|
|
29
|
+
" Days ",
|
|
30
|
+
state.hours,
|
|
31
|
+
" Hours ",
|
|
32
|
+
state.minutes,
|
|
33
|
+
" Minutes")))));
|
|
34
|
+
};
|
|
35
|
+
export default TenantServiceInterval;
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServiceInterval/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EA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,EAAE,CAAC,EACN,GAAG,EAAE,EAAE,EACP,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,CAAC,CAAC,GACnD;;oBAEF,oBAAC,WAAW,IACX,GAAG,EAAE,CAAC,EACN,GAAG,EAAE,EAAE,EACP,KAAK,EAAE,KAAK,CAAC,OAAO,EACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,CAAC,CAAC,GACrD;8BAEG;gBACN,6BAAK,SAAS,EAAC,wCAAwC;oBACtD,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,EAAE,WAEhE,CACJ,CACD;YAGP;gBACE,KAAK,CAAC,IAAI;;gBAAQ,KAAK,CAAC,KAAK;;gBAAS,KAAK,CAAC,OAAO;2BAC9C,CACE,CACL,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
:global {
|
|
2
|
+
.tenant-service-interval-popover {
|
|
3
|
+
.ant-popover-inner-content {
|
|
4
|
+
line-height: 32px;
|
|
5
|
+
color: #000;
|
|
6
|
+
.ant-popover-inner {
|
|
7
|
+
padding: 15px;
|
|
8
|
+
}
|
|
9
|
+
.ant-input-number {
|
|
10
|
+
width: 68px;
|
|
11
|
+
margin-left: 8px;
|
|
12
|
+
margin-right: 8px;
|
|
13
|
+
&:first-child {
|
|
14
|
+
margin-left: 0;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
&_footer {
|
|
19
|
+
padding-top: 5px;
|
|
20
|
+
text-align: right;
|
|
21
|
+
.ant-btn {
|
|
22
|
+
padding-right: 0;
|
|
23
|
+
&.remove {
|
|
24
|
+
color: #ff4d4f;
|
|
25
|
+
}
|
|
26
|
+
&.default {
|
|
27
|
+
color: #666;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { TenantServiceStore, ITenantService } from "../../../../data/tenant-service";
|
|
2
|
+
export type TenantServiceIntervalProps = {
|
|
3
|
+
id: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare class State {
|
|
7
|
+
private store;
|
|
8
|
+
tenantService: ITenantService;
|
|
9
|
+
days: number;
|
|
10
|
+
hours: number;
|
|
11
|
+
minutes: number;
|
|
12
|
+
/** loading of save */
|
|
13
|
+
loading: boolean;
|
|
14
|
+
/** visible of interval edit dialog */
|
|
15
|
+
visible: boolean;
|
|
16
|
+
constructor(store: TenantServiceStore);
|
|
17
|
+
update(data: ITenantService): void;
|
|
18
|
+
/** save StartDate && DueDate or EstimatedHours*/
|
|
19
|
+
onSave: () => Promise<void>;
|
|
20
|
+
onChangeDays: (value: number) => void;
|
|
21
|
+
onChangeHours: (value: number) => void;
|
|
22
|
+
onChangeMinutes: (value: number) => void;
|
|
23
|
+
onVisibleChange: (visible: boolean) => void;
|
|
24
|
+
/** convertToMinutes 接受天、小时和分钟作为参数,并使用dayjs的duration功能将它们转换为总分钟数 */
|
|
25
|
+
convertToMinutes: (days: number, hours: number, minutes: number) => number;
|
|
26
|
+
/** 将总分钟数转换为天、小时、分钟的格式 */
|
|
27
|
+
formatMinutes: (totalMinutes: number) => void;
|
|
28
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { action, makeObservable, observable } from "mobx";
|
|
3
|
+
import dayjs from "dayjs";
|
|
4
|
+
export class State {
|
|
5
|
+
constructor(store) {
|
|
6
|
+
Object.defineProperty(this, "store", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
configurable: true,
|
|
9
|
+
writable: true,
|
|
10
|
+
value: store
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(this, "tenantService", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
configurable: true,
|
|
15
|
+
writable: true,
|
|
16
|
+
value: void 0
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(this, "days", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
configurable: true,
|
|
21
|
+
writable: true,
|
|
22
|
+
value: 0
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(this, "hours", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
configurable: true,
|
|
27
|
+
writable: true,
|
|
28
|
+
value: 0
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(this, "minutes", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
configurable: true,
|
|
33
|
+
writable: true,
|
|
34
|
+
value: 0
|
|
35
|
+
});
|
|
36
|
+
/** loading of save */
|
|
37
|
+
Object.defineProperty(this, "loading", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
configurable: true,
|
|
40
|
+
writable: true,
|
|
41
|
+
value: false
|
|
42
|
+
});
|
|
43
|
+
/** visible of interval edit dialog */
|
|
44
|
+
Object.defineProperty(this, "visible", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
configurable: true,
|
|
47
|
+
writable: true,
|
|
48
|
+
value: false
|
|
49
|
+
});
|
|
50
|
+
/** save StartDate && DueDate or EstimatedHours*/
|
|
51
|
+
Object.defineProperty(this, "onSave", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
configurable: true,
|
|
54
|
+
writable: true,
|
|
55
|
+
value: async () => {
|
|
56
|
+
var _a;
|
|
57
|
+
this.loading = true;
|
|
58
|
+
const totalMinutes = this.convertToMinutes(this.days, this.hours, this.minutes);
|
|
59
|
+
console.log("---save");
|
|
60
|
+
await this.store.edit(this.tenantService.id, { data: { Interval: totalMinutes } });
|
|
61
|
+
/** 更新days,hours,minutes */
|
|
62
|
+
this.formatMinutes((_a = this.tenantService.interval) !== null && _a !== void 0 ? _a : 0);
|
|
63
|
+
this.loading = false;
|
|
64
|
+
this.visible = false;
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
Object.defineProperty(this, "onChangeDays", {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
configurable: true,
|
|
70
|
+
writable: true,
|
|
71
|
+
value: (value) => {
|
|
72
|
+
this.days = value !== null && value !== void 0 ? value : 0;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
Object.defineProperty(this, "onChangeHours", {
|
|
76
|
+
enumerable: true,
|
|
77
|
+
configurable: true,
|
|
78
|
+
writable: true,
|
|
79
|
+
value: (value) => {
|
|
80
|
+
this.hours = value !== null && value !== void 0 ? value : 0;
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
Object.defineProperty(this, "onChangeMinutes", {
|
|
84
|
+
enumerable: true,
|
|
85
|
+
configurable: true,
|
|
86
|
+
writable: true,
|
|
87
|
+
value: (value) => {
|
|
88
|
+
this.minutes = value !== null && value !== void 0 ? value : 0;
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
Object.defineProperty(this, "onVisibleChange", {
|
|
92
|
+
enumerable: true,
|
|
93
|
+
configurable: true,
|
|
94
|
+
writable: true,
|
|
95
|
+
value: (visible) => {
|
|
96
|
+
this.visible = visible;
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
/** convertToMinutes 接受天、小时和分钟作为参数,并使用dayjs的duration功能将它们转换为总分钟数 */
|
|
100
|
+
Object.defineProperty(this, "convertToMinutes", {
|
|
101
|
+
enumerable: true,
|
|
102
|
+
configurable: true,
|
|
103
|
+
writable: true,
|
|
104
|
+
value: (days, hours, minutes) => {
|
|
105
|
+
const totalDuration = dayjs.duration({ days, hours, minutes });
|
|
106
|
+
return totalDuration.asMinutes();
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
/** 将总分钟数转换为天、小时、分钟的格式 */
|
|
110
|
+
Object.defineProperty(this, "formatMinutes", {
|
|
111
|
+
enumerable: true,
|
|
112
|
+
configurable: true,
|
|
113
|
+
writable: true,
|
|
114
|
+
value: (totalMinutes) => {
|
|
115
|
+
// 获取天、小时、分钟
|
|
116
|
+
const days = Number(dayjs.duration({ minutes: totalMinutes }).as("days").toFixed());
|
|
117
|
+
const dayMinutes = dayjs.duration({ days: days }).as("minutes");
|
|
118
|
+
const ms1 = totalMinutes - dayMinutes;
|
|
119
|
+
const hours = Number(dayjs.duration({ minutes: ms1 }).as("hours").toFixed());
|
|
120
|
+
const hourMinutes = dayjs.duration({ hours: hours }).as("minutes");
|
|
121
|
+
const minutes = ms1 - hourMinutes;
|
|
122
|
+
this.days = days;
|
|
123
|
+
this.hours = hours;
|
|
124
|
+
this.minutes = minutes;
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
makeObservable(this);
|
|
128
|
+
}
|
|
129
|
+
update(data) {
|
|
130
|
+
var _a;
|
|
131
|
+
this.tenantService = data;
|
|
132
|
+
this.formatMinutes((_a = this.tenantService.interval) !== null && _a !== void 0 ? _a : 0);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
__decorate([
|
|
136
|
+
observable
|
|
137
|
+
], State.prototype, "tenantService", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
observable
|
|
140
|
+
], State.prototype, "days", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
observable
|
|
143
|
+
], State.prototype, "hours", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
observable
|
|
146
|
+
], State.prototype, "minutes", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
observable
|
|
149
|
+
], State.prototype, "loading", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
observable
|
|
152
|
+
], State.prototype, "visible", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
action
|
|
155
|
+
], State.prototype, "update", null);
|
|
156
|
+
__decorate([
|
|
157
|
+
action
|
|
158
|
+
], State.prototype, "onSave", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
action
|
|
161
|
+
], State.prototype, "onChangeDays", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
action
|
|
164
|
+
], State.prototype, "onChangeHours", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
action
|
|
167
|
+
], State.prototype, "onChangeMinutes", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
action
|
|
170
|
+
], State.prototype, "onVisibleChange", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
action
|
|
173
|
+
], State.prototype, "convertToMinutes", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
action
|
|
176
|
+
], State.prototype, "formatMinutes", void 0);
|
|
177
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServiceInterval/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,MAAM,OAAO,KAAK;IAUjB,YAA2B,KAAyB;QAAjC;;;;mBAAQ,KAAK;WAAoB;QATjC;;;;;WAA8B;QAC9B;;;;mBAAO,CAAC;WAAC;QACT;;;;mBAAQ,CAAC;WAAC;QACV;;;;mBAAU,CAAC;WAAC;QAC/B,uBAAuB;QACJ;;;;mBAAU,KAAK;WAAC;QACnC,wCAAwC;QACrB;;;;mBAAU,KAAK;WAAC;QAWnC,kDAAkD;QAE3C;;;;mBAAS,KAAK,IAAI,EAAE;;gBAC1B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;gBACpB,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAA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AwB;AAEhB;IAAlB,UAAU;sCAAwB;AAMpB;IAAd,MAAM;mCAGN;AAIM;IADN,MAAM;qCAUL;AAEa;IAAd,MAAM;2CAEL;AAEa;IAAd,MAAM;4CAEL;AAEa;IAAd,MAAM;8CAEL;AAEa;IAAd,MAAM;8CAEL;AAGa;IAAd,MAAM;+CAGL;AAGa;IAAd,MAAM;4CAYL"}
|
|
@@ -3,9 +3,10 @@ import { Open } from "../../../../controls/ToolBar/buttons";
|
|
|
3
3
|
import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
|
|
4
4
|
import { observe } from "@voplus/morpho-ui";
|
|
5
5
|
import { ColumnItem, ColumnItemCol } from "@voplus/morpho-ui/es/controls/ColumnItem";
|
|
6
|
-
import { Badge } from "antd";
|
|
6
|
+
import { Skeleton, Badge } from "antd";
|
|
7
7
|
import classnames from "classnames";
|
|
8
8
|
import React, { useState } from "react";
|
|
9
|
+
import { useTenantService } from "../../../../data/tenant-service";
|
|
9
10
|
import Routes from "../../../../routes";
|
|
10
11
|
import TenantServiceMenu from "../../controls/TenantServiceMenu";
|
|
11
12
|
import PropertiesView from "../TenantServicePropertiesView";
|
|
@@ -13,24 +14,20 @@ import TenantServiceQuickViewDialog from "../TenantServiceQuickViewDialog";
|
|
|
13
14
|
import styles from "./index.less";
|
|
14
15
|
const TenantServiceItem = (props) => {
|
|
15
16
|
const { id } = props;
|
|
16
|
-
|
|
17
|
-
const tenantService = props.data;
|
|
17
|
+
const tenantService = useTenantService(id);
|
|
18
18
|
const [hover, setHover] = useState(false);
|
|
19
|
-
return observe(() => (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
React.createElement(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
React.createElement(TenantServiceMenu, { id: id, closeAside: true }))))))
|
|
32
|
-
// </Skeleton>
|
|
33
|
-
));
|
|
19
|
+
return observe(() => (React.createElement(Skeleton, { active: true, loading: tenantService.loading },
|
|
20
|
+
React.createElement(ItemFunction, { className: styles["tenant-service-item"], onMouseOver: () => setHover(true), onMouseLeave: () => setHover(false), propertiesView: React.createElement(PropertiesView, { id: id }), quickViewDialog: (onCancel) => (React.createElement(TenantServiceQuickViewDialog, { id: id, visible: true, onCancel: onCancel })) },
|
|
21
|
+
React.createElement(ColumnItem, { className: "tenant-service-column-item" },
|
|
22
|
+
React.createElement(ColumnItemCol, { span: 18 },
|
|
23
|
+
React.createElement("div", { className: "tenant-service-item-name" }, `${tenantService.name}`),
|
|
24
|
+
React.createElement("div", { className: "text-gray-400 text-xs" }, tenantService.description)),
|
|
25
|
+
React.createElement(ColumnItemCol, { span: 6, align: "flex-end" },
|
|
26
|
+
React.createElement("div", { className: classnames("tenant-service-running", { hide: hover }) }, tenantService.isRunning ? React.createElement(Badge, { color: "green", text: "Running" }) : null),
|
|
27
|
+
React.createElement("div", { className: classnames("tenant-service-item-tool", { show: hover }) },
|
|
28
|
+
React.createElement(ToolBar, { showMenu: false },
|
|
29
|
+
React.createElement(Open, { url: Routes.TenantService.getUrl(id) }),
|
|
30
|
+
React.createElement(TenantServiceMenu, { id: id, closeAside: true })))))))));
|
|
34
31
|
};
|
|
35
32
|
export default TenantServiceItem;
|
|
36
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServiceItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAC5D,OAAO,YAAY,MAAM,6CAA6C,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,
|
|
1
|
+
{"version":3,"file":"index.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/es/components/layout/ListView/ListView2"
|
|
|
8
8
|
import TenantServiceItem from "../TenantServiceItem";
|
|
9
9
|
import styles from "./index.less";
|
|
10
10
|
const TenantServiceList = (props) => {
|
|
11
|
-
const {
|
|
11
|
+
const { viewTitle, total, asideable } = props;
|
|
12
12
|
const [activeId, setActiveId] = useState("");
|
|
13
13
|
const [tenantServiceTotal, setTenantServiceTotal] = useState(0);
|
|
14
14
|
const list = useCreateListDataState({
|
|
15
15
|
filterDefaults: {
|
|
16
16
|
filters: [],
|
|
17
17
|
},
|
|
18
|
-
}, [
|
|
18
|
+
}, []);
|
|
19
19
|
useRenderOnChange(() => list.filters.options);
|
|
20
20
|
/** 把ListDataState传给useTenantServiceListEffect,使之可以自動更新loading, hasmore. */
|
|
21
21
|
useTenantServiceListEffect(list, (result, total) => {
|
|
@@ -27,22 +27,6 @@ const TenantServiceList = (props) => {
|
|
|
27
27
|
Total: true,
|
|
28
28
|
...list.filters.options,
|
|
29
29
|
});
|
|
30
|
-
list.union([
|
|
31
|
-
{
|
|
32
|
-
id: "1",
|
|
33
|
-
serviceId: "123",
|
|
34
|
-
name: "Linked Sales Center",
|
|
35
|
-
description: "Principal manager endowed with full permissions, including the ability to change settings.Dedicated personnel tasked with the specific responsibility of invoice approval.",
|
|
36
|
-
isRunning: true,
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
id: "2",
|
|
40
|
-
serviceId: "234",
|
|
41
|
-
name: "Tenant Service 02",
|
|
42
|
-
description: "Personnel authorized to approve both invoices and bills.",
|
|
43
|
-
isRunning: false,
|
|
44
|
-
},
|
|
45
|
-
]);
|
|
46
30
|
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
|
47
31
|
React.createElement("div", { className: styles["tenant-service-list"] },
|
|
48
32
|
React.createElement(ListView, { headerProps: {
|
|
@@ -62,7 +46,7 @@ const TenantServiceList = (props) => {
|
|
|
62
46
|
setActiveId(item.id);
|
|
63
47
|
(_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item);
|
|
64
48
|
} },
|
|
65
|
-
React.createElement(TenantServiceItem, { id: item.id
|
|
49
|
+
React.createElement(TenantServiceItem, { id: item.id }))) })))));
|
|
66
50
|
};
|
|
67
51
|
export default TenantServiceList;
|
|
68
52
|
//# sourceMappingURL=index.js.map
|