fix: add service to get xlmap rules and fixed interface name
This commit is contained in:
parent
5d93346b52
commit
9ffa30ab74
|
@ -189,7 +189,7 @@
|
|||
router.url.includes('edit-record') ||
|
||||
router.url.includes('home')
|
||||
"
|
||||
>Load</a
|
||||
>LOAD</a
|
||||
>
|
||||
<a
|
||||
[routerLink]="['/review/submitted']"
|
||||
|
|
|
@ -38,7 +38,7 @@ import { HotTableInterface } from '../models/HotTable.interface'
|
|||
import {
|
||||
$DataFormats,
|
||||
DSMeta,
|
||||
EditorsGetdataServiceResponse
|
||||
EditorsGetDataServiceResponse
|
||||
} from '../models/sas/editors-getdata.model'
|
||||
import { DataFormat } from '../models/sas/common/DateFormat'
|
||||
import SheetInfo from '../models/SheetInfo'
|
||||
|
@ -2964,7 +2964,7 @@ export class EditorComponent implements OnInit, AfterViewInit {
|
|||
|
||||
await this.sasStoreService
|
||||
.callService(myParams, 'SASControlTable', 'editors/getdata', this.libds)
|
||||
.then((res: EditorsGetdataServiceResponse) => {
|
||||
.then((res: EditorsGetDataServiceResponse) => {
|
||||
this.initSetup(res)
|
||||
})
|
||||
.catch((err: any) => {
|
||||
|
@ -2976,7 +2976,7 @@ export class EditorComponent implements OnInit, AfterViewInit {
|
|||
|
||||
ngAfterViewInit() {}
|
||||
|
||||
initSetup(response: EditorsGetdataServiceResponse) {
|
||||
initSetup(response: EditorsGetDataServiceResponse) {
|
||||
this.hotInstance = this.hotRegisterer.getInstance('hotInstance')
|
||||
|
||||
if (this.getdataError) return
|
||||
|
|
|
@ -4,12 +4,12 @@ import { DQData, SASParam } from '../TableData'
|
|||
import { BaseSASResponse } from './common/BaseSASResponse'
|
||||
import { DataFormat } from './common/DateFormat'
|
||||
|
||||
export interface EditorsGetdataServiceResponse {
|
||||
data: EditorsGetdataSASResponse
|
||||
export interface EditorsGetDataServiceResponse {
|
||||
data: EditorsGetDataSASResponse
|
||||
libds: string
|
||||
}
|
||||
|
||||
export interface EditorsGetdataSASResponse extends BaseSASResponse {
|
||||
export interface EditorsGetDataSASResponse extends BaseSASResponse {
|
||||
$sasdata: $DataFormats
|
||||
sasdata: Sasdata[]
|
||||
sasparams: SASParam[]
|
||||
|
|
|
@ -10,8 +10,8 @@ import { globals } from '../_globals'
|
|||
import { FilterClause, FilterGroup, FilterQuery } from '../models/FilterQuery'
|
||||
import {
|
||||
$DataFormats,
|
||||
EditorsGetdataSASResponse,
|
||||
EditorsGetdataServiceResponse
|
||||
EditorsGetDataSASResponse,
|
||||
EditorsGetDataServiceResponse
|
||||
} from '../models/sas/editors-getdata.model'
|
||||
import { LoggerService } from './logger.service'
|
||||
import { isSpecialMissing } from '@sasjs/utils/input/validators'
|
||||
|
@ -57,13 +57,13 @@ export class SasStoreService {
|
|||
libds: string
|
||||
) {
|
||||
this.libds = libds
|
||||
let tables: any = {}
|
||||
const tables: any = {}
|
||||
tables[tableName] = [tableData]
|
||||
let res: EditorsGetdataSASResponse = await this.sasService.request(
|
||||
const res: EditorsGetDataSASResponse = await this.sasService.request(
|
||||
program,
|
||||
tables
|
||||
)
|
||||
let response: EditorsGetdataServiceResponse = {
|
||||
const response: EditorsGetDataServiceResponse = {
|
||||
data: res,
|
||||
libds: this.libds
|
||||
}
|
||||
|
@ -209,6 +209,14 @@ export class SasStoreService {
|
|||
return res
|
||||
}
|
||||
|
||||
public async getXLMapRules(id: string) {
|
||||
const tables = {
|
||||
getxlmaps_in: [{ XLMAP_ID: id }]
|
||||
}
|
||||
const res: any = await this.sasService.request('editors/getxlmaps', tables)
|
||||
return res
|
||||
}
|
||||
|
||||
public async getDetails(tableData: any, tableName: string, program: string) {
|
||||
let tables: any = {}
|
||||
tables[tableName] = [tableData]
|
||||
|
|
Loading…
Reference in New Issue