|
@@ -1,7 +1,7 @@
|
|
|
<!--
|
|
|
* @Author: your name
|
|
|
* @Date: 2022-01-08 10:36:43
|
|
|
- * @LastEditTime: 2022-01-19 16:29:18
|
|
|
+ * @LastEditTime: 2022-01-25 11:07:21
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
* @Description: 基础资料 - 栋舍管理
|
|
|
* @FilePath: \goldenPig\src\views\basic-data\house-admin\HouseAdmin.vue
|
|
@@ -73,7 +73,7 @@
|
|
|
<script>
|
|
|
// 搜索
|
|
|
import SearchCpn from "@/components/search-cpn";
|
|
|
-import { formItemProp } from "./config/search.config";
|
|
|
+import { formItemProp1, formItemProp2 } from "./config/search.config";
|
|
|
|
|
|
// 表格
|
|
|
import TableCpn from "@/components/table-cpn";
|
|
@@ -150,16 +150,20 @@ export default {
|
|
|
this.searchForm2.farmId = this.farmList[0]?.id;
|
|
|
this.searchForm.farmId = this.farmList[0]?.id;
|
|
|
this.modalForm2.farmId = this.farmList[0]?.id;
|
|
|
+ this.searchConfig = {
|
|
|
+ formItemProp: formItemProp1,
|
|
|
+ searchForm: { ...this.searchForm1 },
|
|
|
+ };
|
|
|
+ } else {
|
|
|
+ this.searchForm2.farmId = this.farmId;
|
|
|
+ this.searchForm.farmId = this.farmId;
|
|
|
+ this.modalForm2.farmId = this.farmId;
|
|
|
+ this.searchConfig = {
|
|
|
+ formItemProp: formItemProp2,
|
|
|
+ searchForm: { ...this.searchForm1 },
|
|
|
+ };
|
|
|
}
|
|
|
- // } else {
|
|
|
- // this.searchForm2.farmId = parseInt(this.form.farm);
|
|
|
- // this.searchForm.farmId = parseInt(this.form.farm);
|
|
|
- // this.modalForm2.farmId = parseInt(this.form.farm);
|
|
|
- // }
|
|
|
- this.searchConfig = {
|
|
|
- formItemProp,
|
|
|
- searchForm: { ...this.searchForm1 },
|
|
|
- };
|
|
|
+
|
|
|
this.tableConfig = {
|
|
|
propList,
|
|
|
permission: "archivesAdmin",
|
|
@@ -193,6 +197,7 @@ export default {
|
|
|
// 确定默认选中牧场
|
|
|
this.searchForm2.farmId = newVal;
|
|
|
this.searchForm.farmId = newVal;
|
|
|
+ console.log(this.searchForm.farmId);
|
|
|
this.modalForm2.farmId = newVal;
|
|
|
}
|
|
|
},
|