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
| <template>
| <div class="main-title">
| <p>{{title}}</p>
| <div
| class="back"
| @click="goBack"
| ><svg
| t="1651823534392"
| class="icon"
| viewBox="0 0 1024 1024"
| version="1.1"
| content-inquire
| xmlns="http://www.w3.org/2000/svg"
| p-id="1892"
| width="20"
| height="20"
| >
| <path
| d="M896 544H250.4l242.4 242.4L448 832 173.6 557.6 128 512l45.6-45.6L448 192l45.6 45.6L250.4 480H896v64z"
| p-id="1893"
| fill="#515151"
| ></path>
| </svg></div>
| </div>
| </template>
|
| <script>
| export default {
| props: ["title"],
| methods: {
| // 返回上一个页面
| goBack() {
| this.$router.back();
| },
| // 改变Table某一列的背景颜色
| // columnIndex为列下标
| columnbackgroundStyle({ row, column, rowIndex, columnIndex }) {
| if (columnIndex == 0) {
| //让下标为1的列数背景颜色显示为红色(颜色自定义根据大家需求来)
| return "background:#82bbd7;";
| }
| },
| },
| };
| </script>
|
| <style>
| </style>
|
|