Blame view

src/views/mycar/index.vue 3.08 KB
613d2a9c   Andy   add icon
1
  <template>
ec35bad6   Andy   add 账户设置 前端页面
2
    <div>
613d2a9c   Andy   add icon
3
  
ec35bad6   Andy   add 账户设置 前端页面
4
5
6
7
8
9
10
11
12
13
14
      <div class="search-wrap">
        <el-row :gutter="20">
          <el-form ref="form" :model="form" label-width="60px" label-position="left">
            <el-col :xs="8" :sm="6" :md="7" :lg="7" :xl="1">
              <el-form-item label="我的账户">
                <el-input v-model="form.email" maxlength="20" readonly />
              </el-form-item>
            </el-col>
          </el-form>
        </el-row>
      </div>
613d2a9c   Andy   add icon
15
  
ec35bad6   Andy   add 账户设置 前端页面
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
48
49
50
51
52
53
      <el-card shadow="always" class="card-second-top">
        <div slot="header" class="clearfix" style="line-height: 32px;">
          <span>我的车牌</span>
          <el-button type="primary" size="small"  style="float: right" @click="dialogFormVisible = true">绑定车牌</el-button>
        </div>
        <el-form label-width="60px" style="margin-bottom: 55px;" label-position="left">
          <el-col :xs="8" :sm="6" :md="7" :lg="7" :xl="1">
          <el-form-item label="">
            <el-select v-model="value" >
              <el-option
                v-for="item in region"
                :key="item.value"
                :label="item.label"
                :value="item.value"
                >
              </el-option>
            </el-select>
          </el-form-item>
          </el-col>
          <el-col :xs="8" :sm="6" :md="3" :lg="3" :xl="1">
            <el-button type="primary" @click="onSubmit">解绑</el-button>
          </el-col>
        </el-form>
      </el-card>
  
      <el-dialog title="绑定车牌" :visible.sync="dialogFormVisible">
        <el-form :model="problemform" label-width="60px" label-position="left">
          <el-col :xs="8" :sm="6" :md="7" :lg="7" :xl="1">
            <el-form-item label="车牌">
              <el-input v-model="problemform.carnum" maxlength="20"  />
            </el-form-item>
          </el-col>
        </el-form>
        <div slot="footer" class="dialog-footer">
          <el-button @click="dialogFormVisible = false">取 消</el-button>
          <el-button type="primary" @click="dialogFormVisible = false">绑定</el-button>
        </div>
      </el-dialog>
613d2a9c   Andy   add icon
54
55
56
57
58
    </div>
  </template>
  
  <script>
    export default {
613d2a9c   Andy   add icon
59
60
      data() {
        return {
ec35bad6   Andy   add 账户设置 前端页面
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
          form: {
            email: '13133415312',
          },
          value:'京A32323',
          region: [
            {
              value: '京A32323',
              label: '京A32323',
            },{
              value: '京A93323',
              label: '京A93323',
            },
          ],
          dialogFormVisible:false,
          problemform:{
            carnum:'',
613d2a9c   Andy   add icon
77
78
79
          }
        }
      },
613d2a9c   Andy   add icon
80
      methods: {
ec35bad6   Andy   add 账户设置 前端页面
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
        onSubmit() {
          this.$message({
            message: '解绑成功!',
            type: 'success'
          });
        },
        problemonSubmit() {
          this.$message('提交成功!')
        },
        onCancel() {
          this.$message({
            message: 'cancel!',
            type: 'warning'
          })
        },
613d2a9c   Andy   add icon
96
97
98
99
      }
    }
  </script>
  
ec35bad6   Andy   add 账户设置 前端页面
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
  <style lang="scss">
    .search-wrap{
      background-color: #FFF;
      padding: 15px;
    }
    .card-second-top{
      margin-top: 15px;
    }
    .el-card__header{
      padding: 10px 20px;
    }
    .el-radio{
      margin-right: 80px;
    }
    .el-radio.is-bordered+.el-radio.is-bordered{
      margin-left: 0px;
      margin-top: 15px;
    }
  </style>