fix: 修改创建账号的问题

This commit is contained in:
lzhizhao 2025-09-19 20:42:00 +08:00
parent bde9df2b38
commit f33ea20b9f
2 changed files with 11 additions and 10 deletions

View File

@ -565,14 +565,14 @@ export default {
this.$refs.ruleFormRef.validate(valid => {
if (valid) {
const marketId = this.form.selectedMarketId || this.marketId
if (!marketId) {
this.$message.error('请选择市场')
return
}
// if (!marketId) {
// this.$message.error('')
// return
// }
if (this.form.operationType === 'create') {
const createData = {
marketId,
marketId: marketId,
name: this.form.mobile,
mobile: this.form.mobile,
remark: '',

View File

@ -304,13 +304,14 @@ export default {
this.$refs.ruleFormRef.validate((valid) => {
if (valid) {
const marketId = this.form.selectedMarketId || this.marketId;
if (!marketId) {
this.$message.error('请选择市场');
return;
}
// if (!marketId) {
// this.$message.error('');
// return;
// }
console.log(this.form.operationType)
if (this.form.operationType === 'create') {
const createData = { ...this.form, marketId };
const createData = { ...this.form, marketId: marketId };
if (createData.accountId === null) {
delete createData.accountId;
}