n20-common-lib 3.2.31 → 3.2.32

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "3.2.31",
3
+ "version": "3.2.32",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -824,7 +824,15 @@ export default {
824
824
  showClose: true
825
825
  })
826
826
  }
827
- this.$emit('delete-rows', this.selectionList)
827
+ this.$msgboxPor({
828
+ title: $lc('确认删除所选附件吗?'),
829
+ message: $lc('删除后数据不可恢复'),
830
+ type: 'error',
831
+ confirmButtonText: $lc('确认'),
832
+ cancelButtonText: $lc('取消')
833
+ }).then(() => {
834
+ this.$emit('delete-rows', this.selectionList)
835
+ }).catch(() => undefined)
828
836
  },
829
837
 
830
838
  async getFileInfo(row, type) {
@@ -611,9 +611,17 @@ export default {
611
611
  * @returns {void}
612
612
  */
613
613
  deleteSingleRow(row) {
614
- const index = this.tableData.findIndex((item) => item === row)
615
- if (index > -1) this.tableData.splice(index, 1)
616
- this.$emit('delete-rows', [row])
614
+ this.$msgboxPor({
615
+ title: $lc('确认删除所选附件吗?'),
616
+ message: $lc('删除后数据不可恢复'),
617
+ type: 'error',
618
+ confirmButtonText: $lc('确认'),
619
+ cancelButtonText: $lc('取消')
620
+ }).then(() => {
621
+ const index = this.tableData.findIndex((item) => item === row)
622
+ if (index > -1) this.tableData.splice(index, 1)
623
+ this.$emit('delete-rows', [row])
624
+ }).catch(() => undefined)
617
625
  },
618
626
  /**
619
627
  * 切换展开/收起未上传类型。