“dzb”
2022-10-09 2bb0e066fdc522beb51dd13f6a72cd67bd5d6a58
src/components/dispatch/index.vue
@@ -55,11 +55,15 @@
                <el-form-item label="联系方式:" prop="contactWay">
                    <el-input v-model="dispatch.contactWay"></el-input>
                </el-form-item>
                <el-button type="primary" @click.native.prevent="handleDispatch">发送短信</el-button>
                <el-button type="primary">发送短信</el-button>
            </div>
        </el-form>
        <div class="map">
            <!-- <MyMap></MyMap> -->
            <MyMap></MyMap>
        </div>
        <div class="footer">
            <el-button type="primary" @click="handleDispatch">确定</el-button>
            <el-button @click="handleBack">返回</el-button>
        </div>
    </div>
</template>
@@ -69,7 +73,7 @@
    components: {
        MyMap
    },
    props: ['id','changeDialog'],
    props: ['id','changeDialog','refresh'],
    created() {
        console.log(this.id);
    },
@@ -239,12 +243,17 @@
                            type: res.code === 200 ? 'success':'error',
                            message: res.code === 200 ? '调度成功':res.message,
                        })
                        this.$emit('changeDialog',{dialogView:false});
                        this.$emit('changeDialog',{flag:false});
                        this.refresh();
                    })
                } else {
                    return false;
                }
            })
        },
        // 取消调度
        handleBack(){
            this.$emit('changeDialog',{flag:false})
        }
    }
}
@@ -273,5 +282,10 @@
        height: 388px;
        width: 100%;
    }
    .footer{
        display: flex;
        justify-content: flex-end;
        padding: 10px 20px;
    }
}
</style>