@@ -236,17 +236,21 @@
},
// 删除
del() {
- let ids = this.multipleSelection.map(e => e.id).toString()
- if (!ids) {
- this.$message.warning('请选择需要删除的数据!')
+ if (this.multipleSelection.length != 1) {
+ this.$message.warning('请选择一条数据进行删除!')
return
}
+ //let ids = this.multipleSelection.map(e => e.id).toString()
+ //if (!ids) {
+ // this.$message.warning('请选择需要删除的数据!')
+ // return
+ //}
this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(async () => {
- let res = await this.NetRequest('/PersonnelManagement/Gz_Amounts/DeleteForm', { keyValue: ids })
+ let res = await this.NetRequest('/PersonnelManagement/Gz_Amounts/DeleteForm', $.param({ userNo: this.multipleSelection[0].UserNo, year: this.multipleSelection[0].Year, month: this.multipleSelection[0].Month }), 'get')
if (res) {
this.$message.success('删除成功!')
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Gz_Items/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Gz_Items/Index.cshtml
index 0fd1374dc..2c7d55957 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Gz_Items/Index.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Gz_Items/Index.cshtml
@@ -26,9 +26,9 @@