imatrix-ui 2.9.65-dw → 2.9.67-dw
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/package.json
CHANGED
|
@@ -697,14 +697,17 @@ gridParams.$rowIndex < gridParams.gridData.length) {
|
|
|
697
697
|
canDelete = gridParams.options.lineEditOptions.beforeDelete.call(this, rowIndex, gridParams.gridData[rowIndex], gridData, isMobile, this.baseURL, isSubTableShowPage ? gridParams.gridData : null, pageSize, gridParams.additionalParamMap)
|
|
698
698
|
}
|
|
699
699
|
if (canDelete === undefined || canDelete === true) {
|
|
700
|
+
let row
|
|
700
701
|
if (gridParams.isSubTableShowPage !== undefined && gridParams.isSubTableShowPage === true) {
|
|
701
702
|
// 子表集合添加该新建的行。会触发watch subTableData的监控
|
|
702
703
|
gridParams.isChangePage = true
|
|
703
704
|
const lastPageRowIndex = (this.currentPage - 1) * this.pageSize
|
|
704
705
|
const subTableRowIndex = lastPageRowIndex + rowIndex
|
|
706
|
+
row = gridParams.subTableData[subTableRowIndex]
|
|
705
707
|
|
|
706
708
|
gridParams.subTableData.splice(subTableRowIndex, 1)
|
|
707
709
|
} else {
|
|
710
|
+
row = gridParams.gridData[rowIndex]
|
|
708
711
|
gridParams.gridData.splice(rowIndex, 1)
|
|
709
712
|
gridParams.orgGridData.splice(rowIndex, 1)
|
|
710
713
|
}
|
|
@@ -736,7 +739,8 @@ gridParams.$rowIndex < gridParams.gridData.length) {
|
|
|
736
739
|
// 每页显示多少条
|
|
737
740
|
const pageSize = gridParams.pagination && gridParams.pagination.pageSize
|
|
738
741
|
const isMobile = false
|
|
739
|
-
|
|
742
|
+
console.log('afterDelete-----row=', row, 'rowIndex=', rowIndex)
|
|
743
|
+
gridParams.options.lineEditOptions.afterDelete.call(this, rowIndex, row, isSubTableShowPage ? gridParams.subTableData : gridParams.gridData, isMobile, this.baseURL, isSubTableShowPage ? gridParams.gridData : null, pageSize, gridParams.additionalParamMap)
|
|
740
744
|
}
|
|
741
745
|
}
|
|
742
746
|
}
|
package/src/utils/request.js
CHANGED
|
@@ -89,13 +89,23 @@ service.interceptors.response.use(
|
|
|
89
89
|
if (Vue.prototype.forbiddenUser || Vue.prototype.forbiddenLinkUrl) {
|
|
90
90
|
vnode = '<p><span>' + message + '</span>'
|
|
91
91
|
// 请点击进行权限申请
|
|
92
|
-
|
|
92
|
+
let forbiddenExceptionLinkUrlMsg
|
|
93
93
|
if (Vue.prototype.forbiddenLinkUrl) {
|
|
94
|
+
forbiddenExceptionLinkUrlMsg = Vue.prototype.forbiddenLinkMsg
|
|
95
|
+
if (!forbiddenExceptionLinkUrlMsg) {
|
|
96
|
+
forbiddenExceptionLinkUrlMsg = getI18n().t('imatrixUIMessage.forbiddenExceptionLinkUrl')
|
|
97
|
+
}
|
|
94
98
|
vnode += ',<a href="#" style="color: #1800ff;font-weight: bold;text-decoration:underline" onclick="window.open(\'' + Vue.prototype.forbiddenLinkUrl + '\')">' + forbiddenExceptionLinkUrlMsg + '</a>'
|
|
99
|
+
} else if (Vue.prototype.forbiddenLinkMsg) {
|
|
100
|
+
forbiddenExceptionLinkUrlMsg = Vue.prototype.forbiddenLinkMsg
|
|
101
|
+
vnode += ',<a href="#" style="font-weight: bold;">' + forbiddenExceptionLinkUrlMsg + '</a>'
|
|
95
102
|
}
|
|
96
103
|
if (Vue.prototype.forbiddenUser) {
|
|
97
104
|
// 如有疑问请联系
|
|
98
|
-
|
|
105
|
+
let forbiddenExceptionLinkUserMsg = Vue.prototype.forbiddenUserMsg
|
|
106
|
+
if (!forbiddenExceptionLinkUserMsg) {
|
|
107
|
+
forbiddenExceptionLinkUserMsg = getI18n().t('imatrixUIMessage.forbiddenExceptionLinkUser')
|
|
108
|
+
}
|
|
99
109
|
vnode += '<span>'
|
|
100
110
|
const forbiddenUserHtml = ',' + forbiddenExceptionLinkUserMsg + '<span style="color: #1800ff;"> ' + Vue.prototype.forbiddenUser + '</span>'
|
|
101
111
|
let contactUrlHtml
|