mqtt
This commit is contained in:
parent
d0caafca06
commit
d85f6d9cb1
|
|
@ -458,7 +458,8 @@ const marketFormRules = computed(() => rules(marketForm.value, undefined, dialog
|
|||
const marketFormRef = ref()
|
||||
const marketFormItemOptions = computed(() => {
|
||||
return marketFormItem.map((item) => {
|
||||
if (item.prop === 'parentAccountName' || item.prop === 'level') {
|
||||
// 编辑时禁用账户名称、所属上级、级别
|
||||
if (item.prop === 'accountName' || item.prop === 'parentAccountName' || item.prop === 'level') {
|
||||
return { ...item, disabled: dialogType.value === 'edit' }
|
||||
}
|
||||
// 只有当级别为特殊做市(level='3')时才显示 is_base_ts,且编辑时禁用
|
||||
|
|
@ -1220,6 +1221,7 @@ const handleSubmit = async () => {
|
|||
if (selectedRow.value.role_id * 1 === 6 && selectedRow.value.type * 1 === 2) flag = 2
|
||||
const params: Record<string, any> = {
|
||||
user_id: selectedRow.value.id,
|
||||
username: marketForm.value.accountName,
|
||||
toucun_percent: marketForm.value.positionRatio,
|
||||
point_diffs_json: JSON.stringify(pointDiffObj),
|
||||
risk_control_id: marketForm.value.riskControlTemplate,
|
||||
|
|
|
|||
|
|
@ -70,10 +70,10 @@ export const rules = (marketForm: any, row?: any, isEdit?: boolean): FormRules =
|
|||
return callback(new Error('头寸最多保留2位小数'));
|
||||
}
|
||||
|
||||
// 不超过上级最大头寸校验
|
||||
if (marketForm.maxPositionRatio && numValue > Number(marketForm.maxPositionRatio)) {
|
||||
return callback(new Error(`头寸不能超过上级账户的最大头寸(${marketForm.maxPositionRatio})`));
|
||||
}
|
||||
// // 不超过上级最大头寸校验
|
||||
// if (marketForm.maxPositionRatio && numValue > Number(marketForm.maxPositionRatio)) {
|
||||
// return callback(new Error(`头寸不能超过上级账户的最大头寸(${marketForm.maxPositionRatio})`));
|
||||
// }
|
||||
|
||||
callback();
|
||||
},
|
||||
|
|
@ -104,10 +104,10 @@ export const rules = (marketForm: any, row?: any, isEdit?: boolean): FormRules =
|
|||
return callback(new Error('手续费比例最多保留2位小数'));
|
||||
}
|
||||
|
||||
// 不超过上级最大手续费比例校验
|
||||
if (marketForm.maxCommissionRatio && numValue > Number(marketForm.maxCommissionRatio)) {
|
||||
return callback(new Error(`手续费比例不能超过上级账户的最大比例(${marketForm.maxCommissionRatio})`));
|
||||
}
|
||||
// // 不超过上级最大手续费比例校验
|
||||
// if (marketForm.maxCommissionRatio && numValue > Number(marketForm.maxCommissionRatio)) {
|
||||
// return callback(new Error(`手续费比例不能超过上级账户的最大比例(${marketForm.maxCommissionRatio})`));
|
||||
// }
|
||||
|
||||
callback();
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue