title
This commit is contained in:
		| @@ -34,7 +34,7 @@ | ||||
| <script> | ||||
| export default { | ||||
|   name: "addLinkage", | ||||
|   appName: "添加联动记录",  // :"修改联动记录" | ||||
|   appName:  "添加联动记录",  // :"修改联动记录" | ||||
|   data() { | ||||
|     return { | ||||
|       params: { | ||||
| @@ -53,6 +53,7 @@ export default { | ||||
|     } | ||||
|   }, | ||||
|   onShow() { | ||||
|     this.getTitle() | ||||
|     this.$dict.load('agriculturalType') | ||||
|     this.getUserList() | ||||
|   }, | ||||
| @@ -73,9 +74,8 @@ export default { | ||||
|           id: this.id, | ||||
|         } | ||||
|       }).then(res => { | ||||
|         if(res.code == 0) { | ||||
|           // this.data = res.data | ||||
|           this.form = JSON.parse(JSON.stringify(res.data)) | ||||
|         if(res?.data) { | ||||
|           this.form = res.data && JSON.parse(JSON.stringify(res.data)) | ||||
|         } | ||||
|       }) | ||||
|     }, | ||||
| @@ -123,6 +123,14 @@ export default { | ||||
|           } | ||||
|         } | ||||
|       }) | ||||
|     }, | ||||
|  | ||||
|     getTitle() { | ||||
|       if (this.id) { | ||||
|         uni.setNavigationBarTitle({ | ||||
|           title: '修改联动记录' | ||||
|         }); | ||||
|       } | ||||
|     } | ||||
|  | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user