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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
| <!--
| * @Date: 2025-06-20 20:48:17
| * @LastEditors: gaoshp
| * @LastEditTime: 2025-06-20 21:14:47
| * @FilePath: /mdmweb/src/views/tasks/timeouts.vue
| -->
| <template>
| <basic-container>
| <avue-crud :option="option" :table-loading="loading" :data="data" v-model:page="page" v-model="form" ref="crud" @current-change="currentChange"
| @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
| <template #menu-left>
| <!-- <el-button type="primary" plain @click="exportWebSite">导出回传涉密网</el-button>
| <el-button type="primary" plain @click="reassign">挂载车床程序库</el-button>
| <el-button type="primary" plain @click="exportExcel">导出到EXCEL</el-button> -->
| </template>
| <template #menu="scope">
| <el-button type="primary" text size="default"
| @click.stop="handleAction(scope.row, scope.index)">处理意见
| </el-button>
| </template>
| </avue-crud>
| </basic-container>
| </template>
|
| <script>
| import { getList } from '@/api/tasks/machinereturnfileop.js';
| export default {
| name: 'Timeouts',
| data() {
| return {
| // Define your data properties here
| page: {
| pageSize: 10,
| currentPage: 1,
| total: 0,
| },
| form: {},
| query: {},
| loading: true,
| data: [],
| option: {
| addBtn: false,
| editBtn: false,
| delBtn: false,
| viewBtn: true,
| columnBtn: false,
| tip: false,
| // simplePage: true,
| searchShow: true,
| searchMenuSpan: 6,
| dialogWidth: '60%',
| // tree: true,
| border: true,
| index: true,
| selection: true,
| // viewBtn: true,
| menuWidth: 200,
| // menu: false,
| dialogClickModal: false,
| column: [
| {
| label: '告警编号',
| prop: '',
| },
| {
| label: '流程名称',
| prop: '',
| },
| {
| label: '执行人员',
| prop: '',
| },
| {
| label: '任务节点',
| prop: '',
| },
|
| {
| label: '任务到达时间',
| prop: '',
| type: 'datetime',
| format: 'YYYY-MM-DD HH:mm:ss',
| valueFormat: 'YYYY-MM-DD HH:mm:ss',
| },
| {
| label: '要求完成时间',
| prop: '',
| type: 'datetime',
| format: 'YYYY-MM-DD HH:mm:ss',
| valueFormat: 'YYYY-MM-DD HH:mm:ss',
| },
| ],
| }
| };
| },
| methods: {
| // Define your methods here
| currentChange(currentPage) {
| this.page.currentPage = currentPage;
| // this.onLoad();
| },
| sizeChange(pageSize) {
| this.page.pageSize = pageSize;
| },
| refreshChange() {
| this.onLoad(this.page, this.query);
| },
| /** * 页面加载时获取数据
| */
| onLoad(page, params = {}) {
| console.log('onLoad', page, params);
| const query = {
| ...this.query,
| // category: params.category ? flowCategory(params.category) : null,
| mode: this.mode,
| };
| try {
| delete query.confirmTime; // 删除不必要的查询条件
| } catch (error) {
| console.error('日期格式化错误', error);
| }
|
| this.loading = true;
| getList(page.currentPage, page.pageSize, Object.assign(query, params)).then(res => {
| const data = res.data.data;
| this.page.total = data.total;
| this.data = data.records;
| this.loading = false;
| }, () => {
| this.data = [];
| this.loading = false;
| }).catch(err => {
| this.data = [];
| this.loading = false;
| });
| }
| },
| mounted() {
|
| }
| }
| </script>
|
| <style lang="scss" scoped>
|
| </style>
|
|