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