doway-coms 1.1.22 → 1.1.25

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.
@@ -78927,11 +78927,12 @@ __webpack_require__.d(__webpack_exports__, "replaceParam", function() { return /
78927
78927
  __webpack_require__.d(__webpack_exports__, "setFrameColState", function() { return /* reexport */ setFrameColState; });
78928
78928
  __webpack_require__.d(__webpack_exports__, "setFrameToolBtnState", function() { return /* reexport */ setFrameToolBtnState; });
78929
78929
  __webpack_require__.d(__webpack_exports__, "showErrors", function() { return /* reexport */ showErrors; });
78930
- __webpack_require__.d(__webpack_exports__, "getUuid", function() { return /* reexport */ getUuid; });
78930
+ __webpack_require__.d(__webpack_exports__, "getUuid", function() { return /* reexport */ common_getUuid; });
78931
78931
  __webpack_require__.d(__webpack_exports__, "getFormValidErrors", function() { return /* reexport */ getFormValidErrors; });
78932
78932
  __webpack_require__.d(__webpack_exports__, "stringUrlQuery", function() { return /* reexport */ common_stringUrlQuery; });
78933
78933
  __webpack_require__.d(__webpack_exports__, "getRouteFullPath", function() { return /* reexport */ getRouteFullPath; });
78934
78934
  __webpack_require__.d(__webpack_exports__, "getGridValidErrors", function() { return /* reexport */ getGridValidErrors; });
78935
+ __webpack_require__.d(__webpack_exports__, "routeBeforeEach", function() { return /* reexport */ routeBeforeEach; });
78935
78936
  __webpack_require__.d(__webpack_exports__, "timeAgo", function() { return /* reexport */ timeAgo; });
78936
78937
  __webpack_require__.d(__webpack_exports__, "parseTime", function() { return /* reexport */ parseTime; });
78937
78938
  __webpack_require__.d(__webpack_exports__, "formatTime", function() { return /* reexport */ formatTime; });
@@ -107002,247 +107003,6 @@ var srcvue_type_template_id_78416a63_scoped_true_staticRenderFns = []
107002
107003
 
107003
107004
  // CONCATENATED MODULE: ./packages/BasePulldown/src/index.vue?vue&type=template&id=78416a63&scoped=true&
107004
107005
 
107005
- // CONCATENATED MODULE: ./packages/utils/common.js
107006
- /**
107007
- * 替换掩码参数字符串
107008
- * @param {参数字符串} paramString
107009
- * @param {当前页面数据集} formData
107010
- */
107011
- function replaceParamString(
107012
- paramString,
107013
- formData,
107014
- currentModuleSelectInfo
107015
- ) {
107016
- // hh添加
107017
- let tempStr = paramString
107018
- while (true) {
107019
- if (tempStr.indexOf('@Fn(') < 0) {
107020
- break
107021
- }
107022
- let tempReplaceParam = tempStr.substr(tempStr.indexOf('@Fn('))
107023
- tempReplaceParam = tempReplaceParam.substr(
107024
- 0,
107025
- tempReplaceParam.indexOf(')') + 1
107026
- ) // 查找掩码参数
107027
- let tempDataFields = tempReplaceParam
107028
- .substr(0, tempReplaceParam.length - 1)
107029
- .substr(4)
107030
- .split('.')
107031
- let tempReplaceValue = null
107032
- if (tempDataFields[0] === '') {
107033
- // 取主表数据
107034
- tempReplaceValue = formData[tempDataFields[1]]
107035
- } else {
107036
- if (formData[tempDataFields[0]] instanceof Array) {
107037
- let tempSelectItemInfo = currentModuleSelectInfo.filter(filterItem => {
107038
- return filterItem.attrDataName === tempDataFields[0]
107039
- })
107040
- if (tempSelectItemInfo.length > 0) {
107041
- let tempKeyFieldValue =
107042
- tempSelectItemInfo[0].selectItem[tempSelectItemInfo[0].keyField]
107043
- let tempActualRow = formData[tempDataFields[0]].filter(filterItem => {
107044
- return (
107045
- filterItem[tempSelectItemInfo[0].keyField] === tempKeyFieldValue
107046
- )
107047
- })
107048
- if (tempActualRow.length > 0) {
107049
- tempReplaceValue = tempActualRow[0][tempDataFields[1]]
107050
- }
107051
- }
107052
- } else {
107053
- tempReplaceValue = formData[tempDataFields[0]][tempDataFields[1]]
107054
- }
107055
- }
107056
- //刘松嗣临时处理
107057
- if (tempReplaceValue == undefined) {
107058
- tempReplaceValue = '0'
107059
- }
107060
- tempStr = tempStr.substr(
107061
- tempStr.indexOf(tempReplaceParam) + tempReplaceParam.length
107062
- )
107063
-
107064
- if (typeof tempReplaceValue === 'string') {
107065
- paramString = paramString.replace(
107066
- tempReplaceParam,
107067
- '"' + tempReplaceValue + '"'
107068
- )
107069
- tempStr = tempStr.replace(tempReplaceParam, '"' + tempReplaceValue + '"')
107070
- } else {
107071
- paramString = paramString.replace(tempReplaceParam, tempReplaceValue)
107072
- tempStr = tempStr.replace(tempReplaceParam, tempReplaceValue)
107073
- }
107074
- }
107075
- return paramString
107076
- }
107077
-
107078
- /**
107079
- * 替换掩码参数字符串
107080
- * @param {参数字符串} paramString
107081
- * @param {当前页面数据集} formData
107082
- */
107083
- function replaceParam(paramString, formData) {
107084
- let tempStr = paramString
107085
- while (true) {
107086
- if (tempStr.indexOf('@Fn(') < 0) {
107087
- break
107088
- }
107089
- let tempReplaceParam = tempStr.substr(tempStr.indexOf('@Fn('))
107090
- tempReplaceParam = tempReplaceParam.substr(
107091
- 0,
107092
- tempReplaceParam.indexOf(')') + 1
107093
- ) // 查找掩码参数
107094
- let tempDataFields = tempReplaceParam
107095
- .substr(0, tempReplaceParam.length - 1)
107096
- .substr(4)
107097
- .split('.')
107098
- let tempReplaceValue = null
107099
- if (tempDataFields[0] === '') {
107100
- // 取主表数据
107101
- tempReplaceValue = formData[tempDataFields[1]]
107102
- } else {
107103
- tempReplaceValue = formData[tempDataFields[0]][tempDataFields[1]]
107104
- }
107105
- tempStr = tempStr.substr(
107106
- tempStr.indexOf(tempReplaceParam) + tempReplaceParam.length
107107
- )
107108
-
107109
- // if (typeof tempReplaceValue === 'string') {
107110
- // paramString = paramString.replace(
107111
- // tempReplaceParam,
107112
- // '"' + tempReplaceValue + '"'
107113
- // )
107114
- // tempStr = tempStr.replace(tempReplaceParam, '"' + tempReplaceValue + '"')
107115
- // } else {
107116
- paramString = paramString.replace(tempReplaceParam, tempReplaceValue)
107117
- tempStr = tempStr.replace(tempReplaceParam, tempReplaceValue)
107118
- // }
107119
- }
107120
- return paramString
107121
- }
107122
-
107123
- function setFrameColState(formCols, formState, formStatus) {
107124
- for (let prop in formCols) {
107125
- if (formCols[prop].editStates instanceof Array) {
107126
- let exists = formCols[prop].editStates.filter(item => {
107127
- //editState:['add','edit']
107128
- return item === formState // view === add|edit formState :view|add|edit
107129
- }) //[]
107130
- if (exists.length > 0) {
107131
- formCols[prop].edit = true
107132
- } else {
107133
- formCols[prop].edit = false
107134
- }
107135
- }
107136
- // 单据状态控制
107137
- if (
107138
- formStatus &&
107139
- formCols[prop].editStatuss instanceof Array &&
107140
- formCols[prop].editStatuss.length > 0 &&
107141
- formCols[prop].edit === true
107142
- ) {
107143
- let formStatusExists = formCols[prop].editStatuss.filter(item => {
107144
- //editStatuss:[,'publish',]
107145
- return item === formStatus // formStatus:'draft'
107146
- })
107147
- if (formStatusExists.length > 0) {
107148
- formCols[prop].edit = true
107149
- } else {
107150
- formCols[prop].edit = false
107151
- }
107152
- }
107153
- // Vue.set(formCols, i, formCols[i])
107154
- }
107155
- }
107156
- function setFrameToolBtnState(toolBars, formState, formStatus) {
107157
- for (let i = 0; i < toolBars.length; i++) {
107158
- toolBars[i].visible = false
107159
- toolBars[i].isPrimary = false
107160
- if (
107161
- toolBars[i].visibleStates &&
107162
- toolBars[i].visibleStates.indexOf(formState) >= 0
107163
- ) {
107164
- toolBars[i].visible = true
107165
- }
107166
- if (formStatus && toolBars[i].visibleStatuss && toolBars[i].visible) {
107167
- toolBars[i].visible = toolBars[i].visibleStatuss.indexOf(formStatus) >= 0
107168
- }
107169
- }
107170
- // 查找优先级最大的并且显示的设置按钮强调色
107171
- let visibleBtns = toolBars.filter(filterItem => {
107172
- return filterItem.visible === true
107173
- })
107174
- //循环数组查找出小于自身的priority优先级 优先级高设置按钮强调色
107175
- for (let i = 0; i < visibleBtns.length; i++) {
107176
- let tempPriority = visibleBtns[i].priority
107177
- let tempBtns = visibleBtns.filter(filterItem => {
107178
- return filterItem.priority < tempPriority
107179
- })
107180
- //如果找到小于自身优先级的数量>0就说明还有更小的跳出本次不设置true继续查找
107181
- if (tempBtns.length > 0) {
107182
- continue
107183
- }
107184
- visibleBtns[i].isPrimary = true
107185
- }
107186
- }
107187
- function showErrors(errs) {
107188
- let errors = ''
107189
- for (let i = 0; i < errs.length; i++) {
107190
- errors = errors + errs[i] + '\n'
107191
- }
107192
- notification.error({
107193
- style: {
107194
- whiteSpace: 'pre-wrap'
107195
- },
107196
- message: '错误',
107197
- description: errors,
107198
- placement: 'topRight'
107199
- })
107200
- }
107201
- function getUuid() {
107202
- let d = new Date().getTime()
107203
- let uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(
107204
- c
107205
- ) {
107206
- let r = (d + Math.random() * 16) % 16 | 0
107207
- d = Math.floor(d / 16)
107208
- return (c === 'x' ? r : (r & 0x3) | 0x8).toString(16)
107209
- })
107210
- return uuid
107211
- }
107212
- async function getFormValidErrors(formView) {
107213
- let formErrors = []
107214
- const validFormError = await formView.validate().catch(errMap => errMap)
107215
- if (validFormError === false) {
107216
- for (let errorProp in formView.errors) {
107217
- for (let x = 0; x < formView.errors[errorProp].length; x++) {
107218
- formErrors.push(errorProp + ':' + formView.errors[errorProp][x])
107219
- }
107220
- }
107221
- }
107222
- return formErrors
107223
- }
107224
- function common_stringUrlQuery(obj) {
107225
- let strUrlQuery = ''
107226
- for (let prop in obj) {
107227
- strUrlQuery = strUrlQuery + prop + '=' + obj[prop] + '&'
107228
- }
107229
- if (strUrlQuery.length > 0) {
107230
- strUrlQuery = strUrlQuery.substring(0, strUrlQuery.length - 1)
107231
- }
107232
- return strUrlQuery
107233
- }
107234
- function getRouteFullPath(route) {
107235
- let fullPath = route.path + '?' + common_stringUrlQuery(route.query)
107236
- return fullPath
107237
- }
107238
- async function getGridValidErrors(gridView) {
107239
- const gridErrors = await gridView.fullValidate()
107240
- return gridErrors
107241
- }
107242
- // EXTERNAL MODULE: ./node_modules/_axios@0.18.0@axios/index.js
107243
- var _axios_0_18_0_axios = __webpack_require__("7f43");
107244
- var _axios_0_18_0_axios_default = /*#__PURE__*/__webpack_require__.n(_axios_0_18_0_axios);
107245
-
107246
107006
  // CONCATENATED MODULE: ./node_modules/_ant-design-vue@1.7.8@ant-design-vue/es/vc-notification/Notice.js
107247
107007
 
107248
107008
 
@@ -107369,7 +107129,7 @@ function Notification_noop() {}
107369
107129
  var seed = 0;
107370
107130
  var Notification_now = Date.now();
107371
107131
 
107372
- function Notification_getUuid() {
107132
+ function getUuid() {
107373
107133
  return 'rcNotification_' + Notification_now + '_' + seed++;
107374
107134
  }
107375
107135
 
@@ -107398,7 +107158,7 @@ var Notification = {
107398
107158
  return transitionName;
107399
107159
  },
107400
107160
  add: function add(notice) {
107401
- var key = notice.key = notice.key || Notification_getUuid();
107161
+ var key = notice.key = notice.key || getUuid();
107402
107162
  var maxCount = this.$props.maxCount;
107403
107163
 
107404
107164
  this.setState(function (previousState) {
@@ -107776,7 +107536,269 @@ var api = {
107776
107536
  });
107777
107537
 
107778
107538
  api.warn = api.warning;
107779
- /* harmony default export */ var es_notification = (api);
107539
+ /* harmony default export */ var notification = (api);
107540
+ // CONCATENATED MODULE: ./packages/utils/common.js
107541
+
107542
+ /**
107543
+ * 替换掩码参数字符串
107544
+ * @param {参数字符串} paramString
107545
+ * @param {当前页面数据集} formData
107546
+ */
107547
+ function replaceParamString(
107548
+ paramString,
107549
+ formData,
107550
+ currentModuleSelectInfo
107551
+ ) {
107552
+ // hh添加
107553
+ let tempStr = paramString
107554
+ while (true) {
107555
+ if (tempStr.indexOf('@Fn(') < 0) {
107556
+ break
107557
+ }
107558
+ let tempReplaceParam = tempStr.substr(tempStr.indexOf('@Fn('))
107559
+ tempReplaceParam = tempReplaceParam.substr(
107560
+ 0,
107561
+ tempReplaceParam.indexOf(')') + 1
107562
+ ) // 查找掩码参数
107563
+ let tempDataFields = tempReplaceParam
107564
+ .substr(0, tempReplaceParam.length - 1)
107565
+ .substr(4)
107566
+ .split('.')
107567
+ let tempReplaceValue = null
107568
+ if (tempDataFields[0] === '') {
107569
+ // 取主表数据
107570
+ tempReplaceValue = formData[tempDataFields[1]]
107571
+ } else {
107572
+ if (formData[tempDataFields[0]] instanceof Array) {
107573
+ let tempSelectItemInfo = currentModuleSelectInfo.filter(filterItem => {
107574
+ return filterItem.attrDataName === tempDataFields[0]
107575
+ })
107576
+ if (tempSelectItemInfo.length > 0) {
107577
+ let tempKeyFieldValue =
107578
+ tempSelectItemInfo[0].selectItem[tempSelectItemInfo[0].keyField]
107579
+ let tempActualRow = formData[tempDataFields[0]].filter(filterItem => {
107580
+ return (
107581
+ filterItem[tempSelectItemInfo[0].keyField] === tempKeyFieldValue
107582
+ )
107583
+ })
107584
+ if (tempActualRow.length > 0) {
107585
+ tempReplaceValue = tempActualRow[0][tempDataFields[1]]
107586
+ }
107587
+ }
107588
+ } else {
107589
+ tempReplaceValue = formData[tempDataFields[0]][tempDataFields[1]]
107590
+ }
107591
+ }
107592
+ //刘松嗣临时处理
107593
+ if (tempReplaceValue == undefined) {
107594
+ tempReplaceValue = '0'
107595
+ }
107596
+ tempStr = tempStr.substr(
107597
+ tempStr.indexOf(tempReplaceParam) + tempReplaceParam.length
107598
+ )
107599
+
107600
+ if (typeof tempReplaceValue === 'string') {
107601
+ paramString = paramString.replace(
107602
+ tempReplaceParam,
107603
+ '"' + tempReplaceValue + '"'
107604
+ )
107605
+ tempStr = tempStr.replace(tempReplaceParam, '"' + tempReplaceValue + '"')
107606
+ } else {
107607
+ paramString = paramString.replace(tempReplaceParam, tempReplaceValue)
107608
+ tempStr = tempStr.replace(tempReplaceParam, tempReplaceValue)
107609
+ }
107610
+ }
107611
+ return paramString
107612
+ }
107613
+
107614
+ /**
107615
+ * 替换掩码参数字符串
107616
+ * @param {参数字符串} paramString
107617
+ * @param {当前页面数据集} formData
107618
+ */
107619
+ function replaceParam(paramString, formData) {
107620
+ let tempStr = paramString
107621
+ while (true) {
107622
+ if (tempStr.indexOf('@Fn(') < 0) {
107623
+ break
107624
+ }
107625
+ let tempReplaceParam = tempStr.substr(tempStr.indexOf('@Fn('))
107626
+ tempReplaceParam = tempReplaceParam.substr(
107627
+ 0,
107628
+ tempReplaceParam.indexOf(')') + 1
107629
+ ) // 查找掩码参数
107630
+ let tempDataFields = tempReplaceParam
107631
+ .substr(0, tempReplaceParam.length - 1)
107632
+ .substr(4)
107633
+ .split('.')
107634
+ let tempReplaceValue = null
107635
+ if (tempDataFields[0] === '') {
107636
+ // 取主表数据
107637
+ tempReplaceValue = formData[tempDataFields[1]]
107638
+ } else {
107639
+ tempReplaceValue = formData[tempDataFields[0]][tempDataFields[1]]
107640
+ }
107641
+ tempStr = tempStr.substr(
107642
+ tempStr.indexOf(tempReplaceParam) + tempReplaceParam.length
107643
+ )
107644
+
107645
+ // if (typeof tempReplaceValue === 'string') {
107646
+ // paramString = paramString.replace(
107647
+ // tempReplaceParam,
107648
+ // '"' + tempReplaceValue + '"'
107649
+ // )
107650
+ // tempStr = tempStr.replace(tempReplaceParam, '"' + tempReplaceValue + '"')
107651
+ // } else {
107652
+ paramString = paramString.replace(tempReplaceParam, tempReplaceValue)
107653
+ tempStr = tempStr.replace(tempReplaceParam, tempReplaceValue)
107654
+ // }
107655
+ }
107656
+ return paramString
107657
+ }
107658
+
107659
+ function setFrameColState(formCols, formState, formStatus) {
107660
+ for (let prop in formCols) {
107661
+ if (formCols[prop].editStates instanceof Array) {
107662
+ let exists = formCols[prop].editStates.filter(item => {
107663
+ //editState:['add','edit']
107664
+ return item === formState // view === add|edit formState :view|add|edit
107665
+ }) //[]
107666
+ if (exists.length > 0) {
107667
+ formCols[prop].edit = true
107668
+ } else {
107669
+ formCols[prop].edit = false
107670
+ }
107671
+ }
107672
+ // 单据状态控制
107673
+ if (
107674
+ formStatus &&
107675
+ formCols[prop].editStatuss instanceof Array &&
107676
+ formCols[prop].editStatuss.length > 0 &&
107677
+ formCols[prop].edit === true
107678
+ ) {
107679
+ let formStatusExists = formCols[prop].editStatuss.filter(item => {
107680
+ //editStatuss:[,'publish',]
107681
+ return item === formStatus // formStatus:'draft'
107682
+ })
107683
+ if (formStatusExists.length > 0) {
107684
+ formCols[prop].edit = true
107685
+ } else {
107686
+ formCols[prop].edit = false
107687
+ }
107688
+ }
107689
+ // Vue.set(formCols, i, formCols[i])
107690
+ }
107691
+ }
107692
+ function setFrameToolBtnState(toolBars, formState, formStatus) {
107693
+ for (let i = 0; i < toolBars.length; i++) {
107694
+ toolBars[i].visible = false
107695
+ toolBars[i].isPrimary = false
107696
+ if (
107697
+ toolBars[i].visibleStates &&
107698
+ toolBars[i].visibleStates.indexOf(formState) >= 0
107699
+ ) {
107700
+ toolBars[i].visible = true
107701
+ }
107702
+ if (formStatus && toolBars[i].visibleStatuss && toolBars[i].visible) {
107703
+ toolBars[i].visible = toolBars[i].visibleStatuss.indexOf(formStatus) >= 0
107704
+ }
107705
+ }
107706
+ // 查找优先级最大的并且显示的设置按钮强调色
107707
+ let visibleBtns = toolBars.filter(filterItem => {
107708
+ return filterItem.visible === true
107709
+ })
107710
+ //循环数组查找出小于自身的priority优先级 优先级高设置按钮强调色
107711
+ for (let i = 0; i < visibleBtns.length; i++) {
107712
+ let tempPriority = visibleBtns[i].priority
107713
+ let tempBtns = visibleBtns.filter(filterItem => {
107714
+ return filterItem.priority < tempPriority
107715
+ })
107716
+ //如果找到小于自身优先级的数量>0就说明还有更小的跳出本次不设置true继续查找
107717
+ if (tempBtns.length > 0) {
107718
+ continue
107719
+ }
107720
+ visibleBtns[i].isPrimary = true
107721
+ }
107722
+ }
107723
+ function showErrors(errs) {
107724
+ let errors = ''
107725
+ for (let i = 0; i < errs.length; i++) {
107726
+ errors = errors + errs[i] + '\n'
107727
+ }
107728
+ notification.error({
107729
+ style: {
107730
+ whiteSpace: 'pre-wrap'
107731
+ },
107732
+ message: '错误',
107733
+ description: errors,
107734
+ placement: 'topRight'
107735
+ })
107736
+ }
107737
+ function common_getUuid() {
107738
+ let d = new Date().getTime()
107739
+ let uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(
107740
+ c
107741
+ ) {
107742
+ let r = (d + Math.random() * 16) % 16 | 0
107743
+ d = Math.floor(d / 16)
107744
+ return (c === 'x' ? r : (r & 0x3) | 0x8).toString(16)
107745
+ })
107746
+ return uuid
107747
+ }
107748
+ async function getFormValidErrors(formView) {
107749
+ let formErrors = []
107750
+ const validFormError = await formView.validate().catch(errMap => errMap)
107751
+ if (validFormError === false) {
107752
+ for (let errorProp in formView.errors) {
107753
+ for (let x = 0; x < formView.errors[errorProp].length; x++) {
107754
+ formErrors.push(errorProp + ':' + formView.errors[errorProp][x])
107755
+ }
107756
+ }
107757
+ }
107758
+ return formErrors
107759
+ }
107760
+ function common_stringUrlQuery(obj) {
107761
+ let strUrlQuery = ''
107762
+ for (let prop in obj) {
107763
+ strUrlQuery = strUrlQuery + prop + '=' + obj[prop] + '&'
107764
+ }
107765
+ if (strUrlQuery.length > 0) {
107766
+ strUrlQuery = strUrlQuery.substring(0, strUrlQuery.length - 1)
107767
+ }
107768
+ return strUrlQuery
107769
+ }
107770
+ function getRouteFullPath(route) {
107771
+ let fullPath = route.path + '?' + common_stringUrlQuery(route.query)
107772
+ return fullPath
107773
+ }
107774
+ async function getGridValidErrors(gridView) {
107775
+ const gridErrors = await gridView.fullValidate()
107776
+ return gridErrors
107777
+ }
107778
+ function routeBeforeEach(to, from, next){
107779
+ if(to.params.aliveCacheKey){
107780
+ to.meta['aliveCacheKey'] = to.params.aliveCacheKey
107781
+ }
107782
+ if(!to.meta.aliveCacheKey){
107783
+ alert('防呆,子应用没有路由缓存键')
107784
+ }
107785
+ if (to.meta.moduleCode && !store.getters.moduleViewInfo[to.meta.moduleCode]) {
107786
+ store
107787
+ .dispatch('moduleLoadViewInfo', { moduleCode: to.meta.moduleCode })
107788
+ .then(() => {
107789
+ next()
107790
+ })
107791
+ .catch((err) => {
107792
+ console.debug(err)
107793
+ })
107794
+ } else {
107795
+ next()
107796
+ }
107797
+ }
107798
+ // EXTERNAL MODULE: ./node_modules/_axios@0.18.0@axios/index.js
107799
+ var _axios_0_18_0_axios = __webpack_require__("7f43");
107800
+ var _axios_0_18_0_axios_default = /*#__PURE__*/__webpack_require__.n(_axios_0_18_0_axios);
107801
+
107780
107802
  // CONCATENATED MODULE: ./packages/utils/api.js
107781
107803
 
107782
107804
 
@@ -107963,7 +107985,7 @@ service.interceptors.response.use(
107963
107985
  utils_store.dispatch('logOut')
107964
107986
  return Promise.reject(res.msg)
107965
107987
  }
107966
- es_notification.error({
107988
+ notification.error({
107967
107989
  message: '错误信息',
107968
107990
  description: h => {
107969
107991
  return h('div', null, [
@@ -107991,7 +108013,7 @@ service.interceptors.response.use(
107991
108013
  } else {
107992
108014
  errorMsg = error.msg
107993
108015
  }
107994
- es_notification['error']({ message: '错误信息', description: errorMsg })
108016
+ notification['error']({ message: '错误信息', description: errorMsg })
107995
108017
  return Promise.reject(error)
107996
108018
  }
107997
108019
  )
@@ -113110,13 +113132,13 @@ function removeRefreshToken() {
113110
113132
  beforeAvatarUpload(file) {
113111
113133
  // const isPic = file.type === 'image/jpeg' || file.type === 'image/png'
113112
113134
  if (file.size / 1024 / 1024 > this.limitSize) {
113113
- es_notification.error({
113135
+ notification.error({
113114
113136
  message: '错误',
113115
113137
  description: '上传图片大小不能超过 ' + this.limitSize + 'MB!'
113116
113138
  })
113117
113139
  }
113118
113140
  if (this.limitType.length > 0 && !this.limitType[file.type]) {
113119
- es_notification.error({
113141
+ notification.error({
113120
113142
  message: '错误',
113121
113143
  description: '上传附件格式错误!'
113122
113144
  })