cms-chenhj-ui 2.0.5 → 2.0.6

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.
@@ -19379,6 +19379,166 @@ var component = (0,componentNormalizer/* default */.A)(
19379
19379
 
19380
19380
  /***/ }),
19381
19381
 
19382
+ /***/ 1736:
19383
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
19384
+
19385
+ "use strict";
19386
+ // ESM COMPAT FLAG
19387
+ __webpack_require__.r(__webpack_exports__);
19388
+
19389
+ // EXPORTS
19390
+ __webpack_require__.d(__webpack_exports__, {
19391
+ "default": function() { return /* binding */ View; }
19392
+ });
19393
+
19394
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-dynamic-comp/View.vue?vue&type=template&id=f2f8be46&scoped=true
19395
+ var render = function render() {
19396
+ var _vm = this,
19397
+ _c = _vm._self._c;
19398
+ return _c('BaseComp', _vm._b({
19399
+ attrs: {
19400
+ "data": _vm.data,
19401
+ "nowCompId": _vm.nowCompId,
19402
+ "isOpcacity": _vm.isOpcacity,
19403
+ "lang": _vm.lang
19404
+ },
19405
+ on: {
19406
+ "getConfigData": _vm.getConfigData
19407
+ }
19408
+ }, 'BaseComp', _vm.$attrs, false), [!_vm.showWujie ? _c('div', [_vm._v("配置后才会展示内容")]) : _vm._e(), _vm.showWujie && _vm.wujieCompUrl ? _c('WujieVue', {
19409
+ key: _vm.data.componentId,
19410
+ attrs: {
19411
+ "name": `cmsacive${_vm.data.componentId}`,
19412
+ "url": _vm.wujieCompUrl,
19413
+ "props": {
19414
+ data: _vm.propsdata5
19415
+ }
19416
+ }
19417
+ }) : _vm._e()], 1);
19418
+ };
19419
+ var staticRenderFns = [];
19420
+
19421
+ // EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
19422
+ var baseComp = __webpack_require__(2950);
19423
+ // EXTERNAL MODULE: ./package/patch.js + 1 modules
19424
+ var patch = __webpack_require__(7890);
19425
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-dynamic-comp/View.vue?vue&type=script&lang=js
19426
+
19427
+
19428
+ /* harmony default export */ var Viewvue_type_script_lang_js = ({
19429
+ name: "cms-via-storedValueCard",
19430
+ components: {
19431
+ BaseComp: baseComp/* default */.A
19432
+ },
19433
+ props: {
19434
+ data: {
19435
+ type: Object,
19436
+ default: () => {
19437
+ return {};
19438
+ }
19439
+ },
19440
+ nowCompId: {
19441
+ type: [String, Number],
19442
+ default: ""
19443
+ },
19444
+ isOpcacity: {
19445
+ type: Boolean,
19446
+ default: true
19447
+ },
19448
+ lang: {
19449
+ type: String,
19450
+ default: ""
19451
+ }
19452
+ },
19453
+ data() {
19454
+ return {
19455
+ wujieCompUrl: "",
19456
+ propsdata5: {},
19457
+ showWujie: false,
19458
+ compBaseUrl: this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com",
19459
+ componentUrl: "",
19460
+ componentId: "",
19461
+ viaCompInstId: ""
19462
+ };
19463
+ },
19464
+ async mounted() {
19465
+ if (!this.$EventBus) {
19466
+ if (["https://omniapi.hk.chinamobile.com", "https://www.hk.chinamobile.com"].includes(window.location.origin)) {
19467
+ this.compBaseUrl = "https://omniapi.hk.chinamobile.com";
19468
+ } else {
19469
+ this.compBaseUrl = "https://omniapi-uat.hk.chinamobile.com";
19470
+ }
19471
+ }
19472
+ this.getUrl(this.lang);
19473
+ },
19474
+ created() {},
19475
+ methods: {
19476
+ getConfigData() {
19477
+ const wujieConfig = this.data.wujieConfig;
19478
+ this.componentUrl = wujieConfig.componentUrl;
19479
+ this.componentId = wujieConfig.componentId;
19480
+ this.viaCompInstId = wujieConfig.viaCompInstId;
19481
+ this.getUrl(this.lang);
19482
+ if (this.componentId) {
19483
+ setTimeout(() => {
19484
+ this.showWujie = true;
19485
+ });
19486
+ }
19487
+ },
19488
+ wujieFetchMx(url, options) {
19489
+ return window.fetch(url, {
19490
+ ...options,
19491
+ credentials: "include"
19492
+ });
19493
+ },
19494
+ getUrl(lang) {
19495
+ const langMap = {
19496
+ "zh-CN": "sc",
19497
+ "zh-HK": "tc",
19498
+ "en-US": "en"
19499
+ };
19500
+ const langTag = this.$EventBus ? "tc" : langMap[lang];
19501
+ const curCompUrl = this.componentUrl.replace("langTag", langTag);
19502
+ this.wujieCompUrl = `${this.compBaseUrl}${curCompUrl}`;
19503
+ console.log("wujieCompUrl", this.wujieCompUrl);
19504
+ this.propsdata5 = {
19505
+ orgId: sessionStorage.getItem("orgId") || "",
19506
+ staffId: sessionStorage.getItem("staffId") || "",
19507
+ cmhkChannel: (0,patch/* getCmhkChannelMx */.u)(),
19508
+ cmhkToken: sessionStorage.getItem("cmhkToken") || "",
19509
+ componentId: this.componentId,
19510
+ viaCompInstId: this.viaCompInstId
19511
+ };
19512
+ }
19513
+ }
19514
+ });
19515
+ ;// ./package/cms-dynamic-comp/View.vue?vue&type=script&lang=js
19516
+ /* harmony default export */ var cms_dynamic_comp_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
19517
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
19518
+ var componentNormalizer = __webpack_require__(1656);
19519
+ ;// ./package/cms-dynamic-comp/View.vue
19520
+
19521
+
19522
+
19523
+
19524
+
19525
+ /* normalize component */
19526
+ ;
19527
+ var component = (0,componentNormalizer/* default */.A)(
19528
+ cms_dynamic_comp_Viewvue_type_script_lang_js,
19529
+ render,
19530
+ staticRenderFns,
19531
+ false,
19532
+ null,
19533
+ "f2f8be46",
19534
+ null
19535
+
19536
+ )
19537
+
19538
+ /* harmony default export */ var View = (component.exports);
19539
+
19540
+ /***/ }),
19541
+
19382
19542
  /***/ 1754:
19383
19543
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
19384
19544
 
@@ -33095,6 +33255,7 @@ var map = {
33095
33255
  "./cms-banner/View.vue": 8370,
33096
33256
  "./cms-cells/View.vue": 983,
33097
33257
  "./cms-description/View.vue": 6296,
33258
+ "./cms-dynamic-comp/View.vue": 1736,
33098
33259
  "./cms-iconFour/View.vue": 2946,
33099
33260
  "./cms-imgFour/View.vue": 1282,
33100
33261
  "./cms-lineFive/View.vue": 1716,
@@ -38006,17 +38167,16 @@ function getInitCompData({
38006
38167
  return {
38007
38168
  componentId: (0,utils/* getUuidCode */.J0)(32),
38008
38169
  //组件id
38009
- versionId: "",
38010
- //版本id 接口获取
38011
38170
  childList: [],
38012
38171
  //只有行列容器组件才会有子组件嵌入
38013
38172
  ...(isWujie ? {
38014
38173
  wujieConfig: {
38015
38174
  //wujie
38175
+ versionId: (0,utils/* getUuidCode */.J0)(32),
38176
+ //只有第三方厂商才会有单独的版本Id
38016
38177
  isVia: true,
38017
38178
  //区分旧的via组件 与 新增第三方厂商组件配置
38018
38179
  componentUrl: "/viaActivity/external/langTag/savingsCardList/front/",
38019
- workbenchUrl: "viaActivity/cmsComponent/tc/savingsCardList/workbench/",
38020
38180
  ...wujieConfig
38021
38181
  }
38022
38182
  } : {}),
@@ -38160,8 +38320,6 @@ function transfor(config) {
38160
38320
  const wujieComponentId = ((_settings$value = settings.value) === null || _settings$value === void 0 ? void 0 : _settings$value.componentId) || "";
38161
38321
  const viaCompInstId = ((_settings$value2 = settings.value) === null || _settings$value2 === void 0 ? void 0 : _settings$value2.viaCompInstId) || "";
38162
38322
  const compConfig = {
38163
- versionId: "",
38164
- //版本id 接口获取
38165
38323
  childList: childList,
38166
38324
  ...(isWujie ? {
38167
38325
  wujieConfig: {
@@ -38170,7 +38328,8 @@ function transfor(config) {
38170
38328
  componentUrl,
38171
38329
  workbenchUrl,
38172
38330
  componentId: wujieComponentId,
38173
- viaCompInstId
38331
+ viaCompInstId,
38332
+ versionId: "" //版本id 接口获取
38174
38333
  }
38175
38334
  } : {})
38176
38335
  };
@@ -43976,17 +44135,12 @@ const i18n = new vue_i18n_esm({
43976
44135
 
43977
44136
 
43978
44137
 
43979
-
43980
44138
  const service = axios_default().create({
43981
44139
  baseURL: "",
43982
44140
  // /apitest
43983
- timeout: 60000,
44141
+ timeout: 1000,
43984
44142
  // 请求超时時間
43985
44143
  withCredentials: true
43986
- // async: false,
43987
- // headers: {
43988
- // "Content-Type": "application/json;charset:utf-8"
43989
- // }
43990
44144
  });
43991
44145
  service.defaults.headers.post["Content-Type"] = "application/json;charset:utf-8";
43992
44146
 
@@ -43999,7 +44153,7 @@ service.interceptors.request.use(config => {
43999
44153
  if (config.url.includes("/ecosp-console")) {
44000
44154
  document.cookie = "JSESSIONID=node017nm2falxdfe8c1parzfv9ilr29.node0";
44001
44155
  } else if (config.url.includes("omni-channel-service-console")) {
44002
- document.cookie = "JSESSIONID=78E8137DAEC4660E6E4A6310CAB2B300";
44156
+ document.cookie = "JSESSIONID=CC486EC56D518B06821D4861676499DC";
44003
44157
  }
44004
44158
  } else {
44005
44159
  if (config.url.includes("/api/") && is_cmsComp) {