|
@@ -2,7 +2,7 @@
|
|
* @Author : yuanrunwei
|
|
* @Author : yuanrunwei
|
|
* @Date : 2021-11-01 18:03:02
|
|
* @Date : 2021-11-01 18:03:02
|
|
* @LastEditors: daiqisheng
|
|
* @LastEditors: daiqisheng
|
|
- * @LastEditTime: 2022-03-31 16:39:39
|
|
|
|
|
|
+ * @LastEditTime: 2022-04-06 16:57:36
|
|
* @FilePath : \spfm-market-front\src\pages\main\performance\components\form.vue
|
|
* @FilePath : \spfm-market-front\src\pages\main\performance\components\form.vue
|
|
-->
|
|
-->
|
|
<template>
|
|
<template>
|
|
@@ -157,6 +157,24 @@ export default {
|
|
data: () => ({
|
|
data: () => ({
|
|
object: {},
|
|
object: {},
|
|
}),
|
|
}),
|
|
|
|
+ // watch: {
|
|
|
|
+ // form() {
|
|
|
|
+ // this.form.forEach((el) => {
|
|
|
|
+ // if (el.default) {
|
|
|
|
+ // this.object[el.props] = el.default;
|
|
|
|
+ // console.log(this.object[el.props], "this.object[el.props]");
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ // },
|
|
|
|
+ // },
|
|
|
|
+ created() {
|
|
|
|
+ this.form.forEach((el) => {
|
|
|
|
+ if (el.default) {
|
|
|
|
+ this.object[el.props] = el.default;
|
|
|
|
+ console.log(this.object[el.props], "this.object[el.props]");
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
handleSearch() {
|
|
handleSearch() {
|
|
this.$emit("search", this.object);
|
|
this.$emit("search", this.object);
|