运费模板修改

master
cl 5 years ago
parent 24fab6cad9
commit fa44c3fb9b

@ -92,7 +92,7 @@ import AddOrUpdate from './transport-add-or-update'
params params
) )
) )
}).then(({data}) = > { }).then(({data}) => {
this.dataList = data.records this.dataList = data.records
this.page.total = data.total this.page.total = data.total
this.dataListLoading = false this.dataListLoading = false
@ -102,28 +102,28 @@ import AddOrUpdate from './transport-add-or-update'
// / // /
addOrUpdateHandle(id) { addOrUpdateHandle(id) {
this.addOrUpdateVisible = true this.addOrUpdateVisible = true
this.$nextTick(() = > { this.$nextTick(() => {
this.$refs.addOrUpdate.init(id) this.$refs.addOrUpdate.init(id)
} }
) )
}, },
// //
deleteHandle(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: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
} }
) )
.then(() = > { .then(() => {
this.$http({ this.$http({
url: this.$http.adornUrl('/shop/transport'), url: this.$http.adornUrl('/shop/transport'),
method: 'delete', method: 'delete',
data: this.$http.adornData(ids, false) data: this.$http.adornData(ids, false)
}).then(({data}) = > { }).then(({data}) => {
this.$message({ this.$message({
message: '操作成功', message: '操作成功',
type: 'success', type: 'success',
@ -135,9 +135,7 @@ import AddOrUpdate from './transport-add-or-update'
} }
) )
}) })
}) }).catch(() => {}
.
catch(() = > {}
) )
}, },

Loading…
Cancel
Save