fix: 修改创建账号的问题
This commit is contained in:
parent
bde9df2b38
commit
f33ea20b9f
|
@ -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: '',
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue