优化走访慰问
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
<div class="btn" @click="submit">保存</div>
|
||||
</div>
|
||||
|
||||
<component v-else :is="comp" :paramss="params" @back="backlist"></component>
|
||||
<component v-else :is="comp" @back="backlist"></component>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -59,9 +59,7 @@ export default {
|
||||
components: {
|
||||
walkObject,
|
||||
},
|
||||
props: {
|
||||
params: {},
|
||||
},
|
||||
props: {},
|
||||
data() {
|
||||
return {
|
||||
show: false,
|
||||
@@ -82,10 +80,12 @@ export default {
|
||||
addList: true,
|
||||
areaIdProps: '',
|
||||
clickedUserSelect: false,
|
||||
id: '',
|
||||
}
|
||||
},
|
||||
computed: { ...mapState(['user']) },
|
||||
created() {
|
||||
onLoad(o) {
|
||||
this.id = o.id
|
||||
uni.setNavigationBarTitle({ title: '新建走访' })
|
||||
this.areaIdProps = this.user.areaId
|
||||
this.forms.areaId = this.user.areaId
|
||||
@@ -96,10 +96,11 @@ export default {
|
||||
mounted() {},
|
||||
methods: {
|
||||
getDetail() {
|
||||
if (this.params.id) {
|
||||
this.$http.post(`/app/appvisitvondolence/queryDetailById?id=${this.params.id}`).then((res) => {
|
||||
if (this.id) {
|
||||
this.$http.post(`/app/appvisitvondolence/queryDetailById?id=${this.id}`).then((res) => {
|
||||
if (res?.data) {
|
||||
this.forms = res.data
|
||||
this.forms.create_user_name = res.data.name
|
||||
this.forms.realityValue = res.data.reality
|
||||
this.forms.reality = this.$dict.getLabel('realityStatus', res.data.reality)
|
||||
if (res.data.images) {
|
||||
|
||||
Reference in New Issue
Block a user