1
2
3
4
5
6
7
8
9
10
11
12
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
| <template>
| <div>
| <el-dialog title="选择" append-to-body :visible.sync="box" width="50%">
| <el-radio-group v-model="text" class="list">
| <el-row :span="24">
| <el-col
| v-for="(item, index) in list"
| :key="index"
| :md="4"
| :xs="12"
| :sm="4"
| >
| <el-radio :label="item.value">{{ item.name }}</el-radio>
| </el-col>
| </el-row>
| </el-radio-group>
| </el-dialog>
|
| <span>
| <!-- <i class="el-icon-receiving" @click="open" style="font-size: 20px"></i> -->
| <img class="imgstop" src="img/top/driver.png" alt="" style="width:40px ;" @click="open">
| </span>
| </div>
| </template>
|
| <script>
| import { setTheme } from "@/util/util";
| import { mapGetters } from "vuex";
| export default {
| data() {
| return {};
| },
| watch: {
| text: function (val) {
| this.$store.commit("SET_THEME_NAME", val);
| setTheme(val);
| },
| },
| computed: {
| ...mapGetters(["themeName"]),
| },
| mounted() {
| this.text = this.themeName;
| if (!this.text) {
| this.text = "";
| }
| },
| methods: {
| open() {
| // this.box = true;
| // console.log(123);
| this.$router.push({
| path: "/drive/index",
| // query: { departmentid: val.departmentid },
| });
| },
| },
| };
| </script>
|
| <style lang="scss" scoped>
| .list {
| width: 100%;
| }
|
| .imgstop{
| position: relative;
| top: 19px;
| }
| </style>
|
|