doway-coms 1.1.40 → 1.1.41
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
CHANGED
|
@@ -79232,7 +79232,7 @@ __webpack_require__.d(__webpack_exports__, "setFrameToolBtnState", function() {
|
|
|
79232
79232
|
__webpack_require__.d(__webpack_exports__, "showErrors", function() { return /* reexport */ showErrors; });
|
|
79233
79233
|
__webpack_require__.d(__webpack_exports__, "getUuid", function() { return /* reexport */ common_getUuid; });
|
|
79234
79234
|
__webpack_require__.d(__webpack_exports__, "getFormValidErrors", function() { return /* reexport */ getFormValidErrors; });
|
|
79235
|
-
__webpack_require__.d(__webpack_exports__, "stringUrlQuery", function() { return /* reexport */
|
|
79235
|
+
__webpack_require__.d(__webpack_exports__, "stringUrlQuery", function() { return /* reexport */ stringUrlQuery; });
|
|
79236
79236
|
__webpack_require__.d(__webpack_exports__, "getRouteFullPath", function() { return /* reexport */ getRouteFullPath; });
|
|
79237
79237
|
__webpack_require__.d(__webpack_exports__, "getGridValidErrors", function() { return /* reexport */ getGridValidErrors; });
|
|
79238
79238
|
__webpack_require__.d(__webpack_exports__, "routeBeforeEach", function() { return /* reexport */ routeBeforeEach; });
|
|
@@ -104043,6 +104043,9 @@ function gridDefaultValueDisplay(rowInfo,colInfo){
|
|
|
104043
104043
|
let colControlType = colInfo.params.controlType
|
|
104044
104044
|
let displayValue = rowInfo[colInfo.field]
|
|
104045
104045
|
switch(colControlType){
|
|
104046
|
+
case controlType.checkbox:
|
|
104047
|
+
displayValue = displayValue===true?'是':'否'
|
|
104048
|
+
break
|
|
104046
104049
|
case controlType.select:
|
|
104047
104050
|
const item = colInfo.params.dataSource.find(
|
|
104048
104051
|
item => item.value === displayValue
|
|
@@ -108330,7 +108333,7 @@ function replaceParamString(
|
|
|
108330
108333
|
}
|
|
108331
108334
|
return formErrors
|
|
108332
108335
|
}
|
|
108333
|
-
function
|
|
108336
|
+
function stringUrlQuery(obj) {
|
|
108334
108337
|
let strUrlQuery = ''
|
|
108335
108338
|
for (let prop in obj) {
|
|
108336
108339
|
strUrlQuery = strUrlQuery + prop + '=' + obj[prop] + '&'
|
|
@@ -108341,7 +108344,7 @@ function replaceParamString(
|
|
|
108341
108344
|
return strUrlQuery
|
|
108342
108345
|
}
|
|
108343
108346
|
function getRouteFullPath(route) {
|
|
108344
|
-
let fullPath = route.path + '?' +
|
|
108347
|
+
let fullPath = route.path + '?' + stringUrlQuery(route.query)
|
|
108345
108348
|
return fullPath
|
|
108346
108349
|
}
|
|
108347
108350
|
async function getGridValidErrors(gridView) {
|
package/lib/doway-coms.umd.js
CHANGED
|
@@ -79241,7 +79241,7 @@ __webpack_require__.d(__webpack_exports__, "setFrameToolBtnState", function() {
|
|
|
79241
79241
|
__webpack_require__.d(__webpack_exports__, "showErrors", function() { return /* reexport */ showErrors; });
|
|
79242
79242
|
__webpack_require__.d(__webpack_exports__, "getUuid", function() { return /* reexport */ common_getUuid; });
|
|
79243
79243
|
__webpack_require__.d(__webpack_exports__, "getFormValidErrors", function() { return /* reexport */ getFormValidErrors; });
|
|
79244
|
-
__webpack_require__.d(__webpack_exports__, "stringUrlQuery", function() { return /* reexport */
|
|
79244
|
+
__webpack_require__.d(__webpack_exports__, "stringUrlQuery", function() { return /* reexport */ stringUrlQuery; });
|
|
79245
79245
|
__webpack_require__.d(__webpack_exports__, "getRouteFullPath", function() { return /* reexport */ getRouteFullPath; });
|
|
79246
79246
|
__webpack_require__.d(__webpack_exports__, "getGridValidErrors", function() { return /* reexport */ getGridValidErrors; });
|
|
79247
79247
|
__webpack_require__.d(__webpack_exports__, "routeBeforeEach", function() { return /* reexport */ routeBeforeEach; });
|
|
@@ -104052,6 +104052,9 @@ function gridDefaultValueDisplay(rowInfo,colInfo){
|
|
|
104052
104052
|
let colControlType = colInfo.params.controlType
|
|
104053
104053
|
let displayValue = rowInfo[colInfo.field]
|
|
104054
104054
|
switch(colControlType){
|
|
104055
|
+
case controlType.checkbox:
|
|
104056
|
+
displayValue = displayValue===true?'是':'否'
|
|
104057
|
+
break
|
|
104055
104058
|
case controlType.select:
|
|
104056
104059
|
const item = colInfo.params.dataSource.find(
|
|
104057
104060
|
item => item.value === displayValue
|
|
@@ -108339,7 +108342,7 @@ function replaceParamString(
|
|
|
108339
108342
|
}
|
|
108340
108343
|
return formErrors
|
|
108341
108344
|
}
|
|
108342
|
-
function
|
|
108345
|
+
function stringUrlQuery(obj) {
|
|
108343
108346
|
let strUrlQuery = ''
|
|
108344
108347
|
for (let prop in obj) {
|
|
108345
108348
|
strUrlQuery = strUrlQuery + prop + '=' + obj[prop] + '&'
|
|
@@ -108350,7 +108353,7 @@ function replaceParamString(
|
|
|
108350
108353
|
return strUrlQuery
|
|
108351
108354
|
}
|
|
108352
108355
|
function getRouteFullPath(route) {
|
|
108353
|
-
let fullPath = route.path + '?' +
|
|
108356
|
+
let fullPath = route.path + '?' + stringUrlQuery(route.query)
|
|
108354
108357
|
return fullPath
|
|
108355
108358
|
}
|
|
108356
108359
|
async function getGridValidErrors(gridView) {
|