运费模板修改

master
cl 5 years ago
parent 24fab6cad9
commit fa44c3fb9b

@ -92,7 +92,7 @@ import AddOrUpdate from './transport-add-or-update'
params
)
)
}).then(({data}) = > {
}).then(({data}) => {
this.dataList = data.records
this.page.total = data.total
this.dataListLoading = false
@ -102,28 +102,28 @@ import AddOrUpdate from './transport-add-or-update'
// /
addOrUpdateHandle(id) {
this.addOrUpdateVisible = true
this.$nextTick(() = > {
this.$nextTick(() => {
this.$refs.addOrUpdate.init(id)
}
)
},
//
deleteHandle(id) {
var ids = id ? [id] : this.dataListSelections.map(item = > {return item.transportId}
var ids = id ? [id] : this.dataListSelections.map(item => {return item.transportId}
)
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示',
this.$confirm(`确定进行[${id ? '删除' : '批量删除'}]操作?`, '提示',
{
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}
)
.then(() = > {
.then(() => {
this.$http({
url: this.$http.adornUrl('/shop/transport'),
method: 'delete',
data: this.$http.adornData(ids, false)
}).then(({data}) = > {
}).then(({data}) => {
this.$message({
message: '操作成功',
type: 'success',
@ -135,9 +135,7 @@ import AddOrUpdate from './transport-add-or-update'
}
)
})
})
.
catch(() = > {}
}).catch(() => {}
)
},

Loading…
Cancel
Save