Commit cb08be23 authored by “yiyousong”'s avatar “yiyousong”

fix:测试

parent 776aeca2
...@@ -159,6 +159,7 @@ export default { ...@@ -159,6 +159,7 @@ export default {
// this.form.areaCodes = this.form.areaCodes.split(","); // this.form.areaCodes = this.form.areaCodes.split(",");
this.form.loginPwd && this.$delete(this.form, "loginPwd"); this.form.loginPwd && this.$delete(this.form, "loginPwd");
}, },
// 提交
onSubmit() { onSubmit() {
this.$refs.ruleForm.validate(async (valid) => { this.$refs.ruleForm.validate(async (valid) => {
if (valid) { if (valid) {
...@@ -173,7 +174,10 @@ export default { ...@@ -173,7 +174,10 @@ export default {
: (hash[next.areaCode] = true && item.push(next)); : (hash[next.areaCode] = true && item.push(next));
return item; return item;
}, []); }, []);
console.log(
JSON.stringify(this.form.areaNames),
this.form.areaNames.map((v) => v.areaCode).join(",")
);
let res = await userSave({ let res = await userSave({
...this.form, ...this.form,
areaNames: JSON.stringify(this.form.areaNames), areaNames: JSON.stringify(this.form.areaNames),
......
...@@ -184,6 +184,10 @@ export default { ...@@ -184,6 +184,10 @@ export default {
onSubmit() { onSubmit() {
this.$refs.ruleForm.validate(async (valid) => { this.$refs.ruleForm.validate(async (valid) => {
if (valid) { if (valid) {
console.log(
this.form.areaCodes.join(","),
JSON.stringify(this.changeSelect)
);
let res = await userSave({ let res = await userSave({
...this.form, ...this.form,
areaCodes: this.form.areaCodes.join(","), areaCodes: this.form.areaCodes.join(","),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment