ecinc-cloud-yoaecoav9 9.7.4 → 9.7.5

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/index.js CHANGED
@@ -59,6 +59,7 @@ import PortalDataListForm from './src/portal/components/dataList/Form'
59
59
  import PortalDataListIcons from './src/portal/components/dataList/icons'
60
60
  import PortalImagesText from './src/portal/components/imagesText/index'
61
61
  import PortalQuickEntry from './src/portal/components/quickEntry/index'
62
+ import PortalMsgNotice from './src/portal/components/msgNotice/index'
62
63
  import PortalStatisticalChart from './src/portal/components/statisticalChart/index'
63
64
  import PortalTransactionStatistics from './src/portal/components/transactionStatistics/index'
64
65
  import PortalApplet from './src/portal/components/index/Applet'
@@ -146,6 +147,7 @@ const components = {
146
147
  PortalDataListIcons,
147
148
  PortalImagesText,
148
149
  PortalQuickEntry,
150
+ PortalMsgNotice,
149
151
  PortalStatisticalChart,
150
152
  PortalTransactionStatistics,
151
153
  PortalApplet,
@@ -21381,6 +21381,48 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".applet-wrap[data-v-b755624a]{width:10
21381
21381
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
21382
21382
 
21383
21383
 
21384
+ /***/ }),
21385
+
21386
+ /***/ 6776:
21387
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
21388
+
21389
+ "use strict";
21390
+ __webpack_require__.r(__webpack_exports__);
21391
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1601);
21392
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
21393
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6314);
21394
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
21395
+ // Imports
21396
+
21397
+
21398
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
21399
+ // Module
21400
+ ___CSS_LOADER_EXPORT___.push([module.id, "#item-body[data-v-16b40ee3]{width:100%;height:100%;padding:0;margin:0}#item-body .link-message+.link-message[data-v-16b40ee3]{border-top:1px dashed #ebeef5}#item-body .link-message[data-v-16b40ee3]{width:100%;height:70px;font-size:var(--portalFontSize14);font-family:Microsoft YaHei;font-weight:400;list-style:none;padding:10px 20px;cursor:pointer}#item-body .link-message .item[data-v-16b40ee3]{padding:10px 0;width:100%;height:100%}#item-body .link-message[data-v-16b40ee3]:hover{background-color:#f5f7fa}#item-body .link-message[data-v-16b40ee3]:last-child{border-bottom:none}#item-body .link-message .title[data-v-16b40ee3]{font-size:var(--portalFontSize13);color:#333;height:25px;line-height:25px;width:100%;position:relative;padding-right:10px}#item-body .link-message .title .msg[data-v-16b40ee3]{display:block;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#item-body .link-message .title .no-read[data-v-16b40ee3]{display:block;width:6px;height:6px;border-radius:6px;background:red;position:absolute;left:-10px;top:12px;z-index:100}#item-body .link-message .bottom[data-v-16b40ee3]{color:#9b9b9b;height:25px;line-height:25px;font-size:0;font-family:MicrosoftYaHei}#item-body .link-message .bottom .name[data-v-16b40ee3]{display:inline-block;width:50%;font-size:var(--portalFontSize12)}#item-body .link-message .bottom .time[data-v-16b40ee3]{display:block;width:106px;float:right;margin-right:10px;font-size:var(--portalFontSize12)}#item-body .link-message .bottom .sender[data-v-16b40ee3]{font-size:var(--portalFontSize12)}", ""]);
21401
+ // Exports
21402
+ /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
21403
+
21404
+
21405
+ /***/ }),
21406
+
21407
+ /***/ 451:
21408
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
21409
+
21410
+ "use strict";
21411
+ __webpack_require__.r(__webpack_exports__);
21412
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1601);
21413
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
21414
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6314);
21415
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
21416
+ // Imports
21417
+
21418
+
21419
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
21420
+ // Module
21421
+ ___CSS_LOADER_EXPORT___.push([module.id, "#msg-notice-body[data-v-56f4b6e5]{height:100%}.footer[data-v-56f4b6e5]{height:20px;line-height:20px}.prev[data-v-56f4b6e5]{float:left;font-size:var(--portalFontSize14);cursor:pointer}.prev.noclick[data-v-56f4b6e5]{color:#999}.next[data-v-56f4b6e5]{float:right;font-size:var(--portalFontSize14);cursor:pointer}.next.noclick[data-v-56f4b6e5]{color:#999}.num[data-v-56f4b6e5]{float:right;margin-right:20px}.num .color[data-v-56f4b6e5]{color:#409eff}.content[data-v-56f4b6e5]{min-height:200px}.content[data-v-56f4b6e5] .msg-detail-link{line-height:29px;display:inline;color:#409eff;cursor:pointer;margin-left:4px;text-decoration:none}.infos[data-v-56f4b6e5]{height:40px;line-height:20px;text-align:right}", ""]);
21422
+ // Exports
21423
+ /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
21424
+
21425
+
21384
21426
  /***/ }),
21385
21427
 
21386
21428
  /***/ 6904:
@@ -62890,6 +62932,38 @@ var update = add("02750b18", content, true, {"sourceMap":false,"shadowMode":fals
62890
62932
 
62891
62933
  /***/ }),
62892
62934
 
62935
+ /***/ 5622:
62936
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
62937
+
62938
+ // style-loader: Adds some css to the DOM by adding a <style> tag
62939
+
62940
+ // load the styles
62941
+ var content = __webpack_require__(6776);
62942
+ if(content.__esModule) content = content.default;
62943
+ if(typeof content === 'string') content = [[module.id, content, '']];
62944
+ if(content.locals) module.exports = content.locals;
62945
+ // add the styles to the DOM
62946
+ var add = (__webpack_require__(9548)/* ["default"] */ .A)
62947
+ var update = add("0accc4df", content, true, {"sourceMap":false,"shadowMode":false});
62948
+
62949
+ /***/ }),
62950
+
62951
+ /***/ 4597:
62952
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
62953
+
62954
+ // style-loader: Adds some css to the DOM by adding a <style> tag
62955
+
62956
+ // load the styles
62957
+ var content = __webpack_require__(451);
62958
+ if(content.__esModule) content = content.default;
62959
+ if(typeof content === 'string') content = [[module.id, content, '']];
62960
+ if(content.locals) module.exports = content.locals;
62961
+ // add the styles to the DOM
62962
+ var add = (__webpack_require__(9548)/* ["default"] */ .A)
62963
+ var update = add("73e32f72", content, true, {"sourceMap":false,"shadowMode":false});
62964
+
62965
+ /***/ }),
62966
+
62893
62967
  /***/ 2466:
62894
62968
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
62895
62969
 
@@ -108674,6 +108748,483 @@ var quickEntry_component = (0,componentNormalizer/* default */.A)(
108674
108748
  )
108675
108749
 
108676
108750
  /* harmony default export */ var quickEntry = (quickEntry_component.exports);
108751
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/ecoa/src/portal/components/msgNotice/index.vue?vue&type=template&id=56f4b6e5&scoped=true
108752
+ var msgNoticevue_type_template_id_56f4b6e5_scoped_true_render = function render() {
108753
+ var _vm = this,
108754
+ _c = _vm._self._c;
108755
+ return _c('div', {
108756
+ attrs: {
108757
+ "id": "msg-notice-body"
108758
+ }
108759
+ }, [_c('CCBlockFrame', {
108760
+ attrs: {
108761
+ "header": {
108762
+ title: _vm.appletData.name,
108763
+ icon: _vm.appletData.icon,
108764
+ more: true,
108765
+ code: 'allMessage'
108766
+ }
108767
+ }
108768
+ }, [_vm.listdata ? _c('div', [_vm.listdata.length > 0 ? _c('div', [_c('MsgNoticeItem', {
108769
+ attrs: {
108770
+ "listdata": _vm.listdata,
108771
+ "page-info": _vm.pageInfo,
108772
+ "rowclick": _vm.rowclick
108773
+ }
108774
+ })], 1) : _c('div', {
108775
+ staticStyle: {
108776
+ "text-align": "center",
108777
+ "padding-top": "30px"
108778
+ }
108779
+ }, [_c('img', {
108780
+ staticStyle: {
108781
+ "max-width": "180px"
108782
+ },
108783
+ attrs: {
108784
+ "src": "images/w-imgs/nomessage.png"
108785
+ }
108786
+ }), _c('br'), _c('span', {
108787
+ directives: [{
108788
+ name: "text-lbl",
108789
+ rawName: "v-text-lbl",
108790
+ value: 'common.noData',
108791
+ expression: "'common.noData'"
108792
+ }],
108793
+ staticStyle: {
108794
+ "font-size": "var(--portalFontSize15)",
108795
+ "color": "#dbdbdb"
108796
+ }
108797
+ }, [_vm._v("暂无数据")])])]) : _vm._e()]), _c('el-dialog', {
108798
+ directives: [{
108799
+ name: "el-drag-dialog",
108800
+ rawName: "v-el-drag-dialog"
108801
+ }],
108802
+ attrs: {
108803
+ "title": "消息提醒",
108804
+ "visible": _vm.messageDialog,
108805
+ "append-to-body": true,
108806
+ "close-on-click-modal": false,
108807
+ "width": "500px",
108808
+ "center": ""
108809
+ },
108810
+ on: {
108811
+ "update:visible": function updateVisible($event) {
108812
+ _vm.messageDialog = $event;
108813
+ }
108814
+ }
108815
+ }, [_vm.listdata.length > 0 ? _c('div', {
108816
+ staticClass: "content",
108817
+ domProps: {
108818
+ "innerHTML": _vm._s(_vm.currentMsgContent)
108819
+ }
108820
+ }) : _vm._e(), _vm.listdata.length > 0 ? _c('div', {
108821
+ staticClass: "infos"
108822
+ }, [_c('div', {
108823
+ staticStyle: {
108824
+ "float": "right"
108825
+ }
108826
+ }, [_c('div', {
108827
+ staticClass: "name"
108828
+ }, [_vm._v(_vm._s(_vm.listdata[_vm.messageIndex].senderName))]), _c('div', {
108829
+ staticClass: "time"
108830
+ }, [_vm._v(_vm._s(_vm.listdata[_vm.messageIndex].createTime))])])]) : _vm._e(), _c('span', {
108831
+ staticClass: "dialog-footer",
108832
+ attrs: {
108833
+ "slot": "footer"
108834
+ },
108835
+ slot: "footer"
108836
+ }, [_c('div', {
108837
+ staticClass: "footer"
108838
+ }, [_c('div', {
108839
+ staticClass: "prev",
108840
+ class: _vm.messageIndex === 0 ? 'noclick' : '',
108841
+ on: {
108842
+ "click": function click($event) {
108843
+ return _vm.changeMessage('prev');
108844
+ }
108845
+ }
108846
+ }, [_vm._v("上一条")]), _c('div', {
108847
+ staticClass: "next",
108848
+ class: _vm.messageIndex === _vm.listdata.length - 1 ? 'noclick' : '',
108849
+ on: {
108850
+ "click": function click($event) {
108851
+ return _vm.changeMessage('next');
108852
+ }
108853
+ }
108854
+ }, [_vm._v("下一条")]), _c('div', {
108855
+ staticClass: "num"
108856
+ }, [_c('span', {
108857
+ staticClass: "color"
108858
+ }, [_vm._v(_vm._s(_vm.messageIndex + 1))]), _vm._v("/" + _vm._s(_vm.listdata.length) + " ")])])])])], 1);
108859
+ };
108860
+ var msgNoticevue_type_template_id_56f4b6e5_scoped_true_staticRenderFns = [];
108861
+
108862
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/ecoa/src/portal/components/msgNotice/MsgNoticeItem.vue?vue&type=template&id=16b40ee3&scoped=true
108863
+ var MsgNoticeItemvue_type_template_id_16b40ee3_scoped_true_render = function render() {
108864
+ var _vm = this,
108865
+ _c = _vm._self._c;
108866
+ return _c('ul', {
108867
+ attrs: {
108868
+ "id": "item-body"
108869
+ }
108870
+ }, [_vm._l(_vm.listdata, function (item, index) {
108871
+ return [_c('li', {
108872
+ key: index,
108873
+ staticClass: "link-message",
108874
+ on: {
108875
+ "click": function click($event) {
108876
+ return _vm.openWorkFlow(item, index);
108877
+ }
108878
+ }
108879
+ }, [_c('div', {
108880
+ staticClass: "item"
108881
+ }, [_c('div', {
108882
+ staticClass: "title"
108883
+ }, [item.isRead === 0 ? _c('span', {
108884
+ staticClass: "no-read"
108885
+ }) : _vm._e(), _c('span', {
108886
+ staticClass: "msg"
108887
+ }, [_vm._v(_vm._s(item.msgContent))])]), _c('div', {
108888
+ staticClass: "bottom"
108889
+ }, [_c('span', {
108890
+ staticClass: "name"
108891
+ }, [_vm._v(_vm._s(_vm.cutTime(item.createTime)))])])])])];
108892
+ })], 2);
108893
+ };
108894
+ var MsgNoticeItemvue_type_template_id_16b40ee3_scoped_true_staticRenderFns = [];
108895
+
108896
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/ecoa/src/portal/components/msgNotice/MsgNoticeItem.vue?vue&type=script&lang=js
108897
+ var MsgNoticeItemvue_type_script_lang_js_moment = __webpack_require__(5093);
108898
+ /* harmony default export */ var MsgNoticeItemvue_type_script_lang_js = ({
108899
+ // import引入的组件需要注入到对象中才能使用
108900
+ components: {},
108901
+ props: {
108902
+ listdata: {
108903
+ type: Array,
108904
+ default: function _default() {
108905
+ return [];
108906
+ }
108907
+ },
108908
+ pageInfo: {
108909
+ type: Object,
108910
+ default: function _default() {
108911
+ return {};
108912
+ }
108913
+ },
108914
+ rowclick: {
108915
+ type: Function,
108916
+ default: null
108917
+ }
108918
+ },
108919
+ data: function data() {
108920
+ return {};
108921
+ },
108922
+ computed: {},
108923
+ // 监控data中的数据变化
108924
+ watch: {},
108925
+ // 生命周期 - 创建完成(可以访问当前this实例)
108926
+ created: function created() {},
108927
+ // 生命周期 - 挂载完成(可以访问DOM元素)
108928
+ mounted: function mounted() {},
108929
+ beforeCreate: function beforeCreate() {},
108930
+ // 生命周期 - 创建之前
108931
+ beforeMount: function beforeMount() {},
108932
+ // 生命周期 - 挂载之前
108933
+ beforeUpdate: function beforeUpdate() {},
108934
+ // 生命周期 - 更新之前
108935
+ updated: function updated() {},
108936
+ // 生命周期 - 更新之后
108937
+ beforeDestroy: function beforeDestroy() {},
108938
+ // 生命周期 - 销毁之前
108939
+ destroyed: function destroyed() {},
108940
+ // 生命周期 - 销毁完成
108941
+ activated: function activated() {},
108942
+ // 方法集合
108943
+ methods: {
108944
+ cutTime: function cutTime(str) {
108945
+ var time = '';
108946
+ if (str !== '') {
108947
+ time = MsgNoticeItemvue_type_script_lang_js_moment(str).format('YYYY-MM-DD HH:mm');
108948
+ }
108949
+ return time;
108950
+ },
108951
+ openWorkFlow: function openWorkFlow(row, index) {
108952
+ if (this.$vnode.context.appletData.interfaceStatus === 0 || window.openInterface) {
108953
+ this.$bus.emit('openDefaultDialog', this.$vnode.context.appletData.name);
108954
+ return;
108955
+ }
108956
+ if (this.rowclick !== null) {
108957
+ return this.rowclick(row, index);
108958
+ } else {
108959
+ var activeItem = {};
108960
+ if (row.type === 'dwgg') {
108961
+ activeItem = {
108962
+ type: 1,
108963
+ moduleInfo: {
108964
+ 'getByIdUrl': 'portal/cms/article/getById'
108965
+ },
108966
+ fieldInfo: {
108967
+ timeField: 'publishTime',
108968
+ senderField: 'creator',
108969
+ titleField: 'title',
108970
+ contField: 'content'
108971
+ },
108972
+ desInfo: {
108973
+ timeDes: '时间:',
108974
+ senderDes: '发布人:'
108975
+ }
108976
+ };
108977
+ } else {
108978
+ activeItem = {
108979
+ type: 1,
108980
+ moduleInfo: {
108981
+ 'getByIdUrl': 'plat/tzgg/getById'
108982
+ },
108983
+ fieldInfo: {
108984
+ timeField: 'flCreateDate',
108985
+ senderField: 'flCreator',
108986
+ titleField: 'flSubject',
108987
+ contField: 'flContent'
108988
+ },
108989
+ desInfo: {
108990
+ timeDes: '时间:',
108991
+ senderDes: '发布人:'
108992
+ }
108993
+ };
108994
+ }
108995
+ window.open('/#/listinfo?rowId=' + row.id + '&pageCode=ListInfo&activeItem=' + encodeURIComponent(JSON.stringify(activeItem)) + '&isMyGG=1');
108996
+ }
108997
+ }
108998
+ } // 如果页面有keep-alive缓存功能,这个函数会触发
108999
+ });
109000
+ ;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/portal/components/msgNotice/MsgNoticeItem.vue?vue&type=script&lang=js
109001
+ /* harmony default export */ var msgNotice_MsgNoticeItemvue_type_script_lang_js = (MsgNoticeItemvue_type_script_lang_js);
109002
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/ecoa/src/portal/components/msgNotice/MsgNoticeItem.vue?vue&type=style&index=0&id=16b40ee3&prod&lang=scss&scoped=true
109003
+ var MsgNoticeItemvue_type_style_index_0_id_16b40ee3_prod_lang_scss_scoped_true = __webpack_require__(5622);
109004
+ ;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/portal/components/msgNotice/MsgNoticeItem.vue?vue&type=style&index=0&id=16b40ee3&prod&lang=scss&scoped=true
109005
+
109006
+ ;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/portal/components/msgNotice/MsgNoticeItem.vue
109007
+
109008
+
109009
+
109010
+ ;
109011
+
109012
+
109013
+ /* normalize component */
109014
+
109015
+ var MsgNoticeItem_component = (0,componentNormalizer/* default */.A)(
109016
+ msgNotice_MsgNoticeItemvue_type_script_lang_js,
109017
+ MsgNoticeItemvue_type_template_id_16b40ee3_scoped_true_render,
109018
+ MsgNoticeItemvue_type_template_id_16b40ee3_scoped_true_staticRenderFns,
109019
+ false,
109020
+ null,
109021
+ "16b40ee3",
109022
+ null
109023
+
109024
+ )
109025
+
109026
+ /* harmony default export */ var MsgNoticeItem = (MsgNoticeItem_component.exports);
109027
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/ecoa/src/portal/components/msgNotice/index.vue?vue&type=script&lang=js
109028
+ function msgNoticevue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return msgNoticevue_type_script_lang_js_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, msgNoticevue_type_script_lang_js_typeof(o); }
109029
+ function msgNoticevue_type_script_lang_js_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ msgNoticevue_type_script_lang_js_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == msgNoticevue_type_script_lang_js_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(msgNoticevue_type_script_lang_js_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
109030
+ function msgNoticevue_type_script_lang_js_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
109031
+ function msgNoticevue_type_script_lang_js_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { msgNoticevue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { msgNoticevue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
109032
+ function msgNoticevue_type_script_lang_js_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
109033
+ function msgNoticevue_type_script_lang_js_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? msgNoticevue_type_script_lang_js_ownKeys(Object(t), !0).forEach(function (r) { msgNoticevue_type_script_lang_js_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : msgNoticevue_type_script_lang_js_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
109034
+ function msgNoticevue_type_script_lang_js_defineProperty(e, r, t) { return (r = msgNoticevue_type_script_lang_js_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
109035
+ function msgNoticevue_type_script_lang_js_toPropertyKey(t) { var i = msgNoticevue_type_script_lang_js_toPrimitive(t, "string"); return "symbol" == msgNoticevue_type_script_lang_js_typeof(i) ? i : i + ""; }
109036
+ function msgNoticevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != msgNoticevue_type_script_lang_js_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != msgNoticevue_type_script_lang_js_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
109037
+
109038
+
109039
+ /* harmony default export */ var msgNoticevue_type_script_lang_js = ({
109040
+ name: 'MsgNotice',
109041
+ components: {
109042
+ MsgNoticeItem: MsgNoticeItem
109043
+ },
109044
+ props: {
109045
+ name: {
109046
+ type: String,
109047
+ default: ''
109048
+ },
109049
+ id: {
109050
+ type: String,
109051
+ default: ''
109052
+ },
109053
+ appletData: {
109054
+ type: Object,
109055
+ required: true,
109056
+ default: function _default() {
109057
+ return {};
109058
+ }
109059
+ }
109060
+ },
109061
+ data: function data() {
109062
+ return {
109063
+ messageIndex: 0,
109064
+ messageDialog: false,
109065
+ listdata: [],
109066
+ loginUser: this.$store.getters.loginUser,
109067
+ pageSize: 5,
109068
+ pageInfo: {
109069
+ title: 'msgContent',
109070
+ time: 'pushTime',
109071
+ activeItem: {
109072
+ moduleInfo: {
109073
+ 'moduleCode': 'inbox',
109074
+ 'listDataUrl': 'message/inbox/listdata',
109075
+ 'getByIdUrl': 'message/inbox/getById'
109076
+ },
109077
+ desInfo: {
109078
+ timeDes: '时间:',
109079
+ senderDes: '发布人:'
109080
+ },
109081
+ fieldInfo: {
109082
+ timeField: 'createTime',
109083
+ senderField: 'senderName',
109084
+ titleField: 'msgContent',
109085
+ contField: 'msgContent'
109086
+ }
109087
+ }
109088
+ }
109089
+ };
109090
+ },
109091
+ computed: msgNoticevue_type_script_lang_js_objectSpread(msgNoticevue_type_script_lang_js_objectSpread({}, (0,vuex_esm/* mapGetters */.L8)(['routes'])), {}, {
109092
+ currentMsgContent: function currentMsgContent() {
109093
+ var content = this.listdata[this.messageIndex] ? this.listdata[this.messageIndex].msgContent || '' : '';
109094
+ // 清除后端嵌入的链接HTML
109095
+ content = content.replace(/<a[^>]*>.*?<\/a>/gi, '').replace(/<div[^>]*class="msg-link"[^>]*>.*?<\/div>/gi, '');
109096
+ var msgUrl = this.listdata[this.messageIndex] ? this.listdata[this.messageIndex].msgUrl : '';
109097
+ if (msgUrl) {
109098
+ var origin = window.location.origin;
109099
+ content += ' <a href="javascript:void(0)" onclick="window.open(\'' + origin + '/#' + msgUrl + '\')" class="msg-detail-link">查看详情 &gt;</a>';
109100
+ }
109101
+ return content;
109102
+ }
109103
+ }),
109104
+ created: function created() {
109105
+ this.getMessage();
109106
+ this.$bus.on('refreshMsgNotice', this.getMessage);
109107
+ },
109108
+ beforeDestroy: function beforeDestroy() {
109109
+ this.$bus.off('refreshMsgNotice', this.getMessage);
109110
+ },
109111
+ methods: {
109112
+ // 调用getById接口更新消息已读状态
109113
+ markAsRead: function markAsRead(item) {
109114
+ var _this = this;
109115
+ return this.$http({
109116
+ method: 'GET',
109117
+ url: '/message/vwInbox/getById',
109118
+ params: {
109119
+ id: item.id,
109120
+ msgType: 0
109121
+ }
109122
+ }).then(function (res) {
109123
+ if (res.code == 'success') {
109124
+ item.isRead = 1;
109125
+ _this.$bus.emit('updateTopBarMessageTotal');
109126
+ }
109127
+ });
109128
+ },
109129
+ changeMessage: function changeMessage(type) {
109130
+ var _this2 = this;
109131
+ if (type === 'prev' && this.messageIndex > 0) {
109132
+ var prevItem = this.listdata[this.messageIndex - 1];
109133
+ if (prevItem.isRead !== 1) {
109134
+ this.markAsRead(prevItem).then(function () {
109135
+ _this2.messageIndex--;
109136
+ });
109137
+ } else {
109138
+ this.messageIndex--;
109139
+ }
109140
+ }
109141
+ if (type === 'next' && this.messageIndex < this.listdata.length - 1) {
109142
+ var nextItem = this.listdata[this.messageIndex + 1];
109143
+ if (nextItem.isRead !== 1) {
109144
+ this.markAsRead(nextItem).then(function () {
109145
+ _this2.messageIndex++;
109146
+ });
109147
+ } else {
109148
+ this.messageIndex++;
109149
+ }
109150
+ }
109151
+ },
109152
+ rowclick: function rowclick(item, index) {
109153
+ this.messageIndex = index;
109154
+ this.messageDialog = true;
109155
+ if (item.isRead !== 1) {
109156
+ this.markAsRead(item);
109157
+ }
109158
+ },
109159
+ getMessage: function getMessage() {
109160
+ var _this3 = this;
109161
+ return msgNoticevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/msgNoticevue_type_script_lang_js_regeneratorRuntime().mark(function _callee() {
109162
+ var list, apigw, params, res;
109163
+ return msgNoticevue_type_script_lang_js_regeneratorRuntime().wrap(function _callee$(_context) {
109164
+ while (1) switch (_context.prev = _context.next) {
109165
+ case 0:
109166
+ if (!(_this3.appletData.interfaceStatus === 0 || window.openInterface)) {
109167
+ _context.next = 4;
109168
+ break;
109169
+ }
109170
+ list = JSON.parse(JSON.stringify(_this3.$defaultData.notifcationData));
109171
+ _this3.listdata = list.splice(0, _this3.pageSize);
109172
+ return _context.abrupt("return");
109173
+ case 4:
109174
+ apigw = '';
109175
+ if (_this3.appletData) {
109176
+ apigw = _this3.appletData.apiUrl || '';
109177
+ if (apigw && apigw.substring(apigw.length - 1) !== '/') apigw += '/';
109178
+ }
109179
+ params = {
109180
+ orderBy: 'pushTime desc',
109181
+ urlsearch: 'orgCode:' + _this3.loginUser.orgCode + ';pushStatus:1;msgContent!:null;receiverAccount:' + _this3.loginUser.personAccount,
109182
+ pageNum: 1,
109183
+ pageSize: _this3.pageSize
109184
+ };
109185
+ _context.next = 9;
109186
+ return _this3.$app.listdata(apigw + 'message/vwInbox/listdata', params);
109187
+ case 9:
109188
+ res = _context.sent;
109189
+ if (res.code === 'success') {
109190
+ _this3.listdata = res.body.pageInfo.list;
109191
+ }
109192
+ case 11:
109193
+ case "end":
109194
+ return _context.stop();
109195
+ }
109196
+ }, _callee);
109197
+ }))();
109198
+ }
109199
+ }
109200
+ });
109201
+ ;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/portal/components/msgNotice/index.vue?vue&type=script&lang=js
109202
+ /* harmony default export */ var components_msgNoticevue_type_script_lang_js = (msgNoticevue_type_script_lang_js);
109203
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/ecoa/src/portal/components/msgNotice/index.vue?vue&type=style&index=0&id=56f4b6e5&prod&scoped=true&lang=scss
109204
+ var msgNoticevue_type_style_index_0_id_56f4b6e5_prod_scoped_true_lang_scss = __webpack_require__(4597);
109205
+ ;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/portal/components/msgNotice/index.vue?vue&type=style&index=0&id=56f4b6e5&prod&scoped=true&lang=scss
109206
+
109207
+ ;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/portal/components/msgNotice/index.vue
109208
+
109209
+
109210
+
109211
+ ;
109212
+
109213
+
109214
+ /* normalize component */
109215
+
109216
+ var msgNotice_component = (0,componentNormalizer/* default */.A)(
109217
+ components_msgNoticevue_type_script_lang_js,
109218
+ msgNoticevue_type_template_id_56f4b6e5_scoped_true_render,
109219
+ msgNoticevue_type_template_id_56f4b6e5_scoped_true_staticRenderFns,
109220
+ false,
109221
+ null,
109222
+ "56f4b6e5",
109223
+ null
109224
+
109225
+ )
109226
+
109227
+ /* harmony default export */ var msgNotice = (msgNotice_component.exports);
108677
109228
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/ecoa/src/portal/components/statisticalChart/index.vue?vue&type=template&id=4176b0de&scoped=true
108678
109229
  var statisticalChartvue_type_template_id_4176b0de_scoped_true_render = function render() {
108679
109230
  var _vm = this,
@@ -113318,6 +113869,7 @@ function ecoa_toPrimitive(t, r) { if ("object" != ecoa_typeof(t) || !t) return t
113318
113869
 
113319
113870
 
113320
113871
 
113872
+
113321
113873
  //portal/components
113322
113874
 
113323
113875
 
@@ -113395,6 +113947,7 @@ var ecoa_components = {
113395
113947
  PortalDataListIcons: dataList_icons,
113396
113948
  PortalImagesText: imagesText,
113397
113949
  PortalQuickEntry: quickEntry,
113950
+ PortalMsgNotice: msgNotice,
113398
113951
  PortalStatisticalChart: statisticalChart,
113399
113952
  PortalTransactionStatistics: transactionStatistics,
113400
113953
  PortalApplet: Applet,