<template>
    <div>
        <table style="width: 100%;">
            <tr>
                <td>
                    <div class="layui-form-item jbxq-div" style="width:300px;">
                        <label class="layui-form-label" style="width:100px;">家属姓名</label>
                        <div class="layui-input-block">
                            <input type="text" v-model="datax.jsxm"  name="title" autocomplete="off" placeholder="家属姓名" class="layui-input">
                        </div>
                    </div>
                </td>
                <td>
                    <div class="layui-form-item jbxq-div" style="width:300px;">
                        <label class="layui-form-label" style="width:100px;">与老人关系</label>
                        <div class="layui-input-block">
                            <input type="text" v-model="datax.ylrgx" name="title" autocomplete="off" placeholder="与老人关系" class="layui-input">
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="layui-form-item jbxq-div" style="width:300px;">
                        <label class="layui-form-label" style="width:100px;">家属居住地址</label>
                        <div class="layui-input-block">
                            <input type="text" v-model="datax.jsjzdz" name="title" autocomplete="off" placeholder="家属居住地址" class="layui-input">
                        </div>
                    </div>
                </td>
                <td>
                    <div class="layui-form-item jbxq-div" style="width:300px;">
                        <label class="layui-form-label" style="width:100px;">家属联系方式</label>
                        <div class="layui-input-block">
                            <input type="text" v-model="datax.jslxfs" name="title" autocomplete="off" placeholder="家属联系方式" class="layui-input">
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="layui-form-item jbxq-div" style="width:300px;">
                        <label class="layui-form-label" style="width:100px;">是否已纳入政府购买服务</label>
                        <div class="layui-input-block">
                            <input type="text" v-model="datax.sfnrzfgmfw" name="title" autocomplete="off" placeholder="是否已纳入政府购买服务" class="layui-input">
                        </div>
                    </div>
                </td>
                <td>
                    <div class="layui-form-item jbxq-div" style="width:300px;">
                        <label class="layui-form-label" style="width:100px;">居住地址</label>
                        <div class="layui-input-block">
                            <input type="text" v-model="datax.jzdz" name="title" autocomplete="off" placeholder="居住地址" class="layui-input">
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="layui-form-item jbxq-div" style="width:300px;">
                        <label class="layui-form-label" style="width:100px;">户籍地址</label>
                        <div class="layui-input-block">
                            <input type="text" v-model="datax.hjdz" name="title" autocomplete="off" placeholder="户籍地址" class="layui-input">
                        </div>
                    </div>
                </td>              
            </tr>
        </table>
    </div>
</template>
<script>
  module.exports = {
        data: function() {
            return {
                  datax: this.dataxself
            }
        }, 
        props:["dataxself"],
        methods:{

        },
        computed:{
             datax:{
                 set:function(value){
                      this.dataxself=value;
                      console.log(value);
                 },get:function(){
                      return this.dataxself;
                      console.log(this.dataxself);
                 }
             }
        },
        mounted(){//挂载的时候执行
            console.log(this.dataxself); 
        }
  }
</script>
<style scoped>

</style>