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