inl-ui 0.0.39 → 0.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +30 -19
- package/dist/index.js.map +1 -1
- package/dist/src/pageComponent/utils/format.d.ts +1 -0
- package/dist/style.css +8 -8
- package/package.json +1 -1
- package/src/pageComponent/assets/styles/alarm/warning-record.less +6 -0
- package/src/pageComponent/assets/styles/card/index.less +6 -0
- package/src/pageComponent/assets/styles/login/login.less +2 -1
- package/src/pageComponent/assets/styles/systemManager/aboutNew.less +10 -11
- package/src/pageComponent/assets/styles/systemManager/index.less +14 -4
- package/src/pageComponent/assets/styles/systemManager/menu-manager.less +5 -2
- package/src/pageComponent/assets/styles/systemManager/noticeManager/noticeCenter.less +11 -0
- package/src/pageComponent/assets/styles/systemManager/param-manager.less +6 -0
- package/src/pageComponent/assets/styles/systemManager/systemSetting.less +1 -1
- package/src/pageComponent/assets/styles/thingModel/factory.less +5 -4
- package/src/pageComponent/components/CommonTree.tsx +1 -1
- package/src/pageComponent/utils/format.ts +11 -0
- package/src/pageComponent/views/alarms/warning-record/index.tsx +1 -1
- package/src/pageComponent/views/alarms/warning-record/record-table.tsx +1 -1
- package/src/pageComponent/views/card-center/cardWarehouse.tsx +2 -2
- package/src/pageComponent/views/card-center/components/cardDetail.tsx +4 -0
- package/src/pageComponent/views/card-center/components/pageDetail.tsx +4 -0
- package/src/pageComponent/views/card-center/components/selectCard.tsx +2 -0
- package/src/pageComponent/views/card-center/less/pageConfiguration.less +3 -0
- package/src/pageComponent/views/card-center/less/selectCard.less +3 -0
- package/src/pageComponent/views/card-center/pageConfiguration.tsx +113 -112
- package/src/pageComponent/views/factoryManage/index.tsx +1 -1
- package/src/pageComponent/views/productionPlanManager/assets/productionPlan.less +1 -2
- package/src/pageComponent/views/pss/assets/less/index.less +1 -0
- package/src/pageComponent/views/systemManager/authManager/menuManager/index.tsx +1 -1
- package/src/pageComponent/views/systemManager/noticeManager/noticeCenter.tsx +2 -2
- package/src/pageComponent/views/systemManager/noticeManager/noticeManager.tsx +1 -1
- package/src/pageComponent/views/systemManager/paramManager/index.tsx +1 -1
- package/src/pageComponent/views/thingModel/index.tsx +5 -3
- package/src/pageComponent/views/thingModel/less/thingModel.less +7 -1
- package/src/pageComponent/views/thingModel/less/thingModelDetail.less +2 -0
- package/src/pageComponent/views/workforceManager/workforceRule/assets/classManagerAndWorkforceRuleComp.less +1 -2
package/package.json
CHANGED
|
@@ -11,8 +11,10 @@
|
|
|
11
11
|
}
|
|
12
12
|
.cardWareHouse {
|
|
13
13
|
height: 100%;
|
|
14
|
+
overflow: hidden;
|
|
14
15
|
.card {
|
|
15
16
|
height: calc(100% - 100px);
|
|
17
|
+
flex-direction: column;
|
|
16
18
|
.cardgrid {
|
|
17
19
|
height: 100%;
|
|
18
20
|
&-content {
|
|
@@ -192,5 +194,9 @@
|
|
|
192
194
|
margin-top: 10px;
|
|
193
195
|
}
|
|
194
196
|
}
|
|
197
|
+
|
|
198
|
+
.ant-table-wrapper {
|
|
199
|
+
overflow: auto;
|
|
200
|
+
}
|
|
195
201
|
}
|
|
196
202
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
.aboutNew {
|
|
2
|
-
position: relative;
|
|
3
|
-
min-height: 600px;
|
|
4
2
|
height: 100%;
|
|
3
|
+
min-height: 500px;
|
|
4
|
+
overflow: auto;
|
|
5
|
+
position: relative;
|
|
5
6
|
|
|
6
7
|
.logoLine {
|
|
7
8
|
justify-content: space-between;
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
|
|
29
30
|
&::before {
|
|
30
31
|
content: "";
|
|
31
|
-
border-left: 3px solid #
|
|
32
|
+
border-left: 3px solid #1d33a2;
|
|
32
33
|
height: 10px;
|
|
33
34
|
margin-right: 12px;
|
|
34
35
|
}
|
|
@@ -45,16 +46,15 @@
|
|
|
45
46
|
font-size: 14px;
|
|
46
47
|
font-family: PingFangSC-Regular, PingFang SC;
|
|
47
48
|
font-weight: 400;
|
|
48
|
-
color: #
|
|
49
|
+
color: #5d616b;
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
.software {
|
|
52
53
|
height: 22px;
|
|
53
54
|
font-size: 14px;
|
|
54
|
-
font-family: PingFangSC-Semibold,
|
|
55
|
-
PingFang SC;
|
|
55
|
+
font-family: PingFangSC-Semibold, PingFang SC;
|
|
56
56
|
font-weight: 600;
|
|
57
|
-
color: #
|
|
57
|
+
color: #31363c;
|
|
58
58
|
line-height: 22px;
|
|
59
59
|
|
|
60
60
|
&:not(:first-child) {
|
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
|
|
67
66
|
.bottom_line {
|
|
68
67
|
position: absolute;
|
|
69
68
|
left: 0;
|
|
@@ -85,15 +84,15 @@
|
|
|
85
84
|
}
|
|
86
85
|
|
|
87
86
|
.label {
|
|
88
|
-
color: #
|
|
87
|
+
color: #31363c;
|
|
89
88
|
font-weight: 600;
|
|
90
89
|
}
|
|
91
90
|
|
|
92
91
|
.value {
|
|
93
|
-
color: #
|
|
92
|
+
color: #5d616b;
|
|
94
93
|
font-weight: 400;
|
|
95
94
|
}
|
|
96
95
|
}
|
|
97
96
|
}
|
|
98
97
|
}
|
|
99
|
-
}
|
|
98
|
+
}
|
|
@@ -31,8 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
> .ant-table-wrapper {
|
|
34
|
-
|
|
35
|
-
overflow-y: auto;
|
|
34
|
+
overflow: auto;
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
.control {
|
|
@@ -67,6 +66,18 @@
|
|
|
67
66
|
.left {
|
|
68
67
|
width: 300px;
|
|
69
68
|
margin-right: 20px;
|
|
69
|
+
.dep-tree {
|
|
70
|
+
height: 100%;
|
|
71
|
+
|
|
72
|
+
.common-tree {
|
|
73
|
+
height: 100%;
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
|
|
76
|
+
.tree-container {
|
|
77
|
+
overflow: auto;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
70
81
|
}
|
|
71
82
|
.right {
|
|
72
83
|
flex: 1;
|
|
@@ -99,8 +110,7 @@
|
|
|
99
110
|
}
|
|
100
111
|
}
|
|
101
112
|
|
|
102
|
-
.depManager
|
|
103
|
-
.menu-manager {
|
|
113
|
+
.depManager {
|
|
104
114
|
.tree {
|
|
105
115
|
overflow-y: auto;
|
|
106
116
|
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
.menu-manager {
|
|
2
|
-
display: flex;
|
|
3
|
-
gap: 32px;
|
|
4
2
|
height: 100%;
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
gap: 32px;
|
|
5
5
|
.tree {
|
|
6
6
|
width: 300px;
|
|
7
7
|
.menu-select-tree {
|
|
8
|
+
.common-tree {
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
}
|
|
8
11
|
.utils-container {
|
|
9
12
|
display: flex;
|
|
10
13
|
justify-content: space-around;
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
.noticeCenter {
|
|
2
|
+
flex-direction: column;
|
|
3
|
+
overflow: hidden;
|
|
2
4
|
box-sizing: border-box;
|
|
3
5
|
.volumeSent {
|
|
4
6
|
cursor: pointer;
|
|
5
7
|
}
|
|
8
|
+
|
|
9
|
+
.noticeCenter-content {
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
|
|
13
|
+
.ant-table-wrapper {
|
|
14
|
+
overflow: auto;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
6
17
|
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
background-color: #fff;
|
|
13
13
|
padding-right: 20px;
|
|
14
14
|
position: relative;
|
|
15
|
+
flex-direction: column;
|
|
15
16
|
&:after {
|
|
16
17
|
content: "";
|
|
17
18
|
display: block;
|
|
@@ -27,6 +28,7 @@
|
|
|
27
28
|
flex-grow: 1;
|
|
28
29
|
background-color: #fff;
|
|
29
30
|
margin-left: 20px;
|
|
31
|
+
overflow: auto;
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
34
|
.flex {
|
|
@@ -103,23 +105,22 @@
|
|
|
103
105
|
overflow: hidden;
|
|
104
106
|
text-overflow: ellipsis;
|
|
105
107
|
display: inline-block;
|
|
106
|
-
&.node_title_1{
|
|
108
|
+
&.node_title_1 {
|
|
107
109
|
width: 188px;
|
|
108
110
|
&.on {
|
|
109
111
|
width: 148px;
|
|
110
112
|
}
|
|
111
113
|
}
|
|
112
|
-
&.node_title_2{
|
|
114
|
+
&.node_title_2 {
|
|
113
115
|
width: 168px;
|
|
114
116
|
&.on {
|
|
115
117
|
width: 128px;
|
|
116
118
|
}
|
|
117
119
|
}
|
|
118
|
-
&.node_title_3{
|
|
120
|
+
&.node_title_3 {
|
|
119
121
|
width: 148px;
|
|
120
122
|
&.on {
|
|
121
123
|
width: 108px;
|
|
122
124
|
}
|
|
123
125
|
}
|
|
124
|
-
|
|
125
126
|
}
|
|
@@ -247,7 +247,7 @@ const CommonTree = defineComponent({
|
|
|
247
247
|
onBeforeUnmount(() => bus.off("tree/refresh", handleRefresh));
|
|
248
248
|
|
|
249
249
|
return () => (
|
|
250
|
-
<div class="common-tree">
|
|
250
|
+
<div class="common-tree flex">
|
|
251
251
|
{/* 搜索 */}
|
|
252
252
|
<a-input
|
|
253
253
|
style={{ marginBottom: "16px" }}
|
|
@@ -92,4 +92,15 @@ export function fomatEmployeeIdTree(res: any, label?: string, value?: string) {
|
|
|
92
92
|
}
|
|
93
93
|
return formatSubList(res);
|
|
94
94
|
}
|
|
95
|
+
|
|
96
|
+
export const getEnByZn = (val: string) => {
|
|
97
|
+
val = val
|
|
98
|
+
.replace(/ /g, "")
|
|
99
|
+
.replace(/‘/g, '"')
|
|
100
|
+
.replace(/“/g, '"')
|
|
101
|
+
.replace(/:/g, ":")
|
|
102
|
+
.replace(/「/g, "{")
|
|
103
|
+
.replace(/」/g, "}");
|
|
104
|
+
return val;
|
|
105
|
+
};
|
|
95
106
|
export default {};
|
|
@@ -295,7 +295,7 @@ const WarningRecord = defineComponent({
|
|
|
295
295
|
});
|
|
296
296
|
|
|
297
297
|
return () => (
|
|
298
|
-
<div class="warning-record">
|
|
298
|
+
<div class="warning-record flex">
|
|
299
299
|
<QueryFilter onSubmit={search} enumObj={enumObj} />
|
|
300
300
|
<div class="operation" style={{ marginBottom: "16px" }}>
|
|
301
301
|
<a-space>
|
|
@@ -222,7 +222,7 @@ const CardWareHouse = defineComponent({
|
|
|
222
222
|
};
|
|
223
223
|
|
|
224
224
|
// 详情数据
|
|
225
|
-
const data = ref({});
|
|
225
|
+
const data = ref<Item>({});
|
|
226
226
|
|
|
227
227
|
// 详情弹窗
|
|
228
228
|
const detailsVisible = ref(false);
|
|
@@ -373,7 +373,7 @@ const CardWareHouse = defineComponent({
|
|
|
373
373
|
</a-row>
|
|
374
374
|
</a-form>
|
|
375
375
|
</div>
|
|
376
|
-
<div class="card">
|
|
376
|
+
<div class="card flex">
|
|
377
377
|
{pattern.value === "list" ? (
|
|
378
378
|
<>
|
|
379
379
|
<div style={"margin-bottom: 20px;"}>
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { defineComponent, onMounted, PropType, ref, watch } from "vue";
|
|
5
5
|
import { Item } from "../cardWarehouse";
|
|
6
6
|
import inlCard from "inl-card";
|
|
7
|
+
import { getEnByZn } from "@/pageComponent/utils/format";
|
|
7
8
|
|
|
8
9
|
export interface selectedItem {
|
|
9
10
|
name: string;
|
|
@@ -211,6 +212,9 @@ export default defineComponent({
|
|
|
211
212
|
<a-textarea
|
|
212
213
|
v-model={[formState.value.parameter, "value"]}
|
|
213
214
|
disabled={_props.disabled}
|
|
215
|
+
onChange={(e) => {
|
|
216
|
+
formState.value.parameter = getEnByZn(e.target.value);
|
|
217
|
+
}}
|
|
214
218
|
onBlur={() => {
|
|
215
219
|
cardInfo.value.parameter = formState.value?.parameter || "";
|
|
216
220
|
}}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { defineComponent, onMounted, PropType, ref, watch } from "vue";
|
|
5
5
|
import { message } from "ant-design-vue";
|
|
6
6
|
import { Item } from "../pageConfiguration";
|
|
7
|
+
import { getEnByZn } from "@/pageComponent/utils/format";
|
|
7
8
|
|
|
8
9
|
export interface selectedItem {
|
|
9
10
|
name: string;
|
|
@@ -134,6 +135,9 @@ export default defineComponent({
|
|
|
134
135
|
<a-textarea
|
|
135
136
|
v-model={[formState.value.parameter, "value"]}
|
|
136
137
|
disabled={_props.disabled}
|
|
138
|
+
onChange={(e) => {
|
|
139
|
+
formState.value.parameter = getEnByZn(e.target.value);
|
|
140
|
+
}}
|
|
137
141
|
rows={4}
|
|
138
142
|
/>
|
|
139
143
|
</a-form-item>
|
|
@@ -34,6 +34,7 @@ export default defineComponent({
|
|
|
34
34
|
"records"
|
|
35
35
|
);
|
|
36
36
|
const cardBox = (data) => {
|
|
37
|
+
data.parameter = data.parameter === "" ? "{}" : data.parameter;
|
|
37
38
|
let parameter = {};
|
|
38
39
|
try {
|
|
39
40
|
parameter = JSON.parse(data.parameter ?? "{}") ?? {};
|
|
@@ -59,6 +60,7 @@ export default defineComponent({
|
|
|
59
60
|
<div class="selectCard-item">
|
|
60
61
|
<div>
|
|
61
62
|
<a-checkbox value={item}></a-checkbox>
|
|
63
|
+
<span>{item.remark}</span>
|
|
62
64
|
</div>
|
|
63
65
|
{cardBox(item)}
|
|
64
66
|
</div>
|
|
@@ -285,7 +285,7 @@ const pageConfiguration = defineComponent({
|
|
|
285
285
|
getSystemList();
|
|
286
286
|
});
|
|
287
287
|
return () => (
|
|
288
|
-
<div class="">
|
|
288
|
+
<div class="pageConfiguration flex">
|
|
289
289
|
<a-form ref={formRef} model={formState} colon={false} onSubmit={submit}>
|
|
290
290
|
<a-row style={{ width: "100%" }}>
|
|
291
291
|
{/* <a-col span={6}>
|
|
@@ -401,119 +401,120 @@ const pageConfiguration = defineComponent({
|
|
|
401
401
|
</a-col>
|
|
402
402
|
</a-row>
|
|
403
403
|
</a-form>
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
}}
|
|
413
|
-
>
|
|
414
|
-
新增页面
|
|
415
|
-
</a-button>
|
|
416
|
-
</div>
|
|
417
|
-
<a-table
|
|
418
|
-
dataSource={tableList.value}
|
|
419
|
-
columns={column}
|
|
420
|
-
pagination={{
|
|
421
|
-
pageSize: pageSize.value,
|
|
422
|
-
current: currPage.value,
|
|
423
|
-
showSizeChanger: true,
|
|
424
|
-
showQuickJumper: true,
|
|
425
|
-
showTotal: (total: number) => `共${total}条`,
|
|
426
|
-
total: total.value,
|
|
427
|
-
"onUpdate:current": handlePageChange,
|
|
428
|
-
"onUpdate:pageSize": hanldePageSizeChange,
|
|
429
|
-
}}
|
|
430
|
-
loading={isLoading.value}
|
|
431
|
-
v-slots={{
|
|
432
|
-
bodyCell: ({ column, record }) => {
|
|
433
|
-
if (column.dataIndex === "enabled") {
|
|
434
|
-
return record.enabled ? "是" : "否";
|
|
435
|
-
}
|
|
436
|
-
if (column.dataIndex === "endpoint") {
|
|
437
|
-
return filter(
|
|
438
|
-
state.terminalList,
|
|
439
|
-
record.endpoint,
|
|
440
|
-
"code",
|
|
441
|
-
"name"
|
|
442
|
-
);
|
|
443
|
-
}
|
|
444
|
-
if (column.dataIndex === "tags") {
|
|
445
|
-
return filter(
|
|
446
|
-
state.descriptionList,
|
|
447
|
-
record.tags,
|
|
448
|
-
"code",
|
|
449
|
-
"name"
|
|
450
|
-
);
|
|
451
|
-
}
|
|
452
|
-
if (column.dataIndex === "createDt") {
|
|
453
|
-
return record.createDt
|
|
454
|
-
? dayjs(record.createDt).format("YYYY-MM-DD")
|
|
455
|
-
: "--";
|
|
456
|
-
}
|
|
457
|
-
if (column.dataIndex === "updateDt") {
|
|
458
|
-
return record.updateDt
|
|
459
|
-
? dayjs(record.updateDt).format("YYYY-MM-DD")
|
|
460
|
-
: "--";
|
|
461
|
-
}
|
|
462
|
-
if (column.dataIndex === "action") {
|
|
463
|
-
return (
|
|
464
|
-
<a-space>
|
|
465
|
-
<a-button
|
|
466
|
-
type="link"
|
|
467
|
-
onClick={() => {
|
|
468
|
-
handleCopy(record.reference);
|
|
469
|
-
}}
|
|
470
|
-
>
|
|
471
|
-
复制引用地址
|
|
472
|
-
</a-button>
|
|
473
|
-
<a-button
|
|
474
|
-
type="link"
|
|
475
|
-
onClick={() => {
|
|
476
|
-
data.value = record;
|
|
477
|
-
editPageVisible.value = true;
|
|
478
|
-
}}
|
|
479
|
-
>
|
|
480
|
-
编辑页面
|
|
481
|
-
</a-button>
|
|
482
|
-
<a-button
|
|
483
|
-
type="link"
|
|
484
|
-
onClick={() => {
|
|
485
|
-
form.type = "detail";
|
|
486
|
-
data.value = record;
|
|
487
|
-
detailsVisible.value = true;
|
|
488
|
-
}}
|
|
489
|
-
>
|
|
490
|
-
详情
|
|
491
|
-
</a-button>
|
|
492
|
-
<a-button
|
|
493
|
-
type="link"
|
|
494
|
-
onClick={() => {
|
|
495
|
-
form.type = "edit";
|
|
496
|
-
data.value = record;
|
|
497
|
-
detailsVisible.value = true;
|
|
498
|
-
}}
|
|
499
|
-
>
|
|
500
|
-
修改
|
|
501
|
-
</a-button>
|
|
502
|
-
<a-popconfirm
|
|
503
|
-
title="确认删除?"
|
|
504
|
-
onConfirm={() => {
|
|
505
|
-
handleDelete(record.id);
|
|
506
|
-
}}
|
|
507
|
-
>
|
|
508
|
-
<a-button type="link">删除</a-button>
|
|
509
|
-
</a-popconfirm>
|
|
510
|
-
</a-space>
|
|
511
|
-
);
|
|
512
|
-
}
|
|
513
|
-
},
|
|
404
|
+
|
|
405
|
+
<div style={"margin-bottom: 15px;"}>
|
|
406
|
+
<a-button
|
|
407
|
+
type="primary"
|
|
408
|
+
onClick={() => {
|
|
409
|
+
form.type = "add";
|
|
410
|
+
data.value = {};
|
|
411
|
+
detailsVisible.value = true;
|
|
514
412
|
}}
|
|
515
|
-
|
|
413
|
+
>
|
|
414
|
+
新增页面
|
|
415
|
+
</a-button>
|
|
516
416
|
</div>
|
|
417
|
+
|
|
418
|
+
<a-table
|
|
419
|
+
dataSource={tableList.value}
|
|
420
|
+
columns={column}
|
|
421
|
+
pagination={{
|
|
422
|
+
pageSize: pageSize.value,
|
|
423
|
+
current: currPage.value,
|
|
424
|
+
showSizeChanger: true,
|
|
425
|
+
showQuickJumper: true,
|
|
426
|
+
showTotal: (total: number) => `共${total}条`,
|
|
427
|
+
total: total.value,
|
|
428
|
+
"onUpdate:current": handlePageChange,
|
|
429
|
+
"onUpdate:pageSize": hanldePageSizeChange,
|
|
430
|
+
}}
|
|
431
|
+
loading={isLoading.value}
|
|
432
|
+
v-slots={{
|
|
433
|
+
bodyCell: ({ column, record }) => {
|
|
434
|
+
if (column.dataIndex === "enabled") {
|
|
435
|
+
return record.enabled ? "是" : "否";
|
|
436
|
+
}
|
|
437
|
+
if (column.dataIndex === "endpoint") {
|
|
438
|
+
return filter(
|
|
439
|
+
state.terminalList,
|
|
440
|
+
record.endpoint,
|
|
441
|
+
"code",
|
|
442
|
+
"name"
|
|
443
|
+
);
|
|
444
|
+
}
|
|
445
|
+
if (column.dataIndex === "tags") {
|
|
446
|
+
return filter(
|
|
447
|
+
state.descriptionList,
|
|
448
|
+
record.tags,
|
|
449
|
+
"code",
|
|
450
|
+
"name"
|
|
451
|
+
);
|
|
452
|
+
}
|
|
453
|
+
if (column.dataIndex === "createDt") {
|
|
454
|
+
return record.createDt
|
|
455
|
+
? dayjs(record.createDt).format("YYYY-MM-DD")
|
|
456
|
+
: "--";
|
|
457
|
+
}
|
|
458
|
+
if (column.dataIndex === "updateDt") {
|
|
459
|
+
return record.updateDt
|
|
460
|
+
? dayjs(record.updateDt).format("YYYY-MM-DD")
|
|
461
|
+
: "--";
|
|
462
|
+
}
|
|
463
|
+
if (column.dataIndex === "action") {
|
|
464
|
+
return (
|
|
465
|
+
<a-space>
|
|
466
|
+
<a-button
|
|
467
|
+
type="link"
|
|
468
|
+
onClick={() => {
|
|
469
|
+
handleCopy(record.reference);
|
|
470
|
+
}}
|
|
471
|
+
>
|
|
472
|
+
复制引用地址
|
|
473
|
+
</a-button>
|
|
474
|
+
<a-button
|
|
475
|
+
type="link"
|
|
476
|
+
onClick={() => {
|
|
477
|
+
data.value = record;
|
|
478
|
+
editPageVisible.value = true;
|
|
479
|
+
}}
|
|
480
|
+
>
|
|
481
|
+
编辑页面
|
|
482
|
+
</a-button>
|
|
483
|
+
<a-button
|
|
484
|
+
type="link"
|
|
485
|
+
onClick={() => {
|
|
486
|
+
form.type = "detail";
|
|
487
|
+
data.value = record;
|
|
488
|
+
detailsVisible.value = true;
|
|
489
|
+
}}
|
|
490
|
+
>
|
|
491
|
+
详情
|
|
492
|
+
</a-button>
|
|
493
|
+
<a-button
|
|
494
|
+
type="link"
|
|
495
|
+
onClick={() => {
|
|
496
|
+
form.type = "edit";
|
|
497
|
+
data.value = record;
|
|
498
|
+
detailsVisible.value = true;
|
|
499
|
+
}}
|
|
500
|
+
>
|
|
501
|
+
修改
|
|
502
|
+
</a-button>
|
|
503
|
+
<a-popconfirm
|
|
504
|
+
title="确认删除?"
|
|
505
|
+
onConfirm={() => {
|
|
506
|
+
handleDelete(record.id);
|
|
507
|
+
}}
|
|
508
|
+
>
|
|
509
|
+
<a-button type="link">删除</a-button>
|
|
510
|
+
</a-popconfirm>
|
|
511
|
+
</a-space>
|
|
512
|
+
);
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
}}
|
|
516
|
+
/>
|
|
517
|
+
|
|
517
518
|
<a-modal
|
|
518
519
|
v-model={[detailsVisible.value, "visible"]}
|
|
519
520
|
title={form.title}
|