doway-coms 1.1.21 → 1.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/doway-coms.common.js +277 -149
- package/lib/doway-coms.css +1 -1
- package/lib/doway-coms.umd.js +277 -149
- package/lib/doway-coms.umd.min.js +7 -7
- package/package.json +1 -1
package/lib/doway-coms.umd.js
CHANGED
|
@@ -26263,13 +26263,6 @@ addToUnscopables('values');
|
|
|
26263
26263
|
addToUnscopables('entries');
|
|
26264
26264
|
|
|
26265
26265
|
|
|
26266
|
-
/***/ }),
|
|
26267
|
-
|
|
26268
|
-
/***/ "5887":
|
|
26269
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
26270
|
-
|
|
26271
|
-
// extracted by mini-css-extract-plugin
|
|
26272
|
-
|
|
26273
26266
|
/***/ }),
|
|
26274
26267
|
|
|
26275
26268
|
/***/ "58da":
|
|
@@ -49042,6 +49035,13 @@ var isArray = Array.isArray || helperCreateInInObjectString('Array')
|
|
|
49042
49035
|
module.exports = isArray
|
|
49043
49036
|
|
|
49044
49037
|
|
|
49038
|
+
/***/ }),
|
|
49039
|
+
|
|
49040
|
+
/***/ "9c47":
|
|
49041
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
49042
|
+
|
|
49043
|
+
// extracted by mini-css-extract-plugin
|
|
49044
|
+
|
|
49045
49045
|
/***/ }),
|
|
49046
49046
|
|
|
49047
49047
|
/***/ "9d19":
|
|
@@ -70858,6 +70858,17 @@ var eachTree = helperCreateTreeFunc(eachTreeItem)
|
|
|
70858
70858
|
module.exports = eachTree
|
|
70859
70859
|
|
|
70860
70860
|
|
|
70861
|
+
/***/ }),
|
|
70862
|
+
|
|
70863
|
+
/***/ "dbfc":
|
|
70864
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
70865
|
+
|
|
70866
|
+
"use strict";
|
|
70867
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_8_0_2_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_39d29e22_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9c47");
|
|
70868
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_8_0_2_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_39d29e22_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_8_0_2_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_39d29e22_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
70869
|
+
/* unused harmony reexport * */
|
|
70870
|
+
|
|
70871
|
+
|
|
70861
70872
|
/***/ }),
|
|
70862
70873
|
|
|
70863
70874
|
/***/ "dc7e":
|
|
@@ -78922,6 +78933,14 @@ __webpack_require__.d(__webpack_exports__, "moduleCodeEnum", function() { return
|
|
|
78922
78933
|
__webpack_require__.d(__webpack_exports__, "dictCodeEnum", function() { return /* reexport */ dictCodeEnum; });
|
|
78923
78934
|
__webpack_require__.d(__webpack_exports__, "replaceParamString", function() { return /* reexport */ replaceParamString; });
|
|
78924
78935
|
__webpack_require__.d(__webpack_exports__, "replaceParam", function() { return /* reexport */ replaceParam; });
|
|
78936
|
+
__webpack_require__.d(__webpack_exports__, "setFrameColState", function() { return /* reexport */ setFrameColState; });
|
|
78937
|
+
__webpack_require__.d(__webpack_exports__, "setFrameToolBtnState", function() { return /* reexport */ setFrameToolBtnState; });
|
|
78938
|
+
__webpack_require__.d(__webpack_exports__, "showErrors", function() { return /* reexport */ showErrors; });
|
|
78939
|
+
__webpack_require__.d(__webpack_exports__, "getUuid", function() { return /* reexport */ common_getUuid; });
|
|
78940
|
+
__webpack_require__.d(__webpack_exports__, "getFormValidErrors", function() { return /* reexport */ getFormValidErrors; });
|
|
78941
|
+
__webpack_require__.d(__webpack_exports__, "stringUrlQuery", function() { return /* reexport */ common_stringUrlQuery; });
|
|
78942
|
+
__webpack_require__.d(__webpack_exports__, "getRouteFullPath", function() { return /* reexport */ getRouteFullPath; });
|
|
78943
|
+
__webpack_require__.d(__webpack_exports__, "getGridValidErrors", function() { return /* reexport */ getGridValidErrors; });
|
|
78925
78944
|
__webpack_require__.d(__webpack_exports__, "timeAgo", function() { return /* reexport */ timeAgo; });
|
|
78926
78945
|
__webpack_require__.d(__webpack_exports__, "parseTime", function() { return /* reexport */ parseTime; });
|
|
78927
78946
|
__webpack_require__.d(__webpack_exports__, "formatTime", function() { return /* reexport */ formatTime; });
|
|
@@ -106992,127 +107011,6 @@ var srcvue_type_template_id_78416a63_scoped_true_staticRenderFns = []
|
|
|
106992
107011
|
|
|
106993
107012
|
// CONCATENATED MODULE: ./packages/BasePulldown/src/index.vue?vue&type=template&id=78416a63&scoped=true&
|
|
106994
107013
|
|
|
106995
|
-
// CONCATENATED MODULE: ./packages/utils/common.js
|
|
106996
|
-
/**
|
|
106997
|
-
* 替换掩码参数字符串
|
|
106998
|
-
* @param {参数字符串} paramString
|
|
106999
|
-
* @param {当前页面数据集} formData
|
|
107000
|
-
*/
|
|
107001
|
-
function replaceParamString(
|
|
107002
|
-
paramString,
|
|
107003
|
-
formData,
|
|
107004
|
-
currentModuleSelectInfo
|
|
107005
|
-
) {
|
|
107006
|
-
// hh添加
|
|
107007
|
-
let tempStr = paramString
|
|
107008
|
-
while (true) {
|
|
107009
|
-
if (tempStr.indexOf('@Fn(') < 0) {
|
|
107010
|
-
break
|
|
107011
|
-
}
|
|
107012
|
-
let tempReplaceParam = tempStr.substr(tempStr.indexOf('@Fn('))
|
|
107013
|
-
tempReplaceParam = tempReplaceParam.substr(
|
|
107014
|
-
0,
|
|
107015
|
-
tempReplaceParam.indexOf(')') + 1
|
|
107016
|
-
) // 查找掩码参数
|
|
107017
|
-
let tempDataFields = tempReplaceParam
|
|
107018
|
-
.substr(0, tempReplaceParam.length - 1)
|
|
107019
|
-
.substr(4)
|
|
107020
|
-
.split('.')
|
|
107021
|
-
let tempReplaceValue = null
|
|
107022
|
-
if (tempDataFields[0] === '') {
|
|
107023
|
-
// 取主表数据
|
|
107024
|
-
tempReplaceValue = formData[tempDataFields[1]]
|
|
107025
|
-
} else {
|
|
107026
|
-
if (formData[tempDataFields[0]] instanceof Array) {
|
|
107027
|
-
let tempSelectItemInfo = currentModuleSelectInfo.filter(filterItem => {
|
|
107028
|
-
return filterItem.attrDataName === tempDataFields[0]
|
|
107029
|
-
})
|
|
107030
|
-
if (tempSelectItemInfo.length > 0) {
|
|
107031
|
-
let tempKeyFieldValue =
|
|
107032
|
-
tempSelectItemInfo[0].selectItem[tempSelectItemInfo[0].keyField]
|
|
107033
|
-
let tempActualRow = formData[tempDataFields[0]].filter(filterItem => {
|
|
107034
|
-
return (
|
|
107035
|
-
filterItem[tempSelectItemInfo[0].keyField] === tempKeyFieldValue
|
|
107036
|
-
)
|
|
107037
|
-
})
|
|
107038
|
-
if (tempActualRow.length > 0) {
|
|
107039
|
-
tempReplaceValue = tempActualRow[0][tempDataFields[1]]
|
|
107040
|
-
}
|
|
107041
|
-
}
|
|
107042
|
-
} else {
|
|
107043
|
-
tempReplaceValue = formData[tempDataFields[0]][tempDataFields[1]]
|
|
107044
|
-
}
|
|
107045
|
-
}
|
|
107046
|
-
//刘松嗣临时处理
|
|
107047
|
-
if (tempReplaceValue == undefined) {
|
|
107048
|
-
tempReplaceValue = '0'
|
|
107049
|
-
}
|
|
107050
|
-
tempStr = tempStr.substr(
|
|
107051
|
-
tempStr.indexOf(tempReplaceParam) + tempReplaceParam.length
|
|
107052
|
-
)
|
|
107053
|
-
|
|
107054
|
-
if (typeof tempReplaceValue === 'string') {
|
|
107055
|
-
paramString = paramString.replace(
|
|
107056
|
-
tempReplaceParam,
|
|
107057
|
-
'"' + tempReplaceValue + '"'
|
|
107058
|
-
)
|
|
107059
|
-
tempStr = tempStr.replace(tempReplaceParam, '"' + tempReplaceValue + '"')
|
|
107060
|
-
} else {
|
|
107061
|
-
paramString = paramString.replace(tempReplaceParam, tempReplaceValue)
|
|
107062
|
-
tempStr = tempStr.replace(tempReplaceParam, tempReplaceValue)
|
|
107063
|
-
}
|
|
107064
|
-
}
|
|
107065
|
-
return paramString
|
|
107066
|
-
}
|
|
107067
|
-
|
|
107068
|
-
/**
|
|
107069
|
-
* 替换掩码参数字符串
|
|
107070
|
-
* @param {参数字符串} paramString
|
|
107071
|
-
* @param {当前页面数据集} formData
|
|
107072
|
-
*/
|
|
107073
|
-
function replaceParam(paramString, formData) {
|
|
107074
|
-
let tempStr = paramString
|
|
107075
|
-
while (true) {
|
|
107076
|
-
if (tempStr.indexOf('@Fn(') < 0) {
|
|
107077
|
-
break
|
|
107078
|
-
}
|
|
107079
|
-
let tempReplaceParam = tempStr.substr(tempStr.indexOf('@Fn('))
|
|
107080
|
-
tempReplaceParam = tempReplaceParam.substr(
|
|
107081
|
-
0,
|
|
107082
|
-
tempReplaceParam.indexOf(')') + 1
|
|
107083
|
-
) // 查找掩码参数
|
|
107084
|
-
let tempDataFields = tempReplaceParam
|
|
107085
|
-
.substr(0, tempReplaceParam.length - 1)
|
|
107086
|
-
.substr(4)
|
|
107087
|
-
.split('.')
|
|
107088
|
-
let tempReplaceValue = null
|
|
107089
|
-
if (tempDataFields[0] === '') {
|
|
107090
|
-
// 取主表数据
|
|
107091
|
-
tempReplaceValue = formData[tempDataFields[1]]
|
|
107092
|
-
} else {
|
|
107093
|
-
tempReplaceValue = formData[tempDataFields[0]][tempDataFields[1]]
|
|
107094
|
-
}
|
|
107095
|
-
tempStr = tempStr.substr(
|
|
107096
|
-
tempStr.indexOf(tempReplaceParam) + tempReplaceParam.length
|
|
107097
|
-
)
|
|
107098
|
-
|
|
107099
|
-
// if (typeof tempReplaceValue === 'string') {
|
|
107100
|
-
// paramString = paramString.replace(
|
|
107101
|
-
// tempReplaceParam,
|
|
107102
|
-
// '"' + tempReplaceValue + '"'
|
|
107103
|
-
// )
|
|
107104
|
-
// tempStr = tempStr.replace(tempReplaceParam, '"' + tempReplaceValue + '"')
|
|
107105
|
-
// } else {
|
|
107106
|
-
paramString = paramString.replace(tempReplaceParam, tempReplaceValue)
|
|
107107
|
-
tempStr = tempStr.replace(tempReplaceParam, tempReplaceValue)
|
|
107108
|
-
// }
|
|
107109
|
-
}
|
|
107110
|
-
return paramString
|
|
107111
|
-
}
|
|
107112
|
-
// EXTERNAL MODULE: ./node_modules/_axios@0.18.0@axios/index.js
|
|
107113
|
-
var _axios_0_18_0_axios = __webpack_require__("7f43");
|
|
107114
|
-
var _axios_0_18_0_axios_default = /*#__PURE__*/__webpack_require__.n(_axios_0_18_0_axios);
|
|
107115
|
-
|
|
107116
107014
|
// CONCATENATED MODULE: ./node_modules/_ant-design-vue@1.7.8@ant-design-vue/es/vc-notification/Notice.js
|
|
107117
107015
|
|
|
107118
107016
|
|
|
@@ -107647,6 +107545,248 @@ var api = {
|
|
|
107647
107545
|
|
|
107648
107546
|
api.warn = api.warning;
|
|
107649
107547
|
/* harmony default export */ var notification = (api);
|
|
107548
|
+
// CONCATENATED MODULE: ./packages/utils/common.js
|
|
107549
|
+
|
|
107550
|
+
/**
|
|
107551
|
+
* 替换掩码参数字符串
|
|
107552
|
+
* @param {参数字符串} paramString
|
|
107553
|
+
* @param {当前页面数据集} formData
|
|
107554
|
+
*/
|
|
107555
|
+
function replaceParamString(
|
|
107556
|
+
paramString,
|
|
107557
|
+
formData,
|
|
107558
|
+
currentModuleSelectInfo
|
|
107559
|
+
) {
|
|
107560
|
+
// hh添加
|
|
107561
|
+
let tempStr = paramString
|
|
107562
|
+
while (true) {
|
|
107563
|
+
if (tempStr.indexOf('@Fn(') < 0) {
|
|
107564
|
+
break
|
|
107565
|
+
}
|
|
107566
|
+
let tempReplaceParam = tempStr.substr(tempStr.indexOf('@Fn('))
|
|
107567
|
+
tempReplaceParam = tempReplaceParam.substr(
|
|
107568
|
+
0,
|
|
107569
|
+
tempReplaceParam.indexOf(')') + 1
|
|
107570
|
+
) // 查找掩码参数
|
|
107571
|
+
let tempDataFields = tempReplaceParam
|
|
107572
|
+
.substr(0, tempReplaceParam.length - 1)
|
|
107573
|
+
.substr(4)
|
|
107574
|
+
.split('.')
|
|
107575
|
+
let tempReplaceValue = null
|
|
107576
|
+
if (tempDataFields[0] === '') {
|
|
107577
|
+
// 取主表数据
|
|
107578
|
+
tempReplaceValue = formData[tempDataFields[1]]
|
|
107579
|
+
} else {
|
|
107580
|
+
if (formData[tempDataFields[0]] instanceof Array) {
|
|
107581
|
+
let tempSelectItemInfo = currentModuleSelectInfo.filter(filterItem => {
|
|
107582
|
+
return filterItem.attrDataName === tempDataFields[0]
|
|
107583
|
+
})
|
|
107584
|
+
if (tempSelectItemInfo.length > 0) {
|
|
107585
|
+
let tempKeyFieldValue =
|
|
107586
|
+
tempSelectItemInfo[0].selectItem[tempSelectItemInfo[0].keyField]
|
|
107587
|
+
let tempActualRow = formData[tempDataFields[0]].filter(filterItem => {
|
|
107588
|
+
return (
|
|
107589
|
+
filterItem[tempSelectItemInfo[0].keyField] === tempKeyFieldValue
|
|
107590
|
+
)
|
|
107591
|
+
})
|
|
107592
|
+
if (tempActualRow.length > 0) {
|
|
107593
|
+
tempReplaceValue = tempActualRow[0][tempDataFields[1]]
|
|
107594
|
+
}
|
|
107595
|
+
}
|
|
107596
|
+
} else {
|
|
107597
|
+
tempReplaceValue = formData[tempDataFields[0]][tempDataFields[1]]
|
|
107598
|
+
}
|
|
107599
|
+
}
|
|
107600
|
+
//刘松嗣临时处理
|
|
107601
|
+
if (tempReplaceValue == undefined) {
|
|
107602
|
+
tempReplaceValue = '0'
|
|
107603
|
+
}
|
|
107604
|
+
tempStr = tempStr.substr(
|
|
107605
|
+
tempStr.indexOf(tempReplaceParam) + tempReplaceParam.length
|
|
107606
|
+
)
|
|
107607
|
+
|
|
107608
|
+
if (typeof tempReplaceValue === 'string') {
|
|
107609
|
+
paramString = paramString.replace(
|
|
107610
|
+
tempReplaceParam,
|
|
107611
|
+
'"' + tempReplaceValue + '"'
|
|
107612
|
+
)
|
|
107613
|
+
tempStr = tempStr.replace(tempReplaceParam, '"' + tempReplaceValue + '"')
|
|
107614
|
+
} else {
|
|
107615
|
+
paramString = paramString.replace(tempReplaceParam, tempReplaceValue)
|
|
107616
|
+
tempStr = tempStr.replace(tempReplaceParam, tempReplaceValue)
|
|
107617
|
+
}
|
|
107618
|
+
}
|
|
107619
|
+
return paramString
|
|
107620
|
+
}
|
|
107621
|
+
|
|
107622
|
+
/**
|
|
107623
|
+
* 替换掩码参数字符串
|
|
107624
|
+
* @param {参数字符串} paramString
|
|
107625
|
+
* @param {当前页面数据集} formData
|
|
107626
|
+
*/
|
|
107627
|
+
function replaceParam(paramString, formData) {
|
|
107628
|
+
let tempStr = paramString
|
|
107629
|
+
while (true) {
|
|
107630
|
+
if (tempStr.indexOf('@Fn(') < 0) {
|
|
107631
|
+
break
|
|
107632
|
+
}
|
|
107633
|
+
let tempReplaceParam = tempStr.substr(tempStr.indexOf('@Fn('))
|
|
107634
|
+
tempReplaceParam = tempReplaceParam.substr(
|
|
107635
|
+
0,
|
|
107636
|
+
tempReplaceParam.indexOf(')') + 1
|
|
107637
|
+
) // 查找掩码参数
|
|
107638
|
+
let tempDataFields = tempReplaceParam
|
|
107639
|
+
.substr(0, tempReplaceParam.length - 1)
|
|
107640
|
+
.substr(4)
|
|
107641
|
+
.split('.')
|
|
107642
|
+
let tempReplaceValue = null
|
|
107643
|
+
if (tempDataFields[0] === '') {
|
|
107644
|
+
// 取主表数据
|
|
107645
|
+
tempReplaceValue = formData[tempDataFields[1]]
|
|
107646
|
+
} else {
|
|
107647
|
+
tempReplaceValue = formData[tempDataFields[0]][tempDataFields[1]]
|
|
107648
|
+
}
|
|
107649
|
+
tempStr = tempStr.substr(
|
|
107650
|
+
tempStr.indexOf(tempReplaceParam) + tempReplaceParam.length
|
|
107651
|
+
)
|
|
107652
|
+
|
|
107653
|
+
// if (typeof tempReplaceValue === 'string') {
|
|
107654
|
+
// paramString = paramString.replace(
|
|
107655
|
+
// tempReplaceParam,
|
|
107656
|
+
// '"' + tempReplaceValue + '"'
|
|
107657
|
+
// )
|
|
107658
|
+
// tempStr = tempStr.replace(tempReplaceParam, '"' + tempReplaceValue + '"')
|
|
107659
|
+
// } else {
|
|
107660
|
+
paramString = paramString.replace(tempReplaceParam, tempReplaceValue)
|
|
107661
|
+
tempStr = tempStr.replace(tempReplaceParam, tempReplaceValue)
|
|
107662
|
+
// }
|
|
107663
|
+
}
|
|
107664
|
+
return paramString
|
|
107665
|
+
}
|
|
107666
|
+
|
|
107667
|
+
function setFrameColState(formCols, formState, formStatus) {
|
|
107668
|
+
for (let prop in formCols) {
|
|
107669
|
+
if (formCols[prop].editStates instanceof Array) {
|
|
107670
|
+
let exists = formCols[prop].editStates.filter(item => {
|
|
107671
|
+
//editState:['add','edit']
|
|
107672
|
+
return item === formState // view === add|edit formState :view|add|edit
|
|
107673
|
+
}) //[]
|
|
107674
|
+
if (exists.length > 0) {
|
|
107675
|
+
formCols[prop].edit = true
|
|
107676
|
+
} else {
|
|
107677
|
+
formCols[prop].edit = false
|
|
107678
|
+
}
|
|
107679
|
+
}
|
|
107680
|
+
// 单据状态控制
|
|
107681
|
+
if (
|
|
107682
|
+
formStatus &&
|
|
107683
|
+
formCols[prop].editStatuss instanceof Array &&
|
|
107684
|
+
formCols[prop].editStatuss.length > 0 &&
|
|
107685
|
+
formCols[prop].edit === true
|
|
107686
|
+
) {
|
|
107687
|
+
let formStatusExists = formCols[prop].editStatuss.filter(item => {
|
|
107688
|
+
//editStatuss:[,'publish',]
|
|
107689
|
+
return item === formStatus // formStatus:'draft'
|
|
107690
|
+
})
|
|
107691
|
+
if (formStatusExists.length > 0) {
|
|
107692
|
+
formCols[prop].edit = true
|
|
107693
|
+
} else {
|
|
107694
|
+
formCols[prop].edit = false
|
|
107695
|
+
}
|
|
107696
|
+
}
|
|
107697
|
+
// Vue.set(formCols, i, formCols[i])
|
|
107698
|
+
}
|
|
107699
|
+
}
|
|
107700
|
+
function setFrameToolBtnState(toolBars, formState, formStatus) {
|
|
107701
|
+
for (let i = 0; i < toolBars.length; i++) {
|
|
107702
|
+
toolBars[i].visible = false
|
|
107703
|
+
toolBars[i].isPrimary = false
|
|
107704
|
+
if (
|
|
107705
|
+
toolBars[i].visibleStates &&
|
|
107706
|
+
toolBars[i].visibleStates.indexOf(formState) >= 0
|
|
107707
|
+
) {
|
|
107708
|
+
toolBars[i].visible = true
|
|
107709
|
+
}
|
|
107710
|
+
if (formStatus && toolBars[i].visibleStatuss && toolBars[i].visible) {
|
|
107711
|
+
toolBars[i].visible = toolBars[i].visibleStatuss.indexOf(formStatus) >= 0
|
|
107712
|
+
}
|
|
107713
|
+
}
|
|
107714
|
+
// 查找优先级最大的并且显示的设置按钮强调色
|
|
107715
|
+
let visibleBtns = toolBars.filter(filterItem => {
|
|
107716
|
+
return filterItem.visible === true
|
|
107717
|
+
})
|
|
107718
|
+
//循环数组查找出小于自身的priority优先级 优先级高设置按钮强调色
|
|
107719
|
+
for (let i = 0; i < visibleBtns.length; i++) {
|
|
107720
|
+
let tempPriority = visibleBtns[i].priority
|
|
107721
|
+
let tempBtns = visibleBtns.filter(filterItem => {
|
|
107722
|
+
return filterItem.priority < tempPriority
|
|
107723
|
+
})
|
|
107724
|
+
//如果找到小于自身优先级的数量>0就说明还有更小的跳出本次不设置true继续查找
|
|
107725
|
+
if (tempBtns.length > 0) {
|
|
107726
|
+
continue
|
|
107727
|
+
}
|
|
107728
|
+
visibleBtns[i].isPrimary = true
|
|
107729
|
+
}
|
|
107730
|
+
}
|
|
107731
|
+
function showErrors(errs) {
|
|
107732
|
+
let errors = ''
|
|
107733
|
+
for (let i = 0; i < errs.length; i++) {
|
|
107734
|
+
errors = errors + errs[i] + '\n'
|
|
107735
|
+
}
|
|
107736
|
+
notification.error({
|
|
107737
|
+
style: {
|
|
107738
|
+
whiteSpace: 'pre-wrap'
|
|
107739
|
+
},
|
|
107740
|
+
message: '错误',
|
|
107741
|
+
description: errors,
|
|
107742
|
+
placement: 'topRight'
|
|
107743
|
+
})
|
|
107744
|
+
}
|
|
107745
|
+
function common_getUuid() {
|
|
107746
|
+
let d = new Date().getTime()
|
|
107747
|
+
let uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(
|
|
107748
|
+
c
|
|
107749
|
+
) {
|
|
107750
|
+
let r = (d + Math.random() * 16) % 16 | 0
|
|
107751
|
+
d = Math.floor(d / 16)
|
|
107752
|
+
return (c === 'x' ? r : (r & 0x3) | 0x8).toString(16)
|
|
107753
|
+
})
|
|
107754
|
+
return uuid
|
|
107755
|
+
}
|
|
107756
|
+
async function getFormValidErrors(formView) {
|
|
107757
|
+
let formErrors = []
|
|
107758
|
+
const validFormError = await formView.validate().catch(errMap => errMap)
|
|
107759
|
+
if (validFormError === false) {
|
|
107760
|
+
for (let errorProp in formView.errors) {
|
|
107761
|
+
for (let x = 0; x < formView.errors[errorProp].length; x++) {
|
|
107762
|
+
formErrors.push(errorProp + ':' + formView.errors[errorProp][x])
|
|
107763
|
+
}
|
|
107764
|
+
}
|
|
107765
|
+
}
|
|
107766
|
+
return formErrors
|
|
107767
|
+
}
|
|
107768
|
+
function common_stringUrlQuery(obj) {
|
|
107769
|
+
let strUrlQuery = ''
|
|
107770
|
+
for (let prop in obj) {
|
|
107771
|
+
strUrlQuery = strUrlQuery + prop + '=' + obj[prop] + '&'
|
|
107772
|
+
}
|
|
107773
|
+
if (strUrlQuery.length > 0) {
|
|
107774
|
+
strUrlQuery = strUrlQuery.substring(0, strUrlQuery.length - 1)
|
|
107775
|
+
}
|
|
107776
|
+
return strUrlQuery
|
|
107777
|
+
}
|
|
107778
|
+
function getRouteFullPath(route) {
|
|
107779
|
+
let fullPath = route.path + '?' + common_stringUrlQuery(route.query)
|
|
107780
|
+
return fullPath
|
|
107781
|
+
}
|
|
107782
|
+
async function getGridValidErrors(gridView) {
|
|
107783
|
+
const gridErrors = await gridView.fullValidate()
|
|
107784
|
+
return gridErrors
|
|
107785
|
+
}
|
|
107786
|
+
// EXTERNAL MODULE: ./node_modules/_axios@0.18.0@axios/index.js
|
|
107787
|
+
var _axios_0_18_0_axios = __webpack_require__("7f43");
|
|
107788
|
+
var _axios_0_18_0_axios_default = /*#__PURE__*/__webpack_require__.n(_axios_0_18_0_axios);
|
|
107789
|
+
|
|
107650
107790
|
// CONCATENATED MODULE: ./packages/utils/api.js
|
|
107651
107791
|
|
|
107652
107792
|
|
|
@@ -109585,15 +109725,15 @@ BaseForm_src.install = function(Vue) {
|
|
|
109585
109725
|
};
|
|
109586
109726
|
// 默认导出组件
|
|
109587
109727
|
/* harmony default export */ var BaseForm = (BaseForm_src);
|
|
109588
|
-
// CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6e9e9b0a-vue-loader-template"}!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.1@vue-loader/lib??vue-loader-options!./packages/BasePictureCard/src/index.vue?vue&type=template&id=
|
|
109589
|
-
var
|
|
109728
|
+
// CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6e9e9b0a-vue-loader-template"}!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.1@vue-loader/lib??vue-loader-options!./packages/BasePictureCard/src/index.vue?vue&type=template&id=39d29e22&scoped=true&
|
|
109729
|
+
var srcvue_type_template_id_39d29e22_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticStyle:{"display":"inline-block"}},[_c('div',{staticClass:"file-card"},[_vm._l((_vm.internalRows.filter(
|
|
109590
109730
|
x => x.sysRowState != 'delete'
|
|
109591
109731
|
)),function(internalRow){return _c('div',{key:internalRow.attach.fileName,staticClass:"attach-wrapper"},[(internalRow.sysRowState !== _vm.sysRowState.delete)?[(internalRow.attach.content === 'image')?_c('div',{staticClass:"attach"},[_c('img',{staticStyle:{"border":"1px solid #ccc","border-radius":"6px","overflow":"hidden","margin":"0","padding":"0"},style:({ width: _vm.width, height: _vm.height, lineHeight: _vm.height }),attrs:{"src":`${_vm.internalServiceUrl}/GetAttachFile/${internalRow.attach.id}?accessToken=${_vm.$store.getters.token}`},on:{"click":function($event){return _vm.attachFileClick(internalRow.attach)}}}),(_vm.edit === true)?_c('i',{staticClass:"el-icon-error attach-delete",on:{"click":function($event){return _vm.removeAttach(internalRow.attach)}}}):_vm._e(),_c('i',{staticClass:"el-icon-download attach-download",on:{"click":function($event){return _vm.downloadAttach(internalRow.attach)}}}),_c('i',{staticClass:"el-icon-view attach-view",on:{"click":function($event){return _vm.viewAttach(internalRow.attach)}}}),_c('VxeCheckbox',{staticClass:"attach-circle",attrs:{"disabled":_vm.formState == 'view'},on:{"change":function($event){return _vm.circleAttach(internalRow.attach, internalRow)}},model:{value:(internalRow.isDefault),callback:function ($$v) {_vm.$set(internalRow, "isDefault", $$v)},expression:"internalRow.isDefault"}})],1):_c('div',{staticClass:"attach"},[_c('img',{staticClass:"o_image",attrs:{"data-mimetype":internalRow.attach.contentType},on:{"click":function($event){return _vm.attachFileClick(internalRow.attach)}}}),(_vm.edit === true)?_c('i',{staticClass:"el-icon-error attach-delete",on:{"click":function($event){return _vm.removeAttach(internalRow.attach)}}}):_vm._e(),_c('i',{staticClass:"el-icon-download attach-download",on:{"click":function($event){return _vm.downloadAttach(internalRow.attach)}}}),_c('i',{staticClass:"el-icon-view attach-view",on:{"click":function($event){return _vm.viewAttach(internalRow.attach)}}}),_c('VxeCheckbox',{staticClass:"attach-circle",attrs:{"disabled":_vm.formState == 'view'},on:{"change":function($event){return _vm.circleAttach(internalRow.attach, internalRow)}},model:{value:(internalRow.isDefault),callback:function ($$v) {_vm.$set(internalRow, "isDefault", $$v)},expression:"internalRow.isDefault"}})],1),_c('div',{staticStyle:{"overflow":"hidden","text-overflow":"ellipsis","white-space":"nowrap"},style:({ width: _vm.width }),attrs:{"title":internalRow.attach.name}},[_vm._v(" "+_vm._s(internalRow.attach.name)+" ")])]:_vm._e()],2)}),(_vm.edit === true)?_c('a-upload',{staticClass:"avatar-uploader",attrs:{"headers":_vm.uploadHeaders,"action":_vm.uploadData.picAction,"data":_vm.uploadData,"on-success":_vm.handleAvatarSuccess,"show-file-list":false,"before-upload":_vm.beforeAvatarUpload}},[_c('div',{staticStyle:{"border":"1px solid #d9d9d9","border-radius":"6px"},style:({ width: _vm.width, height: _vm.height, lineHeight: _vm.height })},[_c('i',{staticClass:"el-icon-plus avatar-uploader-icon",staticStyle:{"text-align":"center"},style:({ width: _vm.width, height: _vm.height, lineHeight: _vm.height })})])]):_vm._e(),(_vm.edit !== true && _vm.showEmptyText && _vm.internalRows.length === 0)?_c('div',[_vm._v(" 没有附件信息哦,请编辑添加附件信息 ")]):_vm._e()],2),_c('VxeModal',{attrs:{"show-zoom":"","transfer":"","resize":"","destroy-on-close":"","fullscreen":_vm.isFullscreen || _vm.dialogViewType == 'application/pdf'},scopedSlots:_vm._u([{key:"title",fn:function(){return [(_vm.dialogViewType !== 'application/pdf')?_c('div',{staticStyle:{"text-align":"right","margin-right":"15px","padding-top":"5px"}},[(!_vm.isFullscreen)?_c('i',{staticClass:"el-icon-full-screen",staticStyle:{"font-size":"19px","margin-right":"10px"},on:{"click":_vm.screenClick}}):_c('i',{staticClass:"el-icon-connection",staticStyle:{"font-size":"19px","margin-right":"10px"},on:{"click":_vm.narrowClick}})]):_vm._e()]},proxy:true}]),model:{value:(_vm.dialogVisible),callback:function ($$v) {_vm.dialogVisible=$$v},expression:"dialogVisible"}},[(_vm.dialogViewType == 'application/pdf')?_c('embed',{attrs:{"src":_vm.dialogImageUrl,"type":_vm.dialogViewType,"width":"100%","height":"100%"}}):_c('img',{attrs:{"width":"90%","height":"auto","src":_vm.dialogImageUrl}})])],1)
|
|
109592
109732
|
}
|
|
109593
|
-
var
|
|
109733
|
+
var srcvue_type_template_id_39d29e22_scoped_true_staticRenderFns = []
|
|
109594
109734
|
|
|
109595
109735
|
|
|
109596
|
-
// CONCATENATED MODULE: ./packages/BasePictureCard/src/index.vue?vue&type=template&id=
|
|
109736
|
+
// CONCATENATED MODULE: ./packages/BasePictureCard/src/index.vue?vue&type=template&id=39d29e22&scoped=true&
|
|
109597
109737
|
|
|
109598
109738
|
// EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/uniqBy.js
|
|
109599
109739
|
var uniqBy = __webpack_require__("a524");
|
|
@@ -112887,7 +113027,6 @@ function removeRefreshToken() {
|
|
|
112887
113027
|
},
|
|
112888
113028
|
created() {},
|
|
112889
113029
|
mounted() {
|
|
112890
|
-
this.dialogVisible = true
|
|
112891
113030
|
this.internalServiceUrl = attachGetAttachUrlApi()
|
|
112892
113031
|
this.uploadData.picType = this.picType
|
|
112893
113032
|
this.uploadData.resId = this.resId
|
|
@@ -113058,8 +113197,8 @@ function removeRefreshToken() {
|
|
|
113058
113197
|
|
|
113059
113198
|
// CONCATENATED MODULE: ./packages/BasePictureCard/src/index.vue?vue&type=script&lang=js&
|
|
113060
113199
|
/* harmony default export */ var packages_BasePictureCard_srcvue_type_script_lang_js_ = (BasePictureCard_srcvue_type_script_lang_js_);
|
|
113061
|
-
// EXTERNAL MODULE: ./packages/BasePictureCard/src/index.vue?vue&type=style&index=0&id=
|
|
113062
|
-
var
|
|
113200
|
+
// EXTERNAL MODULE: ./packages/BasePictureCard/src/index.vue?vue&type=style&index=0&id=39d29e22&prod&lang=scss&scoped=true&
|
|
113201
|
+
var srcvue_type_style_index_0_id_39d29e22_prod_lang_scss_scoped_true_ = __webpack_require__("dbfc");
|
|
113063
113202
|
|
|
113064
113203
|
// CONCATENATED MODULE: ./packages/BasePictureCard/src/index.vue
|
|
113065
113204
|
|
|
@@ -113072,11 +113211,11 @@ var srcvue_type_style_index_0_id_1393dbd5_prod_lang_scss_scoped_true_ = __webpac
|
|
|
113072
113211
|
|
|
113073
113212
|
var BasePictureCard_src_component = normalizeComponent(
|
|
113074
113213
|
packages_BasePictureCard_srcvue_type_script_lang_js_,
|
|
113075
|
-
|
|
113076
|
-
|
|
113214
|
+
srcvue_type_template_id_39d29e22_scoped_true_render,
|
|
113215
|
+
srcvue_type_template_id_39d29e22_scoped_true_staticRenderFns,
|
|
113077
113216
|
false,
|
|
113078
113217
|
null,
|
|
113079
|
-
"
|
|
113218
|
+
"39d29e22",
|
|
113080
113219
|
null
|
|
113081
113220
|
|
|
113082
113221
|
)
|
|
@@ -114630,17 +114769,6 @@ function getBaseURL () {
|
|
|
114630
114769
|
module.exports = getBaseURL
|
|
114631
114770
|
|
|
114632
114771
|
|
|
114633
|
-
/***/ }),
|
|
114634
|
-
|
|
114635
|
-
/***/ "ff20":
|
|
114636
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
114637
|
-
|
|
114638
|
-
"use strict";
|
|
114639
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_8_0_2_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_1393dbd5_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5887");
|
|
114640
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_8_0_2_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_1393dbd5_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_8_0_2_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_1393dbd5_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
114641
|
-
/* unused harmony reexport * */
|
|
114642
|
-
|
|
114643
|
-
|
|
114644
114772
|
/***/ }),
|
|
114645
114773
|
|
|
114646
114774
|
/***/ "ff55":
|