diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js index 01d833f72..47cb21884 100644 --- a/jero-web/src/common/lang/en-us.js +++ b/jero-web/src/common/lang/en-us.js @@ -1257,4 +1257,6 @@ module.exports = { forward:'Forward', issuedBy:'Issued by', pleaseDecompositionStandardOrder:'Please import or bring in at least one decomposition standard order', + currentlyTheFirstOneThatCannotMovedUp:'Currently the first one that cannot be moved up', + currentlyTheLastOneCannotmovedDown:'Currently the last one cannot be moved down', } \ No newline at end of file diff --git a/jero-web/src/common/lang/zh-cn.js b/jero-web/src/common/lang/zh-cn.js index e5c4705a5..89ac86b7b 100644 --- a/jero-web/src/common/lang/zh-cn.js +++ b/jero-web/src/common/lang/zh-cn.js @@ -1359,4 +1359,6 @@ module.exports = { forward:'转发', issuedBy:'发布人', pleaseDecompositionStandardOrder:'请导入或带入至少一条分解标准单', + currentlyTheFirstOneThatCannotMovedUp:'当前已是第一个无法进行上移', + currentlyTheLastOneCannotmovedDown:'当前已是最后一个无法进行下移', } \ No newline at end of file diff --git a/jero-web/src/views/businessSupport/regulationReport/components/modules/fillTable.vue b/jero-web/src/views/businessSupport/regulationReport/components/modules/fillTable.vue index 55010c29d..3a8d0b8d0 100644 --- a/jero-web/src/views/businessSupport/regulationReport/components/modules/fillTable.vue +++ b/jero-web/src/views/businessSupport/regulationReport/components/modules/fillTable.vue @@ -163,7 +163,11 @@ this.sortList.push(this.dataSource[index - 1]) } } - this.move() + if (this.sortList.length > 1) { + this.move() + } else { + this.$message.warning(this.$t('currentlyTheFirstOneThatCannotMovedUp')) + } }, moveDownClick(row, index) { this.sortList = [] @@ -180,7 +184,11 @@ this.sortList.push(this.dataSource[index + 1]) } } - this.move() + if (this.sortList.length > 1) { + this.move() + } else { + this.$message.warning(this.$t('currentlyTheLastOneCannotmovedDown')) + } }, move() { postAction('/report/lawsMonthlyReportTitleTemplateEO/move', { lawsMonthlyReportTitleTemplateEOS: this.sortList }).then((res) => {