This commit is contained in:
xiongchengqiang 2020-12-14 17:23:42 +08:00
parent 2d72f07b73
commit 9143738641
2 changed files with 39 additions and 17 deletions

View File

@ -85,7 +85,7 @@ export function handleInput (form) {
}
export function handleBlur (form) {
this[form.split('.')[0]][form.split('.')[1]] = this[form.split('.')[0]][form.split('.')[1]] || '0'
this[form.split('.')[0]][form.split('.')[1]] = Number(this[form.split('.')[0]][form.split('.')[1]]) || '0'
}
export function messageSuccess (params) {

View File

@ -286,6 +286,11 @@ export default {
methods: {
//
handleDeleteTask (parent, item) {
this.$confirm('此操作不可撤回, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
if (item.id) {
parent.taskDtos.map(i => {
if (i === item) {
@ -296,6 +301,12 @@ export default {
parent.taskDtos = parent.taskDtos.filter(i => i !== item)
}
this.$forceUpdate()
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
})
})
},
//
handleCancelTask () {
@ -524,6 +535,11 @@ export default {
this.showIndicators = true
},
handleDelateWeidu (item, index, type) {
this.$confirm('此操作不可撤回, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
if (item.id) {
item.isDelete = 1
this.$forceUpdate()
@ -531,6 +547,12 @@ export default {
}
this.obj.recortModelDtos[type].detailDtos = this.obj.recortModelDtos[type].detailDtos.filter(i => i !== item)
this.$forceUpdate()
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
})
})
},
async handleGetTbale (id = this.$route.query.id) {
@ -644,7 +666,7 @@ export default {
}
}
&-bottom {
font-size: 12px;
font-size: 14px;
display: flex;
color:#999999;
align-items: center;