doway-coms 1.1.26 → 1.1.28

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.
@@ -78941,11 +78941,6 @@ __webpack_require__.d(__webpack_exports__, "getFormValidErrors", function() { re
78941
78941
  __webpack_require__.d(__webpack_exports__, "stringUrlQuery", function() { return /* reexport */ common_stringUrlQuery; });
78942
78942
  __webpack_require__.d(__webpack_exports__, "getRouteFullPath", function() { return /* reexport */ getRouteFullPath; });
78943
78943
  __webpack_require__.d(__webpack_exports__, "getGridValidErrors", function() { return /* reexport */ getGridValidErrors; });
78944
- __webpack_require__.d(__webpack_exports__, "successMsg", function() { return /* reexport */ successMsg; });
78945
- __webpack_require__.d(__webpack_exports__, "warningMsg", function() { return /* reexport */ warningMsg; });
78946
- __webpack_require__.d(__webpack_exports__, "errorMsg", function() { return /* reexport */ common_errorMsg; });
78947
- __webpack_require__.d(__webpack_exports__, "infoMsg", function() { return /* reexport */ infoMsg; });
78948
- __webpack_require__.d(__webpack_exports__, "closeMsg", function() { return /* reexport */ closeMsg; });
78949
78944
  __webpack_require__.d(__webpack_exports__, "routeBeforeEach", function() { return /* reexport */ routeBeforeEach; });
78950
78945
  __webpack_require__.d(__webpack_exports__, "timeAgo", function() { return /* reexport */ timeAgo; });
78951
78946
  __webpack_require__.d(__webpack_exports__, "parseTime", function() { return /* reexport */ parseTime; });
@@ -78963,6 +78958,12 @@ __webpack_require__.d(__webpack_exports__, "splitFieldValueFilter", function() {
78963
78958
  __webpack_require__.d(__webpack_exports__, "dropdownDisplayFilter", function() { return /* reexport */ dropdownDisplayFilter; });
78964
78959
  __webpack_require__.d(__webpack_exports__, "dateformat", function() { return /* reexport */ dateformat; });
78965
78960
  __webpack_require__.d(__webpack_exports__, "secondDisplayTime", function() { return /* reexport */ secondDisplayTime; });
78961
+ __webpack_require__.d(__webpack_exports__, "successMsg", function() { return /* reexport */ successMsg; });
78962
+ __webpack_require__.d(__webpack_exports__, "warningMsg", function() { return /* reexport */ warningMsg; });
78963
+ __webpack_require__.d(__webpack_exports__, "errorMsg", function() { return /* reexport */ msg_errorMsg; });
78964
+ __webpack_require__.d(__webpack_exports__, "infoMsg", function() { return /* reexport */ infoMsg; });
78965
+ __webpack_require__.d(__webpack_exports__, "closeMsg", function() { return /* reexport */ closeMsg; });
78966
+ __webpack_require__.d(__webpack_exports__, "confirmMsg", function() { return /* reexport */ confirmMsg; });
78966
78967
  __webpack_require__.d(__webpack_exports__, "BaseInput", function() { return /* reexport */ BaseInput; });
78967
78968
  __webpack_require__.d(__webpack_exports__, "BaseCheckbox", function() { return /* reexport */ BaseCheckbox; });
78968
78969
  __webpack_require__.d(__webpack_exports__, "BaseDate", function() { return /* reexport */ BaseDate; });
@@ -80105,7 +80106,7 @@ function create(options) {
80105
80106
  /* eslint-disable no-console */
80106
80107
  var warned = {};
80107
80108
 
80108
- function warning(valid, message) {
80109
+ function warning_warning(valid, message) {
80109
80110
  // Support uglify
80110
80111
  if (false) {}
80111
80112
  }
@@ -80127,7 +80128,7 @@ function call(method, valid, message) {
80127
80128
  }
80128
80129
 
80129
80130
  function warningOnce(valid, message) {
80130
- call(warning, valid, message);
80131
+ call(warning_warning, valid, message);
80131
80132
  }
80132
80133
 
80133
80134
  function noteOnce(valid, message) {
@@ -83573,10 +83574,10 @@ var DEFAULT_CONFIG = {
83573
83574
  mode: 'aggressive',
83574
83575
  useConstraintAttrs: true
83575
83576
  };
83576
- var currentConfig = __assign({}, DEFAULT_CONFIG);
83577
- var getConfig = function () { return currentConfig; };
83577
+ var vee_validate_esm_currentConfig = __assign({}, DEFAULT_CONFIG);
83578
+ var getConfig = function () { return vee_validate_esm_currentConfig; };
83578
83579
  var setConfig = function (newConf) {
83579
- currentConfig = __assign(__assign({}, currentConfig), newConf);
83580
+ vee_validate_esm_currentConfig = __assign(__assign({}, vee_validate_esm_currentConfig), newConf);
83580
83581
  };
83581
83582
  var configure = function (cfg) {
83582
83583
  setConfig(cfg);
@@ -90078,7 +90079,7 @@ mix(dist_web_utils, domUtils);
90078
90079
  /**
90079
90080
  * 得到会导致元素显示不全的祖先元素
90080
90081
  */
90081
- var getParent = dist_web_utils.getParent;
90082
+ var dist_web_getParent = dist_web_utils.getParent;
90082
90083
  function getOffsetParent(element) {
90083
90084
  if (dist_web_utils.isWindow(element) || element.nodeType === 9) {
90084
90085
  return null;
@@ -90104,9 +90105,9 @@ function getOffsetParent(element) {
90104
90105
  var positionStyle = dist_web_utils.css(element, 'position');
90105
90106
  var skipStatic = positionStyle === 'fixed' || positionStyle === 'absolute';
90106
90107
  if (!skipStatic) {
90107
- return element.nodeName.toLowerCase() === 'html' ? null : getParent(element);
90108
+ return element.nodeName.toLowerCase() === 'html' ? null : dist_web_getParent(element);
90108
90109
  }
90109
- for (parent = getParent(element); parent && parent !== body && parent.nodeType !== 9; parent = getParent(parent)) {
90110
+ for (parent = dist_web_getParent(element); parent && parent !== body && parent.nodeType !== 9; parent = dist_web_getParent(parent)) {
90110
90111
  positionStyle = dist_web_utils.css(parent, 'position');
90111
90112
  if (positionStyle !== 'static') {
90112
90113
  return parent;
@@ -107551,282 +107552,91 @@ var api = {
107551
107552
 
107552
107553
  api.warn = api.warning;
107553
107554
  /* harmony default export */ var notification = (api);
107554
- // CONCATENATED MODULE: ./packages/utils/common.js
107555
+ // EXTERNAL MODULE: ./node_modules/_axios@0.18.0@axios/index.js
107556
+ var _axios_0_18_0_axios = __webpack_require__("7f43");
107557
+ var _axios_0_18_0_axios_default = /*#__PURE__*/__webpack_require__.n(_axios_0_18_0_axios);
107558
+
107559
+ // CONCATENATED MODULE: ./packages/utils/request.js
107555
107560
 
107556
- /**
107557
- * 替换掩码参数字符串
107558
- * @param {参数字符串} paramString
107559
- * @param {当前页面数据集} formData
107560
- */
107561
- function replaceParamString(
107562
- paramString,
107563
- formData,
107564
- currentModuleSelectInfo
107565
- ) {
107566
- // hh添加
107567
- let tempStr = paramString
107568
- while (true) {
107569
- if (tempStr.indexOf('@Fn(') < 0) {
107570
- break
107571
- }
107572
- let tempReplaceParam = tempStr.substr(tempStr.indexOf('@Fn('))
107573
- tempReplaceParam = tempReplaceParam.substr(
107574
- 0,
107575
- tempReplaceParam.indexOf(')') + 1
107576
- ) // 查找掩码参数
107577
- let tempDataFields = tempReplaceParam
107578
- .substr(0, tempReplaceParam.length - 1)
107579
- .substr(4)
107580
- .split('.')
107581
- let tempReplaceValue = null
107582
- if (tempDataFields[0] === '') {
107583
- // 取主表数据
107584
- tempReplaceValue = formData[tempDataFields[1]]
107585
- } else {
107586
- if (formData[tempDataFields[0]] instanceof Array) {
107587
- let tempSelectItemInfo = currentModuleSelectInfo.filter(filterItem => {
107588
- return filterItem.attrDataName === tempDataFields[0]
107589
- })
107590
- if (tempSelectItemInfo.length > 0) {
107591
- let tempKeyFieldValue =
107592
- tempSelectItemInfo[0].selectItem[tempSelectItemInfo[0].keyField]
107593
- let tempActualRow = formData[tempDataFields[0]].filter(filterItem => {
107594
- return (
107595
- filterItem[tempSelectItemInfo[0].keyField] === tempKeyFieldValue
107596
- )
107597
- })
107598
- if (tempActualRow.length > 0) {
107599
- tempReplaceValue = tempActualRow[0][tempDataFields[1]]
107600
- }
107601
- }
107602
- } else {
107603
- tempReplaceValue = formData[tempDataFields[0]][tempDataFields[1]]
107604
- }
107605
- }
107606
- //刘松嗣临时处理
107607
- if (tempReplaceValue == undefined) {
107608
- tempReplaceValue = '0'
107609
- }
107610
- tempStr = tempStr.substr(
107611
- tempStr.indexOf(tempReplaceParam) + tempReplaceParam.length
107612
- )
107613
-
107614
- if (typeof tempReplaceValue === 'string') {
107615
- paramString = paramString.replace(
107616
- tempReplaceParam,
107617
- '"' + tempReplaceValue + '"'
107618
- )
107619
- tempStr = tempStr.replace(tempReplaceParam, '"' + tempReplaceValue + '"')
107620
- } else {
107621
- paramString = paramString.replace(tempReplaceParam, tempReplaceValue)
107622
- tempStr = tempStr.replace(tempReplaceParam, tempReplaceValue)
107623
- }
107624
- }
107625
- return paramString
107626
- }
107627
-
107628
- /**
107629
- * 替换掩码参数字符串
107630
- * @param {参数字符串} paramString
107631
- * @param {当前页面数据集} formData
107632
- */
107633
- function replaceParam(paramString, formData) {
107634
- let tempStr = paramString
107635
- while (true) {
107636
- if (tempStr.indexOf('@Fn(') < 0) {
107637
- break
107638
- }
107639
- let tempReplaceParam = tempStr.substr(tempStr.indexOf('@Fn('))
107640
- tempReplaceParam = tempReplaceParam.substr(
107641
- 0,
107642
- tempReplaceParam.indexOf(')') + 1
107643
- ) // 查找掩码参数
107644
- let tempDataFields = tempReplaceParam
107645
- .substr(0, tempReplaceParam.length - 1)
107646
- .substr(4)
107647
- .split('.')
107648
- let tempReplaceValue = null
107649
- if (tempDataFields[0] === '') {
107650
- // 取主表数据
107651
- tempReplaceValue = formData[tempDataFields[1]]
107652
- } else {
107653
- tempReplaceValue = formData[tempDataFields[0]][tempDataFields[1]]
107654
- }
107655
- tempStr = tempStr.substr(
107656
- tempStr.indexOf(tempReplaceParam) + tempReplaceParam.length
107657
- )
107658
-
107659
- // if (typeof tempReplaceValue === 'string') {
107660
- // paramString = paramString.replace(
107661
- // tempReplaceParam,
107662
- // '"' + tempReplaceValue + '"'
107663
- // )
107664
- // tempStr = tempStr.replace(tempReplaceParam, '"' + tempReplaceValue + '"')
107665
- // } else {
107666
- paramString = paramString.replace(tempReplaceParam, tempReplaceValue)
107667
- tempStr = tempStr.replace(tempReplaceParam, tempReplaceValue)
107668
- // }
107669
- }
107670
- return paramString
107671
- }
107672
107561
 
107673
- function setFrameColState(formCols, formState, formStatus) {
107674
- for (let prop in formCols) {
107675
- if (formCols[prop].editStates instanceof Array) {
107676
- let exists = formCols[prop].editStates.filter(item => {
107677
- //editState:['add','edit']
107678
- return item === formState // view === add|edit formState :view|add|edit
107679
- }) //[]
107680
- if (exists.length > 0) {
107681
- formCols[prop].edit = true
107682
- } else {
107683
- formCols[prop].edit = false
107684
- }
107685
- }
107686
- // 单据状态控制
107687
- if (
107688
- formStatus &&
107689
- formCols[prop].editStatuss instanceof Array &&
107690
- formCols[prop].editStatuss.length > 0 &&
107691
- formCols[prop].edit === true
107692
- ) {
107693
- let formStatusExists = formCols[prop].editStatuss.filter(item => {
107694
- //editStatuss:[,'publish',]
107695
- return item === formStatus // formStatus:'draft'
107696
- })
107697
- if (formStatusExists.length > 0) {
107698
- formCols[prop].edit = true
107699
- } else {
107700
- formCols[prop].edit = false
107701
- }
107702
- }
107703
- // Vue.set(formCols, i, formCols[i])
107562
+
107563
+
107564
+
107565
+ // create an axios instance
107566
+ const service = _axios_0_18_0_axios_default.a.create({
107567
+ // baseURL: process.env.BASE_API, // api的base_url
107568
+ timeout: 1000 * 60 * 5 // request timeout
107569
+ })
107570
+ // request interceptor
107571
+ service.interceptors.request.use(
107572
+ config => {
107573
+ // Do something before request is sent
107574
+ let tempToken = utils_store.state.token
107575
+ if (tempToken) {
107576
+ config.headers.Authorization = `Bearer ${tempToken}`
107704
107577
  }
107578
+ // config.headers.Accept = 'application/json,Date, text/plain, */*'
107579
+ return config
107580
+ },
107581
+ error => {
107582
+ // Do something with request error
107583
+ Promise.reject(error)
107705
107584
  }
107706
- function setFrameToolBtnState(toolBars, formState, formStatus) {
107707
- for (let i = 0; i < toolBars.length; i++) {
107708
- toolBars[i].visible = false
107709
- toolBars[i].isPrimary = false
107710
- if (
107711
- toolBars[i].visibleStates &&
107712
- toolBars[i].visibleStates.indexOf(formState) >= 0
107713
- ) {
107714
- toolBars[i].visible = true
107715
- }
107716
- if (formStatus && toolBars[i].visibleStatuss && toolBars[i].visible) {
107717
- toolBars[i].visible = toolBars[i].visibleStatuss.indexOf(formStatus) >= 0
107718
- }
107585
+ )
107586
+
107587
+ // respone interceptor
107588
+ service.interceptors.response.use(
107589
+ response => {
107590
+ // store.dispatch(
107591
+ // "setLastRequireTime",
107592
+ // moment().format("YYYY-MM-DD HH:mm:ss")
107593
+ // );
107594
+
107595
+ const res = response.data
107596
+ if (res.status === 200 || res.code === 200) {
107597
+ return response.data
107719
107598
  }
107720
- // 查找优先级最大的并且显示的设置按钮强调色
107721
- let visibleBtns = toolBars.filter(filterItem => {
107722
- return filterItem.visible === true
107723
- })
107724
- //循环数组查找出小于自身的priority优先级 优先级高设置按钮强调色
107725
- for (let i = 0; i < visibleBtns.length; i++) {
107726
- let tempPriority = visibleBtns[i].priority
107727
- let tempBtns = visibleBtns.filter(filterItem => {
107728
- return filterItem.priority < tempPriority
107729
- })
107730
- //如果找到小于自身优先级的数量>0就说明还有更小的跳出本次不设置true继续查找
107731
- if (tempBtns.length > 0) {
107732
- continue
107733
- }
107734
- visibleBtns[i].isPrimary = true
107599
+ if (res.status === undefined && res.code === undefined) {
107600
+ return response.data
107735
107601
  }
107736
- }
107737
- function showErrors(errs) {
107738
- let errors = ''
107739
- for (let i = 0; i < errs.length; i++) {
107740
- errors = errors + errs[i] + '\n'
107602
+ if (res.code === 401) {
107603
+ utils_store.dispatch('logOut')
107604
+ return Promise.reject(res.msg)
107741
107605
  }
107742
107606
  notification.error({
107743
- style: {
107744
- whiteSpace: 'pre-wrap'
107745
- },
107746
- message: '错误',
107747
- description: errors,
107748
- placement: 'topRight'
107749
- })
107750
- }
107751
- function common_getUuid() {
107752
- let d = new Date().getTime()
107753
- let uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(
107754
- c
107755
- ) {
107756
- let r = (d + Math.random() * 16) % 16 | 0
107757
- d = Math.floor(d / 16)
107758
- return (c === 'x' ? r : (r & 0x3) | 0x8).toString(16)
107759
- })
107760
- return uuid
107761
- }
107762
- async function getFormValidErrors(formView) {
107763
- let formErrors = []
107764
- const validFormError = await formView.validate().catch(errMap => errMap)
107765
- if (validFormError === false) {
107766
- for (let errorProp in formView.errors) {
107767
- for (let x = 0; x < formView.errors[errorProp].length; x++) {
107768
- formErrors.push(errorProp + ':' + formView.errors[errorProp][x])
107769
- }
107607
+ message: '错误信息',
107608
+ description: h => {
107609
+ return h('div', null, [
107610
+ h('p', { domProps: { innerHTML: res.msg } }, null)
107611
+ ])
107770
107612
  }
107613
+ // description:parseContent.content
107614
+ })
107615
+
107616
+ // notification['error']({ message: '错误信息', description: res.msg })
107617
+ return Promise.reject(res.msg)
107618
+ },
107619
+ error => {
107620
+ if (error.response && error.response.status === 401) {
107621
+ utils_store.dispatch('logOut').then(() => {})
107622
+ return
107771
107623
  }
107772
- return formErrors
107773
- }
107774
- function common_stringUrlQuery(obj) {
107775
- let strUrlQuery = ''
107776
- for (let prop in obj) {
107777
- strUrlQuery = strUrlQuery + prop + '=' + obj[prop] + '&'
107778
- }
107779
- if (strUrlQuery.length > 0) {
107780
- strUrlQuery = strUrlQuery.substring(0, strUrlQuery.length - 1)
107781
- }
107782
- return strUrlQuery
107783
- }
107784
- function getRouteFullPath(route) {
107785
- let fullPath = route.path + '?' + common_stringUrlQuery(route.query)
107786
- return fullPath
107787
- }
107788
- async function getGridValidErrors(gridView) {
107789
- const gridErrors = await gridView.fullValidate()
107790
- return gridErrors
107791
- }
107792
- function successMsg(msg, desc){
107793
- notification['success']({ message: msg, description: desc })
107794
- }
107795
- function warningMsg(msg, desc){
107796
- notification['warning']({ message: msg, description: desc })
107797
- }
107798
- function common_errorMsg(msg, desc){
107799
- notification['error']({ message: msg, description: desc })
107800
- }
107801
- function infoMsg(dataInfo){
107802
- notification['info'](dataInfo)
107803
- }
107804
- function closeMsg(key){
107805
- notification.close(key)
107806
- }
107807
- function routeBeforeEach(to, from, next){
107808
- if(to.params.aliveCacheKey){
107809
- to.meta['aliveCacheKey'] = to.params.aliveCacheKey
107810
- }
107811
- if(!to.meta.aliveCacheKey){
107812
- alert('防呆,子应用没有路由缓存键')
107813
- }
107814
- if (to.meta.moduleCode && !store.getters.moduleViewInfo[to.meta.moduleCode]) {
107815
- store
107816
- .dispatch('moduleLoadViewInfo', { moduleCode: to.meta.moduleCode })
107817
- .then(() => {
107818
- next()
107819
- })
107820
- .catch((err) => {
107821
- console.debug(err)
107822
- })
107624
+ let errorMsg = ''
107625
+ if (error.response && error.response.data && error.response.data.error) {
107626
+ if (error.response.data.error_description) {
107627
+ errorMsg = error.response.data.error_description
107823
107628
  } else {
107824
- next()
107629
+ errorMsg = error.response.data.error
107825
107630
  }
107826
- }
107827
- // EXTERNAL MODULE: ./node_modules/_axios@0.18.0@axios/index.js
107828
- var _axios_0_18_0_axios = __webpack_require__("7f43");
107829
- var _axios_0_18_0_axios_default = /*#__PURE__*/__webpack_require__.n(_axios_0_18_0_axios);
107631
+ } else {
107632
+ errorMsg = error.msg
107633
+ }
107634
+ notification['error']({ message: '错误信息', description: errorMsg })
107635
+ return Promise.reject(error)
107636
+ }
107637
+ )
107638
+
107639
+ /* harmony default export */ var utils_request = (service);
107830
107640
 
107831
107641
  // CONCATENATED MODULE: ./packages/utils/api.js
107832
107642
 
@@ -107967,88 +107777,266 @@ external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(vuex_esm["a" /* defau
107967
107777
  }
107968
107778
  }
107969
107779
  }));
107970
- // CONCATENATED MODULE: ./packages/utils/request.js
107971
-
107972
-
107973
-
107780
+ // CONCATENATED MODULE: ./packages/utils/common.js
107974
107781
 
107975
107782
 
107976
- // create an axios instance
107977
- const service = _axios_0_18_0_axios_default.a.create({
107978
- // baseURL: process.env.BASE_API, // api的base_url
107979
- timeout: 1000 * 60 * 5 // request timeout
107980
- })
107981
- // request interceptor
107982
- service.interceptors.request.use(
107983
- config => {
107984
- // Do something before request is sent
107985
- let tempToken = utils_store.state.token
107986
- if (tempToken) {
107987
- config.headers.Authorization = `Bearer ${tempToken}`
107783
+ /**
107784
+ * 替换掩码参数字符串
107785
+ * @param {参数字符串} paramString
107786
+ * @param {当前页面数据集} formData
107787
+ */
107788
+ function replaceParamString(
107789
+ paramString,
107790
+ formData,
107791
+ currentModuleSelectInfo
107792
+ ) {
107793
+ // hh添加
107794
+ let tempStr = paramString
107795
+ while (true) {
107796
+ if (tempStr.indexOf('@Fn(') < 0) {
107797
+ break
107798
+ }
107799
+ let tempReplaceParam = tempStr.substr(tempStr.indexOf('@Fn('))
107800
+ tempReplaceParam = tempReplaceParam.substr(
107801
+ 0,
107802
+ tempReplaceParam.indexOf(')') + 1
107803
+ ) // 查找掩码参数
107804
+ let tempDataFields = tempReplaceParam
107805
+ .substr(0, tempReplaceParam.length - 1)
107806
+ .substr(4)
107807
+ .split('.')
107808
+ let tempReplaceValue = null
107809
+ if (tempDataFields[0] === '') {
107810
+ // 取主表数据
107811
+ tempReplaceValue = formData[tempDataFields[1]]
107812
+ } else {
107813
+ if (formData[tempDataFields[0]] instanceof Array) {
107814
+ let tempSelectItemInfo = currentModuleSelectInfo.filter(filterItem => {
107815
+ return filterItem.attrDataName === tempDataFields[0]
107816
+ })
107817
+ if (tempSelectItemInfo.length > 0) {
107818
+ let tempKeyFieldValue =
107819
+ tempSelectItemInfo[0].selectItem[tempSelectItemInfo[0].keyField]
107820
+ let tempActualRow = formData[tempDataFields[0]].filter(filterItem => {
107821
+ return (
107822
+ filterItem[tempSelectItemInfo[0].keyField] === tempKeyFieldValue
107823
+ )
107824
+ })
107825
+ if (tempActualRow.length > 0) {
107826
+ tempReplaceValue = tempActualRow[0][tempDataFields[1]]
107827
+ }
107828
+ }
107829
+ } else {
107830
+ tempReplaceValue = formData[tempDataFields[0]][tempDataFields[1]]
107831
+ }
107832
+ }
107833
+ //刘松嗣临时处理
107834
+ if (tempReplaceValue == undefined) {
107835
+ tempReplaceValue = '0'
107836
+ }
107837
+ tempStr = tempStr.substr(
107838
+ tempStr.indexOf(tempReplaceParam) + tempReplaceParam.length
107839
+ )
107840
+
107841
+ if (typeof tempReplaceValue === 'string') {
107842
+ paramString = paramString.replace(
107843
+ tempReplaceParam,
107844
+ '"' + tempReplaceValue + '"'
107845
+ )
107846
+ tempStr = tempStr.replace(tempReplaceParam, '"' + tempReplaceValue + '"')
107847
+ } else {
107848
+ paramString = paramString.replace(tempReplaceParam, tempReplaceValue)
107849
+ tempStr = tempStr.replace(tempReplaceParam, tempReplaceValue)
107850
+ }
107988
107851
  }
107989
- // config.headers.Accept = 'application/json,Date, text/plain, */*'
107990
- return config
107991
- },
107992
- error => {
107993
- // Do something with request error
107994
- Promise.reject(error)
107852
+ return paramString
107853
+ }
107854
+
107855
+ /**
107856
+ * 替换掩码参数字符串
107857
+ * @param {参数字符串} paramString
107858
+ * @param {当前页面数据集} formData
107859
+ */
107860
+ function replaceParam(paramString, formData) {
107861
+ let tempStr = paramString
107862
+ while (true) {
107863
+ if (tempStr.indexOf('@Fn(') < 0) {
107864
+ break
107865
+ }
107866
+ let tempReplaceParam = tempStr.substr(tempStr.indexOf('@Fn('))
107867
+ tempReplaceParam = tempReplaceParam.substr(
107868
+ 0,
107869
+ tempReplaceParam.indexOf(')') + 1
107870
+ ) // 查找掩码参数
107871
+ let tempDataFields = tempReplaceParam
107872
+ .substr(0, tempReplaceParam.length - 1)
107873
+ .substr(4)
107874
+ .split('.')
107875
+ let tempReplaceValue = null
107876
+ if (tempDataFields[0] === '') {
107877
+ // 取主表数据
107878
+ tempReplaceValue = formData[tempDataFields[1]]
107879
+ } else {
107880
+ tempReplaceValue = formData[tempDataFields[0]][tempDataFields[1]]
107881
+ }
107882
+ tempStr = tempStr.substr(
107883
+ tempStr.indexOf(tempReplaceParam) + tempReplaceParam.length
107884
+ )
107885
+
107886
+ // if (typeof tempReplaceValue === 'string') {
107887
+ // paramString = paramString.replace(
107888
+ // tempReplaceParam,
107889
+ // '"' + tempReplaceValue + '"'
107890
+ // )
107891
+ // tempStr = tempStr.replace(tempReplaceParam, '"' + tempReplaceValue + '"')
107892
+ // } else {
107893
+ paramString = paramString.replace(tempReplaceParam, tempReplaceValue)
107894
+ tempStr = tempStr.replace(tempReplaceParam, tempReplaceValue)
107895
+ // }
107896
+ }
107897
+ return paramString
107995
107898
  }
107996
- )
107997
-
107998
- // respone interceptor
107999
- service.interceptors.response.use(
108000
- response => {
108001
- // store.dispatch(
108002
- // "setLastRequireTime",
108003
- // moment().format("YYYY-MM-DD HH:mm:ss")
108004
- // );
108005
107899
 
108006
- const res = response.data
108007
- if (res.status === 200 || res.code === 200) {
108008
- return response.data
107900
+ function setFrameColState(formCols, formState, formStatus) {
107901
+ for (let prop in formCols) {
107902
+ if (formCols[prop].editStates instanceof Array) {
107903
+ let exists = formCols[prop].editStates.filter(item => {
107904
+ //editState:['add','edit']
107905
+ return item === formState // view === add|edit formState :view|add|edit
107906
+ }) //[]
107907
+ if (exists.length > 0) {
107908
+ formCols[prop].edit = true
107909
+ } else {
107910
+ formCols[prop].edit = false
107911
+ }
107912
+ }
107913
+ // 单据状态控制
107914
+ if (
107915
+ formStatus &&
107916
+ formCols[prop].editStatuss instanceof Array &&
107917
+ formCols[prop].editStatuss.length > 0 &&
107918
+ formCols[prop].edit === true
107919
+ ) {
107920
+ let formStatusExists = formCols[prop].editStatuss.filter(item => {
107921
+ //editStatuss:[,'publish',]
107922
+ return item === formStatus // formStatus:'draft'
107923
+ })
107924
+ if (formStatusExists.length > 0) {
107925
+ formCols[prop].edit = true
107926
+ } else {
107927
+ formCols[prop].edit = false
107928
+ }
107929
+ }
107930
+ // Vue.set(formCols, i, formCols[i])
108009
107931
  }
108010
- if (res.status === undefined && res.code === undefined) {
108011
- return response.data
107932
+ }
107933
+ function setFrameToolBtnState(toolBars, formState, formStatus) {
107934
+ for (let i = 0; i < toolBars.length; i++) {
107935
+ toolBars[i].visible = false
107936
+ toolBars[i].isPrimary = false
107937
+ if (
107938
+ toolBars[i].visibleStates &&
107939
+ toolBars[i].visibleStates.indexOf(formState) >= 0
107940
+ ) {
107941
+ toolBars[i].visible = true
107942
+ }
107943
+ if (formStatus && toolBars[i].visibleStatuss && toolBars[i].visible) {
107944
+ toolBars[i].visible = toolBars[i].visibleStatuss.indexOf(formStatus) >= 0
107945
+ }
108012
107946
  }
108013
- if (res.code === 401) {
108014
- utils_store.dispatch('logOut')
108015
- return Promise.reject(res.msg)
107947
+ // 查找优先级最大的并且显示的设置按钮强调色
107948
+ let visibleBtns = toolBars.filter(filterItem => {
107949
+ return filterItem.visible === true
107950
+ })
107951
+ //循环数组查找出小于自身的priority优先级 优先级高设置按钮强调色
107952
+ for (let i = 0; i < visibleBtns.length; i++) {
107953
+ let tempPriority = visibleBtns[i].priority
107954
+ let tempBtns = visibleBtns.filter(filterItem => {
107955
+ return filterItem.priority < tempPriority
107956
+ })
107957
+ //如果找到小于自身优先级的数量>0就说明还有更小的跳出本次不设置true继续查找
107958
+ if (tempBtns.length > 0) {
107959
+ continue
107960
+ }
107961
+ visibleBtns[i].isPrimary = true
107962
+ }
107963
+ }
107964
+ function showErrors(errs) {
107965
+ let errors = ''
107966
+ for (let i = 0; i < errs.length; i++) {
107967
+ errors = errors + errs[i] + '\n'
108016
107968
  }
108017
107969
  notification.error({
108018
- message: '错误信息',
108019
- description: h => {
108020
- return h('div', null, [
108021
- h('p', { domProps: { innerHTML: res.msg } }, null)
108022
- ])
108023
- }
108024
- // description:parseContent.content
107970
+ style: {
107971
+ whiteSpace: 'pre-wrap'
107972
+ },
107973
+ message: '错误',
107974
+ description: errors,
107975
+ placement: 'topRight'
108025
107976
  })
108026
-
108027
- // notification['error']({ message: '错误信息', description: res.msg })
108028
- return Promise.reject(res.msg)
108029
- },
108030
- error => {
108031
- if (error.response && error.response.status === 401) {
108032
- utils_store.dispatch('logOut').then(() => {})
108033
- return
108034
- }
108035
- let errorMsg = ''
108036
- if (error.response && error.response.data && error.response.data.error) {
108037
- if (error.response.data.error_description) {
108038
- errorMsg = error.response.data.error_description
108039
- } else {
108040
- errorMsg = error.response.data.error
107977
+ }
107978
+ function common_getUuid() {
107979
+ let d = new Date().getTime()
107980
+ let uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(
107981
+ c
107982
+ ) {
107983
+ let r = (d + Math.random() * 16) % 16 | 0
107984
+ d = Math.floor(d / 16)
107985
+ return (c === 'x' ? r : (r & 0x3) | 0x8).toString(16)
107986
+ })
107987
+ return uuid
107988
+ }
107989
+ async function getFormValidErrors(formView) {
107990
+ let formErrors = []
107991
+ const validFormError = await formView.validate().catch(errMap => errMap)
107992
+ if (validFormError === false) {
107993
+ for (let errorProp in formView.errors) {
107994
+ for (let x = 0; x < formView.errors[errorProp].length; x++) {
107995
+ formErrors.push(errorProp + ':' + formView.errors[errorProp][x])
107996
+ }
108041
107997
  }
108042
- } else {
108043
- errorMsg = error.msg
108044
107998
  }
108045
- notification['error']({ message: '错误信息', description: errorMsg })
108046
- return Promise.reject(error)
107999
+ return formErrors
108047
108000
  }
108048
- )
108049
-
108050
- /* harmony default export */ var utils_request = (service);
108051
-
108001
+ function common_stringUrlQuery(obj) {
108002
+ let strUrlQuery = ''
108003
+ for (let prop in obj) {
108004
+ strUrlQuery = strUrlQuery + prop + '=' + obj[prop] + '&'
108005
+ }
108006
+ if (strUrlQuery.length > 0) {
108007
+ strUrlQuery = strUrlQuery.substring(0, strUrlQuery.length - 1)
108008
+ }
108009
+ return strUrlQuery
108010
+ }
108011
+ function getRouteFullPath(route) {
108012
+ let fullPath = route.path + '?' + common_stringUrlQuery(route.query)
108013
+ return fullPath
108014
+ }
108015
+ async function getGridValidErrors(gridView) {
108016
+ const gridErrors = await gridView.fullValidate()
108017
+ return gridErrors
108018
+ }
108019
+
108020
+ function routeBeforeEach(to, from, next){
108021
+ if(to.params.aliveCacheKey){
108022
+ to.meta['aliveCacheKey'] = to.params.aliveCacheKey
108023
+ }
108024
+ if(!to.meta.aliveCacheKey){
108025
+ alert('防呆,子应用没有路由缓存键')
108026
+ }
108027
+ if (to.meta.moduleCode && !utils_store.getters.moduleViewInfo[to.meta.moduleCode]) {
108028
+ utils_store
108029
+ .dispatch('moduleLoadViewInfo', { moduleCode: to.meta.moduleCode })
108030
+ .then(() => {
108031
+ next()
108032
+ })
108033
+ .catch((err) => {
108034
+ console.debug(err)
108035
+ })
108036
+ } else {
108037
+ next()
108038
+ }
108039
+ }
108052
108040
  // CONCATENATED MODULE: ./node_modules/_ant-design-vue@1.7.8@ant-design-vue/es/_util/responsiveObserve.js
108053
108041
 
108054
108042
 
@@ -111717,7 +111705,7 @@ function enhancer(Component) {
111717
111705
  // CONCATENATED MODULE: ./node_modules/_ant-design-vue@1.7.8@ant-design-vue/es/vc-progress/src/types.js
111718
111706
 
111719
111707
 
111720
- var defaultProps = {
111708
+ var types_defaultProps = {
111721
111709
  // className: '',
111722
111710
  percent: 0,
111723
111711
  prefixCls: 'rc-progress',
@@ -111757,7 +111745,7 @@ var circlePropTypes = extends_default()({}, propTypes, {
111757
111745
  gapDegree: vue_types.oneOfType([vue_types.number, vue_types.string, vue_types.bool])
111758
111746
  });
111759
111747
 
111760
- var circleDefaultProps = extends_default()({}, defaultProps, {
111748
+ var circleDefaultProps = extends_default()({}, types_defaultProps, {
111761
111749
  gapPosition: 'top'
111762
111750
  });
111763
111751
 
@@ -114007,6 +113995,1593 @@ var rules_double = {
114007
113995
 
114008
113996
 
114009
113997
 
113998
+ // CONCATENATED MODULE: ./node_modules/_ant-design-vue@1.7.8@ant-design-vue/es/vc-dialog/LazyRenderBox.js
113999
+
114000
+
114001
+
114002
+ var ILazyRenderBoxPropTypes = {
114003
+ visible: vue_types.bool,
114004
+ hiddenClassName: vue_types.string,
114005
+ forceRender: vue_types.bool
114006
+ };
114007
+
114008
+ /* harmony default export */ var vc_dialog_LazyRenderBox = ({
114009
+ props: ILazyRenderBoxPropTypes,
114010
+ render: function render() {
114011
+ var h = arguments[0];
114012
+
114013
+ return h(
114014
+ 'div',
114015
+ { on: getListeners(this) },
114016
+ [this.$slots['default']]
114017
+ );
114018
+ }
114019
+ });
114020
+ // CONCATENATED MODULE: ./node_modules/_ant-design-vue@1.7.8@ant-design-vue/es/_util/getScrollBarSize.js
114021
+ var cached = void 0;
114022
+
114023
+ function getScrollBarSize(fresh) {
114024
+ if (fresh || cached === undefined) {
114025
+ var inner = document.createElement('div');
114026
+ inner.style.width = '100%';
114027
+ inner.style.height = '200px';
114028
+
114029
+ var outer = document.createElement('div');
114030
+ var outerStyle = outer.style;
114031
+
114032
+ outerStyle.position = 'absolute';
114033
+ outerStyle.top = 0;
114034
+ outerStyle.left = 0;
114035
+ outerStyle.pointerEvents = 'none';
114036
+ outerStyle.visibility = 'hidden';
114037
+ outerStyle.width = '200px';
114038
+ outerStyle.height = '150px';
114039
+ outerStyle.overflow = 'hidden';
114040
+
114041
+ outer.appendChild(inner);
114042
+
114043
+ document.body.appendChild(outer);
114044
+
114045
+ var widthContained = inner.offsetWidth;
114046
+ outer.style.overflow = 'scroll';
114047
+ var widthScroll = inner.offsetWidth;
114048
+
114049
+ if (widthContained === widthScroll) {
114050
+ widthScroll = outer.clientWidth;
114051
+ }
114052
+
114053
+ document.body.removeChild(outer);
114054
+
114055
+ cached = widthContained - widthScroll;
114056
+ }
114057
+ return cached;
114058
+ }
114059
+ // CONCATENATED MODULE: ./node_modules/_ant-design-vue@1.7.8@ant-design-vue/es/_util/switchScrollingEffect.js
114060
+
114061
+
114062
+ /* harmony default export */ var _util_switchScrollingEffect = (function (close) {
114063
+ var bodyIsOverflowing = document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth;
114064
+ if (!bodyIsOverflowing) {
114065
+ return;
114066
+ }
114067
+ if (close) {
114068
+ document.body.style.position = '';
114069
+ document.body.style.width = '';
114070
+ return;
114071
+ }
114072
+ var scrollBarSize = getScrollBarSize();
114073
+ if (scrollBarSize) {
114074
+ document.body.style.position = 'relative';
114075
+ document.body.style.width = 'calc(100% - ' + scrollBarSize + 'px)';
114076
+ }
114077
+ });
114078
+ // CONCATENATED MODULE: ./node_modules/_ant-design-vue@1.7.8@ant-design-vue/es/vc-dialog/IDialogPropTypes.js
114079
+
114080
+
114081
+ function IDialogPropTypes() {
114082
+ return {
114083
+ keyboard: vue_types.bool,
114084
+ mask: vue_types.bool,
114085
+ afterClose: vue_types.func,
114086
+ // onClose: PropTypes. (e: SyntheticEvent<HTMLDivElement>) =>any,
114087
+ closable: vue_types.bool,
114088
+ maskClosable: vue_types.bool,
114089
+ visible: vue_types.bool,
114090
+ destroyOnClose: vue_types.bool,
114091
+ mousePosition: vue_types.shape({
114092
+ x: vue_types.number,
114093
+ y: vue_types.number
114094
+ }).loose,
114095
+ title: vue_types.any,
114096
+ footer: vue_types.any,
114097
+ transitionName: vue_types.string,
114098
+ maskTransitionName: vue_types.string,
114099
+ animation: vue_types.any,
114100
+ maskAnimation: vue_types.any,
114101
+ wrapStyle: vue_types.object,
114102
+ bodyStyle: vue_types.object,
114103
+ maskStyle: vue_types.object,
114104
+ prefixCls: vue_types.string,
114105
+ wrapClassName: vue_types.string,
114106
+ width: vue_types.oneOfType([vue_types.string, vue_types.number]),
114107
+ height: vue_types.oneOfType([vue_types.string, vue_types.number]),
114108
+ zIndex: vue_types.number,
114109
+ bodyProps: vue_types.any,
114110
+ maskProps: vue_types.any,
114111
+ wrapProps: vue_types.any,
114112
+ getContainer: vue_types.any,
114113
+ dialogStyle: vue_types.object.def(function () {
114114
+ return {};
114115
+ }),
114116
+ dialogClass: vue_types.string.def(''),
114117
+ closeIcon: vue_types.any,
114118
+ forceRender: vue_types.bool,
114119
+ getOpenCount: vue_types.func,
114120
+ // https://github.com/ant-design/ant-design/issues/19771
114121
+ // https://github.com/react-component/dialog/issues/95
114122
+ focusTriggerAfterClose: vue_types.bool
114123
+ };
114124
+ }
114125
+
114126
+ /* harmony default export */ var vc_dialog_IDialogPropTypes = (IDialogPropTypes);
114127
+ // CONCATENATED MODULE: ./node_modules/_ant-design-vue@1.7.8@ant-design-vue/es/vc-dialog/Dialog.js
114128
+
114129
+
114130
+
114131
+
114132
+
114133
+
114134
+
114135
+
114136
+
114137
+
114138
+
114139
+ var Dialog_IDialogPropTypes = vc_dialog_IDialogPropTypes();
114140
+
114141
+ var uuid = 0;
114142
+
114143
+ function Dialog_noop() {}
114144
+ function Dialog_getScroll(w, top) {
114145
+ var ret = w['page' + (top ? 'Y' : 'X') + 'Offset'];
114146
+ var method = 'scroll' + (top ? 'Top' : 'Left');
114147
+ if (typeof ret !== 'number') {
114148
+ var d = w.document;
114149
+ ret = d.documentElement[method];
114150
+ if (typeof ret !== 'number') {
114151
+ ret = d.body[method];
114152
+ }
114153
+ }
114154
+ return ret;
114155
+ }
114156
+
114157
+ function setTransformOrigin(node, value) {
114158
+ var style = node.style;
114159
+ ['Webkit', 'Moz', 'Ms', 'ms'].forEach(function (prefix) {
114160
+ style[prefix + 'TransformOrigin'] = value;
114161
+ });
114162
+ style['transformOrigin'] = value;
114163
+ }
114164
+
114165
+ function Dialog_offset(el) {
114166
+ var rect = el.getBoundingClientRect();
114167
+ var pos = {
114168
+ left: rect.left,
114169
+ top: rect.top
114170
+ };
114171
+ var doc = el.ownerDocument;
114172
+ var w = doc.defaultView || doc.parentWindow;
114173
+ pos.left += Dialog_getScroll(w);
114174
+ pos.top += Dialog_getScroll(w, true);
114175
+ return pos;
114176
+ }
114177
+
114178
+ var cacheOverflow = {};
114179
+
114180
+ /* harmony default export */ var Dialog = ({
114181
+ mixins: [BaseMixin],
114182
+ props: initDefaultProps(Dialog_IDialogPropTypes, {
114183
+ mask: true,
114184
+ visible: false,
114185
+ keyboard: true,
114186
+ closable: true,
114187
+ maskClosable: true,
114188
+ destroyOnClose: false,
114189
+ prefixCls: 'rc-dialog',
114190
+ getOpenCount: function getOpenCount() {
114191
+ return null;
114192
+ },
114193
+ focusTriggerAfterClose: true
114194
+ }),
114195
+ data: function data() {
114196
+ return {
114197
+ destroyPopup: false
114198
+ };
114199
+ },
114200
+ provide: function provide() {
114201
+ return {
114202
+ dialogContext: this
114203
+ };
114204
+ },
114205
+
114206
+
114207
+ watch: {
114208
+ visible: function visible(val) {
114209
+ var _this = this;
114210
+
114211
+ if (val) {
114212
+ this.destroyPopup = false;
114213
+ }
114214
+ this.$nextTick(function () {
114215
+ _this.updatedCallback(!val);
114216
+ });
114217
+ }
114218
+ },
114219
+
114220
+ beforeMount: function beforeMount() {
114221
+ this.inTransition = false;
114222
+ this.titleId = 'rcDialogTitle' + uuid++;
114223
+ },
114224
+ mounted: function mounted() {
114225
+ var _this2 = this;
114226
+
114227
+ this.$nextTick(function () {
114228
+ _this2.updatedCallback(false);
114229
+ // if forceRender is true, set element style display to be none;
114230
+ if ((_this2.forceRender || _this2.getContainer === false && !_this2.visible) && _this2.$refs.wrap) {
114231
+ _this2.$refs.wrap.style.display = 'none';
114232
+ }
114233
+ });
114234
+ },
114235
+ beforeDestroy: function beforeDestroy() {
114236
+ var visible = this.visible,
114237
+ getOpenCount = this.getOpenCount;
114238
+
114239
+ if ((visible || this.inTransition) && !getOpenCount()) {
114240
+ this.switchScrollingEffect();
114241
+ }
114242
+ clearTimeout(this.timeoutId);
114243
+ },
114244
+
114245
+ methods: {
114246
+ // 对外暴露的 api 不要更改名称或删除
114247
+ getDialogWrap: function getDialogWrap() {
114248
+ return this.$refs.wrap;
114249
+ },
114250
+ updatedCallback: function updatedCallback(visible) {
114251
+ var mousePosition = this.mousePosition;
114252
+ var mask = this.mask,
114253
+ focusTriggerAfterClose = this.focusTriggerAfterClose;
114254
+
114255
+ if (this.visible) {
114256
+ // first show
114257
+ if (!visible) {
114258
+ this.openTime = Date.now();
114259
+ // this.lastOutSideFocusNode = document.activeElement
114260
+ this.switchScrollingEffect();
114261
+ // this.$refs.wrap.focus()
114262
+ this.tryFocus();
114263
+ var dialogNode = this.$refs.dialog.$el;
114264
+ if (mousePosition) {
114265
+ var elOffset = Dialog_offset(dialogNode);
114266
+ setTransformOrigin(dialogNode, mousePosition.x - elOffset.left + 'px ' + (mousePosition.y - elOffset.top) + 'px');
114267
+ } else {
114268
+ setTransformOrigin(dialogNode, '');
114269
+ }
114270
+ }
114271
+ } else if (visible) {
114272
+ this.inTransition = true;
114273
+ if (mask && this.lastOutSideFocusNode && focusTriggerAfterClose) {
114274
+ try {
114275
+ this.lastOutSideFocusNode.focus();
114276
+ } catch (e) {
114277
+ this.lastOutSideFocusNode = null;
114278
+ }
114279
+ this.lastOutSideFocusNode = null;
114280
+ }
114281
+ }
114282
+ },
114283
+ tryFocus: function tryFocus() {
114284
+ if (!contains(this.$refs.wrap, document.activeElement)) {
114285
+ this.lastOutSideFocusNode = document.activeElement;
114286
+ this.$refs.sentinelStart.focus();
114287
+ }
114288
+ },
114289
+ onAnimateLeave: function onAnimateLeave() {
114290
+ var afterClose = this.afterClose,
114291
+ destroyOnClose = this.destroyOnClose;
114292
+ // need demo?
114293
+ // https://github.com/react-component/dialog/pull/28
114294
+
114295
+ if (this.$refs.wrap) {
114296
+ this.$refs.wrap.style.display = 'none';
114297
+ }
114298
+ if (destroyOnClose) {
114299
+ this.destroyPopup = true;
114300
+ }
114301
+ this.inTransition = false;
114302
+ this.switchScrollingEffect();
114303
+ if (afterClose) {
114304
+ afterClose();
114305
+ }
114306
+ },
114307
+ onDialogMouseDown: function onDialogMouseDown() {
114308
+ this.dialogMouseDown = true;
114309
+ },
114310
+ onMaskMouseUp: function onMaskMouseUp() {
114311
+ var _this3 = this;
114312
+
114313
+ if (this.dialogMouseDown) {
114314
+ this.timeoutId = setTimeout(function () {
114315
+ _this3.dialogMouseDown = false;
114316
+ }, 0);
114317
+ }
114318
+ },
114319
+ onMaskClick: function onMaskClick(e) {
114320
+ // android trigger click on open (fastclick??)
114321
+ if (Date.now() - this.openTime < 300) {
114322
+ return;
114323
+ }
114324
+ if (e.target === e.currentTarget && !this.dialogMouseDown) {
114325
+ this.close(e);
114326
+ }
114327
+ },
114328
+ onKeydown: function onKeydown(e) {
114329
+ var props = this.$props;
114330
+ if (props.keyboard && e.keyCode === _util_KeyCode.ESC) {
114331
+ e.stopPropagation();
114332
+ this.close(e);
114333
+ return;
114334
+ }
114335
+ // keep focus inside dialog
114336
+ if (props.visible) {
114337
+ if (e.keyCode === _util_KeyCode.TAB) {
114338
+ var activeElement = document.activeElement;
114339
+ var sentinelStart = this.$refs.sentinelStart;
114340
+ if (e.shiftKey) {
114341
+ if (activeElement === sentinelStart) {
114342
+ this.$refs.sentinelEnd.focus();
114343
+ }
114344
+ } else if (activeElement === this.$refs.sentinelEnd) {
114345
+ sentinelStart.focus();
114346
+ }
114347
+ }
114348
+ }
114349
+ },
114350
+ getDialogElement: function getDialogElement() {
114351
+ var h = this.$createElement;
114352
+ var closable = this.closable,
114353
+ prefixCls = this.prefixCls,
114354
+ width = this.width,
114355
+ height = this.height,
114356
+ title = this.title,
114357
+ tempFooter = this.footer,
114358
+ bodyStyle = this.bodyStyle,
114359
+ visible = this.visible,
114360
+ bodyProps = this.bodyProps,
114361
+ forceRender = this.forceRender,
114362
+ dialogStyle = this.dialogStyle,
114363
+ dialogClass = this.dialogClass;
114364
+
114365
+ var dest = extends_default()({}, dialogStyle);
114366
+ if (width !== undefined) {
114367
+ dest.width = typeof width === 'number' ? width + 'px' : width;
114368
+ }
114369
+ if (height !== undefined) {
114370
+ dest.height = typeof height === 'number' ? height + 'px' : height;
114371
+ }
114372
+
114373
+ var footer = void 0;
114374
+ if (tempFooter) {
114375
+ footer = h(
114376
+ 'div',
114377
+ { key: 'footer', 'class': prefixCls + '-footer', ref: 'footer' },
114378
+ [tempFooter]
114379
+ );
114380
+ }
114381
+
114382
+ var header = void 0;
114383
+ if (title) {
114384
+ header = h(
114385
+ 'div',
114386
+ { key: 'header', 'class': prefixCls + '-header', ref: 'header' },
114387
+ [h(
114388
+ 'div',
114389
+ { 'class': prefixCls + '-title', attrs: { id: this.titleId }
114390
+ },
114391
+ [title]
114392
+ )]
114393
+ );
114394
+ }
114395
+
114396
+ var closer = void 0;
114397
+ if (closable) {
114398
+ var closeIcon = getComponentFromProp(this, 'closeIcon');
114399
+ closer = h(
114400
+ 'button',
114401
+ {
114402
+ attrs: {
114403
+ type: 'button',
114404
+
114405
+ 'aria-label': 'Close'
114406
+ },
114407
+ key: 'close',
114408
+ on: {
114409
+ 'click': this.close || Dialog_noop
114410
+ },
114411
+ 'class': prefixCls + '-close'
114412
+ },
114413
+ [closeIcon || h('span', { 'class': prefixCls + '-close-x' })]
114414
+ );
114415
+ }
114416
+
114417
+ var style = dest;
114418
+ var sentinelStyle = { width: 0, height: 0, overflow: 'hidden' };
114419
+ var cls = defineProperty_default()({}, prefixCls, true);
114420
+ var transitionName = this.getTransitionName();
114421
+ var dialogElement = h(
114422
+ vc_dialog_LazyRenderBox,
114423
+ {
114424
+ directives: [{
114425
+ name: 'show',
114426
+ value: visible
114427
+ }],
114428
+
114429
+ key: 'dialog-element',
114430
+ attrs: { role: 'document',
114431
+
114432
+ forceRender: forceRender
114433
+ },
114434
+ ref: 'dialog',
114435
+ style: style,
114436
+ 'class': [cls, dialogClass], on: {
114437
+ 'mousedown': this.onDialogMouseDown
114438
+ }
114439
+ },
114440
+ [h('div', {
114441
+ attrs: { tabIndex: 0, 'aria-hidden': 'true' },
114442
+ ref: 'sentinelStart', style: sentinelStyle }), h(
114443
+ 'div',
114444
+ { 'class': prefixCls + '-content' },
114445
+ [closer, header, h(
114446
+ 'div',
114447
+ _babel_helper_vue_jsx_merge_props_2_0_3_babel_helper_vue_jsx_merge_props_default()([{ key: 'body', 'class': prefixCls + '-body', style: bodyStyle, ref: 'body' }, bodyProps]),
114448
+ [this.$slots['default']]
114449
+ ), footer]
114450
+ ), h('div', {
114451
+ attrs: { tabIndex: 0, 'aria-hidden': 'true' },
114452
+ ref: 'sentinelEnd', style: sentinelStyle })]
114453
+ );
114454
+ var dialogTransitionProps = _util_getTransitionProps(transitionName, {
114455
+ afterLeave: this.onAnimateLeave
114456
+ });
114457
+ return h(
114458
+ 'transition',
114459
+ _babel_helper_vue_jsx_merge_props_2_0_3_babel_helper_vue_jsx_merge_props_default()([{ key: 'dialog' }, dialogTransitionProps]),
114460
+ [visible || !this.destroyPopup ? dialogElement : null]
114461
+ );
114462
+ },
114463
+ getZIndexStyle: function getZIndexStyle() {
114464
+ var style = {};
114465
+ var props = this.$props;
114466
+ if (props.zIndex !== undefined) {
114467
+ style.zIndex = props.zIndex;
114468
+ }
114469
+ return style;
114470
+ },
114471
+ getWrapStyle: function getWrapStyle() {
114472
+ return extends_default()({}, this.getZIndexStyle(), this.wrapStyle);
114473
+ },
114474
+ getMaskStyle: function getMaskStyle() {
114475
+ return extends_default()({}, this.getZIndexStyle(), this.maskStyle);
114476
+ },
114477
+ getMaskElement: function getMaskElement() {
114478
+ var h = this.$createElement;
114479
+
114480
+ var props = this.$props;
114481
+ var maskElement = void 0;
114482
+ if (props.mask) {
114483
+ var maskTransition = this.getMaskTransitionName();
114484
+ maskElement = h(vc_dialog_LazyRenderBox, _babel_helper_vue_jsx_merge_props_2_0_3_babel_helper_vue_jsx_merge_props_default()([{
114485
+ directives: [{
114486
+ name: 'show',
114487
+ value: props.visible
114488
+ }],
114489
+
114490
+ style: this.getMaskStyle(),
114491
+ key: 'mask',
114492
+ 'class': props.prefixCls + '-mask'
114493
+ }, props.maskProps]));
114494
+ if (maskTransition) {
114495
+ var maskTransitionProps = _util_getTransitionProps(maskTransition);
114496
+ maskElement = h(
114497
+ 'transition',
114498
+ _babel_helper_vue_jsx_merge_props_2_0_3_babel_helper_vue_jsx_merge_props_default()([{ key: 'mask' }, maskTransitionProps]),
114499
+ [maskElement]
114500
+ );
114501
+ }
114502
+ }
114503
+ return maskElement;
114504
+ },
114505
+ getMaskTransitionName: function getMaskTransitionName() {
114506
+ var props = this.$props;
114507
+ var transitionName = props.maskTransitionName;
114508
+ var animation = props.maskAnimation;
114509
+ if (!transitionName && animation) {
114510
+ transitionName = props.prefixCls + '-' + animation;
114511
+ }
114512
+ return transitionName;
114513
+ },
114514
+ getTransitionName: function getTransitionName() {
114515
+ var props = this.$props;
114516
+ var transitionName = props.transitionName;
114517
+ var animation = props.animation;
114518
+ if (!transitionName && animation) {
114519
+ transitionName = props.prefixCls + '-' + animation;
114520
+ }
114521
+ return transitionName;
114522
+ },
114523
+
114524
+ // setScrollbar() {
114525
+ // if (this.bodyIsOverflowing && this.scrollbarWidth !== undefined) {
114526
+ // document.body.style.paddingRight = `${this.scrollbarWidth}px`;
114527
+ // }
114528
+ // },
114529
+ switchScrollingEffect: function switchScrollingEffect() {
114530
+ var getOpenCount = this.getOpenCount;
114531
+
114532
+ var openCount = getOpenCount();
114533
+ if (openCount === 1) {
114534
+ if (cacheOverflow.hasOwnProperty('overflowX')) {
114535
+ return;
114536
+ }
114537
+ cacheOverflow = {
114538
+ overflowX: document.body.style.overflowX,
114539
+ overflowY: document.body.style.overflowY,
114540
+ overflow: document.body.style.overflow
114541
+ };
114542
+ _util_switchScrollingEffect();
114543
+ // Must be set after switchScrollingEffect
114544
+ document.body.style.overflow = 'hidden';
114545
+ } else if (!openCount) {
114546
+ // IE browser doesn't merge overflow style, need to set it separately
114547
+ // https://github.com/ant-design/ant-design/issues/19393
114548
+ if (cacheOverflow.overflow !== undefined) {
114549
+ document.body.style.overflow = cacheOverflow.overflow;
114550
+ }
114551
+ if (cacheOverflow.overflowX !== undefined) {
114552
+ document.body.style.overflowX = cacheOverflow.overflowX;
114553
+ }
114554
+ if (cacheOverflow.overflowY !== undefined) {
114555
+ document.body.style.overflowY = cacheOverflow.overflowY;
114556
+ }
114557
+ cacheOverflow = {};
114558
+ _util_switchScrollingEffect(true);
114559
+ }
114560
+ },
114561
+
114562
+ // removeScrollingEffect() {
114563
+ // const { getOpenCount } = this;
114564
+ // const openCount = getOpenCount();
114565
+ // if (openCount !== 0) {
114566
+ // return;
114567
+ // }
114568
+ // document.body.style.overflow = '';
114569
+ // switchScrollingEffect(true);
114570
+ // // this.resetAdjustments();
114571
+ // },
114572
+ close: function close(e) {
114573
+ this.__emit('close', e);
114574
+ }
114575
+ },
114576
+ render: function render() {
114577
+ var h = arguments[0];
114578
+ var prefixCls = this.prefixCls,
114579
+ maskClosable = this.maskClosable,
114580
+ visible = this.visible,
114581
+ wrapClassName = this.wrapClassName,
114582
+ title = this.title,
114583
+ wrapProps = this.wrapProps;
114584
+
114585
+ var style = this.getWrapStyle();
114586
+ // clear hide display
114587
+ // and only set display after async anim, not here for hide
114588
+ if (visible) {
114589
+ style.display = null;
114590
+ }
114591
+ return h(
114592
+ 'div',
114593
+ { 'class': prefixCls + '-root' },
114594
+ [this.getMaskElement(), h(
114595
+ 'div',
114596
+ _babel_helper_vue_jsx_merge_props_2_0_3_babel_helper_vue_jsx_merge_props_default()([{
114597
+ attrs: {
114598
+ tabIndex: -1,
114599
+
114600
+ role: 'dialog',
114601
+ 'aria-labelledby': title ? this.titleId : null
114602
+ },
114603
+ on: {
114604
+ 'keydown': this.onKeydown,
114605
+ 'click': maskClosable ? this.onMaskClick : Dialog_noop,
114606
+ 'mouseup': maskClosable ? this.onMaskMouseUp : Dialog_noop
114607
+ },
114608
+
114609
+ 'class': prefixCls + '-wrap ' + (wrapClassName || ''),
114610
+ ref: 'wrap',
114611
+ style: style
114612
+ }, wrapProps]),
114613
+ [this.getDialogElement()]
114614
+ )]
114615
+ );
114616
+ }
114617
+ });
114618
+ // CONCATENATED MODULE: ./node_modules/_ant-design-vue@1.7.8@ant-design-vue/es/_util/setStyle.js
114619
+ /**
114620
+ * Easy to set element style, return previous style
114621
+ * IE browser compatible(IE browser doesn't merge overflow style, need to set it separately)
114622
+ * https://github.com/ant-design/ant-design/issues/19393
114623
+ *
114624
+ */
114625
+ function setStyle_setStyle(style) {
114626
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
114627
+ var _options$element = options.element,
114628
+ element = _options$element === undefined ? document.body : _options$element;
114629
+
114630
+ var oldStyle = {};
114631
+
114632
+ var styleKeys = Object.keys(style);
114633
+
114634
+ // IE browser compatible
114635
+ styleKeys.forEach(function (key) {
114636
+ oldStyle[key] = element.style[key];
114637
+ });
114638
+
114639
+ styleKeys.forEach(function (key) {
114640
+ element.style[key] = style[key];
114641
+ });
114642
+
114643
+ return oldStyle;
114644
+ }
114645
+
114646
+ /* harmony default export */ var _util_setStyle = (setStyle_setStyle);
114647
+ // CONCATENATED MODULE: ./node_modules/_ant-design-vue@1.7.8@ant-design-vue/es/_util/Portal.js
114648
+
114649
+
114650
+
114651
+ /* harmony default export */ var Portal = ({
114652
+ name: 'Portal',
114653
+ props: {
114654
+ getContainer: vue_types.func.isRequired,
114655
+ children: vue_types.any.isRequired,
114656
+ didUpdate: vue_types.func
114657
+ },
114658
+ mounted: function mounted() {
114659
+ this.createContainer();
114660
+ },
114661
+ updated: function updated() {
114662
+ var _this = this;
114663
+
114664
+ var didUpdate = this.$props.didUpdate;
114665
+
114666
+ if (didUpdate) {
114667
+ this.$nextTick(function () {
114668
+ didUpdate(_this.$props);
114669
+ });
114670
+ }
114671
+ },
114672
+ beforeDestroy: function beforeDestroy() {
114673
+ this.removeContainer();
114674
+ },
114675
+
114676
+ methods: {
114677
+ createContainer: function createContainer() {
114678
+ this._container = this.$props.getContainer();
114679
+ this.$forceUpdate();
114680
+ },
114681
+ removeContainer: function removeContainer() {
114682
+ if (this._container && this._container.parentNode) {
114683
+ this._container.parentNode.removeChild(this._container);
114684
+ }
114685
+ }
114686
+ },
114687
+
114688
+ render: function render() {
114689
+ if (this._container) {
114690
+ return cloneElement(this.$props.children, {
114691
+ directives: [{
114692
+ name: 'ant-portal',
114693
+ value: this._container
114694
+ }]
114695
+ });
114696
+ }
114697
+ return null;
114698
+ }
114699
+ });
114700
+ // CONCATENATED MODULE: ./node_modules/_ant-design-vue@1.7.8@ant-design-vue/es/_util/PortalWrapper.js
114701
+
114702
+
114703
+
114704
+
114705
+
114706
+
114707
+
114708
+ var PortalWrapper_openCount = 0;
114709
+ var windowIsUndefined = !(typeof window !== 'undefined' && window.document && window.document.createElement);
114710
+ // https://github.com/ant-design/ant-design/issues/19340
114711
+ // https://github.com/ant-design/ant-design/issues/19332
114712
+ var PortalWrapper_cacheOverflow = {};
114713
+
114714
+ /* harmony default export */ var PortalWrapper = ({
114715
+ name: 'PortalWrapper',
114716
+ props: {
114717
+ wrapperClassName: vue_types.string,
114718
+ forceRender: vue_types.bool,
114719
+ getContainer: vue_types.any,
114720
+ children: vue_types.func,
114721
+ visible: vue_types.bool
114722
+ },
114723
+ data: function data() {
114724
+ var visible = this.$props.visible;
114725
+
114726
+ PortalWrapper_openCount = visible ? PortalWrapper_openCount + 1 : PortalWrapper_openCount;
114727
+ return {};
114728
+ },
114729
+ updated: function updated() {
114730
+ this.setWrapperClassName();
114731
+ },
114732
+
114733
+ watch: {
114734
+ visible: function visible(val) {
114735
+ PortalWrapper_openCount = val ? PortalWrapper_openCount + 1 : PortalWrapper_openCount - 1;
114736
+ },
114737
+ getContainer: function getContainer(_getContainer, prevGetContainer) {
114738
+ var getContainerIsFunc = typeof _getContainer === 'function' && typeof prevGetContainer === 'function';
114739
+ if (getContainerIsFunc ? _getContainer.toString() !== prevGetContainer.toString() : _getContainer !== prevGetContainer) {
114740
+ this.removeCurrentContainer(false);
114741
+ }
114742
+ }
114743
+ },
114744
+ beforeDestroy: function beforeDestroy() {
114745
+ var visible = this.$props.visible;
114746
+ // 离开时不会 render, 导到离开时数值不变,改用 func 。。
114747
+
114748
+ PortalWrapper_openCount = visible && PortalWrapper_openCount ? PortalWrapper_openCount - 1 : PortalWrapper_openCount;
114749
+ this.removeCurrentContainer(visible);
114750
+ },
114751
+
114752
+ methods: {
114753
+ getParent: function getParent() {
114754
+ var getContainer = this.$props.getContainer;
114755
+
114756
+ if (getContainer) {
114757
+ if (typeof getContainer === 'string') {
114758
+ return document.querySelectorAll(getContainer)[0];
114759
+ }
114760
+ if (typeof getContainer === 'function') {
114761
+ return getContainer();
114762
+ }
114763
+ if ((typeof getContainer === 'undefined' ? 'undefined' : typeof_default()(getContainer)) === 'object' && getContainer instanceof window.HTMLElement) {
114764
+ return getContainer;
114765
+ }
114766
+ }
114767
+ return document.body;
114768
+ },
114769
+ getDomContainer: function getDomContainer() {
114770
+ if (windowIsUndefined) {
114771
+ return null;
114772
+ }
114773
+ if (!this.container) {
114774
+ this.container = document.createElement('div');
114775
+ var parent = this.getParent();
114776
+ if (parent) {
114777
+ parent.appendChild(this.container);
114778
+ }
114779
+ }
114780
+ this.setWrapperClassName();
114781
+ return this.container;
114782
+ },
114783
+ setWrapperClassName: function setWrapperClassName() {
114784
+ var wrapperClassName = this.$props.wrapperClassName;
114785
+
114786
+ if (this.container && wrapperClassName && wrapperClassName !== this.container.className) {
114787
+ this.container.className = wrapperClassName;
114788
+ }
114789
+ },
114790
+ savePortal: function savePortal(c) {
114791
+ // Warning: don't rename _component
114792
+ // https://github.com/react-component/util/pull/65#discussion_r352407916
114793
+ this._component = c;
114794
+ },
114795
+ removeCurrentContainer: function removeCurrentContainer() {
114796
+ this.container = null;
114797
+ this._component = null;
114798
+ },
114799
+
114800
+
114801
+ /**
114802
+ * Enhance ./switchScrollingEffect
114803
+ * 1. Simulate document body scroll bar with
114804
+ * 2. Record body has overflow style and recover when all of PortalWrapper invisible
114805
+ * 3. Disable body scroll when PortalWrapper has open
114806
+ *
114807
+ * @memberof PortalWrapper
114808
+ */
114809
+ switchScrollingEffect: function switchScrollingEffect() {
114810
+ if (PortalWrapper_openCount === 1 && !Object.keys(PortalWrapper_cacheOverflow).length) {
114811
+ _util_switchScrollingEffect();
114812
+ // Must be set after switchScrollingEffect
114813
+ PortalWrapper_cacheOverflow = _util_setStyle({
114814
+ overflow: 'hidden',
114815
+ overflowX: 'hidden',
114816
+ overflowY: 'hidden'
114817
+ });
114818
+ } else if (!PortalWrapper_openCount) {
114819
+ _util_setStyle(PortalWrapper_cacheOverflow);
114820
+ PortalWrapper_cacheOverflow = {};
114821
+ _util_switchScrollingEffect(true);
114822
+ }
114823
+ }
114824
+ },
114825
+
114826
+ render: function render() {
114827
+ var h = arguments[0];
114828
+ var _$props = this.$props,
114829
+ children = _$props.children,
114830
+ forceRender = _$props.forceRender,
114831
+ visible = _$props.visible;
114832
+
114833
+ var portal = null;
114834
+ var childProps = {
114835
+ getOpenCount: function getOpenCount() {
114836
+ return PortalWrapper_openCount;
114837
+ },
114838
+ getContainer: this.getDomContainer,
114839
+ switchScrollingEffect: this.switchScrollingEffect
114840
+ };
114841
+ if (forceRender || visible || this._component) {
114842
+ portal = h(Portal, _babel_helper_vue_jsx_merge_props_2_0_3_babel_helper_vue_jsx_merge_props_default()([{
114843
+ attrs: {
114844
+ getContainer: this.getDomContainer,
114845
+ children: children(childProps)
114846
+ }
114847
+ }, {
114848
+ directives: [{
114849
+ name: 'ant-ref',
114850
+ value: this.savePortal
114851
+ }]
114852
+ }]));
114853
+ }
114854
+ return portal;
114855
+ }
114856
+ });
114857
+ // CONCATENATED MODULE: ./node_modules/_ant-design-vue@1.7.8@ant-design-vue/es/vc-dialog/DialogWrap.js
114858
+
114859
+
114860
+
114861
+
114862
+
114863
+
114864
+ var DialogWrap_IDialogPropTypes = vc_dialog_IDialogPropTypes();
114865
+ var DialogWrap = {
114866
+ inheritAttrs: false,
114867
+ props: extends_default()({}, DialogWrap_IDialogPropTypes, {
114868
+ visible: DialogWrap_IDialogPropTypes.visible.def(false)
114869
+ }),
114870
+
114871
+ render: function render() {
114872
+ var _this = this;
114873
+
114874
+ var h = arguments[0];
114875
+ var _$props = this.$props,
114876
+ visible = _$props.visible,
114877
+ getContainer = _$props.getContainer,
114878
+ forceRender = _$props.forceRender;
114879
+
114880
+ var dialogProps = {
114881
+ props: this.$props,
114882
+ attrs: this.$attrs,
114883
+ ref: '_component',
114884
+ key: 'dialog',
114885
+ on: getListeners(this)
114886
+ };
114887
+ // 渲染在当前 dom 里;
114888
+ if (getContainer === false) {
114889
+ return h(
114890
+ Dialog,
114891
+ _babel_helper_vue_jsx_merge_props_2_0_3_babel_helper_vue_jsx_merge_props_default()([dialogProps, {
114892
+ attrs: {
114893
+ getOpenCount: function getOpenCount() {
114894
+ return 2;
114895
+ } // 不对 body 做任何操作。。
114896
+ }
114897
+ }]),
114898
+ [this.$slots['default']]
114899
+ );
114900
+ }
114901
+ return h(PortalWrapper, {
114902
+ attrs: {
114903
+ visible: visible,
114904
+ forceRender: forceRender,
114905
+ getContainer: getContainer,
114906
+ children: function children(childProps) {
114907
+ dialogProps.props = extends_default()({}, dialogProps.props, childProps);
114908
+ return h(
114909
+ Dialog,
114910
+ dialogProps,
114911
+ [_this.$slots['default']]
114912
+ );
114913
+ }
114914
+ }
114915
+ });
114916
+ }
114917
+ };
114918
+
114919
+ /* harmony default export */ var vc_dialog_DialogWrap = (DialogWrap);
114920
+ // CONCATENATED MODULE: ./node_modules/_ant-design-vue@1.7.8@ant-design-vue/es/vc-dialog/index.js
114921
+ // based on vc-dialog 7.5.14
114922
+
114923
+ /* harmony default export */ var vc_dialog = (vc_dialog_DialogWrap);
114924
+ // CONCATENATED MODULE: ./node_modules/_ant-design-vue@1.7.8@ant-design-vue/es/modal/locale.js
114925
+
114926
+
114927
+
114928
+ // export interface ModalLocale {
114929
+ // okText: string;
114930
+ // cancelText: string;
114931
+ // justOkText: string;
114932
+ // }
114933
+
114934
+ var locale_runtimeLocale = extends_default()({}, locale_default.Modal);
114935
+
114936
+ function changeConfirmLocale(newLocale) {
114937
+ if (newLocale) {
114938
+ locale_runtimeLocale = extends_default()({}, locale_runtimeLocale, newLocale);
114939
+ } else {
114940
+ locale_runtimeLocale = extends_default()({}, locale_default.Modal);
114941
+ }
114942
+ }
114943
+
114944
+ function getConfirmLocale() {
114945
+ return locale_runtimeLocale;
114946
+ }
114947
+ // CONCATENATED MODULE: ./node_modules/_ant-design-vue@1.7.8@ant-design-vue/es/modal/Modal.js
114948
+
114949
+
114950
+
114951
+
114952
+
114953
+
114954
+
114955
+
114956
+
114957
+
114958
+ var ButtonType = buttonTypes().type;
114959
+
114960
+
114961
+
114962
+
114963
+ var mousePosition = null;
114964
+ // ref: https://github.com/ant-design/ant-design/issues/15795
114965
+ var getClickPosition = function getClickPosition(e) {
114966
+ mousePosition = {
114967
+ x: e.pageX,
114968
+ y: e.pageY
114969
+ };
114970
+ // 100ms 内发生过点击事件,则从点击位置动画展示
114971
+ // 否则直接 zoom 展示
114972
+ // 这样可以兼容非点击方式展开
114973
+ setTimeout(function () {
114974
+ return mousePosition = null;
114975
+ }, 100);
114976
+ };
114977
+
114978
+ // 只有点击事件支持从鼠标位置动画展开
114979
+ if (typeof window !== 'undefined' && window.document && window.document.documentElement) {
114980
+ addEventListenerWrap(document.documentElement, 'click', getClickPosition, true);
114981
+ }
114982
+
114983
+ function Modal_noop() {}
114984
+ var Modal_modalProps = function modalProps() {
114985
+ var defaultProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
114986
+
114987
+ var props = {
114988
+ prefixCls: vue_types.string,
114989
+ /** 对话框是否可见*/
114990
+ visible: vue_types.bool,
114991
+ /** 确定按钮 loading*/
114992
+ confirmLoading: vue_types.bool,
114993
+ /** 标题*/
114994
+ title: vue_types.any,
114995
+ /** 是否显示右上角的关闭按钮*/
114996
+ closable: vue_types.bool,
114997
+ closeIcon: vue_types.any,
114998
+ /** 点击确定回调*/
114999
+ // onOk: (e: React.MouseEvent<any>) => void,
115000
+ /** 点击模态框右上角叉、取消按钮、Props.maskClosable 值为 true 时的遮罩层或键盘按下 Esc 时的回调*/
115001
+ // onCancel: (e: React.MouseEvent<any>) => void,
115002
+ afterClose: vue_types.func.def(Modal_noop),
115003
+ /** 垂直居中 */
115004
+ centered: vue_types.bool,
115005
+ /** 宽度*/
115006
+ width: vue_types.oneOfType([vue_types.string, vue_types.number]),
115007
+ /** 底部内容*/
115008
+ footer: vue_types.any,
115009
+ /** 确认按钮文字*/
115010
+ okText: vue_types.any,
115011
+ /** 确认按钮类型*/
115012
+ okType: ButtonType,
115013
+ /** 取消按钮文字*/
115014
+ cancelText: vue_types.any,
115015
+ icon: vue_types.any,
115016
+ /** 点击蒙层是否允许关闭*/
115017
+ maskClosable: vue_types.bool,
115018
+ /** 强制渲染 Modal*/
115019
+ forceRender: vue_types.bool,
115020
+ okButtonProps: vue_types.object,
115021
+ cancelButtonProps: vue_types.object,
115022
+ destroyOnClose: vue_types.bool,
115023
+ wrapClassName: vue_types.string,
115024
+ maskTransitionName: vue_types.string,
115025
+ transitionName: vue_types.string,
115026
+ getContainer: vue_types.func,
115027
+ zIndex: vue_types.number,
115028
+ bodyStyle: vue_types.object,
115029
+ maskStyle: vue_types.object,
115030
+ mask: vue_types.bool,
115031
+ keyboard: vue_types.bool,
115032
+ wrapProps: vue_types.object,
115033
+ focusTriggerAfterClose: vue_types.bool,
115034
+ dialogStyle: vue_types.object.def(function () {
115035
+ return {};
115036
+ })
115037
+ };
115038
+ return initDefaultProps(props, defaultProps);
115039
+ };
115040
+
115041
+ var destroyFns = [];
115042
+
115043
+ /* harmony default export */ var Modal = ({
115044
+ name: 'AModal',
115045
+ inheritAttrs: false,
115046
+ model: {
115047
+ prop: 'visible',
115048
+ event: 'change'
115049
+ },
115050
+ props: Modal_modalProps({
115051
+ width: 520,
115052
+ transitionName: 'zoom',
115053
+ maskTransitionName: 'fade',
115054
+ confirmLoading: false,
115055
+ visible: false,
115056
+ okType: 'primary'
115057
+ }),
115058
+ data: function data() {
115059
+ return {
115060
+ sVisible: !!this.visible
115061
+ };
115062
+ },
115063
+
115064
+ watch: {
115065
+ visible: function visible(val) {
115066
+ this.sVisible = val;
115067
+ }
115068
+ },
115069
+ inject: {
115070
+ configProvider: { 'default': function _default() {
115071
+ return ConfigConsumerProps;
115072
+ } }
115073
+ },
115074
+ // static info: ModalFunc;
115075
+ // static success: ModalFunc;
115076
+ // static error: ModalFunc;
115077
+ // static warn: ModalFunc;
115078
+ // static warning: ModalFunc;
115079
+ // static confirm: ModalFunc;
115080
+ methods: {
115081
+ handleCancel: function handleCancel(e) {
115082
+ this.$emit('cancel', e);
115083
+ this.$emit('change', false);
115084
+ },
115085
+ handleOk: function handleOk(e) {
115086
+ this.$emit('ok', e);
115087
+ },
115088
+ renderFooter: function renderFooter(locale) {
115089
+ var h = this.$createElement;
115090
+ var okType = this.okType,
115091
+ confirmLoading = this.confirmLoading;
115092
+
115093
+ var cancelBtnProps = mergeProps({ on: { click: this.handleCancel } }, this.cancelButtonProps || {});
115094
+ var okBtnProps = mergeProps({
115095
+ on: { click: this.handleOk },
115096
+ props: {
115097
+ type: okType,
115098
+ loading: confirmLoading
115099
+ }
115100
+ }, this.okButtonProps || {});
115101
+ return h('div', [h(
115102
+ es_button,
115103
+ cancelBtnProps,
115104
+ [getComponentFromProp(this, 'cancelText') || locale.cancelText]
115105
+ ), h(
115106
+ es_button,
115107
+ okBtnProps,
115108
+ [getComponentFromProp(this, 'okText') || locale.okText]
115109
+ )]);
115110
+ }
115111
+ },
115112
+
115113
+ render: function render() {
115114
+ var h = arguments[0];
115115
+ var customizePrefixCls = this.prefixCls,
115116
+ visible = this.sVisible,
115117
+ wrapClassName = this.wrapClassName,
115118
+ centered = this.centered,
115119
+ getContainer = this.getContainer,
115120
+ $slots = this.$slots,
115121
+ $scopedSlots = this.$scopedSlots,
115122
+ $attrs = this.$attrs;
115123
+
115124
+ var children = $scopedSlots['default'] ? $scopedSlots['default']() : $slots['default'];
115125
+ var _configProvider = this.configProvider,
115126
+ getPrefixCls = _configProvider.getPrefixCls,
115127
+ getContextPopupContainer = _configProvider.getPopupContainer;
115128
+
115129
+ var prefixCls = getPrefixCls('modal', customizePrefixCls);
115130
+
115131
+ var defaultFooter = h(LocaleReceiver, {
115132
+ attrs: {
115133
+ componentName: 'Modal',
115134
+ defaultLocale: getConfirmLocale()
115135
+ },
115136
+ scopedSlots: { 'default': this.renderFooter }
115137
+ });
115138
+ var closeIcon = getComponentFromProp(this, 'closeIcon');
115139
+ var closeIconToRender = h(
115140
+ 'span',
115141
+ { 'class': prefixCls + '-close-x' },
115142
+ [closeIcon || h(es_icon, { 'class': prefixCls + '-close-icon', attrs: { type: 'close' }
115143
+ })]
115144
+ );
115145
+ var footer = getComponentFromProp(this, 'footer');
115146
+ var title = getComponentFromProp(this, 'title');
115147
+ var dialogProps = {
115148
+ props: extends_default()({}, this.$props, {
115149
+ getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,
115150
+ prefixCls: prefixCls,
115151
+ wrapClassName: _classnames_2_3_2_classnames_default()(defineProperty_default()({}, prefixCls + '-centered', !!centered), wrapClassName),
115152
+ title: title,
115153
+ footer: footer === undefined ? defaultFooter : footer,
115154
+ visible: visible,
115155
+ mousePosition: mousePosition,
115156
+ closeIcon: closeIconToRender
115157
+ }),
115158
+ on: extends_default()({}, getListeners(this), {
115159
+ close: this.handleCancel
115160
+ }),
115161
+ 'class': getClass(this),
115162
+ style: getStyle(this),
115163
+ attrs: $attrs
115164
+ };
115165
+ return h(
115166
+ vc_dialog,
115167
+ dialogProps,
115168
+ [children]
115169
+ );
115170
+ }
115171
+ });
115172
+ // CONCATENATED MODULE: ./node_modules/_ant-design-vue@1.7.8@ant-design-vue/es/modal/ActionButton.js
115173
+
115174
+
115175
+
115176
+
115177
+
115178
+ var ActionButton_ButtonType = buttonTypes().type;
115179
+ var ActionButtonProps = {
115180
+ type: ActionButton_ButtonType,
115181
+ actionFn: vue_types.func,
115182
+ closeModal: vue_types.func,
115183
+ autoFocus: vue_types.bool,
115184
+ buttonProps: vue_types.object
115185
+ };
115186
+
115187
+ /* harmony default export */ var ActionButton = ({
115188
+ mixins: [BaseMixin],
115189
+ props: ActionButtonProps,
115190
+ data: function data() {
115191
+ return {
115192
+ loading: false
115193
+ };
115194
+ },
115195
+ mounted: function mounted() {
115196
+ var _this = this;
115197
+
115198
+ if (this.autoFocus) {
115199
+ this.timeoutId = setTimeout(function () {
115200
+ return _this.$el.focus();
115201
+ });
115202
+ }
115203
+ },
115204
+ beforeDestroy: function beforeDestroy() {
115205
+ clearTimeout(this.timeoutId);
115206
+ },
115207
+
115208
+ methods: {
115209
+ onClick: function onClick() {
115210
+ var _this2 = this;
115211
+
115212
+ var actionFn = this.actionFn,
115213
+ closeModal = this.closeModal;
115214
+
115215
+ if (actionFn) {
115216
+ var ret = void 0;
115217
+ if (actionFn.length) {
115218
+ ret = actionFn(closeModal);
115219
+ } else {
115220
+ ret = actionFn();
115221
+ if (!ret) {
115222
+ closeModal();
115223
+ }
115224
+ }
115225
+ if (ret && ret.then) {
115226
+ this.setState({ loading: true });
115227
+ ret.then(function () {
115228
+ // It's unnecessary to set loading=false, for the Modal will be unmounted after close.
115229
+ // this.setState({ loading: false });
115230
+ closeModal.apply(undefined, arguments);
115231
+ }, function (e) {
115232
+ // Emit error when catch promise reject
115233
+ // eslint-disable-next-line no-console
115234
+ console.error(e);
115235
+ // See: https://github.com/ant-design/ant-design/issues/6183
115236
+ _this2.setState({ loading: false });
115237
+ });
115238
+ }
115239
+ } else {
115240
+ closeModal();
115241
+ }
115242
+ }
115243
+ },
115244
+
115245
+ render: function render() {
115246
+ var h = arguments[0];
115247
+ var type = this.type,
115248
+ $slots = this.$slots,
115249
+ loading = this.loading,
115250
+ buttonProps = this.buttonProps;
115251
+
115252
+ return h(
115253
+ es_button,
115254
+ _babel_helper_vue_jsx_merge_props_2_0_3_babel_helper_vue_jsx_merge_props_default()([{
115255
+ attrs: { type: type, loading: loading },
115256
+ on: {
115257
+ 'click': this.onClick
115258
+ }
115259
+ }, buttonProps]),
115260
+ [$slots['default']]
115261
+ );
115262
+ }
115263
+ });
115264
+ // CONCATENATED MODULE: ./node_modules/_ant-design-vue@1.7.8@ant-design-vue/es/modal/ConfirmDialog.js
115265
+
115266
+
115267
+
115268
+
115269
+
115270
+
115271
+
115272
+
115273
+ /* harmony default export */ var ConfirmDialog = ({
115274
+ functional: true,
115275
+ render: function render(h, context) {
115276
+ var props = context.props;
115277
+ var onCancel = props.onCancel,
115278
+ onOk = props.onOk,
115279
+ close = props.close,
115280
+ zIndex = props.zIndex,
115281
+ afterClose = props.afterClose,
115282
+ visible = props.visible,
115283
+ keyboard = props.keyboard,
115284
+ centered = props.centered,
115285
+ getContainer = props.getContainer,
115286
+ maskStyle = props.maskStyle,
115287
+ okButtonProps = props.okButtonProps,
115288
+ cancelButtonProps = props.cancelButtonProps,
115289
+ _props$iconType = props.iconType,
115290
+ iconType = _props$iconType === undefined ? 'question-circle' : _props$iconType,
115291
+ _props$closable = props.closable,
115292
+ closable = _props$closable === undefined ? false : _props$closable;
115293
+
115294
+ _util_warning(!('iconType' in props), 'Modal', 'The property \'iconType\' is deprecated. Use the property \'icon\' instead.');
115295
+ var icon = props.icon ? props.icon : iconType;
115296
+ var okType = props.okType || 'primary';
115297
+ var prefixCls = props.prefixCls || 'ant-modal';
115298
+ var contentPrefixCls = prefixCls + '-confirm';
115299
+ // 默认为 true,保持向下兼容
115300
+ var okCancel = 'okCancel' in props ? props.okCancel : true;
115301
+ var width = props.width || 416;
115302
+ var style = props.style || {};
115303
+ var mask = props.mask === undefined ? true : props.mask;
115304
+ // 默认为 false,保持旧版默认行为
115305
+ var maskClosable = props.maskClosable === undefined ? false : props.maskClosable;
115306
+ var runtimeLocale = getConfirmLocale();
115307
+ var okText = props.okText || (okCancel ? runtimeLocale.okText : runtimeLocale.justOkText);
115308
+ var cancelText = props.cancelText || runtimeLocale.cancelText;
115309
+ var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';
115310
+ var transitionName = props.transitionName || 'zoom';
115311
+ var maskTransitionName = props.maskTransitionName || 'fade';
115312
+
115313
+ var classString = _classnames_2_3_2_classnames_default()(contentPrefixCls, contentPrefixCls + '-' + props.type, prefixCls + '-' + props.type, props['class']);
115314
+
115315
+ var cancelButton = okCancel && h(
115316
+ ActionButton,
115317
+ {
115318
+ attrs: {
115319
+ actionFn: onCancel,
115320
+ closeModal: close,
115321
+ autoFocus: autoFocusButton === 'cancel',
115322
+ buttonProps: cancelButtonProps
115323
+ }
115324
+ },
115325
+ [cancelText]
115326
+ );
115327
+ var iconNode = typeof icon === 'string' ? h(es_icon, {
115328
+ attrs: { type: icon }
115329
+ }) : icon(h);
115330
+
115331
+ return h(
115332
+ Modal,
115333
+ {
115334
+ attrs: {
115335
+ prefixCls: prefixCls,
115336
+
115337
+ wrapClassName: _classnames_2_3_2_classnames_default()(defineProperty_default()({}, contentPrefixCls + '-centered', !!centered)),
115338
+
115339
+ visible: visible,
115340
+ closable: closable,
115341
+ title: '',
115342
+ transitionName: transitionName,
115343
+ footer: '',
115344
+ maskTransitionName: maskTransitionName,
115345
+ mask: mask,
115346
+ maskClosable: maskClosable,
115347
+ maskStyle: maskStyle,
115348
+
115349
+ width: width,
115350
+ zIndex: zIndex,
115351
+ afterClose: afterClose,
115352
+ keyboard: keyboard,
115353
+ centered: centered,
115354
+ getContainer: getContainer
115355
+ },
115356
+ 'class': classString, on: {
115357
+ 'cancel': function cancel(e) {
115358
+ return close({ triggerCancel: true }, e);
115359
+ }
115360
+ },
115361
+ style: style },
115362
+ [h(
115363
+ 'div',
115364
+ { 'class': contentPrefixCls + '-body-wrapper' },
115365
+ [h(
115366
+ 'div',
115367
+ { 'class': contentPrefixCls + '-body' },
115368
+ [iconNode, props.title === undefined ? null : h(
115369
+ 'span',
115370
+ { 'class': contentPrefixCls + '-title' },
115371
+ [typeof props.title === 'function' ? props.title(h) : props.title]
115372
+ ), h(
115373
+ 'div',
115374
+ { 'class': contentPrefixCls + '-content' },
115375
+ [typeof props.content === 'function' ? props.content(h) : props.content]
115376
+ )]
115377
+ ), h(
115378
+ 'div',
115379
+ { 'class': contentPrefixCls + '-btns' },
115380
+ [cancelButton, h(
115381
+ ActionButton,
115382
+ {
115383
+ attrs: {
115384
+ type: okType,
115385
+ actionFn: onOk,
115386
+ closeModal: close,
115387
+ autoFocus: autoFocusButton === 'ok',
115388
+ buttonProps: okButtonProps
115389
+ }
115390
+ },
115391
+ [okText]
115392
+ )]
115393
+ )]
115394
+ )]
115395
+ );
115396
+ }
115397
+ });
115398
+ // CONCATENATED MODULE: ./node_modules/_ant-design-vue@1.7.8@ant-design-vue/es/modal/confirm.js
115399
+
115400
+
115401
+
115402
+
115403
+
115404
+
115405
+
115406
+ function confirm_confirm(config) {
115407
+ var div = document.createElement('div');
115408
+ var el = document.createElement('div');
115409
+ div.appendChild(el);
115410
+ document.body.appendChild(div);
115411
+ var currentConfig = extends_default()({}, _omit_js_1_0_2_omit_js_es(config, ['parentContext']), { close: close, visible: true });
115412
+
115413
+ var confirmDialogInstance = null;
115414
+ var confirmDialogProps = { props: {} };
115415
+ function close() {
115416
+ destroy.apply(undefined, arguments);
115417
+ }
115418
+ function update(newConfig) {
115419
+ currentConfig = extends_default()({}, currentConfig, newConfig);
115420
+ confirmDialogProps.props = currentConfig;
115421
+ }
115422
+ function destroy() {
115423
+ if (confirmDialogInstance && div.parentNode) {
115424
+ confirmDialogInstance.$destroy();
115425
+ confirmDialogInstance = null;
115426
+ div.parentNode.removeChild(div);
115427
+ }
115428
+
115429
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
115430
+ args[_key] = arguments[_key];
115431
+ }
115432
+
115433
+ var triggerCancel = args.some(function (param) {
115434
+ return param && param.triggerCancel;
115435
+ });
115436
+ if (config.onCancel && triggerCancel) {
115437
+ config.onCancel.apply(config, args);
115438
+ }
115439
+ for (var i = 0; i < destroyFns.length; i++) {
115440
+ var fn = destroyFns[i];
115441
+ if (fn === close) {
115442
+ destroyFns.splice(i, 1);
115443
+ break;
115444
+ }
115445
+ }
115446
+ }
115447
+
115448
+ function render(props) {
115449
+ confirmDialogProps.props = props;
115450
+ var V = es_base.Vue || external_commonjs_vue_commonjs2_vue_root_Vue_default.a;
115451
+ return new V({
115452
+ el: el,
115453
+ parent: config.parentContext,
115454
+ data: function data() {
115455
+ return { confirmDialogProps: confirmDialogProps };
115456
+ },
115457
+ render: function render() {
115458
+ var h = arguments[0];
115459
+
115460
+ // 先解构,避免报错,原因不详
115461
+ var cdProps = extends_default()({}, this.confirmDialogProps);
115462
+ return h(ConfirmDialog, cdProps);
115463
+ }
115464
+ });
115465
+ }
115466
+
115467
+ confirmDialogInstance = render(currentConfig);
115468
+ destroyFns.push(close);
115469
+ return {
115470
+ destroy: close,
115471
+ update: update
115472
+ };
115473
+ }
115474
+ // CONCATENATED MODULE: ./node_modules/_ant-design-vue@1.7.8@ant-design-vue/es/modal/index.js
115475
+
115476
+
115477
+
115478
+
115479
+
115480
+
115481
+ // export { ActionButtonProps } from './ActionButton'
115482
+ // export { ModalProps, ModalFuncProps } from './Modal'
115483
+
115484
+ var modal_info = function info(props) {
115485
+ var config = extends_default()({
115486
+ type: 'info',
115487
+ icon: function icon(h) {
115488
+ return h(es_icon, {
115489
+ attrs: { type: 'info-circle' }
115490
+ });
115491
+ },
115492
+ okCancel: false
115493
+ }, props);
115494
+ return confirm_confirm(config);
115495
+ };
115496
+
115497
+ var modal_success = function success(props) {
115498
+ var config = extends_default()({
115499
+ type: 'success',
115500
+ icon: function icon(h) {
115501
+ return h(es_icon, {
115502
+ attrs: { type: 'check-circle' }
115503
+ });
115504
+ },
115505
+ okCancel: false
115506
+ }, props);
115507
+ return confirm_confirm(config);
115508
+ };
115509
+
115510
+ var modal_error = function error(props) {
115511
+ var config = extends_default()({
115512
+ type: 'error',
115513
+ icon: function icon(h) {
115514
+ return h(es_icon, {
115515
+ attrs: { type: 'close-circle' }
115516
+ });
115517
+ },
115518
+ okCancel: false
115519
+ }, props);
115520
+ return confirm_confirm(config);
115521
+ };
115522
+
115523
+ var modal_warning = function warning(props) {
115524
+ var config = extends_default()({
115525
+ type: 'warning',
115526
+ icon: function icon(h) {
115527
+ return h(es_icon, {
115528
+ attrs: { type: 'exclamation-circle' }
115529
+ });
115530
+ },
115531
+ okCancel: false
115532
+ }, props);
115533
+ return confirm_confirm(config);
115534
+ };
115535
+ var modal_warn = modal_warning;
115536
+
115537
+ var modal_confirm = function confirmFn(props) {
115538
+ var config = extends_default()({
115539
+ type: 'confirm',
115540
+ okCancel: true
115541
+ }, props);
115542
+ return confirm_confirm(config);
115543
+ };
115544
+ Modal.info = modal_info;
115545
+ Modal.success = modal_success;
115546
+ Modal.error = modal_error;
115547
+ Modal.warning = modal_warning;
115548
+ Modal.warn = modal_warn;
115549
+ Modal.confirm = modal_confirm;
115550
+
115551
+ Modal.destroyAll = function destroyAllFn() {
115552
+ while (destroyFns.length) {
115553
+ var close = destroyFns.pop();
115554
+ if (close) {
115555
+ close();
115556
+ }
115557
+ }
115558
+ };
115559
+
115560
+ /* istanbul ignore next */
115561
+ Modal.install = function (Vue) {
115562
+ Vue.use(es_base);
115563
+ Vue.component(Modal.name, Modal);
115564
+ };
115565
+
115566
+ /* harmony default export */ var modal = (Modal);
115567
+ // CONCATENATED MODULE: ./packages/utils/msg.js
115568
+
115569
+ function successMsg(msg, desc){
115570
+ notification['success']({ message: msg, description: desc })
115571
+ }
115572
+ function warningMsg(msg, desc){
115573
+ notification['warning']({ message: msg, description: desc })
115574
+ }
115575
+ function msg_errorMsg(msg, desc){
115576
+ notification['error']({ message: msg, description: desc })
115577
+ }
115578
+ function infoMsg(dataInfo){
115579
+ notification['info'](dataInfo)
115580
+ }
115581
+ function closeMsg(key){
115582
+ notification.close(key)
115583
+ }
115584
+ const confirmMsg = modal.confirm
114010
115585
  // CONCATENATED MODULE: ./packages/index.js
114011
115586
  // 导入组件
114012
115587
 
@@ -114075,6 +115650,7 @@ localize({
114075
115650
 
114076
115651
 
114077
115652
 
115653
+
114078
115654
 
114079
115655
  // CONCATENATED MODULE: ./node_modules/_@vue_cli-service@4.2.3@@vue/cli-service/lib/commands/build/entry-lib.js
114080
115656