Commit 15ee7455 authored by 季圣华's avatar 季圣华
Browse files

优化商品类别和机构的删除操作

parent dbee4a26
...@@ -244,7 +244,7 @@ export default { ...@@ -244,7 +244,7 @@ export default {
var that = this var that = this
this.$confirm({ this.$confirm({
title: '确认删除', title: '确认删除',
content: '确定要删除所选中的 ' + this.checkedKeys.length + ' 条数据,以及子节点数据吗?', content: '确定要删除所选中的 ' + this.checkedKeys.length + ' 条数据吗?',
onOk: function () { onOk: function () {
deleteAction(that.url.deleteBatch, {ids: ids}).then((res) => { deleteAction(that.url.deleteBatch, {ids: ids}).then((res) => {
if (res.code == 200) { if (res.code == 200) {
......
...@@ -244,7 +244,7 @@ export default { ...@@ -244,7 +244,7 @@ export default {
var that = this var that = this
this.$confirm({ this.$confirm({
title: '确认删除', title: '确认删除',
content: '确定要删除所选中的 ' + this.checkedKeys.length + ' 条数据,以及子节点数据吗?', content: '确定要删除所选中的 ' + this.checkedKeys.length + ' 条数据?',
onOk: function () { onOk: function () {
deleteAction(that.url.deleteBatch, {ids: ids}).then((res) => { deleteAction(that.url.deleteBatch, {ids: ids}).then((res) => {
if (res.code == 200) { if (res.code == 200) {
...@@ -389,7 +389,7 @@ export default { ...@@ -389,7 +389,7 @@ export default {
var that = this var that = this
this.$confirm({ this.$confirm({
title: '确认删除', title: '确认删除',
content: '确定要删除此机构以及子节点数据吗?', content: '确定要删除此机构吗?',
onOk: function () { onOk: function () {
deleteByDepartId({id: that.rightClickSelectedKey}).then((resp) => { deleteByDepartId({id: that.rightClickSelectedKey}).then((resp) => {
if (resp.success) { if (resp.success) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment