This commit is contained in:
shilin
2025-02-19 17:06:07 +08:00
parent eda47c65f1
commit 68707726fa

View File

@ -2031,7 +2031,7 @@ export default {
if (typeof row === 'string') { if (typeof row === 'string') {
this.$refs[row].validate((valid) => { this.$refs[row].validate((valid) => {
if (valid) { if (valid) {
cancelOpenOrder({ ...this.cancelForm, exchangeType: row.exchangeType }) cancelOpenOrder({ ...this.cancelForm })
.then((response) => { .then((response) => {
if (response.code === 200) { if (response.code === 200) {
this.msgSuccess(response.msg) this.msgSuccess(response.msg)
@ -2045,13 +2045,13 @@ export default {
}) })
return false return false
} }
const { orderType, orderSn, apiId, symbol } = row const { orderType, orderSn, apiId, symbol, exchangeType } = row
this.$confirm('是否确认取消委托为"' + symbol + '"的数据项?', '警告', { this.$confirm('是否确认取消委托为"' + symbol + '"的数据项?', '警告', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(function() { }).then(function() {
return cancelOpenOrder({ order_type: Number(orderType), order_sn: orderSn, api_id: apiId, symbol }) return cancelOpenOrder({ order_type: Number(orderType), order_sn: orderSn, api_id: apiId, symbol, exchangeType })
}).then((response) => { }).then((response) => {
if (response.code === 200) { if (response.code === 200) {
this.msgSuccess(response.msg) this.msgSuccess(response.msg)