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 => { this.$refs.ruleFormRef.validate(valid => {
if (valid) { if (valid) {
const marketId = this.form.selectedMarketId || this.marketId const marketId = this.form.selectedMarketId || this.marketId
if (!marketId) { // if (!marketId) {
this.$message.error('请选择市场') // this.$message.error('')
return // return
} // }
if (this.form.operationType === 'create') { if (this.form.operationType === 'create') {
const createData = { const createData = {
marketId, marketId: marketId,
name: this.form.mobile, name: this.form.mobile,
mobile: this.form.mobile, mobile: this.form.mobile,
remark: '', remark: '',

View File

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