审查视图

src/views/airRadioMsg/importFWBMsg.vue 1.4 KB
朱兆平 authored
1 2
<template>
    <div class="app-container">
小范 authored
3 4
        <div class="filter-container" style="margin-top: 15px">
            <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="handleAdd">导入</el-button>
朱兆平 authored
5 6 7 8 9 10 11
            <el-input
                    type="textarea"
                    :rows="40"
                    placeholder="请输入内容"
                    v-model="ffmtext">
            </el-input>
        </div>
小范 authored
12
        <div style="margin-left: 1190px"></div>
朱兆平 authored
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
    </div>
</template>

<script>
    import {postFWB} from "@/api/nmms/importMsg";

    export default {
        name: 'ImportMessage',
        data() {
            return {
                ffmtext: ''
            }
        },
        methods: {
            handleAdd: function () {
                let para = {
                    ffmmsg: this.ffmtext
                }
                postFWB(para).
                then(res => {
                    let result = res.data
                    if (result==1){
                        this.$message({
                            message: '导入成功',
                            type: 'success',
                            duration: 5 * 1000
                        })
                    }
                })
            }
        }
    }
</script>

<style>
小范 authored
48 49 50 51
    .app-container{
        height: 550px;
        overflow:auto;
    }
52 53 54
    /*.filter-item{*/
    /*    margin-top: 20px;*/
    /*}*/
朱兆平 authored
55
</style>