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.
@@ -817,6 +817,166 @@ module.exports = function map(mapper) {
817
817
  };
818
818
 
819
819
 
820
+ /***/ }),
821
+
822
+ /***/ 740:
823
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
824
+
825
+ "use strict";
826
+ // ESM COMPAT FLAG
827
+ __webpack_require__.r(__webpack_exports__);
828
+
829
+ // EXPORTS
830
+ __webpack_require__.d(__webpack_exports__, {
831
+ "default": function() { return /* binding */ View; }
832
+ });
833
+
834
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
835
+ var render = function render() {
836
+ var _vm = this,
837
+ _c = _vm._self._c;
838
+ return _c('BaseComp', _vm._b({
839
+ attrs: {
840
+ "data": _vm.data,
841
+ "nowCompId": _vm.nowCompId,
842
+ "isOpcacity": _vm.isOpcacity,
843
+ "lang": _vm.lang
844
+ },
845
+ on: {
846
+ "getConfigData": _vm.getConfigData
847
+ }
848
+ }, 'BaseComp', _vm.$attrs, false), [!_vm.showWujie ? _c('div', [_vm._v("配置后才会展示内容")]) : _vm._e(), _vm.showWujie && _vm.wujieCompUrl ? _c('WujieVue', {
849
+ key: _vm.data.componentId,
850
+ attrs: {
851
+ "name": `cmsacive${_vm.data.componentId}`,
852
+ "url": _vm.wujieCompUrl,
853
+ "props": {
854
+ data: _vm.propsdata5
855
+ }
856
+ }
857
+ }) : _vm._e()], 1);
858
+ };
859
+ var staticRenderFns = [];
860
+
861
+ // EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
862
+ var baseComp = __webpack_require__(7291);
863
+ // EXTERNAL MODULE: ./package/patch.js + 1 modules
864
+ var patch = __webpack_require__(5512);
865
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
866
+
867
+
868
+ /* harmony default export */ var Viewvue_type_script_lang_js = ({
869
+ name: "cms-via-storedValueCard",
870
+ components: {
871
+ BaseComp: baseComp/* default */.A
872
+ },
873
+ props: {
874
+ data: {
875
+ type: Object,
876
+ default: () => {
877
+ return {};
878
+ }
879
+ },
880
+ nowCompId: {
881
+ type: [String, Number],
882
+ default: ""
883
+ },
884
+ isOpcacity: {
885
+ type: Boolean,
886
+ default: true
887
+ },
888
+ lang: {
889
+ type: String,
890
+ default: ""
891
+ }
892
+ },
893
+ data() {
894
+ return {
895
+ wujieCompUrl: "",
896
+ propsdata5: {},
897
+ showWujie: false,
898
+ compBaseUrl: this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com",
899
+ componentUrl: "",
900
+ componentId: "",
901
+ viaCompInstId: ""
902
+ };
903
+ },
904
+ async mounted() {
905
+ if (!this.$EventBus) {
906
+ if (["https://omniapi.hk.chinamobile.com", "https://www.hk.chinamobile.com"].includes(window.location.origin)) {
907
+ this.compBaseUrl = "https://omniapi.hk.chinamobile.com";
908
+ } else {
909
+ this.compBaseUrl = "https://omniapi-uat.hk.chinamobile.com";
910
+ }
911
+ }
912
+ this.getUrl(this.lang);
913
+ },
914
+ created() {},
915
+ methods: {
916
+ getConfigData() {
917
+ const wujieConfig = this.data.wujieConfig;
918
+ this.componentUrl = wujieConfig.componentUrl;
919
+ this.componentId = wujieConfig.componentId;
920
+ this.viaCompInstId = wujieConfig.viaCompInstId;
921
+ this.getUrl(this.lang);
922
+ if (this.componentId) {
923
+ setTimeout(() => {
924
+ this.showWujie = true;
925
+ });
926
+ }
927
+ },
928
+ wujieFetchMx(url, options) {
929
+ return window.fetch(url, {
930
+ ...options,
931
+ credentials: "include"
932
+ });
933
+ },
934
+ getUrl(lang) {
935
+ const langMap = {
936
+ "zh-CN": "sc",
937
+ "zh-HK": "tc",
938
+ "en-US": "en"
939
+ };
940
+ const langTag = this.$EventBus ? "tc" : langMap[lang];
941
+ const curCompUrl = this.componentUrl.replace("langTag", langTag);
942
+ this.wujieCompUrl = `${this.compBaseUrl}${curCompUrl}`;
943
+ console.log("wujieCompUrl", this.wujieCompUrl);
944
+ this.propsdata5 = {
945
+ orgId: sessionStorage.getItem("orgId") || "",
946
+ staffId: sessionStorage.getItem("staffId") || "",
947
+ cmhkChannel: (0,patch/* getCmhkChannelMx */.u)(),
948
+ cmhkToken: sessionStorage.getItem("cmhkToken") || "",
949
+ componentId: this.componentId,
950
+ viaCompInstId: this.viaCompInstId
951
+ };
952
+ }
953
+ }
954
+ });
955
+ ;// ./package/cms-dynamic-comp/View.vue?vue&type=script&lang=js
956
+ /* harmony default export */ var cms_dynamic_comp_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
957
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
958
+ var componentNormalizer = __webpack_require__(1656);
959
+ ;// ./package/cms-dynamic-comp/View.vue
960
+
961
+
962
+
963
+
964
+
965
+ /* normalize component */
966
+ ;
967
+ var component = (0,componentNormalizer/* default */.A)(
968
+ cms_dynamic_comp_Viewvue_type_script_lang_js,
969
+ render,
970
+ staticRenderFns,
971
+ false,
972
+ null,
973
+ "f2f8be46",
974
+ null
975
+
976
+ )
977
+
978
+ /* harmony default export */ var View = (component.exports);
979
+
820
980
  /***/ }),
821
981
 
822
982
  /***/ 741:
@@ -5183,17 +5343,12 @@ const i18n = new vue_i18n_esm({
5183
5343
 
5184
5344
 
5185
5345
 
5186
-
5187
5346
  const service = axios_default().create({
5188
5347
  baseURL: "",
5189
5348
  // /apitest
5190
- timeout: 60000,
5349
+ timeout: 1000,
5191
5350
  // 请求超时時間
5192
5351
  withCredentials: true
5193
- // async: false,
5194
- // headers: {
5195
- // "Content-Type": "application/json;charset:utf-8"
5196
- // }
5197
5352
  });
5198
5353
  service.defaults.headers.post["Content-Type"] = "application/json;charset:utf-8";
5199
5354
 
@@ -5206,7 +5361,7 @@ service.interceptors.request.use(config => {
5206
5361
  if (config.url.includes("/ecosp-console")) {
5207
5362
  document.cookie = "JSESSIONID=node017nm2falxdfe8c1parzfv9ilr29.node0";
5208
5363
  } else if (config.url.includes("omni-channel-service-console")) {
5209
- document.cookie = "JSESSIONID=78E8137DAEC4660E6E4A6310CAB2B300";
5364
+ document.cookie = "JSESSIONID=CC486EC56D518B06821D4861676499DC";
5210
5365
  }
5211
5366
  } else {
5212
5367
  if (config.url.includes("/api/") && is_cmsComp) {
@@ -28059,6 +28214,7 @@ var map = {
28059
28214
  "./cms-banner/View.vue": 2350,
28060
28215
  "./cms-cells/View.vue": 5700,
28061
28216
  "./cms-description/View.vue": 3203,
28217
+ "./cms-dynamic-comp/View.vue": 740,
28062
28218
  "./cms-iconFour/View.vue": 8235,
28063
28219
  "./cms-imgFour/View.vue": 8238,
28064
28220
  "./cms-lineFive/View.vue": 4432,
@@ -28543,17 +28699,16 @@ function getInitCompData({
28543
28699
  return {
28544
28700
  componentId: (0,utils/* getUuidCode */.J0)(32),
28545
28701
  //组件id
28546
- versionId: "",
28547
- //版本id 接口获取
28548
28702
  childList: [],
28549
28703
  //只有行列容器组件才会有子组件嵌入
28550
28704
  ...(isWujie ? {
28551
28705
  wujieConfig: {
28552
28706
  //wujie
28707
+ versionId: (0,utils/* getUuidCode */.J0)(32),
28708
+ //只有第三方厂商才会有单独的版本Id
28553
28709
  isVia: true,
28554
28710
  //区分旧的via组件 与 新增第三方厂商组件配置
28555
28711
  componentUrl: "/viaActivity/external/langTag/savingsCardList/front/",
28556
- workbenchUrl: "viaActivity/cmsComponent/tc/savingsCardList/workbench/",
28557
28712
  ...wujieConfig
28558
28713
  }
28559
28714
  } : {}),
@@ -28697,8 +28852,6 @@ function transfor(config) {
28697
28852
  const wujieComponentId = ((_settings$value = settings.value) === null || _settings$value === void 0 ? void 0 : _settings$value.componentId) || "";
28698
28853
  const viaCompInstId = ((_settings$value2 = settings.value) === null || _settings$value2 === void 0 ? void 0 : _settings$value2.viaCompInstId) || "";
28699
28854
  const compConfig = {
28700
- versionId: "",
28701
- //版本id 接口获取
28702
28855
  childList: childList,
28703
28856
  ...(isWujie ? {
28704
28857
  wujieConfig: {
@@ -28707,7 +28860,8 @@ function transfor(config) {
28707
28860
  componentUrl,
28708
28861
  workbenchUrl,
28709
28862
  componentId: wujieComponentId,
28710
- viaCompInstId
28863
+ viaCompInstId,
28864
+ versionId: "" //版本id 接口获取
28711
28865
  }
28712
28866
  } : {})
28713
28867
  };