Commit 38514aa6 authored by youjie's avatar youjie

no message

parent 654003f9
...@@ -104,30 +104,22 @@ ...@@ -104,30 +104,22 @@
TargetId: item.ID, TargetId: item.ID,
SubjectId: i.SubjectId, SubjectId: i.SubjectId,
} }
this.$q.dialog({ _this.$confirm('此操作将删除此科目数据,是否继续?', '提示', {
title: '将删除此科目数据', confirmButtonText: '确定',
message: '是否继续?', cancelButtonText: '取消',
cancel: true, type: 'warning'
persistent: true, }).then(() => {
ok: "确定",
cancel: "取消",
}).onOk(() => {
this.apipost('Financial_post_DelCostTypeKingdeeRelation',msg, res => { this.apipost('Financial_post_DelCostTypeKingdeeRelation',msg, res => {
if(res.data.resultCode == 1) { if(res.data.resultCode == 1) {
this.$q.notify({ this.Success('操作成功')
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: res.data.Message,
position: 'top'
});
this.$emit('success'); this.$emit('success');
} else { } else {
} }
}, err => { }, err => {
}) })
}).onCancel(() => { }).catch(() => {
}); });
}, },
......
...@@ -104,23 +104,14 @@ ...@@ -104,23 +104,14 @@
TargetId: item.ID, TargetId: item.ID,
SubjectId: i.SubjectId, SubjectId: i.SubjectId,
} }
this.$q.dialog({ _this.$confirm('此操作将删除此科目数据,是否继续?', '提示', {
title: '将删除此科目数据', confirmButtonText: '确定',
message: '是否继续?', cancelButtonText: '取消',
cancel: true, type: 'warning'
persistent: true, }).then(() => {
ok: "确定",
cancel: "取消",
}).onOk(() => {
this.apipost('Financial_post_DelCostTypeKingdeeRelation',msg, res => { this.apipost('Financial_post_DelCostTypeKingdeeRelation',msg, res => {
if(res.data.resultCode == 1) { if(res.data.resultCode == 1) {
this.$q.notify({ this.Success('操作成功')
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: res.data.Message,
position: 'top'
});
this.$emit('success'); this.$emit('success');
} else { } else {
...@@ -128,7 +119,7 @@ ...@@ -128,7 +119,7 @@
}, err => { }, err => {
}) })
}).onCancel(() => { }).catch(() => {
}); });
}, },
......
...@@ -322,30 +322,22 @@ ...@@ -322,30 +322,22 @@
TargetId: item.ID, TargetId: item.ID,
SubjectId: i.SubjectId, SubjectId: i.SubjectId,
} }
this.$q.dialog({ _this.$confirm('此操作将删除此科目数据,是否继续?', '提示', {
title: '将删除此科目数据', confirmButtonText: '确定',
message: '是否继续?', cancelButtonText: '取消',
cancel: true, type: 'warning'
persistent: true, }).then(() => {
ok: "确定",
cancel: "取消",
}).onOk(() => {
this.apipost('Financial_post_DelCostTypeKingdeeRelation',msg, res => { this.apipost('Financial_post_DelCostTypeKingdeeRelation',msg, res => {
if(res.data.resultCode == 1) { if(res.data.resultCode == 1) {
this.$q.notify({ this.Success('操作成功')
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: res.data.Message,
position: 'top'
});
this.$emit('success'); this.$emit('success');
} else { } else {
} }
}, err => { }, err => {
}) })
}).onCancel(() => { }).catch(() => {
}); });
}, },
......
Markdown is supported
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