|
@@ -1,7 +1,7 @@
|
|
|
<!--
|
|
|
* @Author: your name
|
|
|
* @Date: 2022-01-08 10:36:06
|
|
|
- * @LastEditTime: 2022-01-11 16:55:49
|
|
|
+ * @LastEditTime: 2022-01-17 14:42:20
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
* @Description: 基础资料 - 档案管理
|
|
|
* @FilePath: \goldenPig\src\views\basic-data\archives-admin\ArchivesAdmin.vue
|
|
@@ -19,7 +19,6 @@
|
|
|
:options="options"
|
|
|
v-model="searchForm2.location"
|
|
|
:props="{ checkStrictly: true }"
|
|
|
- @change="getlocation"
|
|
|
:placeholder="scope.item.placeholder"
|
|
|
style="width: 100%"
|
|
|
clearable
|
|
@@ -91,8 +90,8 @@ export default {
|
|
|
// 搜索
|
|
|
searchConfig: {},
|
|
|
searchForm1: {
|
|
|
- farmName: "",
|
|
|
- type: "",
|
|
|
+ farmName: undefined,
|
|
|
+ type: undefined,
|
|
|
},
|
|
|
searchForm2: {
|
|
|
location: [],
|
|
@@ -106,8 +105,8 @@ export default {
|
|
|
// 新增 or 编辑
|
|
|
modalConfig: {},
|
|
|
modalForm1: {
|
|
|
- farmName: "",
|
|
|
- type: "",
|
|
|
+ farmName: undefined,
|
|
|
+ type: undefined,
|
|
|
},
|
|
|
location: [],
|
|
|
modalForm2: {
|
|
@@ -142,17 +141,13 @@ export default {
|
|
|
handleSearchEvent(params) {
|
|
|
this.searchForm = {
|
|
|
...params,
|
|
|
- ...this.searchForm2,
|
|
|
+ location: this.searchForm2.location.join(","),
|
|
|
};
|
|
|
},
|
|
|
// 清空数据
|
|
|
handleClearEvent() {
|
|
|
this.searchForm2.location = [];
|
|
|
},
|
|
|
- // 地点
|
|
|
- getlocation(val) {
|
|
|
- console.log(val);
|
|
|
- },
|
|
|
// 模态框的 位置
|
|
|
submitLocation(val) {
|
|
|
this.modalForm2.location = val.join();
|
|
@@ -170,14 +165,14 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
watch: {
|
|
|
- "searchForm2.location": {
|
|
|
- handler(newVal) {
|
|
|
- if (typeof newVal === "object") {
|
|
|
- this.searchForm2.location = newVal.join();
|
|
|
- }
|
|
|
- },
|
|
|
- deep: true,
|
|
|
- },
|
|
|
+ // "searchForm2.location": {
|
|
|
+ // handler(newVal) {
|
|
|
+ // if (typeof newVal === "object") {
|
|
|
+ // this.searchForm2.location = newVal.join();
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // deep: true,
|
|
|
+ // },
|
|
|
},
|
|
|
};
|
|
|
</script>
|