若依业务代码index结构
只有template、script 2部分,没有style
<template>
<div class="app-container">
<!-- 搜索 -->
<!-- 新增、修改、删除、导出 -->
<!-- Table -->
<!-- 分页 -->
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
</el-dialog>
</div>
</template>
<script>
// 网络请求API
import { listOccupation, getOccupation, delOccupation, addOccupation, updateOccupation } from "@/api/xxlg/occupation";
export default {
name: "Occupation",
data() {
return {
};
},
created() {
this.getList();
},
methods: {
/** 查询列表 */
getList() {
},
// 取消按钮
cancel() {
},
// 表单重置
reset() {
},
/** 搜索按钮操作 */
handleQuery() {
},
/** 重置按钮操作 */
resetQuery() {
},
// 多选框选中数据
handleSelectionChange(selection) {
},
/** 新增按钮操作 */
handleAdd() {
},
/** 修改按钮操作 */
handleUpdate(row) {
},
/** 提交按钮 */
submitForm() {
},
/** 删除按钮操作 */
handleDelete(row) {
},
/** 导出按钮操作 */
handleExport() {
}
}
};
</script>
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
71
72
73
74
75
76
77
78
79
80
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
71
72
73
74
75
76
77
78
79
80
编辑 (opens new window)
上次更新: 2022/10/14, 23:09:06