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
| <template>
| <el-bus-crud v-bind="tableConfig" />
| </template>
|
| <script>
| export default {
| data() {
| return {
| tableConfig: {
| url: 'flower/api/transport/list',
| newText: '新增物流',
| columns: [
| { label: '物流名称', prop: 'name' },
| { label: '英文名称', prop: 'enName' },
| { label: '联系人', prop: 'contacts' },
| { label: '联系方式', prop: 'contactsTel' },
| ],
| searchForm: [
| {
| type: 'row',
| items: [{ label: '物流名称', id: 'name', type: 'input' }],
| },
| ],
| form: [
| {
| label: '物流名称:',
| id: 'name',
| type: 'input',
| rules: {
| required: true,
| message: '请输入物流名称',
| trigger: 'blur',
| },
| },
| {
| label: '英文名称:',
| id: 'enName',
| type: 'input',
| },
| {
| label: '联系人:',
| id: 'contacts',
| type: 'input',
| },
| {
| label: '联系方式:',
| id: 'contactsTel',
| type: 'input',
| },
| ],
| extraButtons: [
| {
| text: '运费配置',
| atClick: (row) => {
| this.$router.push(`${this.$route.path}/${row.id}`)
| },
| },
| ],
| },
| }
| },
| head() {
| return {
| title: '运费管理',
| }
| },
| }
| </script>
|
|