Merge branch 'master' of https://gitee.com/hdka/Industry-ui
This commit is contained in:
@@ -299,11 +299,12 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
removeMaterial() {
|
removeMaterial() {
|
||||||
|
let materialId = this.dataList[this.indexSelect].id
|
||||||
if (this.indexSelect === 0) {
|
if (this.indexSelect === 0) {
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
this.$modal.confirm('是否确认删除钽靶编号为"' + this.dataList[this.indexSelect].id + '"的数据项?').then(() => {
|
this.$modal.confirm('是否确认删除钽靶编号为"' + materialId + '"的数据项?').then(function () {
|
||||||
return deleteMaterial(this.dataList[this.indexSelect].id)
|
return deleteMaterial(materialId)
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.getDataList()
|
this.getDataList()
|
||||||
this.$modal.msgSuccess("删除成功");
|
this.$modal.msgSuccess("删除成功");
|
||||||
|
|||||||
Reference in New Issue
Block a user