viewconfig.ts 19.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
import { MockAdapter } from '../mock-adapter';
const mock = MockAdapter.getInstance();

import Mock from 'mockjs'

// 获取studio链接数据
mock.onGet('./assets/json/view-config.json').reply((config: any) => {
    let status = MockAdapter.mockStatus(config);
    return [status,{
                "dstindex": {
            "title": "DST",
            "caption": "ibizlab",
            "viewtype": "APPINDEXVIEW",
            "viewmodule": "lite",
            "viewname": "dstIndex",
            "viewtag": "010508c3fad87c6834d847f3f953b752"
        },
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
        "metamodelpickupgridview": {
            "title": "模型选择表格视图",
            "caption": "模型",
            "viewtype": "DEPICKUPGRIDVIEW",
            "viewmodule": "lite",
            "viewname": "MetaModelPickupGridView",
            "viewtag": "0138cf6fabeea36df7ab578676450e6e"
        },
        "dadimensioneditview": {
            "title": "维度编辑视图",
            "caption": "维度",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "analysis",
            "viewname": "DADimensionEditView",
            "viewtag": "02bd5d4855896aeccc41847f9a761460"
        },
        "dabuildgridview": {
            "title": "分析表格视图",
            "caption": "分析",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "analysis",
            "viewname": "DABuildGridView",
            "viewtag": "08ffec9daab32e20d7b560f58c5c5ede"
        },
        "execloggridview": {
            "title": "执行日志表格视图",
            "caption": "执行日志",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "rule",
            "viewname": "ExecLogGridView",
            "viewtag": "0b73baede663f44e34922b120c4eb1b5"
        },
        "ruleengineeditview": {
            "title": "规则引擎编辑视图",
            "caption": "规则引擎",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "rule",
            "viewname": "RuleEngineEditView",
            "viewtag": "0d1bc9c638ba04c5774c025e1a1eddd1"
        },
        "ruleitemgridview": {
            "title": "规则表格视图",
            "caption": "规则",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "rule",
            "viewname": "RuleItemGridView",
            "viewtag": "10ab5e91502066e434c01d11eda9ec8c"
        },
66 67 68 69 70 71 72 73
        "metamodulegridview": {
            "title": "模块表格视图",
            "caption": "模块",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "lite",
            "viewname": "MetaModuleGridView",
            "viewtag": "126d4ecd07541fa535fa503fe1dae602"
        },
74 75 76 77 78 79 80 81
        "execlogeditview": {
            "title": "执行日志编辑视图",
            "caption": "执行日志",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "rule",
            "viewname": "ExecLogEditView",
            "viewtag": "1279b311cfe173499c68fb63fafa30fa"
        },
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
        "metarelationshippickupgridview": {
            "title": "实体关系选择表格视图",
            "caption": "实体关系",
            "viewtype": "DEPICKUPGRIDVIEW",
            "viewmodule": "lite",
            "viewname": "MetaRelationshipPickupGridView",
            "viewtag": "12a472fecfce87913dfe7b2eed0abae0"
        },
        "dstsystemeditview": {
            "title": "系统编辑视图",
            "caption": "系统",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "lite",
            "viewname": "DstSystemEditView",
            "viewtag": "14f8bfb549eedacb25bad2af453c5ad3"
        },
        "metamodulepickupgridview": {
            "title": "模块选择表格视图",
            "caption": "模块",
            "viewtype": "DEPICKUPGRIDVIEW",
            "viewmodule": "lite",
            "viewname": "MetaModulePickupGridView",
            "viewtag": "17ce052423b847f488d74d3b2ba6bfdf"
        },
106 107 108 109 110 111 112 113
        "execresultgridview": {
            "title": "执行结果表格视图",
            "caption": "执行结果",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "rule",
            "viewname": "ExecResultGridView",
            "viewtag": "1b472dc31d7586037311b19f13ecd5b8"
        },
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
        "dstdatasourcepickupview": {
            "title": "数据源数据选择视图",
            "caption": "数据源",
            "viewtype": "DEPICKUPVIEW",
            "viewmodule": "lite",
            "viewname": "DstDataSourcePickupView",
            "viewtag": "1bb847c6d4ffd0298789556d4dbe37a7"
        },
        "metarelationshippickupview": {
            "title": "实体关系数据选择视图",
            "caption": "实体关系",
            "viewtype": "DEPICKUPVIEW",
            "viewmodule": "lite",
            "viewname": "MetaRelationshipPickupView",
            "viewtag": "1c07c02dbdabe0de1cd85e6235497549"
        },
        "metarelationshipgridview": {
            "title": "实体关系表格视图",
            "caption": "实体关系",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "lite",
            "viewname": "MetaRelationshipGridView",
            "viewtag": "204b909ab7496f579d3688279dd851bb"
        },
138 139 140 141 142 143 144 145
        "ruleitempickupview": {
            "title": "规则数据选择视图",
            "caption": "规则",
            "viewtype": "DEPICKUPVIEW",
            "viewmodule": "rule",
            "viewname": "RuleItemPickupView",
            "viewtag": "2b6c5cbcb647db5adc94fd966aa80bfd"
        },
146 147 148 149 150 151 152 153
        "dstdatasourceeditview": {
            "title": "数据源编辑视图",
            "caption": "数据源",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "lite",
            "viewname": "DstDataSourceEditView",
            "viewtag": "2c9bb70a801b520dfdc5bc22c56d3aa0"
        },
154 155 156 157 158 159 160 161
        "dametricgridview": {
            "title": "指标表格视图",
            "caption": "指标",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "analysis",
            "viewname": "DAMetricGridView",
            "viewtag": "311397b990a864f52992aa9b391bfc32"
        },
162 163 164 165 166 167 168 169
        "metamodelfileuploadoptionview": {
            "title": "模型选项操作视图",
            "caption": "模型",
            "viewtype": "DEOPTVIEW",
            "viewmodule": "lite",
            "viewname": "MetaModelFileUploadOptionView",
            "viewtag": "35ffea078130f40ec781f57b0103fb0d"
        },
170 171 172 173 174 175 176 177
        "dstsystempickupview": {
            "title": "系统数据选择视图",
            "caption": "系统",
            "viewtype": "DEPICKUPVIEW",
            "viewmodule": "lite",
            "viewname": "DstSystemPickupView",
            "viewtag": "3801af2ccbe0dfafc149efc6f0ccb0e5"
        },
178 179 180 181 182 183 184 185
        "ruleitempickupgridview": {
            "title": "规则选择表格视图",
            "caption": "规则",
            "viewtype": "DEPICKUPGRIDVIEW",
            "viewmodule": "rule",
            "viewname": "RuleItemPickupGridView",
            "viewtag": "39a2ac0f7cdc72d675c9829f56c92dd7"
        },
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209
        "metafieldeditgridview": {
            "title": "属性表格视图",
            "caption": "属性",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "lite",
            "viewname": "MetaFieldEditGridView",
            "viewtag": "3cbe2fc7acab1a6f0e7e81f1bd86cd41"
        },
        "metamoduleeditview": {
            "title": "模块编辑视图",
            "caption": "模块",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "lite",
            "viewname": "MetaModuleEditView",
            "viewtag": "40f89ed271da10484bbc509b79958592"
        },
        "metadataseteditview": {
            "title": "数据集编辑视图",
            "caption": "数据集",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "lite",
            "viewname": "MetaDataSetEditView",
            "viewtag": "43523e981c1757d67545cf77448df32e"
        },
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
        "dareporteditview": {
            "title": "报表编辑视图",
            "caption": "报表",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "analysis",
            "viewname": "DAReportEditView",
            "viewtag": "4425be08b70d5319481f443085373932"
        },
        "ruleitemeditview": {
            "title": "规则编辑视图",
            "caption": "规则",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "rule",
            "viewname": "RuleItemEditView",
            "viewtag": "4626aa560dd7da0d0b13aad2f76b69cd"
        },
226 227 228 229 230 231 232 233
        "ruleitemmpickupview": {
            "title": "规则数据多项选择视图",
            "caption": "规则",
            "viewtype": "DEMPICKUPVIEW",
            "viewmodule": "rule",
            "viewname": "RuleItemMPickupView",
            "viewtag": "4ca19abc707ad8902a93555d5225eec4"
        },
234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265
        "dabuildmpickupview": {
            "title": "分析数据多项选择视图",
            "caption": "分析",
            "viewtype": "DEMPICKUPVIEW",
            "viewmodule": "analysis",
            "viewname": "DABuildMPickupView",
            "viewtag": "533710456f7f492b6e56cab982f7dcf4"
        },
        "metamodelpickupview": {
            "title": "模型数据选择视图",
            "caption": "模型",
            "viewtype": "DEPICKUPVIEW",
            "viewmodule": "lite",
            "viewname": "MetaModelPickupView",
            "viewtag": "576926a1494d9d3727dbd9c2c16ef2fc"
        },
        "dacharteditview": {
            "title": "图表编辑视图",
            "caption": "图表",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "analysis",
            "viewname": "DAChartEditView",
            "viewtag": "596fc713bbfe4da8b2089303bf681fd1"
        },
        "dabuildeditview": {
            "title": "分析编辑视图",
            "caption": "分析",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "analysis",
            "viewname": "DABuildEditView",
            "viewtag": "5e18c7b90bbee897eb493d3ac7d27cc4"
        },
266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289
        "metaentitypickupview": {
            "title": "实体数据选择视图",
            "caption": "实体",
            "viewtype": "DEPICKUPVIEW",
            "viewmodule": "lite",
            "viewname": "MetaEntityPickupView",
            "viewtag": "601fb9bf6eec2a7e264e7142017715a4"
        },
        "metaentityeditview": {
            "title": "实体编辑视图",
            "caption": "实体",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "lite",
            "viewname": "MetaEntityEditView",
            "viewtag": "6154840ea9105fe78d20a257acce50ba"
        },
        "metamodeleditview": {
            "title": "模型编辑视图",
            "caption": "模型",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "lite",
            "viewname": "MetaModelEditView",
            "viewtag": "62c99660031ae1998bb8c9c95fe4661a"
        },
290 291 292 293 294 295 296 297
        "dabuildpickupgridview": {
            "title": "分析选择表格视图",
            "caption": "分析",
            "viewtype": "DEPICKUPGRIDVIEW",
            "viewmodule": "analysis",
            "viewname": "DABuildPickupGridView",
            "viewtag": "66fd013361038de12e814e8011122723"
        },
298 299 300 301 302 303 304 305
        "metamodulepickupview": {
            "title": "模块数据选择视图",
            "caption": "模块",
            "viewtype": "DEPICKUPVIEW",
            "viewmodule": "lite",
            "viewname": "MetaModulePickupView",
            "viewtag": "6c1c3923e62702394622b642a9952bd7"
        },
306 307 308 309 310 311 312 313
        "ruleenginegridview": {
            "title": "规则引擎表格视图",
            "caption": "规则引擎",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "rule",
            "viewname": "RuleEngineGridView",
            "viewtag": "6e86bf4ff68dc883c7cedd90289cf139"
        },
314 315 316 317 318 319 320 321
        "dstsystempickupgridview": {
            "title": "系统选择表格视图",
            "caption": "系统",
            "viewtype": "DEPICKUPGRIDVIEW",
            "viewmodule": "lite",
            "viewname": "DstSystemPickupGridView",
            "viewtag": "6f7ee661b3b7394072fca45b82778c60"
        },
322 323 324 325 326 327 328 329
        "dabuildpickupview": {
            "title": "分析数据选择视图",
            "caption": "分析",
            "viewtype": "DEPICKUPVIEW",
            "viewmodule": "analysis",
            "viewname": "DABuildPickupView",
            "viewtag": "853b207e7c16c0c872b05c618452b158"
        },
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345
        "dstappgridview": {
            "title": "应用表格视图",
            "caption": "应用",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "lite",
            "viewname": "DstAppGridView",
            "viewtag": "8f713abf416271b5aac44667872fa88a"
        },
        "metafieldpickupgridview": {
            "title": "属性选择表格视图",
            "caption": "属性",
            "viewtype": "DEPICKUPGRIDVIEW",
            "viewmodule": "lite",
            "viewname": "MetaFieldPickupGridView",
            "viewtag": "914cae9916bd367675367665e8165397"
        },
346 347 348 349 350 351 352 353
        "metamodelimportfile": {
            "title": "模型实体导入文件",
            "caption": "模型实体导入文件",
            "viewtype": "DEHTMLVIEW",
            "viewmodule": "lite",
            "viewname": "MetaModelimportFile",
            "viewtag": "9171e50e8a680950da2ec6c6e3b1be2a"
        },
354 355 356 357 358 359 360 361
        "dstdatasourcepickupgridview": {
            "title": "数据源选择表格视图",
            "caption": "数据源",
            "viewtype": "DEPICKUPGRIDVIEW",
            "viewmodule": "lite",
            "viewname": "DstDataSourcePickupGridView",
            "viewtag": "9316344c289b67395ed3b2bcdee6674e"
        },
362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377
        "metamodelmpickupview": {
            "title": "模型数据多项选择视图",
            "caption": "模型",
            "viewtype": "DEMPICKUPVIEW",
            "viewmodule": "lite",
            "viewname": "MetaModelMPickupView",
            "viewtag": "939958f951157ee8598beea8b75296e9"
        },
        "dachartgridview": {
            "title": "图表表格视图",
            "caption": "图表",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "analysis",
            "viewname": "DAChartGridView",
            "viewtag": "a4a6b127d490b6e0c0572dcf8ff1e304"
        },
378 379 380 381 382 383 384 385
        "metaentitygridview": {
            "title": "实体表格视图",
            "caption": "实体",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "lite",
            "viewname": "MetaEntityGridView",
            "viewtag": "a931b2778d30f3ec51ca895d85b6da69"
        },
386 387 388 389 390 391 392 393
        "dareportgridview": {
            "title": "报表表格视图",
            "caption": "报表",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "analysis",
            "viewname": "DAReportGridView",
            "viewtag": "a9502936dd5b510e79ada6cc477f6ff5"
        },
394 395 396 397 398 399 400 401
        "dstsystemgridview": {
            "title": "系统表格视图",
            "caption": "系统",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "lite",
            "viewname": "DstSystemGridView",
            "viewtag": "aba2be52d4c2de842f461967ce08cf7d"
        },
402 403 404 405 406 407 408 409
        "dametriceditview": {
            "title": "指标编辑视图",
            "caption": "指标",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "analysis",
            "viewname": "DAMetricEditView",
            "viewtag": "b0fc4bae7655b93b1e554b05f06029f0"
        },
410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449
        "dstdatasourcegridview": {
            "title": "数据源表格视图",
            "caption": "数据源",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "lite",
            "viewname": "DstDataSourceGridView",
            "viewtag": "b8139b901aee5b9b689750315f24c19f"
        },
        "metadatasetgridview": {
            "title": "数据集表格视图",
            "caption": "数据集",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "lite",
            "viewname": "MetaDataSetGridView",
            "viewtag": "b88526b042da335fe07234b43a635ddf"
        },
        "metafieldgridview": {
            "title": "属性表格视图",
            "caption": "属性",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "lite",
            "viewname": "MetaFieldGridView",
            "viewtag": "b88a264578c3f2db0b97abbb45d4bbeb"
        },
        "metafieldeditview": {
            "title": "属性编辑视图",
            "caption": "属性",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "lite",
            "viewname": "MetaFieldEditView",
            "viewtag": "bb9eb1a62b96ec02d1dec3f0fd06791e"
        },
        "metaentitypickupgridview": {
            "title": "实体选择表格视图",
            "caption": "实体",
            "viewtype": "DEPICKUPGRIDVIEW",
            "viewmodule": "lite",
            "viewname": "MetaEntityPickupGridView",
            "viewtag": "bca764edbe3a023fe784399d384f57dc"
        },
450 451 452 453 454 455 456 457
        "execresulteditview": {
            "title": "执行结果编辑视图",
            "caption": "执行结果",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "rule",
            "viewname": "ExecResultEditView",
            "viewtag": "bf38acd2d602a0abb2021403e7da1ea7"
        },
458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522
        "metafieldpickupview": {
            "title": "属性数据选择视图",
            "caption": "属性",
            "viewtype": "DEPICKUPVIEW",
            "viewmodule": "lite",
            "viewname": "MetaFieldPickupView",
            "viewtag": "c1fb92872e54e6b289956cd595c8f392"
        },
        "metamodelgridview": {
            "title": "模型表格视图",
            "caption": "模型",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "lite",
            "viewname": "MetaModelGridView",
            "viewtag": "d648f6f7c56469a2007158ceb05aa6e5"
        },
        "dstappeditview": {
            "title": "应用编辑视图",
            "caption": "应用",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "lite",
            "viewname": "DstAppEditView",
            "viewtag": "e57dde4a4a70fd4458b00dcd9b3c7823"
        },
        "metarelationshipeditgridview": {
            "title": "实体关系表格视图",
            "caption": "实体关系",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "lite",
            "viewname": "MetaRelationshipEditGridView",
            "viewtag": "e6680f2a41992382be6a1ffde17df734"
        },
        "dstapppickupgridview": {
            "title": "应用选择表格视图",
            "caption": "应用",
            "viewtype": "DEPICKUPGRIDVIEW",
            "viewmodule": "lite",
            "viewname": "DstAppPickupGridView",
            "viewtag": "ec0d8da500f87df29eb02d252654c2a5"
        },
        "dstapppickupview": {
            "title": "应用数据选择视图",
            "caption": "应用",
            "viewtype": "DEPICKUPVIEW",
            "viewmodule": "lite",
            "viewname": "DstAppPickupView",
            "viewtag": "efdf7abd89e09c4a57ab2fa94972d485"
        },
        "metarelationshipeditview": {
            "title": "实体关系编辑视图",
            "caption": "实体关系",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "lite",
            "viewname": "MetaRelationshipEditView",
            "viewtag": "ff5248be5ad816954b6a8f4aec3425cb"
        }
    }];
});

// 获取视图消息分组信息
mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
    let status = MockAdapter.mockStatus(config);
    return [status,{
    }];
});