zhangherong
2025-07-07 722610cdf5aa026510d5f336561b0ce09f619747
src/views/eam/base/EamMaintenanceStandardList.vue
@@ -346,6 +346,40 @@
        this.$refs.modalForm.disableSubmit = false
      },
      batchDel() {
        var ids = ''
        for (var a = 0; a < this.selectedRowKeys.length; a++) {
          ids += this.selectedRowKeys[a] + ','
        }
        var that = this
        this.$confirm({
          title: '确认删除',
          content: '是否删除选中数据,只有待提交状态的数据才可删除成功?',
          onOk: function() {
            that.loading = true
            getAction(that.url.deleteBatch, { ids })
              .then((res) => {
                if (res.success) {
                  that.$notification.success({
                    message: '消息',
                    description: res.message
                  })
                  that.loadData()
                  that.onClearSelected()
                } else {
                  that.$notification.warning({
                    message: '消息',
                    description: res.message
                  })
                }
              })
              .finally(() => {
                that.loading = false
              })
          }
        })
      },
      searchReset() {
        this.standardId = '-1'
        this.queryParam = {}