Commit 4f041403 authored by 赵啸非's avatar 赵啸非

修改查询%%问题

parent 370598f1
......@@ -193,10 +193,12 @@ export default {
},
watch: {
$route(route) {
console.log(222)
this.initForm(route.query);
},
},
async created() {
console.log("1111")
this.initForm(this.$route.query);
},
methods: {
......@@ -252,7 +254,8 @@ export default {
}
});
this.form = Object.assign({}, this.form, newFormData);
this.form = Object.assign({}, this.form, data);
// this.form = Object.assign({}, this.form, data);
// console.log("after form",this.form)
},
cleanForm() {
this.clean();
......@@ -273,6 +276,8 @@ export default {
onSubmit() {
let { path, query } = this.$route;
let data = this.decode(this.form);
console.log("data:",data)
console.log("form",this.form)
//delete this.form["deviceStatusList"]
this.$router.push({
path: path,
......
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