优化商品类别和机构的删除操作
This commit is contained in:
@@ -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 {
|
|||||||
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 {
|
|||||||
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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user